Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102628
b: refs/heads/master
c: b79eeeb
h: refs/heads/master
v: v3
  • Loading branch information
Ilpo Järvinen authored and David S. Miller committed May 29, 2008
1 parent a4a0887 commit 9ef265f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 75a9cd524c6bb441c61c85bae7020ce5e8b2e807
refs/heads/master: b79eeeb9e48457579cb742cd02e162fcd673c4a3
50 changes: 25 additions & 25 deletions trunk/include/linux/tcp.h
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,9 @@ struct tcp_sock {
u32 rcv_ssthresh; /* Current window clamp */

u32 frto_highmark; /* snd_nxt when RTO occurred */
u8 reordering; /* Packet reordering metric. */
u16 advmss; /* Advertised MSS */
u8 frto_counter; /* Number of new acks after RTO */
u8 nonagle; /* Disable Nagle algorithm? */
u8 keepalive_probes; /* num of allowed keep alive probes */

/* RTT measurement */
u32 srtt; /* smoothed round trip time << 3 */
Expand All @@ -310,6 +309,10 @@ struct tcp_sock {

u32 packets_out; /* Packets which are "in flight" */
u32 retrans_out; /* Retransmitted packets out */

u16 urg_data; /* Saved octet of OOB data and control flags */
u8 urg_mode; /* In urgent mode */
u8 ecn_flags; /* ECN status bits. */
/*
* Options received (usually on last packet, some only on SYN packets).
*/
Expand All @@ -325,13 +328,24 @@ struct tcp_sock {
u32 snd_cwnd_used;
u32 snd_cwnd_stamp;

struct sk_buff_head out_of_order_queue; /* Out of order segments go here */

u32 rcv_wnd; /* Current receiver window */
u32 write_seq; /* Tail(+1) of data held in tcp send buffer */
u32 pushed_seq; /* Last pushed seq, required to talk to windows */
u32 lost_out; /* Lost packets */
u32 sacked_out; /* SACK'd packets */
u32 fackets_out; /* FACK'd packets */
u32 tso_deferred;
u32 bytes_acked; /* Appropriate Byte Counting - RFC3465 */

/* SACKs data */
/* from STCP, retrans queue hinting */
struct sk_buff* lost_skb_hint;
struct sk_buff *scoreboard_skb_hint;
struct sk_buff *retransmit_skb_hint;
struct sk_buff *forward_skb_hint;

struct sk_buff_head out_of_order_queue; /* Out of order segments go here */

/* SACKs data, these 2 need to be together (see tcp_build_and_update_options) */
struct tcp_sack_block duplicate_sack[1]; /* D-SACK block */
struct tcp_sack_block selective_acks[4]; /* The SACKS themselves*/

Expand All @@ -342,49 +356,33 @@ struct tcp_sock {
* sacked_out > 0)
*/

/* from STCP, retrans queue hinting */
struct sk_buff* lost_skb_hint;

struct sk_buff *scoreboard_skb_hint;
struct sk_buff *retransmit_skb_hint;
struct sk_buff *forward_skb_hint;

int lost_cnt_hint;
int retransmit_cnt_hint;

u32 lost_retrans_low; /* Sent seq after any rxmit (lowest) */

u16 advmss; /* Advertised MSS */
u8 reordering; /* Packet reordering metric. */
u8 keepalive_probes; /* num of allowed keep alive probes */
u32 prior_ssthresh; /* ssthresh saved at recovery start */
u32 lost_out; /* Lost packets */
u32 sacked_out; /* SACK'd packets */
u32 fackets_out; /* FACK'd packets */
u32 high_seq; /* snd_nxt at onset of congestion */

u32 retrans_stamp; /* Timestamp of the last retransmit,
* also used in SYN-SENT to remember stamp of
* the first SYN. */
u32 undo_marker; /* tracking retrans started here. */
int undo_retrans; /* number of undoable retransmissions. */
u32 total_retrans; /* Total retransmits for entire connection */

u32 urg_seq; /* Seq of received urgent pointer */
u16 urg_data; /* Saved octet of OOB data and control flags */
u8 urg_mode; /* In urgent mode */
u8 ecn_flags; /* ECN status bits. */
u32 snd_up; /* Urgent pointer */

u32 total_retrans; /* Total retransmits for entire connection */
u32 bytes_acked; /* Appropriate Byte Counting - RFC3465 */

unsigned int keepalive_time; /* time before keep alive takes place */
unsigned int keepalive_intvl; /* time interval between keep alive probes */
int linger2;

struct tcp_deferred_accept_info defer_tcp_accept;

unsigned long last_synq_overflow;

u32 tso_deferred;

/* Receiver side RTT estimation */
struct {
u32 rtt;
Expand Down Expand Up @@ -412,6 +410,8 @@ struct tcp_sock {
/* TCP MD5 Signagure Option information */
struct tcp_md5sig_info *md5sig_info;
#endif

int linger2;
};

static inline struct tcp_sock *tcp_sk(const struct sock *sk)
Expand Down

0 comments on commit 9ef265f

Please sign in to comment.