Lines Matching refs:tcp
32 #include <netinet/tcp.h>
71 const struct tcphdr *tcp)
78 pd->proto != IPPROTO_TCP || (tcp->th_off << 2) < sizeof(*tcp))
88 if (!pf_pull_hdr(m, off, hdr, tcp->th_off << 2, NULL, NULL,
95 pf_osfp_fingerprint_hdr(const struct ip *ip, const struct ip6_hdr *ip6, const struct tcphdr *tcp)
106 if ((tcp->th_flags & (TH_SYN|TH_ACK)) != TH_SYN)
134 fp.fp_wsize = ntohs(tcp->th_win);
137 cnt = (tcp->th_off << 2) - sizeof(*tcp);
138 optp = (const u_int8_t *)((const char *)tcp + sizeof(*tcp));
196 srcname, ntohs(tcp->th_sport),
453 /* XXX need to go semi tree based. can key on tcp options */