summaryrefslogtreecommitdiffstats
path: root/net/ipv4/raw_diag.c
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2017-08-07 08:44:18 -0700
committerDavid S. Miller <davem@davemloft.net>2017-08-07 11:39:21 -0700
commit67359930e185c491b47cb958d5f1d6c1af4598a2 (patch)
tree6cb13918b1083352090aadb2796bcaf7cc7c6abb /net/ipv4/raw_diag.c
parent3fa6f616a7a4d0bdf4d877d530456d8a5c3b109b (diff)
downloadlinux-67359930e185c491b47cb958d5f1d6c1af4598a2.tar.gz
linux-67359930e185c491b47cb958d5f1d6c1af4598a2.tar.bz2
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 'net/ipv4/raw_diag.c')
-rw-r--r--net/ipv4/raw_diag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/raw_diag.c b/net/ipv4/raw_diag.c
index e1a51ca68d23..c600d3c71d4d 100644
--- a/net/ipv4/raw_diag.c
+++ b/net/ipv4/raw_diag.c
@@ -46,7 +46,7 @@ static struct sock *raw_lookup(struct net *net, struct sock *from,
sk = __raw_v4_lookup(net, from, r->sdiag_raw_protocol,
r->id.idiag_dst[0],
r->id.idiag_src[0],
- r->id.idiag_if);
+ r->id.idiag_if, 0);
#if IS_ENABLED(CONFIG_IPV6)
else
sk = __raw_v6_lookup(net, from, r->sdiag_raw_protocol,