Lines Matching defs:tcp_sock

145 struct tcp_sock {  struct
147 struct inet_connection_sock inet_conn;
148 u16 tcp_header_len; /* Bytes of tcp header to send */
149 u16 gso_segs; /* Max number of segs per GSO packet */
155 __be32 pred_flags;
162 u64 bytes_received; /* RFC4898 tcpEStatsAppHCThruOctetsReceived
166 u32 segs_in; /* RFC4898 tcpEStatsPerfSegsIn
169 u32 data_segs_in; /* RFC4898 tcpEStatsPerfDataSegsIn
172 u32 rcv_nxt; /* What we want to receive next */
173 u32 copied_seq; /* Head of yet unread data */
174 u32 rcv_wup; /* rcv_nxt on last window update sent */
175 u32 snd_nxt; /* Next sequence we send */
176 u32 segs_out; /* RFC4898 tcpEStatsPerfSegsOut
179 u32 data_segs_out; /* RFC4898 tcpEStatsPerfDataSegsOut
182 u64 bytes_sent; /* RFC4898 tcpEStatsPerfHCDataOctetsOut
185 u64 bytes_acked; /* RFC4898 tcpEStatsAppHCThruOctetsAcked
189 u32 dsack_dups; /* RFC4898 tcpEStatsStackDSACKDups
192 u32 snd_una; /* First byte we want an ack for */
193 u32 snd_sml; /* Last byte of the most recently transmitted small packet */
194 u32 rcv_tstamp; /* timestamp of last received ACK (for keepalives) */
195 u32 lsndtime; /* timestamp of last sent data packet (for restart window) */
196 u32 last_oow_ack_time; /* timestamp of last out-of-window ACK */
197 u32 compressed_ack_rcv_nxt;
199 u32 tsoffset; /* timestamp offset */
201 struct list_head tsq_node; /* anchor in tsq_tasklet.head list */
202 struct list_head tsorted_sent_queue; /* time-sorted sent but un-SACKed skbs */
204 u32 snd_wl1; /* Sequence for window update */
205 u32 snd_wnd; /* The window we expect to receive */
206 u32 max_window; /* Maximal window ever seen from peer */
207 u32 mss_cache; /* Cached effective mss, not including SACKS */
209 u32 window_clamp; /* Maximal window to advertise */
210 u32 rcv_ssthresh; /* Current window clamp */
213 struct tcp_rack {
223 } rack;
224 u16 advmss; /* Advertised MSS */
225 u8 compressed_ack;
226 u8 dup_ack_counter:2,
227 tlp_retrans:1, /* TLP is a retransmission */
228 unused:5;
229 u32 chrono_start; /* Start time in jiffies of a TCP chrono */
230 u32 chrono_stat[3]; /* Time in jiffies for chrono_stat stats */
231 u8 chrono_type:2, /* current chronograph type */
232 rate_app_limited:1, /* rate_{delivered,interval_us} limited? */
233 fastopen_connect:1, /* FASTOPEN_CONNECT sockopt */
234 fastopen_no_cookie:1, /* Allow send/recv SYN+data without a cookie */
235 is_sack_reneg:1, /* in recovery from loss with SACK reneg? */
236 fastopen_client_fail:2; /* reason why fastopen failed */
237 u8 nonagle : 4,/* Disable Nagle algorithm? */
238 thin_lto : 1,/* Use linear timeouts for thin streams */
239 recvmsg_inq : 1,/* Indicate # of bytes in queue upon recvmsg */
240 repair : 1,
241 frto : 1;/* F-RTO (RFC5682) activated in CA_Loss */
242 u8 repair_queue;
243 u8 save_syn:2, /* Save headers of SYN packet */
244 syn_data:1, /* SYN includes data */
245 syn_fastopen:1, /* SYN includes Fast Open option */
246 syn_fastopen_exp:1,/* SYN includes Fast Open exp. option */
247 syn_fastopen_ch:1, /* Active TFO re-enabling probe */
248 syn_data_acked:1,/* data in SYN is acked by SYN-ACK */
249 is_cwnd_limited:1;/* forward progress limited by snd_cwnd? */
250 u32 tlp_high_seq; /* snd_nxt at the time of TLP */
252 u32 tcp_tx_delay; /* delay (in usec) added to TX packets */
253 u64 tcp_wstamp_ns; /* departure time for next sent data packet */
254 u64 tcp_clock_cache; /* cache last tcp_clock_ns() (see tcp_mstamp_refresh()) */
257 u64 tcp_mstamp; /* most recent packet received/sent */
258 u32 srtt_us; /* smoothed round trip time << 3 in usecs */
259 u32 mdev_us; /* medium deviation */
260 u32 mdev_max_us; /* maximal mdev for the last rtt period */
261 u32 rttvar_us; /* smoothed mdev_max */
262 u32 rtt_seq; /* sequence number to update rttvar */
263 struct minmax rtt_min;
265 u32 packets_out; /* Packets which are "in flight" */
266 u32 retrans_out; /* Retransmitted packets out */
267 u32 max_packets_out; /* max packets_out in last window */
268 u32 max_packets_seq; /* right edge of max_packets_out flight */
270 u16 urg_data; /* Saved octet of OOB data and control flags */
271 u8 ecn_flags; /* ECN status bits. */
272 u8 keepalive_probes; /* num of allowed keep alive probes */
273 u32 reordering; /* Packet reordering metric. */
274 u32 reord_seen; /* number of data packet reordering events */
275 u32 snd_up; /* Urgent pointer */
280 struct tcp_options_received rx_opt;
285 u32 snd_ssthresh; /* Slow start size threshold */
286 u32 snd_cwnd; /* Sending congestion window */
287 u32 snd_cwnd_cnt; /* Linear increase counter */
288 u32 snd_cwnd_clamp; /* Do not allow snd_cwnd to grow above this */
289 u32 snd_cwnd_used;
290 u32 snd_cwnd_stamp;
291 u32 prior_cwnd; /* cwnd right before starting loss recovery */
292 u32 prr_delivered; /* Number of newly delivered packets to
294 u32 prr_out; /* Total number of pkts sent during Recovery. */
295 u32 delivered; /* Total data packets delivered incl. rexmits */
296 u32 delivered_ce; /* Like the above but only ECE marked packets */
297 u32 lost; /* Total data packets lost incl. rexmits */
298 u32 app_limited; /* limited until "delivered" reaches this val */
299 u64 first_tx_mstamp; /* start of window send phase */
300 u64 delivered_mstamp; /* time we reached "delivered" */
301 u32 rate_delivered; /* saved rate sample: packets delivered */
302 u32 rate_interval_us; /* saved rate sample: time elapsed */
304 u32 rcv_wnd; /* Current receiver window */
305 u32 write_seq; /* Tail(+1) of data held in tcp send buffer */
306 u32 notsent_lowat; /* TCP_NOTSENT_LOWAT */
307 u32 pushed_seq; /* Last pushed seq, required to talk to windows */
308 u32 lost_out; /* Lost packets */
309 u32 sacked_out; /* SACK'd packets */
311 struct hrtimer pacing_timer;
312 struct hrtimer compressed_ack_timer;
315 struct sk_buff* lost_skb_hint;
316 struct sk_buff *retransmit_skb_hint;
319 struct rb_root out_of_order_queue;
320 struct sk_buff *ooo_last_skb; /* cache rb_last(out_of_order_queue) */
323 struct tcp_sack_block duplicate_sack[1]; /* D-SACK block */
324 struct tcp_sack_block selective_acks[4]; /* The SACKS themselves*/
326 struct tcp_sack_block recv_sack_cache[4];
328 struct sk_buff *highest_sack; /* skb just after the highest
334 int lost_cnt_hint;
336 u32 prior_ssthresh; /* ssthresh saved at recovery start */
337 u32 high_seq; /* snd_nxt at onset of congestion */
339 u32 retrans_stamp; /* Timestamp of the last retransmit,
342 u32 undo_marker; /* snd_una upon a new recovery episode. */
343 int undo_retrans; /* number of undoable retransmissions. */
344 u64 bytes_retrans; /* RFC4898 tcpEStatsPerfOctetsRetrans
347 u32 total_retrans; /* Total retransmits for entire connection */
349 u32 urg_seq; /* Seq of received urgent pointer */
350 unsigned int keepalive_time; /* time before keep alive takes place */
351 unsigned int keepalive_intvl; /* time interval between keep alive probes */
353 int linger2;
358 u8 bpf_sock_ops_cb_flags; /* Control calling BPF programs
366 u16 timeout_rehash; /* Timeout-triggered rehash attempts */
368 u32 rcv_ooopack; /* Received out-of-order packets, for tcpinfo */
371 u32 rcv_rtt_last_tsecr;
372 struct {
376 } rcv_rtt_est;
402 const struct tcp_sock_af_ops *af_specific; argument
405 struct tcp_md5sig_info __rcu *md5sig_info;
409 struct tcp_fastopen_request *fastopen_req;
413 struct request_sock __rcu *fastopen_rsk;
437 static inline struct tcp_sock *tcp_sk(const struct sock *sk) in tcp_sk() argument