Lines Matching defs:ifp
340 arp_llreach_set_reachable(struct ifnet *ifp, void *addr, unsigned int alen)
346 ifnet_llreach_set_reachable(ifp, ETHERTYPE_IP, addr, alen);
424 arp_llreach_alloc(struct rtentry *rt, struct ifnet *ifp, void *addr,
431 ifp->if_addrlen == IF_LLREACH_MAXLEN && /* Ethernet */
432 alen == ifp->if_addrlen) {
466 lr = la->la_llreach = ifnet_llreach_alloc(ifp,
478 log(LOG_DEBUG, "%s%d: %s%s for %s\n", ifp->if_name,
479 ifp->if_unit, type, why, inet_ntop(AF_INET,
895 arp_lookup_ip(ifnet_t ifp, const struct sockaddr_in *net_dest,
909 if ((ifp->if_flags & (IFF_UP|IFF_RUNNING)) != (IFF_UP|IFF_RUNNING))
931 result = ifnet_llbroadcast_copy_bytes(ifp, LLADDR(ll_dest),
944 result = dlil_resolve_multi(ifp,
973 ifp->if_index);
1015 if (ifp->if_flags & IFF_NOARP) {
1054 dlil_send_arp(ifp, ARPOP_REQUEST, NULL,
1096 ifnet_t ifp,
1120 if (ifp->if_bridge)
1122 if (ifp->if_type == IFT_BRIDGE)
1134 (ia->ia_ifp == ifp)) &&
1149 (ia->ia_ifp == ifp)) &&
1161 #define BDG_MEMBER_MATCHES_ARP(addr, ifp, ia) \
1162 (ia->ia_ifp->if_bridge == ifp->if_softc && \
1163 !bcmp(ifnet_lladdr(ia->ia_ifp), ifnet_lladdr(ifp), ifp->if_addrlen) && \
1176 ifp, ia)) {
1177 ifp = ia->ia_ifp;
1195 ifnet_lock_shared(ifp);
1196 TAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) {
1206 ifnet_lock_done(ifp);
1209 ifnet_lock_done(ifp);
1220 if (!bcmp(CONST_LLADDR(sender_hw), ifnet_lladdr(ifp), sender_hw->sdl_alen)) {
1233 ifp->if_name, ifp->if_unit,
1238 in_collision->link_data.if_family = ifp->if_family;
1239 in_collision->link_data.if_unit = ifp->if_unit;
1240 strncpy(&in_collision->link_data.if_name[0], ifp->if_name, IFNAMSIZ);
1264 sender_ip->sin_addr.s_addr != 0), 0, &route, ifp->if_index);
1275 && (ifp->if_eflags & IFEF_ARPLL) != 0
1292 &route, ifp->if_index);
1299 if (route->rt_ifp != ifp && gateway->sdl_alen != 0
1313 ifp->if_name, ifp->if_unit,
1320 ifp->if_name, ifp->if_unit);
1337 ifnet_lock_shared(ifp);
1338 ifa = ifp->if_lladdr;
1340 ifnet_lock_done(ifp);
1341 dlil_send_arp_internal(ifp, ARPOP_REQUEST,
1354 || (ifp->if_eflags & IFEF_ARPLL) != 0) {
1366 1, 0, &route, ifp->if_index);
1387 if (!bridged && route->rt_ifp != ifp) {
1388 if (!IN_LINKLOCAL(ntohl(sender_ip->sin_addr.s_addr)) || (ifp->if_eflags & IFEF_ARPLL) == 0) {
1396 ifp->if_name, ifp->if_unit);
1406 * We're about to check and/or change the route's ifp
1432 if (route->rt_ifp != ifp) {
1441 route->rt_if_ref_fn(ifp, 1);
1446 route->rt_ifp = ifp;
1448 gateway->sdl_index = ifp->if_index;
1469 ifp->if_name, ifp->if_unit);
1479 ifp->if_name, ifp->if_unit);
1500 arp_llreach_alloc(route, ifp, LLADDR(gateway), gateway->sdl_alen,
1512 dlil_output(ifp, PF_INET, m0, (caddr_t)route, rt_key(route), 0, NULL);
1538 &route, ifp->if_index);
1548 if (route->rt_ifp != ifp &&
1549 (route->rt_ifp->if_bridge != ifp->if_bridge ||
1550 ifp->if_bridge == NULL)) {
1571 (size_t)target_ip, 0, 0, ifp->if_index);
1579 if (route->rt_ifp == ifp) {
1592 dlil_send_arp(ifp, ARPOP_REPLY,
1603 arp_ifinit(struct ifnet *ifp, struct ifaddr *ifa)
1612 dlil_send_arp(ifp, ARPOP_REQUEST, NULL, sa, NULL, sa, 0);