Lines Matching refs:ifp
139 mac_ifnet_label_init(struct ifnet *ifp)
142 ifp->if_label = mac_ifnet_label_alloc();
191 mac_ifnet_label_destroy(struct ifnet *ifp)
194 mac_ifnet_label_free(ifp->if_label);
195 ifp->if_label = NULL;
199 mac_ifnet_label_recycle(struct ifnet *ifp)
202 MAC_PERFORM(ifnet_label_recycle, ifp->if_label);
271 mac_ifnet_label_associate(struct ifnet *ifp)
274 MAC_PERFORM(ifnet_label_associate, ifp, ifp->if_label);
287 mac_bpfdesc_check_receive(struct bpf_d *bpf_d, struct ifnet *ifp)
293 ifnet_lock_shared(ifp);
294 MAC_CHECK(bpfdesc_check_receive, bpf_d, label, ifp,
295 ifp->if_label);
296 ifnet_lock_done(ifp);
341 mac_mbuf_label_associate_ifnet(struct ifnet *ifp, struct mbuf *mbuf)
345 /* ifp must be locked */
349 MAC_PERFORM(mbuf_label_associate_ifnet, ifp, ifp->if_label, mbuf,
354 mac_mbuf_label_associate_linklayer(struct ifnet *ifp, struct mbuf *mbuf)
358 /* ifp must be locked */
362 MAC_PERFORM(mbuf_label_associate_linklayer, ifp, ifp->if_label, mbuf,
368 struct ifnet *ifp, struct mbuf *newmbuf)
375 /* ifp must be locked */
378 ifp, ifp->if_label, newmbuf, newmbuflabel);
409 mac_ifnet_check_transmit(struct ifnet *ifp, struct mbuf *mbuf, int family,
417 ifnet_lock_shared(ifp);
418 MAC_CHECK(ifnet_check_transmit, ifp, ifp->if_label, mbuf, label,
420 ifnet_lock_done(ifp);
427 struct ifnet *ifp)
455 ifnet_lock_shared(ifp);
456 mac_ifnet_label_copy(ifp->if_label, intlabel);
457 ifnet_lock_done(ifp);
473 struct ifnet *ifp)
518 ifnet_lock_exclusive(ifp);
519 MAC_CHECK(ifnet_check_label_update, cred, ifp, ifp->if_label,
522 ifnet_lock_done(ifp);
527 MAC_PERFORM(ifnet_label_update, cred, ifp, ifp->if_label, intlabel);
528 ifnet_lock_done(ifp);