summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/bootp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/bootp.c b/net/bootp.c
index 8106601..5331727 100644
--- a/net/bootp.c
+++ b/net/bootp.c
@@ -6,6 +6,7 @@
* Copyright 2000 Roland Borde
* Copyright 2000 Paolo Scaffardi
* Copyright 2000-2004 Wolfgang Denk, wd@denx.de
+ * Copyright (C) 2015 Freescale Semiconductor, Inc.
*/
#include <common.h>
@@ -949,6 +950,10 @@ DhcpHandler(uchar *pkt, unsigned dest, IPaddr_t sip, unsigned src,
if (BootpCheckPkt(pkt, dest, src, len))
return;
+ /* Ignore pkts with ip address which is 0 */
+ if (NetReadIP(&bp->bp_yiaddr) == 0)
+ return;
+
debug("DHCPHandler: got DHCP packet: (src=%d, dst=%d, len=%d) state:"
" %d\n", src, dest, len, dhcp_state);