Lines Matching refs:hdrlen
2103 int hdrlen, caplen;
2107 hdrlen = d->bd_extendedhdr ? d->bd_bif->bif_exthdrlen :
2115 totlen = hdrlen + min(snaplen, pktlen);
2160 ehp->bh_hdrlen = hdrlen;
2161 ehp->bh_caplen = totlen - hdrlen;
2171 payload = (u_char *)ehp + hdrlen;
2178 hp->bh_hdrlen = hdrlen;
2179 hp->bh_caplen = totlen - hdrlen;
2180 payload = (u_char *)hp + hdrlen;
2238 * in the driver's softc; dlt is the link layer type; hdrlen is the fixed
2242 bpfattach(struct ifnet *ifp, u_int dlt, u_int hdrlen)
2244 bpf_attach(ifp, dlt, hdrlen, NULL, NULL);
2251 u_int32_t hdrlen,
2306 bp_new->bif_hdrlen = BPF_WORDALIGN(hdrlen + SIZEOF_BPF_HDR) - hdrlen;
2307 bp_new->bif_exthdrlen = BPF_WORDALIGN(hdrlen +
2308 sizeof(struct bpf_hdr_ext)) - hdrlen;