Lines Matching defs:ifp
177 __unused ifnet_t ifp,
219 ifnet_t ifp,
232 if ((ifp->if_flags & (IFF_UP|IFF_RUNNING)) != (IFF_UP|IFF_RUNNING))
244 result = arp_lookup_ip(ifp, (const struct sockaddr_in*)dst_netaddr,
262 printf("%s%d: can't handle af%d\n", ifp->if_name, ifp->if_unit,
273 ifnet_t ifp,
293 out_ll->sdl_index = ifp->if_index;
305 ifnet_t ifp,
318 if ((ifnet_flags(ifp) & IFF_RUNNING) == 0) {
319 ifnet_set_flags(ifp, IFF_UP, IFF_UP);
320 ifnet_ioctl(ifp, 0, SIOCSIFFLAGS, NULL);
327 inet_arp_init_ifaddr(ifp, ifa);
338 kdp_get_interface() == ifp->if_softc) ||
339 (kdp_get_interface() == 0 && ifp->if_unit == 0)))
341 ifnet_lladdr(ifp));
352 ifnet_lladdr_copy_bytes(ifp, ifr->ifr_addr.sa_data, ETHER_ADDR_LEN);
365 ifnet_t ifp,
378 if (ifnet_get_address_list_family(ifp, &addresses, AF_INET) == 0) {
382 inet_arp_init_ifaddr(ifp, addresses[i]);
391 ifnet_t ifp,
439 mac_mbuf_label_associate_linklayer(ifp, m);
454 ifnet_lladdr_copy_bytes(ifp, ea->arp_sha, ETHER_ADDR_LEN);
456 ifnet_lladdr_copy_bytes(ifp, eh->ether_shost, sizeof(eh->ether_shost));
466 ifnet_lock_shared(ifp);
467 TAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) {
475 ifnet_lock_done(ifp);
496 ifnet_output_raw(ifp, PF_INET, m);
503 struct ifnet *ifp,
530 error = ifnet_attach_protocol_v2(ifp, proto_family, &proto);
533 ifp->if_name, ifp->if_unit);
540 struct ifnet *ifp,
543 (void)ifnet_detach_protocol(ifp, proto_family);