aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_input.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-11-17 22:00:43 -0500
committerDavid S. Miller <davem@davemloft.net>2012-11-17 22:00:43 -0500
commit67f4efdce7d85282fbd5832cddc80a07eb89b6d6 (patch)
tree9a1771ef13b27abdf8cf172e5b7556ab93e5c48c /net/ipv4/tcp_input.c
parentc53aa5058ad5ca8876a47d6639ad4d4f2c5ed584 (diff)
parentf4a75d2eb7b1e2206094b901be09adb31ba63681 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Minor line offset auto-merges. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r--net/ipv4/tcp_input.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index 7839d51fb65..fc67831656e 100644
--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -5320,11 +5320,6 @@ static bool tcp_validate_incoming(struct sock *sk, struct sk_buff *skb,
5320 goto discard; 5320 goto discard;
5321 } 5321 }
5322 5322
5323 /* ts_recent update must be made after we are sure that the packet
5324 * is in window.
5325 */
5326 tcp_replace_ts_recent(tp, TCP_SKB_CB(skb)->seq);
5327
5328 /* step 3: check security and precedence [ignored] */ 5323 /* step 3: check security and precedence [ignored] */
5329 5324
5330 /* step 4: Check for a SYN 5325 /* step 4: Check for a SYN
@@ -5559,6 +5554,11 @@ step5:
5559 if (th->ack && tcp_ack(sk, skb, FLAG_SLOWPATH) < 0) 5554 if (th->ack && tcp_ack(sk, skb, FLAG_SLOWPATH) < 0)
5560 goto discard; 5555 goto discard;
5561 5556
5557 /* ts_recent update must be made after we are sure that the packet
5558 * is in window.
5559 */
5560 tcp_replace_ts_recent(tp, TCP_SKB_CB(skb)->seq);
5561
5562 tcp_rcv_rtt_measure_ts(sk, skb); 5562 tcp_rcv_rtt_measure_ts(sk, skb);
5563 5563
5564 /* Process urgent data. */ 5564 /* Process urgent data. */
@@ -6137,6 +6137,11 @@ int tcp_rcv_state_process(struct sock *sk, struct sk_buff *skb,
6137 } else 6137 } else
6138 goto discard; 6138 goto discard;
6139 6139
6140 /* ts_recent update must be made after we are sure that the packet
6141 * is in window.
6142 */
6143 tcp_replace_ts_recent(tp, TCP_SKB_CB(skb)->seq);
6144
6140 /* step 6: check the URG bit */ 6145 /* step 6: check the URG bit */
6141 tcp_urg(sk, skb, th); 6146 tcp_urg(sk, skb, th);
6142 6147