Home
last modified time | relevance | path

Searched refs:tcphdr (Results 26 - 50 of 423) sorted by relevance

12345678910>>...17

/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
H A Dtest_pkt_access.c87 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 Dtest_tcpbpf_kern.c56 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 Dcgroup_skb_sk_lookup_kern.c32 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 Dtest_btf_skc_cls_ingress.c27 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 Dxt_TCPOPTSTRIP.c34 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 Dnf_conntrack_seqadj.c64 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 Dnft_synproxy.c24 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 Dxt_TCPOPTSTRIP.c34 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 Dnf_conntrack_seqadj.c64 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 Dnft_synproxy.c24 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 Dtest_pkt_access.c89 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 Dtest_assign_reuse.c20 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 Dtest_tcpbpf_kern.c45 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 Dskb_pkt_end.c11 #define ETH_IPV4_TCP_SIZE (14 + sizeof(struct iphdr) + sizeof(struct tcphdr))
32 struct tcphdr *tcp; in main_prog()
H A Dtest_migrate_reuseport.c50 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 Dcgroup_skb_sk_lookup_kern.c31 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 Dtest_btf_skc_cls_ingress.c27 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 Dtcpv6_offload.c32 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 Dtcp_ipv6.c309 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 Dip6_checksum.h58 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 Dtcpv6_offload.c33 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 Dtcp_ipv4.c88 __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 Dnetfirewall_utils.h244 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 Dtcp_offload.c37 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 Dip6_checksum.h66 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()

Completed in 12 milliseconds

12345678910>>...17