Neal Cardwell fae6ef87fa net: tcp: move sk_rx_dst_set call after tcp_create_openreq_child()
This commit removes the sk_rx_dst_set calls from
tcp_create_openreq_child(), because at that point the icsk_af_ops
field of ipv6_mapped TCP sockets has not been set to its proper final
value.

Instead, to make sure we get the right sk_rx_dst_set variant
appropriate for the address family of the new connection, we have
tcp_v{4,6}_syn_recv_sock() directly call the appropriate function
shortly after the call to tcp_create_openreq_child() returns.

This also moves inet6_sk_rx_dst_set() to avoid a forward declaration
with the new approach.

Signed-off-by: Neal Cardwell <ncardwell@google.com>
Reported-by: Artem Savkov <artem.savkov@gmail.com>
Cc: Eric Dumazet <edumazet@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-08-20 03:03:33 -07:00
..
2012-05-18 02:24:13 -04:00
2012-05-19 01:08:16 -04:00
2012-05-19 01:08:16 -04:00
2012-06-04 11:45:11 -04:00
2012-07-30 14:53:21 -07:00
2012-07-18 11:28:46 -07:00
2012-06-27 15:36:44 -07:00
2012-05-15 13:13:34 -04:00
2012-08-14 14:45:07 -07:00
2012-07-19 10:55:36 -07:00
2011-11-22 16:43:32 -05:00