This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] fix redboot dhcp problem


jeroen dobbelaere wrote:
This patch fixes a problem I've encountered when trying to configure
with dhcp.

It is agains eCos v2.0

Greetings,


------------------------------------------------------------------------


--- ecos-2.0-original/packages/redboot/current/src/net/bootp.c Thu Oct 24 20:32:26 2002
+++ ecos/packages/redboot/current/src/net/bootp.c Wed Jun 18 15:42:13 2003
@@ -70,7 +70,7 @@
#ifdef CYGSEM_REDBOOT_NETWORKING_USE_GATEWAY
static const unsigned char dhcpCookie[] = {99,130,83,99};
static const unsigned char dhcpEndOption[] = {255};
-static const unsigned char dhcpRequestOption[] = {52,1,3};
+static const unsigned char dhcpRequestOption[] = {53,1,1};
#endif
static void

This changes the 'vend-rfc1048 OO:3' request into a 'vend-rfc1048 DHCP:DISCOVER' request. (as traced with tcpdump)

Greetings,
--
Jeroen Dobbelaere
Embedded Software Engineer

ACUNIA Embedded Solutions
http://www.acunia.com/aes



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]