aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_input.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-08-22 17:21:38 -0400
committerDavid S. Miller <davem@davemloft.net>2012-08-22 17:21:38 -0400
commit1304a7343b30fc4f16045412efdbb4179a3d9255 (patch)
tree83d667ac4f62e30f70305ce4cc7e030e3465f92e /net/ipv4/tcp_input.c
parent1d76efe1577b4323609b1bcbfafa8b731eda071a (diff)
parent23dcfa61bac244e1200ff9ad19c6e9144dcb6bb5 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r--net/ipv4/tcp_input.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index c423317eb719..bcfccc5cb8d0 100644
--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -5396,6 +5396,8 @@ int tcp_rcv_established(struct sock *sk, struct sk_buff *skb,
5396{ 5396{
5397 struct tcp_sock *tp = tcp_sk(sk); 5397 struct tcp_sock *tp = tcp_sk(sk);
5398 5398
5399 if (unlikely(sk->sk_rx_dst == NULL))
5400 inet_csk(sk)->icsk_af_ops->sk_rx_dst_set(sk, skb);
5399 /* 5401 /*
5400 * Header prediction. 5402 * Header prediction.
5401 * The code loosely follows the one in the famous 5403 * The code loosely follows the one in the famous
@@ -5609,7 +5611,7 @@ void tcp_finish_connect(struct sock *sk, struct sk_buff *skb)
5609 tcp_set_state(sk, TCP_ESTABLISHED); 5611 tcp_set_state(sk, TCP_ESTABLISHED);
5610 5612
5611 if (skb != NULL) { 5613 if (skb != NULL) {
5612 inet_sk_rx_dst_set(sk, skb); 5614 icsk->icsk_af_ops->sk_rx_dst_set(sk, skb);
5613 security_inet_conn_established(sk, skb); 5615 security_inet_conn_established(sk, skb);
5614 } 5616 }
5615 5617