Lines Matching refs:hlen
188 m_makespace(struct mbuf *m0, int skip, int hlen, int *off) in m_makespace() argument
195 KASSERTMSG(hlen < MHLEN, "hlen too big: %u", hlen); in m_makespace()
211 if (hlen > M_TRAILINGSPACE(m)) { in m_makespace()
242 if (hlen <= M_TRAILINGSPACE(m) + remain) { in m_makespace()
243 m->m_len = skip + hlen; in m_makespace()
264 n->m_len = hlen; in m_makespace()
278 memmove(mtod(m, char *) + skip + hlen, in m_makespace()
280 m->m_len += hlen; in m_makespace()
284 m0->m_pkthdr.len += hlen; /* adjust packet length */ in m_makespace()
365 m_striphdr(struct mbuf *m, int skip, int hlen) in m_striphdr() argument
381 m_adj(m1, hlen); in m_striphdr()
383 m->m_pkthdr.len -= hlen; in m_striphdr()
384 } else if (roff + hlen >= m1->m_len) { in m_striphdr()
394 if (roff + hlen > m1->m_len) { in m_striphdr()
395 adjlen = roff + hlen - m1->m_len; in m_striphdr()
423 mtod(m1, u_char *) + roff + hlen, in m_striphdr()
424 m1->m_len - (roff + hlen)); in m_striphdr()
425 m1->m_len -= hlen; in m_striphdr()
426 m->m_pkthdr.len -= hlen; in m_striphdr()