public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: kevin_lemay@agilent.com
Cc: sebastien.couret@elios-informatique.fr, ecos-discuss@sources.redhat.com
Subject: Re: [ECOS]  Sending Raw Ethernet packets (ether_output, ether_output_frame, __enet_send ?)
Date: Thu, 20 Nov 2003 18:44:00 -0000	[thread overview]
Message-ID: <20031120184437.GB2130@lunn.ch> (raw)
In-Reply-To: <1BEBA5E8600DD4119A50009027AF54A010FAE47B@axcs04.cos.agilent.com>

On Thu, Nov 20, 2003 at 10:52:46AM -0700, kevin_lemay@agilent.com wrote:
> Oops,
> 

> You Said SERVER. I quick check of the DHCP request services from my
> linux box shows that it uses standard UDP using the assigned IP
> address for the destination.

> It would appear that you could use the standard UDP socket routines
> if you could manually add the entry into the routing table. This
> would be easier to do that using a non-standard ethernet
> interface. Usually stacks have routines to add routes.

I don't see why you need to add a route entry? You are probably
assigning addresses for the subnet the server is already on. If not,
the default route will probably do the job of getting the reply to the
DHCP proxy.

The problem is with the arp entry. Since the device requesting the
address does not have an IP address, it obviously cannot have an arp
entry. Hence you cannot send a packet to it. It will also not respond
to arp requests. 

What you may be able to do is add a static arp entry, send the packet,
and then remove the static arp entry. 

    Andrew

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

  reply	other threads:[~2003-11-20 18:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-20 17:52 kevin_lemay
2003-11-20 18:44 ` Andrew Lunn [this message]
2003-11-20 21:47   ` [ECOS] how to link "gettimeofday" with arm-elf-gcc? Yusuke MATSUOKA
2003-11-20 22:06     ` Andrew Lunn
2003-11-20 22:34       ` Yusuke Matsuoka
2003-11-20 22:38         ` Gary Thomas
2003-11-20 22:40         ` Andrew Lunn
2003-11-20 22:09     ` Gary Thomas
  -- strict thread matches above, loose matches on Subject: below --
2003-11-20 17:22 [ECOS] Sending Raw Ethernet packets (ether_output, ether_output_frame, __enet_send ?) Sebastien Couret

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031120184437.GB2130@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=ecos-discuss@sources.redhat.com \
    --cc=kevin_lemay@agilent.com \
    --cc=sebastien.couret@elios-informatique.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).