Lines Matching defs:ifp
133 * ifp is 0 if not an interface-specific ioctl.
137 at_control(so, cmd, data, ifp)
141 struct ifnet *ifp;
171 if (ifp)
173 if (at_interfaces[pat_id].aa_ifp == ifp) {
581 ifID->aa_ifp = ifp;
583 error = proto_plumb(PF_APPLETALK, ifp);
594 ifnet_lock_exclusive(ifp);
595 TAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link)
615 if_attach_ifa(ifp, ifa);
616 ifnet_lock_done(ifp);
681 error = proto_plumb(PF_APPLETALK, ifp);
698 error = proto_unplumb(PF_APPLETALK, ifp);
702 if (ifp == 0 || ifp->if_ioctl == 0)
704 return ifnet_ioctl(ifp, 0, cmd, data);
711 void atalk_post_msg(struct ifnet *ifp, u_long event_code, struct at_addr *address, at_nvestr_t *zone)
723 if (ifp != 0) {
724 strlcpy(&at_event_data.link_data.if_name[0], ifp->if_name, IFNAMSIZ);
725 at_event_data.link_data.if_family = ifp->if_family;
726 at_event_data.link_data.if_unit = (unsigned long) ifp->if_unit;