Skip to content

Commit

Permalink
Merge pull request #12197 from miri64/sc_icmpv6_echo/fix/multicast
Browse files Browse the repository at this point in the history
shell_commands: fix ping6 response check for multicast
  • Loading branch information
miri64 committed Sep 11, 2019
2 parents 720db1a + 0c24bfc commit 5ec0e9d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sys/shell/commands/sc_gnrc_icmpv6_echo.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,10 @@ 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) {
return;
}
if (!ipv6_addr_is_multicast(&data->host) &&
!ipv6_addr_equal(from, &data->host)) {
return;
}
Expand Down

0 comments on commit 5ec0e9d

Please sign in to comment.