Lines Matching defs:tcp
38 #include <netinet/tcp.h>
97 const struct tcphdr *tcp)
104 pd->proto != IPPROTO_TCP || (tcp->th_off << 2) < sizeof(*tcp))
114 if (!pf_pull_hdr(m, off, hdr, tcp->th_off << 2, NULL, NULL,
122 pf_osfp_fingerprint_hdr(const struct ip *ip, const struct ip6_hdr *ip6, const struct tcphdr *tcp)
133 if ((tcp->th_flags & (TH_SYN|TH_ACK)) != TH_SYN)
190 fp.fp_wsize = ntohs(tcp->th_win);
193 cnt = (tcp->th_off << 2) - sizeof(*tcp);
194 optp = (const u_int8_t *)((const char *)tcp + sizeof(*tcp));
252 srcname, ntohs(tcp->th_sport),
532 /* XXX need to go semi tree based. can key on tcp options */