Skip to content

Commit

Permalink
bridge: Fix IPv6 multicast snooping by storing correct protocol type
Browse files Browse the repository at this point in the history
The protocol type for IPv6 entries in the hash table for multicast
bridge snooping is falsely set to ETH_P_IP, marking it as an IPv4
address, instead of setting it to ETH_P_IPV6, which results in negative
look-ups in the hash table later.

Signed-off-by: Linus Lüssing <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
T-X authored and davem330 committed Feb 22, 2011
1 parent c24f691 commit 9cc6e0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/bridge/br_multicast.c
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ static int br_ip6_multicast_add_group(struct net_bridge *br,
return 0;

ipv6_addr_copy(&br_group.u.ip6, group);
br_group.proto = htons(ETH_P_IP);
br_group.proto = htons(ETH_P_IPV6);

return br_multicast_add_group(br, port, &br_group);
}
Expand Down

0 comments on commit 9cc6e0c

Please sign in to comment.