Lines Matching defs:ip
57 #include <netinet/ip.h>
92 struct ip *ip;
102 ip = mtod(m, struct ip *);
105 ip = (struct ip *)NULL;
112 return (pf_osfp_fingerprint_hdr(ip, ip6, (struct tcphdr *)(void *)hdr));
116 pf_osfp_fingerprint_hdr(const struct ip *ip, const struct ip6_hdr *ip6,
129 if (ip) {
130 if ((ip->ip_off & htons(IP_OFFMASK)) != 0)
136 if (ip) {
137 fp.fp_psize = ntohs(ip->ip_len);
138 fp.fp_ttl = ip->ip_ttl;
139 if (ip->ip_off & htons(IP_DF))
141 (void) inet_ntop(AF_INET, &ip->ip_src, srcname,
452 #define MTUOFF (sizeof (struct ip) + sizeof (struct tcphdr))