]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Remove erroneous check in igmpv3_newpack() and igmp_send_report().
authorDavid S. Miller <davem@davemloft.net>
Tue, 26 Apr 2011 20:57:47 +0000 (13:57 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Apr 2011 20:59:05 +0000 (13:59 -0700)
commit4400a812d62ff4d856cdf3014d6e63655faa7d64
tree03993cc582cc2ed1488aac7223205a11753d60df
parent24e953a48d9f6dd26cb8700b5e64630e6e51b1a7
ipv4: Remove erroneous check in igmpv3_newpack() and igmp_send_report().

Output route resolution never returns a route with rt_src set to zero
(which is INADDR_ANY).

Even if the flow key for the output route lookup specifies INADDR_ANY
for the source address, the output route resolution chooses a real
source address to use in the final route.

This test has existed forever in igmp_send_report() and David Stevens
simply copied over the erroneous test when implementing support for
IGMPv3.

Signed-off-by: David S. Miller <davem@davemloft.net>
Reviewed-by: Eric Dumazet <eric.dumazet@gmail.com>
net/ipv4/igmp.c