Lines Matching defs:ip
60 #include <netinet/ip.h>
90 struct ip *ip;
120 ip = mtod(m, struct ip *);
123 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
125 hlen = ip->ip_hl << 2;
131 sav = key_allocsa(AF_INET, (caddr_t)&ip->ip_src,
132 (caddr_t)&ip->ip_dst, IPPROTO_IPCOMP, htonl(cpi));
154 ip->ip_len -= sizeof(struct ipcomp);
156 ip->ip_len = htons(ntohs(ip->ip_len) - sizeof(struct ipcomp));
179 ip = mtod(m, struct ip *);
183 len = ip->ip_len;
185 len = ntohs(ip->ip_len);
199 ip->ip_len = len & 0xffff;
201 ip->ip_len = htons(len & 0xffff);
203 ip->ip_p = nxt;
224 struct ip *, ip, struct ifnet *, m->m_pkthdr.rcvif,
225 struct ip *, ip, struct ip6_hdr *, NULL);