Lines Matching refs:pktlen
2300 bpf_tap(struct bpf_if *bp, u_char *pkt, u_int pktlen) in bpf_tap() argument
2324 slen = (*(bf->func))(pkt, pktlen, pktlen); in bpf_tap()
2327 slen = bpf_filter(d->bd_rfilter, pkt, pktlen, pktlen); in bpf_tap()
2340 catchpacket(d, pkt, pktlen, slen, in bpf_tap()
2349 bpf_tap_if(if_t ifp, u_char *pkt, u_int pktlen) in bpf_tap_if() argument
2352 bpf_tap(ifp->if_bpf, pkt, pktlen); in bpf_tap_if()
2372 u_int pktlen, slen; in bpf_mtap() local
2381 pktlen = m_length(m, NULL); in bpf_mtap()
2393 slen = (*(bf->func))(mtod(m, u_char *), pktlen, in bpf_mtap()
2394 pktlen); in bpf_mtap()
2397 slen = bpf_filter(d->bd_rfilter, (u_char *)m, pktlen, 0); in bpf_mtap()
2407 catchpacket(d, (u_char *)m, pktlen, slen, in bpf_mtap()
2435 u_int pktlen, slen; in bpf_mtap2() local
2444 pktlen = m_length(m, NULL); in bpf_mtap2()
2454 pktlen += dlen; in bpf_mtap2()
2463 slen = bpf_filter(d->bd_rfilter, (u_char *)&mb, pktlen, 0); in bpf_mtap2()
2473 catchpacket(d, (u_char *)&mb, pktlen, slen, in bpf_mtap2()
2563 catchpacket(struct bpf_d *d, u_char *pkt, u_int pktlen, u_int snaplen, in catchpacket() argument
2608 totlen = hdrlen + min(snaplen, pktlen); in catchpacket()
2675 hdr32_old.bh_datalen = pktlen; in catchpacket()
2688 hdr_old.bh_datalen = pktlen; in catchpacket()
2704 hdr.bh_datalen = pktlen; in catchpacket()
3121 bpf_tap(struct bpf_if *bp, u_char *pkt, u_int pktlen) in bpf_tap() argument
3126 bpf_tap_if(if_t ifp, u_char *pkt, u_int pktlen) in bpf_tap_if() argument