[U-Boot] [PATCH V2] net: bootp: Ignore packets whose yiaddr is 0
Joe Hershberger
joe.hershberger at gmail.com
Mon Jan 25 15:59:36 CET 2016
On Thu, Jan 7, 2016 at 1:28 AM, Peng Fan <van.freenix at gmail.com> wrote:
> From: Peng Fan <peng.fan at nxp.com>
>
> 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 at nxp.com>
> Cc: Joe Hershberger <joe.hershberger at ni.com>
Acked-by: Joe Hershberger <joe.hershberger at ni.com>
More information about the U-Boot
mailing list