Lines Matching refs:dstsock
182 in6_selectsrc(uint32_t fibnum, struct sockaddr_in6 *dstsock,
200 dst = dstsock->sin6_addr; /* make a copy for local operation */
230 if ((error = in6_selectif(dstsock, opts, mopts, &ifp, oifp,
299 if ((error = in6_selectif(dstsock, opts, mopts, &ifp, oifp,
400 dst_policy = lookup_addrsel_policy(dstsock);
550 * Select source address based on @inp, @dstsock and @opts.
557 in6_selectsrc_socket(struct sockaddr_in6 *dstsock, struct ip6_pktopts *opts,
568 error = in6_selectsrc(fibnum, dstsock, opts, inp, cred, &retifp, srcp);
586 error = in6_setscope(&dstsock->sin6_addr, retifp, NULL);
626 selectroute(struct sockaddr_in6 *dstsock, struct ip6_pktopts *opts,
635 struct in6_addr *dst = &dstsock->sin6_addr;
640 if (dstsock->sin6_addr.s6_addr32[0] == 0 &&
641 dstsock->sin6_addr.s6_addr32[1] == 0 &&
642 !IN6_IS_ADDR_LOOPBACK(&dstsock->sin6_addr)) {
644 ip6_sprintf(ip6buf, &dstsock->sin6_addr));
647 ip6_sprintf(ip6buf, &dstsock->sin6_addr),
648 dstsock->sin6_scope_id); /* for debug */
754 *sa6 = *dstsock;
842 in6_selectif(struct sockaddr_in6 *dstsock, struct ip6_pktopts *opts,
856 error = selectroute(dstsock, opts, mopts, &sro, retifp, &rt, 1, fibnum);
905 in6_selectroute(struct sockaddr_in6 *dstsock, struct ip6_pktopts *opts,
910 return (selectroute(dstsock, opts, mopts, ro, retifp,
916 in6_selectroute_fib(struct sockaddr_in6 *dstsock, struct ip6_pktopts *opts,
921 return (selectroute(dstsock, opts, mopts, ro, retifp,