This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: PCI Ethernet card (DHCP issue)
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Michael Anburaj <embeddedeng at hotmail dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Sun, 14 Sep 2003 10:35:08 +0200
- Subject: Re: [ECOS] PCI Ethernet card (DHCP issue)
- References: <Law15-F83lODAStRc0J0000a747@hotmail.com>
On Sun, Sep 14, 2003 at 12:53:41AM +0000, Michael Anburaj wrote:
> Hi,
>
> The DHCP protocol was successful with Redboot, but fails with ecos. After
> analyzing the packet captures using ethereal, I found some differences in
> the "DHCP Discover" packet --> under Bootstrap protocol --> BootP Flags =
> 0x8000 (in case of ecos) & 0x0000 (in case of redboot).
Redboot uses BOOTP and normally eCos uses DHCP. This could be the flag
that differentiates between the two.
> In the case of redboot, the DHCP server (RH9 running my dhcpd.conf)
> responds with the DHCP offer soon after seeing the DHCP discover packet.
> But in case of ecos it responds 4 times after 4 DHCP discover packets.
>
> Please suggest me a way to debug this issue.
Put some breakpoints in do_dhcp. One on each recvfrom will probably
do. Run the code and see why its dropping the replys.
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