Lines Matching refs:ipcomp
68 #include <netinet6/ipcomp.h>
89 struct ipcomp *ipcomp;
99 if (m->m_pkthdr.len < off + sizeof(struct ipcomp)) {
106 md = m_pulldown(m, off, sizeof(*ipcomp), NULL);
114 ipcomp = mtod(md, struct ipcomp *);
116 nxt = ipcomp->comp_nxt;
123 cpi = ntohs(ipcomp->comp_cpi);
143 /* chop ipcomp header */
144 ipcomp = NULL;
145 md->m_data += sizeof(struct ipcomp);
146 md->m_len -= sizeof(struct ipcomp);
147 m->m_pkthdr.len -= sizeof(struct ipcomp);
149 ip->ip_len -= sizeof(struct ipcomp);
151 ip->ip_len = htons(ntohs(ip->ip_len) - sizeof(struct ipcomp));
243 struct ipcomp *ipcomp;
255 md = m_pulldown(m, off, sizeof(*ipcomp), NULL);
263 ipcomp = mtod(md, struct ipcomp *);
265 nxt = ipcomp->comp_nxt;
267 cpi = ntohs(ipcomp->comp_cpi);
287 /* chop ipcomp header */
288 ipcomp = NULL;
289 md->m_data += sizeof(struct ipcomp);
290 md->m_len -= sizeof(struct ipcomp);
291 m->m_pkthdr.len -= sizeof(struct ipcomp);