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