Lines Matching defs:ifp

115 ether_inet_arp_input(struct ifnet *ifp, struct mbuf *m)
157 arp_llreach_set_reachable(ifp, LLADDR(&sender_hw), ETHER_ADDR_LEN);
159 arp_ip_handle_input(ifp, ntohs(ea->arp_op), &sender_hw, &sender_ip,
170 ether_inet_input(ifnet_t ifp, protocol_family_t protocol_family,
173 #pragma unused(ifp, protocol_family)
184 * Trust the ifp in the mbuf, rather than ifproto's
186 * a dlil_input_packet_list() using an ifp that is
228 ether_inet_pre_output(ifnet_t ifp, protocol_family_t protocol_family,
237 if ((ifp->if_flags & (IFF_UP|IFF_RUNNING)) != (IFF_UP|IFF_RUNNING))
249 result = arp_lookup_ip(ifp,
271 printf("%s%d: can't handle af%d\n", ifp->if_name, ifp->if_unit,
282 ether_inet_resolve_multi(ifnet_t ifp, const struct sockaddr *proto_addr,
302 out_ll->sdl_index = ifp->if_index;
313 ether_inet_prmod_ioctl(ifnet_t ifp, protocol_family_t protocol_family,
329 if (!(ifnet_flags(ifp) & IFF_RUNNING)) {
330 ifnet_set_flags(ifp, IFF_UP, IFF_UP);
331 ifnet_ioctl(ifp, 0, SIOCSIFFLAGS, NULL);
337 inet_arp_init_ifaddr(ifp, ifa);
351 kdp_get_interface() == ifp->if_softc) ||
352 (kdp_get_interface() == 0 && ifp->if_unit == 0))
354 ifnet_lladdr(ifp));
361 ifnet_lladdr_copy_bytes(ifp, ifr->ifr_addr.sa_data,
375 ether_inet_event(ifnet_t ifp, protocol_family_t protocol,
388 if (ifnet_get_address_list_family(ifp, &addresses, AF_INET) == 0) {
392 inet_arp_init_ifaddr(ifp, addresses[i]);
400 ether_inet_arp(ifnet_t ifp, u_short arpop, const struct sockaddr_dl *sender_hw,
447 mac_mbuf_label_associate_linklayer(ifp, m);
462 ifnet_lladdr_copy_bytes(ifp, ea->arp_sha, ETHER_ADDR_LEN);
464 ifnet_lladdr_copy_bytes(ifp, eh->ether_shost, sizeof (eh->ether_shost));
473 ifnet_lock_shared(ifp);
474 TAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) {
486 ifnet_lock_done(ifp);
519 if (ifp->if_eflags & IFEF_TXSTART) {
526 ifnet_output_raw(ifp, PF_INET, m);
532 ether_attach_inet(struct ifnet *ifp, protocol_family_t proto_family)
559 error = ifnet_attach_protocol_v2(ifp, proto_family, &proto);
562 ifp->if_name, ifp->if_unit);
568 ether_detach_inet(struct ifnet *ifp, protocol_family_t proto_family)
570 (void) ifnet_detach_protocol(ifp, proto_family);