OSDN Git Service

net: ipv4: add second dif to udp socket lookups
authorDavid Ahern <dsahern@gmail.com>
Mon, 7 Aug 2017 15:44:16 +0000 (08:44 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Aug 2017 18:39:21 +0000 (11:39 -0700)
commitfb74c27735f0a34e76dbf1972084e984ad2ea145
tree5c92a234b104580270088b0c3ec243d7ad20f902
parent46d4b68f891bee5d83a32508bfbd9778be6b1b63
net: ipv4: 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/net/ip.h
include/net/udp.h
net/ipv4/udp.c
net/ipv4/udp_diag.c