Lines Matching refs:sin6_addr

194 	dst = dstsock->sin6_addr; /* make a copy for local operation */  in in6_selectsrc()
256 bcopy(&ia->ia_addr.sin6_addr, srcp, sizeof(*srcp)); in in6_selectsrc()
319 src = ia->ia_addr.sin6_addr; in in6_selectsrc()
336 prison_check_ip6(cred, &ia->ia_addr.sin6_addr) != 0) in in6_selectsrc()
340 if (IN6_ARE_ADDR_EQUAL(&dst, &ia->ia_addr.sin6_addr)) { in in6_selectsrc()
351 new_scope = in6_addrscope(&ia->ia_addr.sin6_addr); in in6_selectsrc()
467 new_matchlen = in6_matchlen(&ia->ia_addr.sin6_addr, &dst); in in6_selectsrc()
484 in6_addrscope(&ia_best->ia_addr.sin6_addr)); in in6_selectsrc()
488 in6_matchlen(&ia_best->ia_addr.sin6_addr, in in6_selectsrc()
513 tmp = ia->ia_addr.sin6_addr; in in6_selectsrc()
576 error = in6_setscope(&dstsock->sin6_addr, retifp, NULL); in in6_selectsrc_socket()
601 dst_sa.sin6_addr = *dst; in in6_selectsrc_addr()
624 !IN6_ARE_ADDR_EQUAL(&ro->ro_dst.sin6_addr, &dst->sin6_addr))) in cache_route()
633 if (IN6_IS_SCOPE_LINKLOCAL(&dst->sin6_addr)) { in cache_route()
634 in6_splitscope(&dst->sin6_addr, &unscoped_addr, &scopeid); in cache_route()
637 paddr = &dst->sin6_addr; in cache_route()
698 struct in6_addr *dst = &dstsock->sin6_addr; in selectroute()
940 if (in6_mask2len(&ent0.addrmask.sin6_addr, NULL) < 0) in in6_src_ioctl()
943 IN6_MASK_ADDR(&ent0.addr.sin6_addr, &ent0.addrmask.sin6_addr); in in6_src_ioctl()
991 if (IN6_ARE_ADDR_EQUAL(&newpolicy->addr.sin6_addr, in add_addrsel_policyent()
992 &pol->ape_policy.addr.sin6_addr) && in add_addrsel_policyent()
993 IN6_ARE_ADDR_EQUAL(&newpolicy->addrmask.sin6_addr, in add_addrsel_policyent()
994 &pol->ape_policy.addrmask.sin6_addr)) { in add_addrsel_policyent()
1024 if (IN6_ARE_ADDR_EQUAL(&key->addr.sin6_addr, in delete_addrsel_policyent()
1025 &pol->ape_policy.addr.sin6_addr) && in delete_addrsel_policyent()
1026 IN6_ARE_ADDR_EQUAL(&key->addrmask.sin6_addr, in delete_addrsel_policyent()
1027 &pol->ape_policy.addrmask.sin6_addr)) { in delete_addrsel_policyent()
1085 mp = (u_char *)&pol->addrmask.sin6_addr; in match_addrsel_policy()
1087 k = (u_char *)&key->sin6_addr; in match_addrsel_policy()
1088 p = (u_char *)&pol->addr.sin6_addr; in match_addrsel_policy()