diff options
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/lwip/ping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/lwip/ping.c b/cmd/lwip/ping.c index 6d090fc530d..fc4cf7bde5f 100644 --- a/cmd/lwip/ping.c +++ b/cmd/lwip/ping.c @@ -35,7 +35,7 @@ static u8_t ping_recv(void *arg, struct raw_pcb *pcb, struct pbuf *p, struct ping_ctx *ctx = arg; struct icmp_echo_hdr *iecho = ctx->iecho; - if (addr->addr != ctx->target.addr) + if (!ip_addr_eq(addr, &ctx->target)) return 0; if ((p->tot_len >= (IP_HLEN + sizeof(struct icmp_echo_hdr))) && |
