summaryrefslogtreecommitdiff
path: root/board/imx31_phycore
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2016-01-07 15:28:23 +0800
committerJoe Hershberger <joe.hershberger@ni.com>2016-01-28 12:22:23 -0600
commit44c42dd40eb58679419abb8ab5f20fb5bff26eac (patch)
treef750973ce4939025d12cc31b4849c8dcd1b48b89 /board/imx31_phycore
parentaae0e68909bf2ef1b60d18c54105ab8b9c67c5a2 (diff)
downloadu-boot-imx-44c42dd40eb58679419abb8ab5f20fb5bff26eac.zip
u-boot-imx-44c42dd40eb58679419abb8ab5f20fb5bff26eac.tar.gz
u-boot-imx-44c42dd40eb58679419abb8ab5f20fb5bff26eac.tar.bz2
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>
Diffstat (limited to 'board/imx31_phycore')
0 files changed, 0 insertions, 0 deletions