Lines Matching defs:tcp
17 #include <linux/tcp.h>
541 uint64_t tuplen, void *iph, struct tcphdr *tcp)
554 if (iph != NULL && tcp != NULL) {
561 if (bpf_tcp_check_syncookie(sk, iph, iphlen, tcp,
562 sizeof(*tcp)) == 0) {
710 struct tcphdr tcp;
715 if (bpf_dynptr_read(&tcp, sizeof(tcp), dynptr, *offset, 0)) {
720 *offset += sizeof(tcp);
722 if (tcp.syn)
725 tuplen = fill_tuple(&tuple, info->hdr, info->len, tcp.source, tcp.dest);
726 return classify_tcp(skb, &tuple, tuplen, info->hdr, &tcp);