Home
last modified time | relevance | path

Searched refs:tcphdr (Results 1 – 25 of 35) sorted by relevance

12

/external/linux-kselftest/tools/testing/selftests/bpf/progs/
Dtest_pkt_access.c56 struct tcphdr *tcp = NULL; in test_pkt_access()
70 tcp = (struct tcphdr *)((void *)(iph) + ihl_len); in test_pkt_access()
78 tcp = (struct tcphdr *)((void *)(ip6h) + ihl_len); in test_pkt_access()
Dtest_tcpbpf_kern.c56 char header[sizeof(struct ipv6hdr) + sizeof(struct tcphdr)]; in bpf_testcb()
57 struct tcphdr *thdr; in bpf_testcb()
99 sizeof(struct tcphdr))); in bpf_testcb()
103 thdr = (struct tcphdr *)(header + offset); in bpf_testcb()
Dtest_tc_edt.c65 static inline int handle_tcp(struct __sk_buff *skb, struct tcphdr *tcp) in handle_tcp()
97 return handle_tcp(skb, (struct tcphdr *)(((void *)iph) + ihl)); in handle_ipv4()
Dtest_tcp_check_syncookie_kern.c28 struct tcphdr *tcph) in gen_syncookie()
53 struct tcphdr *tcph; in check_syncookie()
Dtest_xdp_loop.c47 struct tcphdr *th; in get_dport()
52 th = (struct tcphdr *)trans_data; in get_dport()
Dtest_xdp.c51 struct tcphdr *th; in get_dport()
56 th = (struct tcphdr *)trans_data; in get_dport()
Dtest_tunnel_kern.c531 struct tcphdr *tcp = data + sizeof(*iph); in _ipip_set_tunnel()
588 struct tcphdr *tcp = data + sizeof(*iph); in _ipip6_set_tunnel()
637 struct tcphdr *tcp = data + sizeof(*iph); in _ip6ip6_set_tunnel()
Dtest_tc_tunnel.c78 struct tcphdr tcph; in encap_ipv4()
223 struct tcphdr tcph; in encap_ipv6()
/external/android-clat/
Ddump.h33 void dump_tcp(const struct tcphdr *tcp, const struct iphdr *ip, const uint8_t *payload,
40 void dump_tcp6(const struct tcphdr *tcp, const struct ip6_hdr *ip6, const uint8_t *payload,
Ddump.c168 void dump_tcp_generic(const struct tcphdr *tcp, const uint8_t *options, size_t options_size, in dump_tcp_generic()
172 temp_checksum = ip_checksum_add(temp_checksum, tcp, sizeof(struct tcphdr)); in dump_tcp_generic()
210 void dump_tcp(const struct tcphdr *tcp, const struct iphdr *ip, const uint8_t *payload, in dump_tcp()
219 void dump_tcp6(const struct tcphdr *tcp, const struct ip6_hdr *ip6, const uint8_t *payload, in dump_tcp6()
Dtranslate.h79 int tcp_packet(clat_packet out, clat_packet_index pos, const struct tcphdr *tcp, uint32_t old_sum,
84 int tcp_translate(clat_packet out, clat_packet_index pos, const struct tcphdr *tcp,
Dtranslate.c365 int tcp_packet(clat_packet out, clat_packet_index pos, const struct tcphdr *tcp, uint32_t old_sum, in tcp_packet()
370 if (len < sizeof(struct tcphdr)) { in tcp_packet()
442 int tcp_translate(clat_packet out, clat_packet_index pos, const struct tcphdr *tcp, in tcp_translate()
445 struct tcphdr *tcp_targ = out[pos].iov_base; in tcp_translate()
Dipv4.c130 tcp_packet(out, pos + 2, (const struct tcphdr *)next_header, old_sum, new_sum, len_left); in ipv4_packet()
Dipv6.c162 tcp_packet(out, pos + 2, (const struct tcphdr *)next_header, old_sum, new_sum, len_left); in ipv6_packet()
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_progs.h89 struct tcphdr tcp;
97 struct tcphdr tcp;
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Dflow_dissector.c41 struct tcphdr tcp;
48 struct tcphdr tcp;
56 struct tcphdr tcp;
62 struct tcphdr tcp;
74 struct tcphdr tcp;
84 struct tcphdr tcp;
/external/tcpdump/
Dprint-tcp.c59 const struct ip *ip, const struct tcphdr *tp,
142 register const struct tcphdr *tp, in tcp_cksum()
152 register const struct tcphdr *tp, in tcp6_cksum()
164 register const struct tcphdr *tp; in tcp_print()
176 tp = (const struct tcphdr *)bp; in tcp_print()
835 const struct ip *ip, const struct tcphdr *tp, in tcp_verify_signature()
838 struct tcphdr tp1; in tcp_verify_signature()
894 MD5_Update(&ctx, (const char *)&tp1, sizeof(struct tcphdr)); in tcp_verify_signature()
Dprint-sl.c177 hlen += TH_OFF((const struct tcphdr *)&((const int *)ip)[hlen]); in sliplink_print()
273 hlen += TH_OFF((const struct tcphdr *)&((const int32_t *)ip)[hlen]); in compressed_sl_print()
Dtcp.h41 struct tcphdr { struct
/external/iproute2/include/netinet/
Dtcp.h63 struct tcphdr struct
90 struct tcphdr argument
/external/iproute2/include/uapi/linux/
Dtcp.h25 struct tcphdr { struct
66 struct tcphdr hdr; argument
/external/kernel-headers/original/uapi/linux/
Dtcp.h25 struct tcphdr { struct
66 struct tcphdr hdr; argument
/external/iptables/include/linux/netfilter/
Dxt_osf.h85 struct tcphdr tcp;
/external/kernel-headers/original/uapi/linux/netfilter/
Dnfnetlink_osf.h72 struct tcphdr tcp;
/external/iptables/utils/
Dnfsynproxy.c31 const struct tcphdr *th = (void *)iph + iph->ihl * 4; in parse_packet()

12