]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipv6: add second dif to udp socket lookups
authorDavid Ahern <dsahern@gmail.com>
Mon, 7 Aug 2017 15:44:20 +0000 (08:44 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Aug 2017 18:39:22 +0000 (11:39 -0700)
commit030f2d4fb82fdd0979e6ec2043ec8d7a41b950fc
tree214ff93b6c25de28c53b596048487ad25aa0ac88
parentc86ebdc986c8e683c91a96a516cdf158bbcf25aa
net: ipv6: add second dif to udp socket lookups

Add a second device index, sdif, to udp 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.

Early demux lookups are handled in the next patch as part of INET_MATCH
changes.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/ipv6.h
include/net/udp.h
net/ipv4/udp_diag.c
net/ipv6/udp.c