]> git.baikalelectronics.ru Git - kernel.git/commit
inet: fill request sock ir_iif for IPv4
authorEric Dumazet <edumazet@google.com>
Fri, 13 Mar 2015 22:51:10 +0000 (15:51 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 14 Mar 2015 19:05:10 +0000 (15:05 -0400)
commit8ec5dc4dbd95bc2fab001f4940b2a434bec9be29
treeabb1a7c6f69f2f424dd08e035091945d252dd141
parent35db3f31ead4a8ec8271bcf08f8316f17a5e1cf6
inet: fill request sock ir_iif for IPv4

Once request socks will be in ehash table, they will need to have
a valid ir_iff field.

This is currently true only for IPv6. This patch extends support
for IPv4 as well.

This means inet_diag_fill_req() can now properly use ir_iif,
which is better for IPv6 link locals anyway, as request sockets
and established sockets will propagate consistent netlink idiag_if.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/ipv4.c
net/ipv4/inet_diag.c
net/ipv4/syncookies.c
net/ipv4/tcp_input.c
net/ipv6/tcp_ipv6.c