Home
last modified time | relevance | path

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

12

/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_pkt_access.c29 struct tcphdr *tcp = NULL; in process()
43 tcp = (struct tcphdr *)((void *)(iph) + ihl_len); in process()
51 tcp = (struct tcphdr *)((void *)(ip6h) + ihl_len); in process()
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_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_select_reuseport_kern.c108 struct tcphdr *th = data; in _select_by_skb_data()
Dbpf_flow.c136 struct tcphdr *tcp, _tcp; in parse_ip_proto()
/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.c166 void dump_tcp_generic(const struct tcphdr *tcp, const uint8_t *options, size_t options_size, in dump_tcp_generic()
170 temp_checksum = ip_checksum_add(temp_checksum, tcp, sizeof(struct tcphdr)); in dump_tcp_generic()
208 void dump_tcp(const struct tcphdr *tcp, const struct iphdr *ip, const uint8_t *payload, in dump_tcp()
217 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.c366 int tcp_packet(clat_packet out, clat_packet_index pos, const struct tcphdr *tcp, uint32_t old_sum, in tcp_packet()
371 if (len < sizeof(struct tcphdr)) { in tcp_packet()
443 int tcp_translate(clat_packet out, clat_packet_index pos, const struct tcphdr *tcp, in tcp_translate()
446 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/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/syzkaller/executor/
Dcommon_linux.h436 struct tcphdr* tcphdr; in syz_extract_tcp_res() local
448 if (length < sizeof(struct ethhdr) + iphdr->ihl * 4 + sizeof(struct tcphdr)) in syz_extract_tcp_res()
450 tcphdr = (struct tcphdr*)&data[sizeof(struct ethhdr) + iphdr->ihl * 4]; in syz_extract_tcp_res()
458 if (length < sizeof(struct ethhdr) + sizeof(struct ipv6hdr) + sizeof(struct tcphdr)) in syz_extract_tcp_res()
460 tcphdr = (struct tcphdr*)&data[sizeof(struct ethhdr) + sizeof(struct ipv6hdr)]; in syz_extract_tcp_res()
464 NONFAILING(res->seq = htonl((ntohl(tcphdr->seq) + (uint32)a1))); in syz_extract_tcp_res()
465 NONFAILING(res->ack = htonl((ntohl(tcphdr->ack_seq) + (uint32)a2))); in syz_extract_tcp_res()
/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.c30 const struct tcphdr *th = (void *)iph + iph->ihl * 4; in parse_packet()
/external/syzkaller/pkg/csource/
Dgenerated.go1034 struct tcphdr* tcphdr;
1046 if (length < sizeof(struct ethhdr) + iphdr->ihl * 4 + sizeof(struct tcphdr))
1048 tcphdr = (struct tcphdr*)&data[sizeof(struct ethhdr) + iphdr->ihl * 4];
1055 if (length < sizeof(struct ethhdr) + sizeof(struct ipv6hdr) + sizeof(struct tcphdr))
1057 tcphdr = (struct tcphdr*)&data[sizeof(struct ethhdr) + sizeof(struct ipv6hdr)];
1061 NONFAILING(res->seq = htonl((ntohl(tcphdr->seq) + (uint32)a1)));
1062 NONFAILING(res->ack = htonl((ntohl(tcphdr->ack_seq) + (uint32)a2)));
/external/honggfuzz/examples/linux_kernel_ip/
Dlinux-kernel-4.10.0.patch127 th = (const struct tcphdr *)skb->data;
/external/swiftshader/third_party/LLVM/test/CodeGen/X86/
D2009-04-29-LinearScanBug.ll27 %23 = type { %struct.tcphdr* }
101 %struct.tcphdr = type { i16, i16, i32, i32, i8, i8, i16, i16, i16 }

12