diff options
author | Tom Rini <trini@konsulko.com> | 2020-08-05 16:05:33 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-08-05 16:05:33 -0400 |
commit | 635dfee2cb522f5072530ca63fd4ab02890b90a2 (patch) | |
tree | 8abedb1958a51367a9a08922eea3d33cfb6035f4 /net/net.c | |
parent | f1c0b7cd4be2081ae3711cec2c4cc2910a5817e1 (diff) | |
parent | 7b27e0fe13d8d44da6cd357a69668a726b852502 (diff) |
Merge branch '2020-08-05-misc-fixes'
- A large number of assorted fixes and minor improvements
Diffstat (limited to 'net/net.c')
-rw-r--r-- | net/net.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/net.c b/net/net.c index 1e7f633cb69..28d9eebf9dd 100644 --- a/net/net.c +++ b/net/net.c @@ -409,6 +409,10 @@ int net_loop(enum proto_t protocol) int ret = -EINVAL; enum net_loop_state prev_net_state = net_state; +#if defined(CONFIG_CMD_PING) + if (protocol != PING) + net_ping_ip.s_addr = 0; +#endif net_restarted = 0; net_dev_exists = 0; net_try_count = 1; |