Skip to content

Commit

Permalink
Update en10mb.c
Browse files Browse the repository at this point in the history
Fixed expression to detect an ip6 multicast packet
  • Loading branch information
david-guti committed Mar 22, 2023
1 parent bcb107a commit a86c3e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tcpedit/plugins/dlt_en10mb/en10mb.c
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ static void dlt_en10mb_ipv6_multicast_mac_update(const struct tcpr_in6_addr *ip6
uint8_t mac[])
{
/* only modify multicast packets */
if (ip6->tcpr_s6_addr[0] == 0xff)
if (ip6->tcpr_s6_addr[0] != 0xff)
return;

mac[0] = 0x33;
Expand Down

0 comments on commit a86c3e6

Please sign in to comment.