Lines Matching refs:ifa
334 struct ifaddr *ifa; in if_attach() local
369 ifasize = sizeof(*ifa) + 2 * socksize; in if_attach()
370 ifa = ifa_alloc(ifasize, M_WAITOK); in if_attach()
371 sdl = (struct sockaddr_dl *)(ifa + 1); in if_attach()
378 ifp->if_addr = ifa; in if_attach()
379 ifa->ifa_ifp = ifp; in if_attach()
381 ifa->ifa_addr = (struct sockaddr *)sdl; in if_attach()
383 ifa->ifa_netmask = (struct sockaddr *)sdl; in if_attach()
387 dprintf("if_attach %p\n", ifa->ifa_addr); in if_attach()
806 struct ifaddr *ifa; in ether_ifattach() local
819 ifa = ifp->if_addr; in ether_ifattach()
820 sdl = (struct sockaddr_dl *)ifa->ifa_addr; in ether_ifattach()
862 struct ifaddr *ifa; in ifa_alloc() local
867 ifa = _kernel_malloc(size, M_ZERO | flags); in ifa_alloc()
868 if (ifa == NULL) in ifa_alloc()
873 return (ifa); in ifa_alloc()
877 free(ifa); in ifa_alloc()