Lines Matching defs:tcp
32 #include <netinet/tcp.h>
70 pf_osfp_fingerprint(struct pf_pdesc *pd, const struct tcphdr *tcp)
76 if (pd->proto != IPPROTO_TCP || (tcp->th_off << 2) < sizeof(*tcp))
88 if (!pf_pull_hdr(pd->m, pd->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_get_flags(tcp) & (TH_SYN|TH_ACK)) != TH_SYN)
134 fp.fp_wsize = ntohs(tcp->th_win);
136 cnt = (tcp->th_off << 2) - sizeof(*tcp);
137 optp = (const u_int8_t *)((const char *)tcp + sizeof(*tcp));
194 srcname, ntohs(tcp->th_sport),
449 /* XXX need to go semi tree based. can key on tcp options */