Lines Matching refs:ia
131 struct in_ifaddr *ia;
203 ia = NULL;
236 if ((ia = ifatoia(ifa_ifwithbroadaddr(sintosa(dst)))) == NULL &&
237 (ia = ifatoia(ifa_ifwithdstaddr(sintosa(dst)))) == NULL) {
245 ifp = ia->ia_ifp;
249 if ((ia = ifatoia(ifa_ifwithdstaddr(sintosa(dst)))) == NULL &&
250 (ia = ifatoia(ifa_ifwithnet(sintosa(dst), 0))) == NULL) {
256 ifp = ia->ia_ifp;
266 IFP_TO_IA(ifp, ia);
267 if (ia)
303 ia = ifatoia(rte->rt_ifa);
370 if (ia != NULL)
371 ip->ip_src = IA_SIN(ia)->sin_addr;
437 if (ia != NULL) {
438 ip->ip_src = IA_SIN(ia)->sin_addr;
542 ifa_free(&ia->ia_ifa);
574 ifa_free(&ia->ia_ifa);
620 if (!(flags & IP_FORWARDING) && ia) {
622 ia->ia_ifa.if_opackets +=
625 ia->ia_ifa.if_opackets++;
626 ia->ia_ifa.if_obytes += m->m_pkthdr.len;
662 if (ia != NULL) {
663 ia->ia_ifa.if_opackets++;
664 ia->ia_ifa.if_obytes += m->m_pkthdr.len;
686 ifa_free(&ia->ia_ifa);