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:
jeroen dobbelaere wrote:
--- 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)

Well spotted. There must be some tolerant DHCP stacks out there. Or I guess they may fall back to BOOTP.


Thanks!

Jifl
--
eCosCentric    http://www.eCosCentric.com/    The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[  can rejoice because thorns have roses." -Lincoln   ]-- Opinions==mine


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