diff options
| author | Eric Dumazet <[email protected]> | 2015-03-13 22:51:10 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2015-03-14 19:05:10 +0000 |
| commit | 16f86165bd0a94a96ab99629828cc9057db50221 (patch) | |
| tree | abb1a7c6f69f2f424dd08e035091945d252dd141 /net/ipv6/tcp_ipv6.c | |
| parent | Merge branch 'tipc-next' (diff) | |
| download | kernel-16f86165bd0a94a96ab99629828cc9057db50221.tar.gz kernel-16f86165bd0a94a96ab99629828cc9057db50221.zip | |
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
| -rw-r--r-- | net/ipv6/tcp_ipv6.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index c5fc6a5e4adc..d89f028dc8c4 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c @@ -734,8 +734,6 @@ static void tcp_v6_init_req(struct request_sock *req, struct sock *sk, ireq->ir_v6_rmt_addr = ipv6_hdr(skb)->saddr; ireq->ir_v6_loc_addr = ipv6_hdr(skb)->daddr; - ireq->ir_iif = sk->sk_bound_dev_if; - /* So that link locals have meaning */ if (!sk->sk_bound_dev_if && ipv6_addr_type(&ireq->ir_v6_rmt_addr) & IPV6_ADDR_LINKLOCAL) |
