diff options
author | Brian Rzycki <bmr@freescale.com> | 2012-09-11 09:22:53 +0000 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2012-09-27 12:22:13 -0500 |
commit | ee0f60df0b71092cd632fc6651f4157a2d252598 (patch) | |
tree | 2d7ac148cf2c8a7e7588a595b595309226a276d0 /net/bootp.c | |
parent | a655938a93410a468f8e2288edc20d20a272a6d4 (diff) | |
download | u-boot-imx-ee0f60df0b71092cd632fc6651f4157a2d252598.zip u-boot-imx-ee0f60df0b71092cd632fc6651f4157a2d252598.tar.gz u-boot-imx-ee0f60df0b71092cd632fc6651f4157a2d252598.tar.bz2 |
net: Quietly ignore DHCP Option 28 (Broadcast Address)
Some DHCP servers (notably dnsmasq) always transmit DHCP Option 28,
Broadcast Address as specified in RFC 2132. Without this patch u-boot
displays the warning:
*** Unhandled DHCP Option in OFFER/ACK: 28
The patch suppresses the warning and ignores DHCP Option 28. There is
no environment variable to set the broadcast address into and if for
some reason u-boot needs the broadcast it can be calculated from
ipaddr and netmask.
Signed-off-by: Brian Rzycki <bmr@freescale.com>
Diffstat (limited to 'net/bootp.c')
-rw-r--r-- | net/bootp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/bootp.c b/net/bootp.c index c9b8349..661e371 100644 --- a/net/bootp.c +++ b/net/bootp.c @@ -728,6 +728,8 @@ static void DhcpOptionsProcess(uchar *popt, struct Bootp_t *bp) memcpy(&NetOurRootPath, popt + 2, size); NetOurRootPath[size] = 0; break; + case 28: /* Ignore Broadcast Address Option */ + break; #if defined(CONFIG_CMD_SNTP) && defined(CONFIG_BOOTP_NTPSERVER) case 42: /* NTP server IP */ NetCopyIP(&NetNtpServerIP, (popt + 2)); |