/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | test_pkt_access.c | 87 struct tcphdr *tcp = NULL; in test_pkt_write_access_subprog() 106 struct tcphdr *tcp = NULL; in test_pkt_access() 120 tcp = (struct tcphdr *)((void *)(iph) + ihl_len); in test_pkt_access() 128 tcp = (struct tcphdr *)((void *)(ip6h) + ihl_len); in test_pkt_access()
|
H A D | test_tcpbpf_kern.c | 56 char header[sizeof(struct ipv6hdr) + sizeof(struct tcphdr)]; in bpf_testcb() 58 struct tcphdr *thdr; in bpf_testcb() 140 sizeof(struct tcphdr))); in bpf_testcb() 144 thdr = (struct tcphdr *)(header + offset); in bpf_testcb()
|
H A D | cgroup_skb_sk_lookup_kern.c | 32 const struct tcphdr *tcph) in set_tuple() 42 const struct tcphdr *tcph) in is_allowed_peer_cg() 72 struct tcphdr tcph; in ingress_lookup()
|
H A D | test_btf_skc_cls_ingress.c | 27 static void test_syncookie_helper(struct ipv6hdr *ip6h, struct tcphdr *th, in test_syncookie_helper() 74 struct tcphdr *th; in handle_ip6_tcp() 79 th = (struct tcphdr *)(ip6h + 1); in handle_ip6_tcp()
|
/kernel/linux/linux-5.10/net/netfilter/ |
H A D | xt_TCPOPTSTRIP.c | 34 struct tcphdr *tcph, _th; in tcpoptstrip_mangle_packet() 49 if (tcp_hdrlen < sizeof(struct tcphdr)) in tcpoptstrip_mangle_packet() 56 tcph = (struct tcphdr *)(skb_network_header(skb) + tcphoff); in tcpoptstrip_mangle_packet() 63 for (i = sizeof(struct tcphdr); i < tcp_hdrlen - 1; i += optl) { in tcpoptstrip_mangle_packet()
|
H A D | nf_conntrack_seqadj.c | 64 const struct tcphdr *th; in nf_ct_tcp_seqadj_set() 69 th = (struct tcphdr *)(skb_network_header(skb) + ip_hdrlen(skb)); in nf_ct_tcp_seqadj_set() 76 struct tcphdr *tcph, in nf_ct_sack_block_adjust() 122 struct tcphdr *tcph = (void *)skb->data + protoff; in nf_ct_sack_adjust() 126 optoff = protoff + sizeof(struct tcphdr); in nf_ct_sack_adjust() 169 struct tcphdr *tcph; in nf_ct_seq_adjust()
|
H A D | nft_synproxy.c | 24 const struct tcphdr *tcp, in nft_synproxy_tcp_options() 47 const struct tcphdr *tcp, in nft_synproxy_eval_v4() 48 struct tcphdr *_tcph, in nft_synproxy_eval_v4() 78 const struct tcphdr *tcp, in nft_synproxy_eval_v6() 79 struct tcphdr *_tcph, in nft_synproxy_eval_v6() 113 const struct tcphdr *tcp; in nft_synproxy_do_eval() 114 struct tcphdr _tcph; in nft_synproxy_do_eval() 127 sizeof(struct tcphdr), in nft_synproxy_do_eval()
|
/kernel/linux/linux-6.6/net/netfilter/ |
H A D | xt_TCPOPTSTRIP.c | 34 struct tcphdr *tcph, _th; in tcpoptstrip_mangle_packet() 49 if (tcp_hdrlen < sizeof(struct tcphdr)) in tcpoptstrip_mangle_packet() 56 tcph = (struct tcphdr *)(skb_network_header(skb) + tcphoff); in tcpoptstrip_mangle_packet() 63 for (i = sizeof(struct tcphdr); i < tcp_hdrlen - 1; i += optl) { in tcpoptstrip_mangle_packet()
|
H A D | nf_conntrack_seqadj.c | 64 const struct tcphdr *th; in nf_ct_tcp_seqadj_set() 69 th = (struct tcphdr *)(skb_network_header(skb) + ip_hdrlen(skb)); in nf_ct_tcp_seqadj_set() 76 struct tcphdr *tcph, in nf_ct_sack_block_adjust() 122 struct tcphdr *tcph = (void *)skb->data + protoff; in nf_ct_sack_adjust() 126 optoff = protoff + sizeof(struct tcphdr); in nf_ct_sack_adjust() 169 struct tcphdr *tcph; in nf_ct_seq_adjust()
|
H A D | nft_synproxy.c | 24 const struct tcphdr *tcp, in nft_synproxy_tcp_options() 47 const struct tcphdr *tcp, in nft_synproxy_eval_v4() 48 struct tcphdr *_tcph, in nft_synproxy_eval_v4() 78 const struct tcphdr *tcp, in nft_synproxy_eval_v6() 79 struct tcphdr *_tcph, in nft_synproxy_eval_v6() 113 const struct tcphdr *tcp; in nft_synproxy_do_eval() 114 struct tcphdr _tcph; in nft_synproxy_do_eval() 127 sizeof(struct tcphdr), in nft_synproxy_do_eval()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | test_pkt_access.c | 89 struct tcphdr *tcp = NULL; in test_pkt_write_access_subprog() 108 struct tcphdr *tcp = NULL; in test_pkt_access() 122 tcp = (struct tcphdr *)((void *)(iph) + ihl_len); in test_pkt_access() 130 tcp = (struct tcphdr *)((void *)(ip6h) + ihl_len); in test_pkt_access()
|
H A D | test_assign_reuse.c | 20 struct tcphdr tcp; 81 maybe_assign_tcp(struct __sk_buff *skb, struct tcphdr *th) in maybe_assign_tcp() 124 return maybe_assign_tcp(skb, (struct tcphdr *)(iph + 1)); in tc_main() 136 return maybe_assign_tcp(skb, (struct tcphdr *)(ip6h + 1)); in tc_main()
|
H A D | test_tcpbpf_kern.c | 45 char header[sizeof(struct ipv6hdr) + sizeof(struct tcphdr)]; in bpf_testcb() 47 struct tcphdr *thdr; in bpf_testcb() 119 sizeof(struct tcphdr))); in bpf_testcb() 123 thdr = (struct tcphdr *)(header + offset); in bpf_testcb()
|
H A D | skb_pkt_end.c | 11 #define ETH_IPV4_TCP_SIZE (14 + sizeof(struct iphdr) + sizeof(struct tcphdr)) 32 struct tcphdr *tcp; in main_prog()
|
H A D | test_migrate_reuseport.c | 50 struct tcphdr *tcp = NULL; in drop_ack() 65 tcp = (struct tcphdr *)((void *)ip + ip->ihl * 4); in drop_ack() 77 tcp = (struct tcphdr *)(ipv6 + 1); in drop_ack()
|
H A D | cgroup_skb_sk_lookup_kern.c | 31 const struct tcphdr *tcph) in set_tuple() 41 const struct tcphdr *tcph) in is_allowed_peer_cg() 70 struct tcphdr tcph; in ingress_lookup()
|
H A D | test_btf_skc_cls_ingress.c | 27 static void test_syncookie_helper(struct ipv6hdr *ip6h, struct tcphdr *th, in test_syncookie_helper() 74 struct tcphdr *th; in handle_ip6_tcp() 79 th = (struct tcphdr *)(ip6h + 1); in handle_ip6_tcp()
|
/kernel/linux/linux-5.10/net/ipv6/ |
H A D | tcpv6_offload.c | 32 struct tcphdr *th = tcp_hdr(skb); in tcp6_gro_complete() 44 struct tcphdr *th; in tcp6_gso_segment() 54 struct tcphdr *th = tcp_hdr(skb); in tcp6_gso_segment()
|
H A D | tcp_ipv6.c | 309 tp->rx_opt.mss_clamp = IPV6_MIN_MTU - sizeof(struct tcphdr) - sizeof(struct ipv6hdr); in tcp_v6_connect() 383 const struct tcphdr *th = (struct tcphdr *)(skb->data+offset); in tcp_v6_err() 670 const struct tcphdr *th, int nbytes) in tcp_v6_md5_hash_headers() 674 struct tcphdr *_th; in tcp_v6_md5_hash_headers() 683 _th = (struct tcphdr *)(bp + 1); in tcp_v6_md5_hash_headers() 695 const struct tcphdr *th) in tcp_v6_md5_hash_hdr() 733 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_md5_hash_skb() 782 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_inbound_md5_hash() 869 .mss_clamp = IPV6_MIN_MTU - sizeof(struct tcphdr) [all...] |
/kernel/linux/linux-6.6/include/net/ |
H A D | ip6_checksum.h | 58 struct tcphdr *th = tcp_hdr(skb); in __tcp_v6_send_check() 62 skb->csum_offset = offsetof(struct tcphdr, check); in __tcp_v6_send_check() 68 struct tcphdr *th = tcp_hdr(skb); in tcp_v6_gso_csum_prep()
|
/kernel/linux/linux-6.6/net/ipv6/ |
H A D | tcpv6_offload.c | 33 struct tcphdr *th = tcp_hdr(skb); in tcp6_gro_complete() 46 struct tcphdr *th; in tcp6_gso_segment() 56 struct tcphdr *th = tcp_hdr(skb); in tcp6_gso_segment()
|
/kernel/linux/linux-5.10/net/ipv4/ |
H A D | tcp_ipv4.c | 88 __be32 daddr, __be32 saddr, const struct tcphdr *th); 476 struct tcphdr *th = (struct tcphdr *)(skb->data + (iph->ihl << 2)); in tcp_v4_err() 639 struct tcphdr *th = tcp_hdr(skb); in __tcp_v4_send_check() 643 skb->csum_offset = offsetof(struct tcphdr, check); in __tcp_v4_send_check() 670 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_send_reset() 672 struct tcphdr th; in tcp_v4_send_reset() 703 rep.th.doff = sizeof(struct tcphdr) / 4; in tcp_v4_send_reset() 786 arg.csumoffset = offsetof(struct tcphdr, check) / 2; in tcp_v4_send_reset() 846 const struct tcphdr *t in tcp_v4_send_ack() [all...] |
/foundation/communication/netmanager_base/services/netmanagernative/bpf/include/netfirewall/ |
H A D | netfirewall_utils.h | 244 struct tcphdr tcph = { 0 };
in load_l4_ports() 245 bpf_skb_load_bytes(skb, l4_nhoff, &tcph, sizeof(struct tcphdr));
in load_l4_ports() 273 struct tcphdr tcph = { 0 };
in load_l4_header_flags() 274 bpf_skb_load_bytes(skb, l4_nhoff, &tcph, sizeof(struct tcphdr));
in load_l4_header_flags()
|
/kernel/linux/linux-6.6/net/ipv4/ |
H A D | tcp_offload.c | 37 if (!pskb_may_pull(skb, sizeof(struct tcphdr))) in tcp4_gso_segment() 42 struct tcphdr *th = tcp_hdr(skb); in tcp4_gso_segment() 61 struct tcphdr *th; in tcp_gso_segment() 185 struct tcphdr *th; in tcp_gro_receive() 186 struct tcphdr *th2; in tcp_gro_receive() 301 struct tcphdr *th = tcp_hdr(skb); in tcp_gro_complete() 304 skb->csum_offset = offsetof(struct tcphdr, check); in tcp_gro_complete() 334 struct tcphdr *th = tcp_hdr(skb); in tcp4_gro_complete()
|
/kernel/linux/linux-5.10/include/net/ |
H A D | ip6_checksum.h | 66 struct tcphdr *th = tcp_hdr(skb); in __tcp_v6_send_check() 71 skb->csum_offset = offsetof(struct tcphdr, check); in __tcp_v6_send_check() 82 struct tcphdr *th = tcp_hdr(skb); in tcp_v6_gso_csum_prep()
|