]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Fix regression caused by 2a0c5fe in udp_v6_mcast_next()
authorSven Wegener <sven.wegener@stealer.net>
Thu, 29 May 2014 20:27:05 +0000 (20:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Jun 2014 22:42:01 +0000 (15:42 -0700)
commit0fdb23666fcc662906cf25774e972d32010bec56
treed7efdc1b03d91c91360bc6b8781c60a340c01f04
parent996a999be22fc2ddcd134170cf9be648d37eac13
ipv6: Fix regression caused by 2a0c5fe in udp_v6_mcast_next()

Commit 2a0c5fe ("ipv6: make lookups simpler and faster") introduced a
regression in udp_v6_mcast_next(), resulting in multicast packets not
reaching the destination sockets under certain conditions.

The packet's IPv6 addresses are wrongly compared to the IPv6 addresses
from the function's socket argument, which indicates the starting point
for looping, instead of the loop variable. If the addresses from the
first socket do not match the packet's addresses, no socket in the list
will match.

Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/udp.c