Lines Matching defs:ip
48 #include <netinet/ip.h>
218 struct ip *ip = mtod(m, struct ip *);
224 vers = IP_VHL_V(ip->ip_vhl);
243 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
244 ip->ip_sum = 0;
245 ip->ip_sum = in_cksum(m, hlen);
269 struct ip *ip;
277 if ((size_t)m->m_len < sizeof (struct ip)) {
278 m = m_pullup(m, sizeof (struct ip));
282 ip = (struct ip *)m_mtod(m);
321 NTOHS(ip->ip_len);
322 NTOHS(ip->ip_off);