Lines Matching defs:ifp

194 static int	bpf_setif(struct bpf_d *, ifnet_t ifp, u_int32_t dlt);
211 static int bpf_tap_callback(struct ifnet *ifp, struct mbuf *m);
484 /* Find the default bpf entry for this ifp */
514 struct ifnet *ifp;
516 ifp = d->bd_bif->bif_ifp;
533 dlil_set_bpf_tap(ifp, BPF_TAP_DISABLE, NULL);
535 bp->bif_tap(ifp, bp->bif_dlt, BPF_TAP_DISABLE);
538 if (bp->bif_ifp == ifp && bp->bif_dlist != 0)
541 ifp->if_bpf = NULL;
551 if (ifnet_set_promiscuous(ifp, 0)) {
1054 struct ifnet *ifp;
1074 ifp = d->bd_bif->bif_ifp;
1076 if ((ifp->if_flags & IFF_UP) == 0) {
1119 if ((unsigned)datlen > ifp->if_mtu) {
1136 error = d->bd_bif->bif_send(ifp, d->bd_bif->bif_dlt, m);
1138 error = dlil_output(ifp, 0, m, NULL, NULL, 1, NULL);
1140 error = dlil_output(ifp, PF_INET, m, NULL,
1235 struct ifnet *ifp;
1240 ifp = d->bd_bif->bif_ifp;
1241 error = ifnet_ioctl(ifp, 0, cmd, addr);
1362 struct ifnet *const ifp = d->bd_bif->bif_ifp;
1365 sizeof (ifr.ifr_name), "%s%d", ifp->if_name,
1366 ifp->if_unit);
1374 ifnet_t ifp;
1378 ifp = ifunit(ifr.ifr_name);
1379 if (ifp == NULL)
1382 error = bpf_setif(d, ifp, 0);
1630 struct ifnet *ifp = bp->bif_ifp;
1632 if (ifp == 0 || ifp != theywant || (dlt != 0 && dlt != bp->bif_dlt))
1673 struct ifnet *ifp;
1685 ifp = d->bd_bif->bif_ifp;
1689 if (bp->bif_ifp != ifp)
1718 struct ifnet *ifp;
1723 ifp = d->bd_bif->bif_ifp;
1725 if (bp->bif_ifp == ifp && bp->bif_dlt == dlt)
1974 ifnet_t ifp,
1997 if (ifp->if_bpf == NULL) {
2001 bp = ifp->if_bpf;
2002 for (bp = ifp->if_bpf; bp && bp->bif_ifp == ifp &&
2005 if (bp && bp->bif_ifp == ifp && bp->bif_dlist != NULL) {
2059 ifnet_t ifp,
2065 bpf_tap_imp(ifp, dlt, m, hdr, hlen, 1);
2070 ifnet_t ifp,
2076 bpf_tap_imp(ifp, dlt, m, hdr, hlen, 0);
2080 static int bpf_tap_callback(struct ifnet *ifp, struct mbuf *m)
2082 bpf_tap_imp(ifp, 0, m, NULL, 0, mbuf_pkthdr_rcvif(m) == NULL);
2242 bpfattach(struct ifnet *ifp, u_int dlt, u_int hdrlen)
2244 bpf_attach(ifp, dlt, hdrlen, NULL, NULL);
2249 ifnet_t ifp,
2269 for (bp_temp = bpf_iflist; bp_temp && (bp_temp->bif_ifp != ifp ||
2271 if (bp_temp->bif_ifp == ifp && bp_first == NULL)
2277 ifp->if_name, ifp->if_unit, dlt);
2284 bp_new->bif_ifp = ifp;
2290 /* No other entries for this ifp */
2311 ifnet_reference(ifp);
2317 printf("bpf: %s%d attached\n", ifp->if_name, ifp->if_unit);
2330 bpfdetach(struct ifnet *ifp)
2343 if (ifp != bp->bif_ifp) {
2362 ifnet_release(ifp);