aboutsummaryrefslogtreecommitdiff
path: root/net/ping.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-01-19 14:46:45 -0500
committerTom Rini <trini@konsulko.com>2021-01-19 14:46:45 -0500
commit9d13cd95f1df7d04f702975cdcdd8e087f71f74c (patch)
treeecdb97433ba17bf82c463affdf47ab96100cf64b /net/ping.c
parentdb0dd72e27ce62c5b28f07595b91ed00d0565819 (diff)
parent1231184caacad32c180d7e2338a645f7dfe9571a (diff)
Merge branch '2021-01-19-networking-improvements'
- e1000, ftgmac100: Add support for getting the MAC - General networking improvements - dwc_eth_qos, ks8851 fixes
Diffstat (limited to 'net/ping.c')
-rw-r--r--net/ping.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ping.c b/net/ping.c
index 0e33660f6c..075df3663f 100644
--- a/net/ping.c
+++ b/net/ping.c
@@ -90,6 +90,9 @@ void ping_receive(struct ethernet_hdr *et, struct ip_udp_hdr *ip, int len)
net_set_state(NETLOOP_SUCCESS);
return;
case ICMP_ECHO_REQUEST:
+ if (net_ip.s_addr == 0)
+ return;
+
eth_hdr_size = net_update_ether(et, et->et_src, PROT_IP);
debug_cond(DEBUG_DEV_PKT,