mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 13:41:30 +00:00
[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:
parent
7af4cc3fa1
commit
0bd1b59b15
4 changed files with 15 additions and 6 deletions
|
@ -10,7 +10,8 @@ extern rwlock_t raw_v6_lock;
|
|||
extern void ipv6_raw_deliver(struct sk_buff *skb, int nexthdr);
|
||||
|
||||
extern struct sock *__raw_v6_lookup(struct sock *sk, unsigned short num,
|
||||
struct in6_addr *loc_addr, struct in6_addr *rmt_addr);
|
||||
struct in6_addr *loc_addr, struct in6_addr *rmt_addr,
|
||||
int dif);
|
||||
|
||||
extern int rawv6_rcv(struct sock *sk,
|
||||
struct sk_buff *skb);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue