Lines Matching defs:ip
59 #include <netinet/ip.h>
244 struct ip *ip = NULL;
249 size_t hlen = 0; /*ip header len*/
255 ip = mtod(m, struct ip *);
257 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
259 hlen = ip->ip_hl << 2;
305 ip->ip_len = htons(compoff + complen + plen);
352 struct ip *ip;
353 if (m->m_len < sizeof(struct ip)) {
359 ip = mtod(m, struct ip *);
361 return ipcomp_output(m, &ip->ip_p, m->m_next, AF_INET, sav);