u-boot-brain/net
Peng Fan 44c42dd40e net: bootp: Ignore packets whose yiaddr is 0
When doing `dhcp`, there is a bad dhcp server in my network
which always reply dhcp request with yiaddr 0, which cause
uboot can not successfully get ipaddr from the good dhcp server.
But the Linux PC can get the ip address even if there is a bad
dhcp server. This patch is to fix that even if there is a bad
dhcp server, uboot can still get ipaddr and tftp work ok.

The way is to ignore the packets from the bad dhcp server by filtering
out the yiaddr whose value is 0.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Wolfgang Denk <wd@denx.de>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
2016-01-28 12:22:23 -06:00
..
arp.c net/arp: account for ARP delay, avoid duplicate packets on timeout 2015-10-28 14:57:37 -05:00
arp.h net/arp: account for ARP delay, avoid duplicate packets on timeout 2015-10-28 14:57:37 -05:00
bootp.c net: bootp: Ignore packets whose yiaddr is 0 2016-01-28 12:22:23 -06:00
bootp.h net: Convert protocol structures to use explicit sizes 2015-04-18 11:11:35 -06:00
cdp.c net: cosmetic: Fix checkpatch.pl failures in net.c 2015-04-18 11:11:35 -06:00
cdp.h net: cosmetic: Clean up CDP variables and functions 2015-04-18 11:11:34 -06:00
checksum.c net: Add a separate file for IP checksumming 2015-01-23 21:44:59 -07:00
dns.c net: cosmetic: Fix checkpatch.pl failures in net.c 2015-04-18 11:11:35 -06:00
dns.h net: cosmetic: Clean up DNS variables and functions 2015-04-18 11:11:34 -06:00
eth.c net: remove scary warning about EEPROM provided MAC address 2016-01-08 10:15:44 -05:00
Kconfig net: TFTP: variables cleanup and addition 2015-10-28 14:42:24 -05:00
link_local.c net: cosmetic: Fix checkpatch.pl failures in net.c 2015-04-18 11:11:35 -06:00
link_local.h net: Add link-local addressing support 2012-05-23 17:53:08 -05:00
Makefile net: Add a separate file for IP checksumming 2015-01-23 21:44:59 -07:00
net_rand.h net: use common rand()/srand() functions 2012-07-07 14:07:32 +02:00
net.c net: Fix delay in net_retry test 2016-01-07 12:18:58 -07:00
nfs.c net: cosmetic: Fix checkpatch.pl failures in net.c 2015-04-18 11:11:35 -06:00
nfs.h net: cosmetic: Clean up NFS variables and functions 2015-04-18 11:11:33 -06:00
ping.c net: cosmetic: Fix checkpatch.pl failures in net.c 2015-04-18 11:11:35 -06:00
ping.h SPDX License cleanup for LiMon imported files 2014-10-10 09:44:43 -04:00
rarp.c net: tftp: Move tftp.h file from ./net to ./include/net 2015-09-07 13:41:04 +02:00
rarp.h net: cosmetic: Clean up RARP variables and functions 2015-04-18 11:11:33 -06:00
sntp.c dm: net: rtc: Support using driver model for rtc in sntp 2015-05-05 20:58:40 -06:00
sntp.h net: cosmetic: Clean up SNTP variables and functions 2015-04-18 11:11:34 -06:00
tftp.c net: TFTP: variables cleanup and addition 2015-10-28 14:42:24 -05:00