diff options
author | David Ahern <dsahern@gmail.com> | 2017-08-07 17:44:18 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-07 20:39:21 +0200 |
commit | 67359930e185c491b47cb958d5f1d6c1af4598a2 (patch) | |
tree | 6cb13918b1083352090aadb2796bcaf7cc7c6abb /include/net/raw.h | |
parent | net: ipv4: add second dif to inet socket lookups (diff) | |
download | linux-67359930e185c491b47cb958d5f1d6c1af4598a2.tar.xz linux-67359930e185c491b47cb958d5f1d6c1af4598a2.zip |
net: ipv4: add second dif to raw socket lookups
Add a second device index, sdif, to raw socket lookups. sdif is the
index for ingress devices enslaved to an l3mdev. It allows the lookups
to consider the enslaved device as well as the L3 domain when searching
for a socket.
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/raw.h')
-rw-r--r-- | include/net/raw.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/raw.h b/include/net/raw.h index 57c33dd22ec4..99d26d0c4a19 100644 --- a/include/net/raw.h +++ b/include/net/raw.h @@ -26,7 +26,7 @@ extern struct proto raw_prot; extern struct raw_hashinfo raw_v4_hashinfo; struct sock *__raw_v4_lookup(struct net *net, struct sock *sk, unsigned short num, __be32 raddr, - __be32 laddr, int dif); + __be32 laddr, int dif, int sdif); int raw_abort(struct sock *sk, int err); void raw_icmp_error(struct sk_buff *, int, u32); |