Lines Matching defs:tcph
28 struct tcphdr *tcph)
30 __u32 thlen = tcph->doff * 4;
32 if (tcph->syn && !tcph->ack) {
37 if ((void *)tcph + thlen > data_end)
40 return bpf_tcp_gen_syncookie(sk, iph, ip_size, tcph, thlen);
53 struct tcphdr *tcph;
73 tcph = data + sizeof(struct ethhdr) + sizeof(struct iphdr);
74 if (tcph + 1 > data_end)
79 tup.ipv4.sport = tcph->source;
80 tup.ipv4.dport = tcph->dest;
91 tcph);
94 tcph, sizeof(*tcph));
105 tcph = data + sizeof(struct ethhdr) + sizeof(struct ipv6hdr);
106 if (tcph + 1 > data_end)
111 tup.ipv6.sport = tcph->source;
112 tup.ipv6.dport = tcph->dest;
123 tcph);
126 tcph, sizeof(*tcph));
142 __u32 cookie = bpf_ntohl(tcph->ack_seq) - 1;