diff options
author | David Ahern <dsahern@gmail.com> | 2017-08-07 08:44:18 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-07 11:39:21 -0700 |
commit | 67359930e185c491b47cb958d5f1d6c1af4598a2 (patch) | |
tree | 6cb13918b1083352090aadb2796bcaf7cc7c6abb /include/net/raw.h | |
parent | 3fa6f616a7a4d0bdf4d877d530456d8a5c3b109b (diff) | |
download | op-kernel-dev-67359930e185c491b47cb958d5f1d6c1af4598a2.zip op-kernel-dev-67359930e185c491b47cb958d5f1d6c1af4598a2.tar.gz |
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 57c33dd..99d26d0 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); |