]> 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)
commit3a032f2b5488487227eda0063ac76f806d55a5f9
tree214ff93b6c25de28c53b596048487ad25aa0ac88
parent1c30b5241298b9df87af019e749fa3d6e4f81786
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