mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 06:23:53 +01:00
Merge pull request #11933 from miri64/shell/fix/check-sender
shell_commands: check ICMPv6 echo reply sender
This commit is contained in:
commit
56a6e5d53e
@ -338,7 +338,8 @@ static void _print_reply(_ping_data_t *data, gnrc_pktsnip_t *icmpv6,
|
||||
uint16_t recv_seq;
|
||||
|
||||
/* not our ping */
|
||||
if (byteorder_ntohs(icmpv6_hdr->id) != data->id) {
|
||||
if ((byteorder_ntohs(icmpv6_hdr->id) != data->id) &&
|
||||
!ipv6_addr_equal(from, &data->host)) {
|
||||
return;
|
||||
}
|
||||
recv_seq = byteorder_ntohs(icmpv6_hdr->seq);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user