| /linux/net/ipv4/ |
| H A D | tcp_input.c | 277 if (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_PSH) in tcp_measure_rcv_mss() 351 switch (TCP_SKB_CB(skb)->ip_dsfield & INET_ECN_MASK) { in tcp_data_ecn_check() 903 if (TCP_SKB_CB(skb)->end_seq - in tcp_rcv_rtt_measure_ts() 904 TCP_SKB_CB(skb)->seq >= inet_csk(sk)->icsk_ack.rcv_mss) { in tcp_rcv_rtt_measure_ts() 945 rcvwin += TCP_SKB_CB(tp->ooo_last_skb)->end_seq - tp->rcv_nxt; in tcp_rcvbuf_grow() 1316 before(TCP_SKB_CB(skb)->seq, in tcp_verify_retransmit_hint() 1317 TCP_SKB_CB(tp->retransmit_skb_hint)->seq))) in tcp_verify_retransmit_hint() 1331 __u8 sacked = TCP_SKB_CB(skb)->sacked; in tcp_mark_skb_lost() 1341 TCP_SKB_CB(skb)->sacked &= ~TCPCB_SACKED_RETRANS; in tcp_mark_skb_lost() 1349 TCP_SKB_CB(skb)->sacked |= TCPCB_LOST; in tcp_mark_skb_lost() [all …]
|
| H A D | tcp_output.c | 79 if (before(TCP_SKB_CB(skb)->seq, TCP_SKB_CB(skb1)->seq)) in tcp_rbtree_insert() 95 WRITE_ONCE(tp->snd_nxt, TCP_SKB_CB(skb)->end_seq); in tcp_event_new_data_sent() 366 !before(TCP_SKB_CB(skb)->seq, tp->snd_nxt)) { in tcp_ecn_send() 390 TCP_SKB_CB(skb)->tcp_flags = flags; in tcp_init_nondata_skb() 395 TCP_SKB_CB(skb)->seq = seq; in tcp_init_nondata_skb() 398 TCP_SKB_CB(skb)->end_seq = seq; in tcp_init_nondata_skb() 1043 if (unlikely((TCP_SKB_CB(skb)->tcp_flags & TCPHDR_ACK) && in tcp_syn_options() 1490 TCP_SKB_CB(skb)->tx.first_tx_mstamp = tp->first_tx_mstamp; in tcp_rate_skb_sent() 1491 TCP_SKB_CB(skb)->tx.delivered_mstamp = tp->delivered_mstamp; in tcp_rate_skb_sent() 1492 TCP_SKB_CB(skb)->tx.delivered = tp->delivered; in tcp_rate_skb_sent() [all …]
|
| H A D | tcp_minisocks.c | 140 !tcp_in_window(TCP_SKB_CB(skb)->seq, TCP_SKB_CB(skb)->end_seq, in tcp_timewait_state_process() 149 if (th->syn && !before(TCP_SKB_CB(skb)->seq, rcv_nxt)) in tcp_timewait_state_process() 154 !after(TCP_SKB_CB(skb)->end_seq, rcv_nxt) || in tcp_timewait_state_process() 155 TCP_SKB_CB(skb)->end_seq == TCP_SKB_CB(skb)->seq) { in tcp_timewait_state_process() 164 TCP_SKB_CB(skb)->end_seq != rcv_nxt + 1) in tcp_timewait_state_process() 169 twsk_rcv_nxt_update(tcptw, TCP_SKB_CB(skb)->end_seq, in tcp_timewait_state_process() 204 (TCP_SKB_CB(skb)->seq == rcv_nxt && in tcp_timewait_state_process() 205 (TCP_SKB_CB(skb)->seq == TCP_SKB_CB(skb)->end_seq || th->rst))) { in tcp_timewait_state_process() 254 (after(TCP_SKB_CB(skb)->seq, rcv_nxt) || in tcp_timewait_state_process() 728 if (TCP_SKB_CB(skb)->seq == tcp_rsk(req)->rcv_isn && in tcp_check_req() [all …]
|
| H A D | tcp_fastopen.c | 261 if (TCP_SKB_CB(skb)->end_seq == tp->rcv_nxt) in tcp_fastopen_add_skb() 281 TCP_SKB_CB(skb)->seq++; in tcp_fastopen_add_skb() 282 TCP_SKB_CB(skb)->tcp_flags &= ~TCPHDR_SYN; in tcp_fastopen_add_skb() 284 tp->rcv_nxt = TCP_SKB_CB(skb)->end_seq; in tcp_fastopen_add_skb() 293 if (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN) in tcp_fastopen_add_skb() 374 tp->rcv_nxt = TCP_SKB_CB(skb)->seq + 1; in tcp_fastopen_create_child() 442 bool syn_data = TCP_SKB_CB(skb)->end_seq != TCP_SKB_CB(skb)->seq + 1; in tcp_try_fastopen() 658 if (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN) { in tcp_fastopen_active_disable_ofo_check()
|
| H A D | tcp_ipv4.c | 910 skb, &TCP_SKB_CB(skb)->header.h4.opt, in tcp_v4_send_reset() 1024 skb, &TCP_SKB_CB(skb)->header.h4.opt, in tcp_v4_send_ack() 2020 if (TCP_SKB_CB(tail)->end_seq != TCP_SKB_CB(skb)->seq || 2021 TCP_SKB_CB(tail)->ip_dsfield != TCP_SKB_CB(skb)->ip_dsfield || 2022 ((TCP_SKB_CB(tail)->tcp_flags | 2023 TCP_SKB_CB(skb)->tcp_flags) & (TCPHDR_SYN | TCPHDR_RST | TCPHDR_URG)) || 2024 !((TCP_SKB_CB(tail)->tcp_flags & 2025 TCP_SKB_CB(skb)->tcp_flags) & TCPHDR_ACK) || 2026 ((TCP_SKB_CB(tail)->tcp_flags ^ 2027 TCP_SKB_CB(skb)->tcp_flags) & [all …]
|
| H A D | tcp_recovery.c | 68 struct tcp_skb_cb *scb = TCP_SKB_CB(skb); in tcp_rack_detect_loss() 152 if (TCP_SKB_CB(skb)->sacked & TCPCB_LOST) in tcp_newreno_mark_lost()
|
| H A D | tcp.c | 501 struct tcp_skb_cb *tcb = TCP_SKB_CB(skb); in tcp_tx_timestamp() 507 shinfo->tskey = TCP_SKB_CB(skb)->seq + skb->len - 1; in tcp_tx_timestamp() 698 TCP_SKB_CB(skb)->tcp_flags |= TCPHDR_PSH; in tcp_mark_push() 710 struct tcp_skb_cb *tcb = TCP_SKB_CB(skb); in tcp_skb_entail() 1015 if (skb && TCP_SKB_CB(skb)->seq == TCP_SKB_CB(skb)->end_seq) { in tcp_remove_empty_skb() 1288 TCP_SKB_CB(skb)->sacked |= TCPCB_REPAIRED; in tcp_sendmsg_locked() 1388 TCP_SKB_CB(skb)->tcp_flags &= ~TCPHDR_PSH; in tcp_sendmsg_locked() 1391 TCP_SKB_CB(skb)->end_seq += copy; in tcp_sendmsg_locked() 1397 TCP_SKB_CB(skb)->eor = 1; in tcp_sendmsg_locked() 1623 WARN(skb && !before(tp->copied_seq, TCP_SKB_CB(skb)->end_seq), in tcp_cleanup_rbuf() [all …]
|
| H A D | syncookies.c | 288 treq->syn_tos = TCP_SKB_CB(skb)->ip_dsfield; in cookie_tcp_reqsk_init() 407 struct ip_options *opt = &TCP_SKB_CB(skb)->header.h4.opt; in cookie_v4_check()
|
| H A D | tcp_bpf.c | 215 if (skb && TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN) in is_next_msg_fin()
|
| H A D | tcp_ao.c | 813 struct tcp_skb_cb *tcb = TCP_SKB_CB(skb); in tcp_ao_transmit_skb()
|
| /linux/include/net/ |
| H A D | tcp_ecn.h | 60 if (TCP_SKB_CB(skb)->seq != TCP_SKB_CB(skb)->end_seq) in tcp_ecn_accept_cwr() 168 if (!TCP_SKB_CB(skb)->sacked) in tcp_accecn_third_ack() 179 if (TCP_SKB_CB(skb)->seq == TCP_SKB_CB(skb)->end_seq && in tcp_accecn_third_ack() 180 !TCP_SKB_CB(skb)->sacked && in tcp_accecn_third_ack() 278 u8 ecnfield = TCP_SKB_CB(skb)->ip_dsfield & INET_ECN_MASK; in tcp_ecn_received_counters() 434 if (likely(!(TCP_SKB_CB(skb)->tcp_flags & TCPHDR_ACE))) { in tcp_accecn_set_ace() 557 tp->syn_ect_rcv = TCP_SKB_CB(skb)->ip_dsfield & in tcp_ecn_rcv_syn() 581 TCP_SKB_CB(skb)->tcp_flags &= ~TCPHDR_CWR; in tcp_ecn_send_synack() 583 TCP_SKB_CB(skb)->tcp_flags &= ~TCPHDR_ECE; in tcp_ecn_send_synack() 589 TCP_SKB_CB(skb)->tcp_flags &= ~TCPHDR_ACE; in tcp_ecn_send_synack() [all …]
|
| H A D | tcp.h | 1106 #define TCP_SKB_CB(__skb) ((struct tcp_skb_cb *)&((__skb)->cb[0])) macro 1116 return TCP_SKB_CB(skb)->header.h6.iif; in tcp_v6_iif() 1121 bool l3_slave = ipv6_l3mdev_skb(TCP_SKB_CB(skb)->header.h6.flags); in tcp_v6_iif_l3_slave() 1123 return l3_slave ? skb->skb_iif : TCP_SKB_CB(skb)->header.h6.iif; in tcp_v6_iif_l3_slave() 1130 if (skb && ipv6_l3mdev_skb(TCP_SKB_CB(skb)->header.h6.flags)) in tcp_v6_sdif() 1131 return TCP_SKB_CB(skb)->header.h6.iif; in tcp_v6_sdif() 1148 if (skb && ipv4_l3mdev_skb(TCP_SKB_CB(skb)->header.h4.flags)) in tcp_v4_sdif() 1149 return TCP_SKB_CB(skb)->header.h4.iif; in tcp_v4_sdif() 1159 return TCP_SKB_CB(skb)->tcp_gso_segs; in tcp_skb_pcount() 1164 TCP_SKB_CB(skb)->tcp_gso_segs = segs; in tcp_skb_pcount_set() [all …]
|
| /linux/include/net/psp/ |
| H A D | functions.h | 72 bool fin = !!(TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN); in psp_is_allowed_nondata() 73 u32 end_seq = TCP_SKB_CB(skb)->end_seq; in psp_is_allowed_nondata() 74 u32 seq = TCP_SKB_CB(skb)->seq; in psp_is_allowed_nondata()
|
| /linux/net/mptcp/ |
| H A D | syncookies.c | 48 seq = TCP_SKB_CB(skb)->seq; in mptcp_join_entry_hash() 50 seq = TCP_SKB_CB(skb)->seq - 1; in mptcp_join_entry_hash()
|
| H A D | subflow.c | 191 subflow_req->ssn_offset = TCP_SKB_CB(skb)->seq; in subflow_check_req() 220 subflow_req->ssn_offset = TCP_SKB_CB(skb)->seq; in subflow_check_req() 293 subflow_req->ssn_offset = TCP_SKB_CB(skb)->seq - 1; in mptcp_subflow_init_cookie_req() 299 subflow_req->ssn_offset = TCP_SKB_CB(skb)->seq - 1; in mptcp_subflow_init_cookie_req() 542 subflow->ssn_offset = TCP_SKB_CB(skb)->seq; in subflow_finish_connect() 999 skb_consumed = tcp_sk(ssk)->copied_seq - TCP_SKB_CB(skb)->seq; in skb_is_fully_mapped() 1053 offset = seq - TCP_SKB_CB(skb)->seq; in validate_data_csum() 1133 if (!(TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN)) in get_mapping_status() 1135 TCP_SKB_CB(skb)->seq, in get_mapping_status() 1136 TCP_SKB_CB(skb)->end_seq, in get_mapping_status() [all …]
|
| H A D | options.c | 37 if (!(TCP_SKB_CB(skb)->tcp_flags & TCPHDR_SYN)) { in mptcp_parse_option() 44 if (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_ACK) { in mptcp_parse_option() 333 if (!(TCP_SKB_CB(skb)->tcp_flags & TCPHDR_RST)) in mptcp_parse_option() 409 subflow->snd_isn = TCP_SKB_CB(skb)->end_seq; in mptcp_syn_options() 471 subflow->snd_isn != TCP_SKB_CB(skb)->seq || in mptcp_established_options_mp() 857 if (unlikely(skb && TCP_SKB_CB(skb)->tcp_flags & TCPHDR_RST)) { in mptcp_established_options() 955 if (TCP_SKB_CB(skb)->seq == subflow->ssn_offset + 1 && in check_fully_established() 956 TCP_SKB_CB(skb)->end_seq == TCP_SKB_CB(skb)->seq && in check_fully_established() 968 if (TCP_SKB_CB(skb)->seq != subflow->ssn_offset + 1) { in check_fully_established() 1256 if (TCP_SKB_CB(skb)->seq == TCP_SKB_CB(skb)->end_seq) { in mptcp_incoming_options()
|
| H A D | fastopen.c | 48 MPTCP_SKB_CB(skb)->has_rxtstamp = TCP_SKB_CB(skb)->has_rxtstamp; in mptcp_fastopen_subflow_synack_set_params()
|
| H A D | protocol.c | 358 bool has_rxtstamp = TCP_SKB_CB(skb)->has_rxtstamp; in mptcp_init_skb() 732 offset = seq - TCP_SKB_CB(skb)->seq; in __mptcp_move_skbs_from_subflow() 733 fin = TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN; in __mptcp_move_skbs_from_subflow() 1311 TCP_SKB_CB(skb)->eor = 1; in mptcp_sendmsg_frag() 1374 TCP_SKB_CB(skb)->end_seq += copy; in mptcp_sendmsg_frag() 1379 TCP_SKB_CB(skb)->tcp_flags &= ~TCPHDR_PSH; in mptcp_sendmsg_frag()
|
| /linux/net/ipv6/ |
| H A D | tcp_ipv6.c | 756 bool l3_slave = ipv6_l3mdev_skb(TCP_SKB_CB(skb)->header.h6.flags); in tcp_v6_init_req() 771 (ipv6_opt_accepted(sk_listener, skb, &TCP_SKB_CB(skb)->header.h6) || in tcp_v6_init_req() 1309 memmove(IP6CB(skb), &TCP_SKB_CB(skb)->header.h6, 1648 if (TCP_SKB_CB(opt_skb)->end_seq == tp->rcv_nxt && 1659 if (ipv6_opt_accepted(sk, opt_skb, &TCP_SKB_CB(opt_skb)->header.h6)) { 1680 memmove(&TCP_SKB_CB(skb)->header.h6, IP6CB(skb), 1684 TCP_SKB_CB(skb)->seq = ntohl(th->seq); 1685 TCP_SKB_CB(skb)->end_seq = (TCP_SKB_CB(skb)->seq + th->syn + th->fin + 1687 TCP_SKB_CB(skb)->ack_seq = ntohl(th->ack_seq); 1688 TCP_SKB_CB(skb)->tcp_flags = tcp_flags_ntohs(th); [all …]
|
| H A D | syncookies.c | 214 if (ipv6_opt_accepted(sk, skb, &TCP_SKB_CB(skb)->header.h6) || in cookie_v6_check()
|
| /linux/net/tls/ |
| H A D | tls_strp.c | 442 seq = TCP_SKB_CB(first)->seq; in tls_strp_check_queue_ok() 452 if (TCP_SKB_CB(skb)->seq != seq) in tls_strp_check_queue_ok()
|
| H A D | tls_sw.c | 2502 TCP_SKB_CB(skb)->seq + strp->stm.offset); in tls_rx_msg_size()
|
| /linux/include/trace/events/ |
| H A D | tcp.h | 247 TCP_SKB_CB(tp->ooo_last_skb)->end_seq -
|
| /linux/net/core/ |
| H A D | filter.c | 12335 TCP_SKB_CB(skb)->txstamp_ack |= TSTAMP_ACK_BPF; in bpf_sock_ops_enable_tx_tstamp() 12336 skb_shinfo(skb)->tskey = TCP_SKB_CB(skb)->seq + skb->len - 1; in bpf_sock_ops_enable_tx_tstamp()
|
| H A D | skbuff.c | 5649 return TCP_SKB_CB(skb)->txstamp_ack & TSTAMP_ACK_SK; in skb_tstamp_tx_report_so_timestamping()
|