aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/tcp.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2014-09-05 18:33:32 -0400
committerDavid S. Miller <davem@davemloft.net>2014-09-05 20:49:33 -0400
commit04317dafd11dd7b0ec19b85f098414abae6ed5f7 (patch)
tree3e9a5c6b3aea2e8b1f519d031fb0fcfa4af970fb /include/net/tcp.h
parent2ba38943ba190eb6a494262003e23187d1b40fb4 (diff)
tcp: introduce TCP_SKB_CB(skb)->tcp_tw_isn
TCP_SKB_CB(skb)->when has different meaning in output and input paths. In output path, it contains a timestamp. In input path, it contains an ISN, chosen by tcp_timewait_state_process() Lets add a different name to ease code comprehension. Note that 'when' field will disappear in following patch, as skb_mstamp already contains timestamp, the anonymous union will promptly disappear as well. Signed-off-by: Eric Dumazet <edumazet@google.com> Acked-by: Yuchung Cheng <ycheng@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r--include/net/tcp.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index 590e01a476ac..0cd7d2c65dc0 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -698,7 +698,12 @@ struct tcp_skb_cb {
698 } header; /* For incoming frames */ 698 } header; /* For incoming frames */
699 __u32 seq; /* Starting sequence number */ 699 __u32 seq; /* Starting sequence number */
700 __u32 end_seq; /* SEQ + FIN + SYN + datalen */ 700 __u32 end_seq; /* SEQ + FIN + SYN + datalen */
701 __u32 when; /* used to compute rtt's */ 701 union {
702 /* used in output path */
703 __u32 when; /* used to compute rtt's */
704 /* used in input path */
705 __u32 tcp_tw_isn; /* isn chosen by tcp_timewait_state_process() */
706 };
702 __u8 tcp_flags; /* TCP header flags. (tcp[13]) */ 707 __u8 tcp_flags; /* TCP header flags. (tcp[13]) */
703 708
704 __u8 sacked; /* State flags for SACK/FACK. */ 709 __u8 sacked; /* State flags for SACK/FACK. */