/kernel/linux/linux-5.10/net/sched/ |
H A D | act_ct.c | 142 offsetof(struct tcphdr, source), in tcf_ct_flow_table_add_action_nat_tcp() 146 offsetof(struct tcphdr, dest), in tcf_ct_flow_table_add_action_nat_tcp() 419 struct tcphdr **tcph) in tcf_ct_flow_table_fill_tuple_ipv4() 443 thoff + sizeof(struct tcphdr) : in tcf_ct_flow_table_fill_tuple_ipv4() 465 struct tcphdr **tcph) in tcf_ct_flow_table_fill_tuple_ipv6() 485 thoff + sizeof(struct tcphdr) : in tcf_ct_flow_table_fill_tuple_ipv6() 512 struct tcphdr *tcph = NULL; in tcf_ct_flow_table_lookup()
|
/kernel/linux/linux-6.6/net/sched/ |
H A D | act_ct.c | 145 offsetof(struct tcphdr, source), in tcf_ct_flow_table_add_action_nat_tcp() 149 offsetof(struct tcphdr, dest), in tcf_ct_flow_table_add_action_nat_tcp() 507 struct tcphdr **tcph) in tcf_ct_flow_table_fill_tuple_ipv4() 528 hdrsize = sizeof(struct tcphdr); in tcf_ct_flow_table_fill_tuple_ipv4() 580 struct tcphdr **tcph) in tcf_ct_flow_table_fill_tuple_ipv6() 597 hdrsize = sizeof(struct tcphdr); in tcf_ct_flow_table_fill_tuple_ipv6() 654 struct tcphdr *tcph = NULL; in tcf_ct_flow_table_lookup()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
H A D | cls_redirect.c | 282 struct tcphdr tcp; in build_input() 335 tcp = (struct tcphdr){ in build_input()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | test_tc_tunnel.c | 78 struct tcphdr tcph; in encap_ipv4() 223 struct tcphdr tcph; in encap_ipv6()
|
H A D | test_cls_redirect.c | 642 void *iph, struct tcphdr *tcp) in classify_tcp() 812 struct tcphdr _tcp; in process_tcp() 813 struct tcphdr *tcp = buf_assign(pkt, sizeof(_tcp), &_tcp); in process_tcp()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | tls_rxtx.c | 150 struct tcphdr *th; in mlx5e_tls_complete_sync_skb() 316 struct tcphdr *th; in tls_update_resync_sn()
|
/kernel/linux/linux-5.10/net/tls/ |
H A D | tls_device_fallback.c | 169 struct tcphdr *th = tcp_hdr(skb); in update_chksum() 182 skb->csum_offset = offsetof(struct tcphdr, check); in update_chksum()
|
/kernel/linux/linux-5.10/security/ |
H A D | lsm_audit.c | 61 struct tcphdr *th = tcp_hdr(skb); in ipv4_skb_to_auditdata() 135 struct tcphdr _tcph, *th; in ipv6_skb_to_auditdata()
|
/kernel/linux/linux-5.10/net/netfilter/ |
H A D | nf_conntrack_ftp.c | 379 const struct tcphdr *th; in help() 380 struct tcphdr _tcph; in help()
|
H A D | nft_payload.c | 372 case offsetof(struct tcphdr, source): in nft_payload_offload_tcp() 379 case offsetof(struct tcphdr, dest): in nft_payload_offload_tcp() 510 *l4csum_offset = offsetof(struct tcphdr, check); in nft_payload_l4csum_offset()
|
H A D | nf_nat_proto.c | 146 struct tcphdr *hdr; in tcp_manip_pkt() 153 if (skb->len >= hdroff + sizeof(struct tcphdr)) in tcp_manip_pkt() 154 hdrsize = sizeof(struct tcphdr); in tcp_manip_pkt() 159 hdr = (struct tcphdr *)(skb->data + hdroff); in tcp_manip_pkt()
|
/kernel/linux/linux-6.6/net/tls/ |
H A D | tls_device_fallback.c | 181 struct tcphdr *th = tcp_hdr(skb); in update_chksum() 194 skb->csum_offset = offsetof(struct tcphdr, check); in update_chksum()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | cls_redirect.c | 283 struct tcphdr tcp; in build_input() 336 tcp = (struct tcphdr){ in build_input()
|
/kernel/linux/linux-6.6/security/ |
H A D | lsm_audit.c | 58 struct tcphdr *th = tcp_hdr(skb); in ipv4_skb_to_auditdata() 122 struct tcphdr _tcph, *th; in ipv6_skb_to_auditdata()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | test_l4lb_noinline_dynptr.c | 307 __u8 buffer[sizeof(struct tcphdr)] = {}; in parse_tcp() 308 struct tcphdr *tcp; in parse_tcp()
|
H A D | test_cls_redirect.c | 649 void *iph, struct tcphdr *tcp) in classify_tcp() 819 struct tcphdr _tcp; in process_tcp() 820 struct tcphdr *tcp = buf_assign(pkt, sizeof(_tcp), &_tcp); in process_tcp()
|
/kernel/linux/linux-6.6/net/netfilter/ |
H A D | nf_conntrack_ftp.c | 375 const struct tcphdr *th; in help() 376 struct tcphdr _tcph; in help()
|
H A D | nft_payload.c | 95 struct tcphdr *th, _tcph; in __nft_payload_inner_offset() 491 case offsetof(struct tcphdr, source): in nft_payload_offload_tcp() 498 case offsetof(struct tcphdr, dest): in nft_payload_offload_tcp() 717 *l4csum_offset = offsetof(struct tcphdr, check); in nft_payload_l4csum_offset()
|
H A D | nf_nat_proto.c | 146 struct tcphdr *hdr; in tcp_manip_pkt() 153 if (skb->len >= hdroff + sizeof(struct tcphdr)) in tcp_manip_pkt() 154 hdrsize = sizeof(struct tcphdr); in tcp_manip_pkt() 159 hdr = (struct tcphdr *)(skb->data + hdroff); in tcp_manip_pkt()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
H A D | chtls_cm.c | 151 tp->tcp_header_len = sizeof(struct tcphdr); in assign_rxopt() 964 iphdrsz = sizeof(struct ipv6hdr) + sizeof(struct tcphdr); in chtls_select_mss() 967 iphdrsz = sizeof(struct iphdr) + sizeof(struct tcphdr); in chtls_select_mss() 1012 const struct tcphdr *tcph; in chtls_pass_accept_rpl() 1056 tcph = (struct tcphdr *)((u8 *)(req + 1) + in chtls_pass_accept_rpl() 1299 struct tcphdr *tcph; in chtls_pass_accept_request() 1354 tcph = (struct tcphdr *)(iph + 1); in chtls_pass_accept_request() 1358 tcph = (struct tcphdr *)(ip6h + 1); in chtls_pass_accept_request()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
H A D | chtls_cm.c | 151 tp->tcp_header_len = sizeof(struct tcphdr); in assign_rxopt() 964 iphdrsz = sizeof(struct ipv6hdr) + sizeof(struct tcphdr); in chtls_select_mss() 967 iphdrsz = sizeof(struct iphdr) + sizeof(struct tcphdr); in chtls_select_mss() 1012 const struct tcphdr *tcph; in chtls_pass_accept_rpl() 1056 tcph = (struct tcphdr *)((u8 *)(req + 1) + in chtls_pass_accept_rpl() 1299 struct tcphdr *tcph; in chtls_pass_accept_request() 1354 tcph = (struct tcphdr *)(iph + 1); in chtls_pass_accept_request() 1358 tcph = (struct tcphdr *)(ip6h + 1); in chtls_pass_accept_request()
|
/kernel/linux/linux-6.6/net/openvswitch/ |
H A D | flow.c | 218 if (unlikely(!pskb_may_pull(skb, th_ofs + sizeof(struct tcphdr)))) in tcphdr_ok() 222 if (unlikely(tcp_len < sizeof(struct tcphdr) || in tcphdr_ok() 725 struct tcphdr *tcp = tcp_hdr(skb); in key_extract_l3l4() 849 struct tcphdr *tcp = tcp_hdr(skb); in key_extract_l3l4()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_selftests.c | 64 struct tcphdr *thdr = NULL; in stmmac_test_get_udp_skb() 78 size += sizeof(struct tcphdr); in stmmac_test_get_udp_skb() 152 thdr->doff = sizeof(struct tcphdr) / 4; in stmmac_test_get_udp_skb() 204 skb->csum_offset = offsetof(struct tcphdr, check); in stmmac_test_get_udp_skb() 257 struct tcphdr *thdr; in stmmac_test_loopback_validate() 290 thdr = (struct tcphdr *)((u8 *)ihdr + 4 * ihdr->ihl); in stmmac_test_loopback_validate()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/ |
H A D | chcr_ktls.c | 958 chcr_ktls_check_tcp_options(struct tcphdr *tcp) in chcr_ktls_check_tcp_options() 964 cnt = (tcp->doff << 2) - sizeof(struct tcphdr); in chcr_ktls_check_tcp_options() 1006 struct tcphdr *tcp; in chcr_ktls_write_tcp_options() 1080 tcp = (struct tcphdr *)(buf + maclen + iplen); in chcr_ktls_write_tcp_options() 1909 struct tcphdr *th; in chcr_ktls_sw_fallback() 1938 struct tcphdr *th = tcp_hdr(skb); in chcr_ktls_xmit()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/ |
H A D | chcr_ktls.c | 952 chcr_ktls_check_tcp_options(struct tcphdr *tcp) in chcr_ktls_check_tcp_options() 958 cnt = (tcp->doff << 2) - sizeof(struct tcphdr); in chcr_ktls_check_tcp_options() 1000 struct tcphdr *tcp; in chcr_ktls_write_tcp_options() 1074 tcp = (struct tcphdr *)(buf + maclen + iplen); in chcr_ktls_write_tcp_options() 1900 struct tcphdr *th; in chcr_ktls_sw_fallback() 1929 struct tcphdr *th = tcp_hdr(skb); in chcr_ktls_xmit()
|