Mercurial > ecos
changeset 1217:0e1c2770aa9d
Add new options to DHCP request - from David Vrabel
| author | gthomas |
|---|---|
| date | Sun, 14 Sep 2003 13:41:58 +0000 |
| parents | d1c242cb506b |
| children | e0c748e0a46b |
| files | packages/redboot/current/ChangeLog packages/redboot/current/src/net/bootp.c |
| diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/redboot/current/ChangeLog +++ b/packages/redboot/current/ChangeLog @@ -3,6 +3,12 @@ 2003-09-09 Gary Thomas <gary@mlbassoc. * src/flash.c (flash_config_insert_value): Default value was wrong for ESA type. +2003-09-08 David Vrabel <dvrabel@arcom.com> + + * src/net/bootp.c (__bootp_find_local_ip): Adds Option 55 Parameter + Request List) to the DHCP request (requests: Subnet Mask; Router; + Domain Name server). + 2003-08-19 Gary Thomas <gary@mlbassoc.com> * src/net/udp.c (__udp_recvfrom): Rework loop so delay only happens
--- a/packages/redboot/current/src/net/bootp.c +++ b/packages/redboot/current/src/net/bootp.c @@ -71,6 +71,7 @@ static bootp_header_t *bp_info; static const unsigned char dhcpCookie[] = {99,130,83,99}; static const unsigned char dhcpEndOption[] = {255}; static const unsigned char dhcpDiscoverOption[] = {53,1,1}; +static const unsigned char dhcpParamRequestList[] = {55,3,1,3,6}; #endif static void @@ -171,6 +172,7 @@ int AddOption(p,dhcpCookie); AddOption(p,dhcpDiscoverOption); + AddOption(p,dhcpParamRequestList); AddOption(p,dhcpEndOption); // Some servers insist on a minimum amount of "vendor" data
