]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - net/netfilter/xt_TPROXY.c
net: ipv6: add second dif to inet6 socket lookups
authorDavid Ahern <dsahern@gmail.com>
Mon, 7 Aug 2017 15:44:21 +0000 (08:44 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Aug 2017 18:39:22 +0000 (11:39 -0700)
commit4297a0ef085729af98adab9131d128c576ed3044
tree4514e23109aff1005bb066d732a64f340b3f6617
parent1801b570dd2ae50b90231f283e79a9a94fbe7875
net: ipv6: add second dif to inet6 socket lookups

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

TCP moves the data in the cb. Prior to tcp_v4_rcv (e.g., early demux) the
ingress index is obtained from IPCB using inet_sdif and after tcp_v4_rcv
tcp_v4_sdif is used.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet6_hashtables.h
include/net/tcp.h
net/dccp/ipv6.c
net/ipv6/inet6_hashtables.c
net/ipv6/tcp_ipv6.c
net/ipv6/udp.c
net/netfilter/xt_TPROXY.c