Linux/linux ad23b75net/ipv4 igmp.c

net: igmp: fix source address check for IGMPv3 reports

Commit "net: igmp: Use correct source address on IGMPv3 reports"
introduced a check to validate the source address of locally generated
IGMPv3 packets.
Instead of checking the local interface address directly, it uses
inet_ifa_match(fl4->saddr, ifa), which checks if the address is on the
local subnet (or equal to the point-to-point address if used).

This breaks for point-to-point interfaces, so check against
ifa->ifa_local directly.

Cc: Kevin Cernekee <cernekee at chromium.org>
Fixes: a46182b00290 ("net: igmp: Use correct source address on IGMPv3 reports")
Reported-by: Sebastian Gottschall <s.gottschall at dd-wrt.com>
Signed-off-by: Felix Fietkau <nbd at nbd.name>
Signed-off-by: David S. Miller <davem at davemloft.net>
DeltaFile
+1-1net/ipv4/igmp.c
+1-11 files

UnifiedSplitRaw