aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/tcp.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r--include/net/tcp.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index 0cd7d2c65dc0..a4201ef216e8 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -672,6 +672,12 @@ void tcp_send_window_probe(struct sock *sk);
672 */ 672 */
673#define tcp_time_stamp ((__u32)(jiffies)) 673#define tcp_time_stamp ((__u32)(jiffies))
674 674
675static inline u32 tcp_skb_timestamp(const struct sk_buff *skb)
676{
677 return skb->skb_mstamp.stamp_jiffies;
678}
679
680
675#define tcp_flag_byte(th) (((u_int8_t *)th)[13]) 681#define tcp_flag_byte(th) (((u_int8_t *)th)[13])
676 682
677#define TCPHDR_FIN 0x01 683#define TCPHDR_FIN 0x01
@@ -698,12 +704,7 @@ struct tcp_skb_cb {
698 } header; /* For incoming frames */ 704 } header; /* For incoming frames */
699 __u32 seq; /* Starting sequence number */ 705 __u32 seq; /* Starting sequence number */
700 __u32 end_seq; /* SEQ + FIN + SYN + datalen */ 706 __u32 end_seq; /* SEQ + FIN + SYN + datalen */
701 union { 707 __u32 tcp_tw_isn; /* isn chosen by tcp_timewait_state_process() */
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 };
707 __u8 tcp_flags; /* TCP header flags. (tcp[13]) */ 708 __u8 tcp_flags; /* TCP header flags. (tcp[13]) */
708 709
709 __u8 sacked; /* State flags for SACK/FACK. */ 710 __u8 sacked; /* State flags for SACK/FACK. */