Lines Matching refs:hlen
252 int hlen;
259 hlen = 0;
266 hlen = sizeof(struct ether_header);
273 hlen = 0;
277 hlen = 24;
285 hlen = 0;
296 hlen = 12; /* XXX 4(ATM_PH) + 3(LLC) + 5(SNAP) */
302 hlen = 4; /* This should match PPP_HDRLEN */
307 hlen = sizeof(struct firewire_header);
316 *datlen = len - hlen;
330 if ((hlen + SOCKADDR_HDR_LEN) > sockp->sa_len) {
341 hlen = 0;
365 if (hlen != 0) {
366 m->m_pkthdr.len -= hlen;
367 m->m_len -= hlen;
369 m->m_data += hlen; /* XXX */
371 m->m_off += hlen;
373 error = UIOMOVE((caddr_t)sockp->sa_data, hlen, UIO_WRITE, uio);
377 error = UIOMOVE(mtod(m, caddr_t), len - hlen, UIO_WRITE, uio);
1508 size_t hlen,
1557 hack_hdr.mh_len = hlen;
1591 size_t hlen)
1593 bpf_tap_imp(ifp, dlt, m, hdr, hlen, 1);
1602 size_t hlen)
1604 bpf_tap_imp(ifp, dlt, m, hdr, hlen, 0);