Lines Matching refs:dlt
199 static int bpf_setif(struct bpf_d *, ifnet_t ifp, u_int32_t dlt, dev_t);
510 /* Only call dlil_set_bpf_tap for primary dlt */
552 /* Only call dlil_set_bpf_tap for primary dlt */
1478 u_int dlt;
1480 bcopy(addr, &dlt, sizeof (dlt));
1481 error = bpf_setdlt(d, dlt, dev);
1803 bpf_setif(struct bpf_d *d, ifnet_t theywant, u_int32_t dlt, dev_t dev)
1821 if (ifp == 0 || ifp != theywant || (dlt != 0 && dlt != bp->bif_dlt))
1827 if (dlt == 0 && bp->bif_dlt == DLT_PKTAP &&
1915 bpf_setdlt(struct bpf_d *d, uint32_t dlt, dev_t dev)
1921 if (d->bd_bif->bif_dlt == dlt)
1933 if (bp->bif_ifp == ifp && bp->bif_dlt == dlt)
2193 u_int32_t dlt,
2221 (dlt != 0 && bp->bif_dlt != dlt); bp = bp->bif_next)
2278 u_int32_t dlt,
2283 bpf_tap_imp(ifp, dlt, m, hdr, hlen, 1);
2289 u_int32_t dlt,
2294 bpf_tap_imp(ifp, dlt, m, hdr, hlen, 0);
2477 * in the driver's softc; dlt is the link layer type; hdrlen is the fixed
2481 bpfattach(struct ifnet *ifp, u_int dlt, u_int hdrlen)
2483 bpf_attach(ifp, dlt, hdrlen, NULL, NULL);
2489 u_int32_t dlt,
2505 * Check if this interface/dlt is already attached, record first
2509 bp_temp->bif_dlt != dlt); bp_temp = bp_temp->bif_next) {
2515 printf("bpfattach - %s with dlt %d is already attached\n",
2516 if_name(ifp), dlt);
2524 bp_new->bif_dlt = dlt;