Lines Matching defs:ia6
119 struct in6_ifaddr *ia6 = 0;
147 ia6 = in6_ifawithscope(ifindex2ifnet[pi->ipi6_ifindex],
149 if (ia6 == 0) {
153 *src_storage = satosin6(&ia6->ia_addr)->sin6_addr;
177 ia6 = in6_ifawithscope(ifindex2ifnet[dstsock->sin6_scope_id],
179 if (ia6 == 0) {
183 *src_storage = satosin6(&ia6->ia_addr)->sin6_addr;
204 ia6 = in6_ifawithscope(ifp, dst);
205 if (ia6 == 0) {
209 *src_storage = satosin6(&ia6->ia_addr)->sin6_addr;
227 ia6 = in6_ifawithscope(rt->rt_ifp, dst);
228 if (ia6 == 0)
229 ia6 = ifatoia6(rt->rt_ifa);
231 if (ia6 == 0) {
235 *src_storage = satosin6(&ia6->ia_addr)->sin6_addr;
284 ia6 = in6_ifawithscope(ro->ro_rt->rt_ifa->ifa_ifp, dst);
285 if (ia6 == 0) {
286 ia6 = ifatoia6(ro->ro_rt->rt_ifa);
287 if (ia6)
288 ifaref(&ia6->ia_ifa);
291 ifaref(&ia6->ia_ifa);
300 if (ia6 == 0) {
305 ia6 = ifatoia6(ifa_ifwithdstaddr(sin6tosa(&sin6)));
306 if (ia6 == 0)
307 ia6 = ifatoia6(ifa_ifwithnet(sin6tosa(&sin6)));
308 if (ia6 == 0)
310 *src_storage = satosin6(&ia6->ia_addr)->sin6_addr;
314 if (ia6 == 0) {
318 *src_storage = satosin6(&ia6->ia_addr)->sin6_addr;
319 ifafree(&ia6->ia_ifa);