Lines Matching defs:tcp_sock
299 struct tcp_sock { struct
301 struct inet_connection_sock inet_conn;
302 u16 tcp_header_len; /* Bytes of tcp header to send */
303 u16 xmit_size_goal_segs; /* Goal for segmenting output packets */
309 __be32 pred_flags;
316 u32 rcv_nxt; /* What we want to receive next */
317 u32 copied_seq; /* Head of yet unread data */
318 u32 rcv_wup; /* rcv_nxt on last window update sent */
319 u32 snd_nxt; /* Next sequence we send */
321 u32 snd_una; /* First byte we want an ack for */
322 u32 snd_sml; /* Last byte of the most recently transmitted small packet */
323 u32 rcv_tstamp; /* timestamp of last received ACK (for keepalives) */
324 u32 lsndtime; /* timestamp of last sent data packet (for restart window) */
327 struct {
340 } ucopy;
342 u32 snd_wl1; /* Sequence for window update */
343 u32 snd_wnd; /* The window we expect to receive */
344 u32 max_window; /* Maximal window ever seen from peer */
345 u32 mss_cache; /* Cached effective mss, not including SACKS */
347 u32 window_clamp; /* Maximal window to advertise */
348 u32 rcv_ssthresh; /* Current window clamp */
350 u32 frto_highmark; /* snd_nxt when RTO occurred */
351 u16 advmss; /* Advertised MSS */
352 u8 frto_counter; /* Number of new acks after RTO */
353 u8 nonagle : 4,/* Disable Nagle algorithm? */
354 thin_lto : 1,/* Use linear timeouts for thin streams */
355 thin_dupack : 1,/* Fast retransmit on first dupack */
356 unused : 2;
359 u32 srtt; /* smoothed round trip time << 3 */
360 u32 mdev; /* medium deviation */
361 u32 mdev_max; /* maximal mdev for the last rtt period */
362 u32 rttvar; /* smoothed mdev_max */
363 u32 rtt_seq; /* sequence number to update rttvar */
365 u32 packets_out; /* Packets which are "in flight" */
366 u32 retrans_out; /* Retransmitted packets out */
368 u16 urg_data; /* Saved octet of OOB data and control flags */
369 u8 ecn_flags; /* ECN status bits. */
370 u8 reordering; /* Packet reordering metric. */
371 u32 snd_up; /* Urgent pointer */
373 u8 keepalive_probes; /* num of allowed keep alive probes */
377 struct tcp_options_received rx_opt;
382 u32 snd_ssthresh; /* Slow start size threshold */
383 u32 snd_cwnd; /* Sending congestion window */
384 u32 snd_cwnd_cnt; /* Linear increase counter */
385 u32 snd_cwnd_clamp; /* Do not allow snd_cwnd to grow above this */
386 u32 snd_cwnd_used;
387 u32 snd_cwnd_stamp;
388 u32 prior_cwnd; /* Congestion window at start of Recovery. */
389 u32 prr_delivered; /* Number of newly delivered packets to
391 u32 prr_out; /* Total number of pkts sent during Recovery. */
393 u32 rcv_wnd; /* Current receiver window */
394 u32 write_seq; /* Tail(+1) of data held in tcp send buffer */
395 u32 pushed_seq; /* Last pushed seq, required to talk to windows */
396 u32 lost_out; /* Lost packets */
397 u32 sacked_out; /* SACK'd packets */
398 u32 fackets_out; /* FACK'd packets */
399 u32 tso_deferred;
400 u32 bytes_acked; /* Appropriate Byte Counting - RFC3465 */
403 struct sk_buff* lost_skb_hint;
404 struct sk_buff *scoreboard_skb_hint;
405 struct sk_buff *retransmit_skb_hint;
407 struct sk_buff_head out_of_order_queue; /* Out of order segments go here */
410 struct tcp_sack_block duplicate_sack[1]; /* D-SACK block */
411 struct tcp_sack_block selective_acks[4]; /* The SACKS themselves*/
413 struct tcp_sack_block recv_sack_cache[4];
415 struct sk_buff *highest_sack; /* skb just after the highest
421 int lost_cnt_hint;
422 u32 retransmit_high; /* L-bits may be on up to this seqno */
424 u32 lost_retrans_low; /* Sent seq after any rxmit (lowest) */
426 u32 prior_ssthresh; /* ssthresh saved at recovery start */
427 u32 high_seq; /* snd_nxt at onset of congestion */
429 u32 retrans_stamp; /* Timestamp of the last retransmit,
432 u32 undo_marker; /* tracking retrans started here. */
433 int undo_retrans; /* number of undoable retransmissions. */
434 u32 total_retrans; /* Total retransmits for entire connection */
436 u32 urg_seq; /* Seq of received urgent pointer */
437 unsigned int keepalive_time; /* time before keep alive takes place */
438 unsigned int keepalive_intvl; /* time interval between keep alive probes */
440 int linger2;
464 const struct tcp_sock_af_ops *af_specific; argument
477 static inline struct tcp_sock *tcp_sk(const struct sock *sk) in tcp_sk() argument