Lines Matching refs:ip
33 #include <netinet/ip.h>
54 static struct pf_osfp_enlist *pf_osfp_fingerprint_hdr(const struct ip *,
75 struct ip *ip;
84 ip = mtod(m, struct ip *);
87 ip = (struct ip *)NULL;
93 return (pf_osfp_fingerprint_hdr(ip, ip6, (struct tcphdr *)hdr));
97 pf_osfp_fingerprint_hdr(const struct ip *ip, const struct ip6_hdr *ip6, const struct tcphdr *tcp)
110 if (ip) {
111 if ((ip->ip_off & htons(IP_OFFMASK)) != 0)
117 if (ip) {
118 fp.fp_psize = ntohs(ip->ip_len);
119 fp.fp_ttl = ip->ip_ttl;
120 if (ip->ip_off & htons(IP_DF))
122 inet_ntoa_r(ip->ip_src, srcname);
404 #define MTUOFF (sizeof(struct ip) + sizeof(struct tcphdr))