[IPV6]: Check interface bindings on IPv6 raw socket reception
Take account of whether a socket is bound to a particular device when selecting an IPv6 raw socket to receive a packet. Also perform this check when receiving IPv6 packets with router alert options. Signed-off-by: Andrew McDonald <andrew@mcdonald.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
7af4cc3fa1
commit
0bd1b59b15
@@ -551,7 +551,8 @@ static void icmpv6_notify(struct sk_buff *skb, int type, int code, u32 info)
|
||||
|
||||
read_lock(&raw_v6_lock);
|
||||
if ((sk = sk_head(&raw_v6_htable[hash])) != NULL) {
|
||||
while((sk = __raw_v6_lookup(sk, nexthdr, daddr, saddr))) {
|
||||
while((sk = __raw_v6_lookup(sk, nexthdr, daddr, saddr,
|
||||
skb->dev->ifindex))) {
|
||||
rawv6_err(sk, skb, NULL, type, code, inner_offset, info);
|
||||
sk = sk_next(sk);
|
||||
}
|
||||
|
Reference in New Issue
Block a user