Lines Matching refs:hlen
54 m_makespace(struct mbuf *m0, int skip, int hlen, int *off) in m_makespace() argument
60 IPSEC_ASSERT(hlen < MHLEN, ("hlen too big: %u", hlen)); in m_makespace()
76 hlen + max_linkhdr < M_LEADINGSPACE(m)) { in m_makespace()
85 m->m_data -= hlen; in m_makespace()
86 bcopy(mtodo(m, hlen), mtod(m, caddr_t), skip); in m_makespace()
87 m->m_len += hlen; in m_makespace()
89 } else if (hlen > M_TRAILINGSPACE(m)) { in m_makespace()
119 if (hlen <= M_TRAILINGSPACE(m) + remain) { in m_makespace()
120 m->m_len = skip + hlen; in m_makespace()
141 n->m_len = hlen; in m_makespace()
154 mtod(m, caddr_t) + skip + hlen, remain); in m_makespace()
155 m->m_len += hlen; in m_makespace()
158 m0->m_pkthdr.len += hlen; /* adjust packet length */ in m_makespace()
240 m_striphdr(struct mbuf *m, int skip, int hlen) in m_striphdr() argument
254 m_adj(m1, hlen); in m_striphdr()
256 m->m_pkthdr.len -= hlen; in m_striphdr()
257 } else if (roff + hlen >= m1->m_len) { in m_striphdr()
267 if (roff + hlen > m1->m_len) { in m_striphdr()
268 adjlen = roff + hlen - m1->m_len; in m_striphdr()
295 bcopy(mtod(m1, u_char *) + roff + hlen, in m_striphdr()
297 m1->m_len - (roff + hlen)); in m_striphdr()
298 m1->m_len -= hlen; in m_striphdr()
299 m->m_pkthdr.len -= hlen; in m_striphdr()