Lines Matching refs:dst
152 * header (with pri, len, nxt, hlim, src, dst).
176 struct sockaddr_in6 *dst;
551 dst = (struct sockaddr_in6 *)&ro->ro_dst;
558 dst->sin6_family != AF_INET6 ||
559 !IN6_ARE_ADDR_EQUAL(&dst->sin6_addr, &ip6->ip6_dst) ||
565 bzero(dst, sizeof(*dst));
566 dst->sin6_family = AF_INET6;
567 dst->sin6_len = sizeof(struct sockaddr_in6);
568 dst->sin6_addr = ip6->ip6_dst;
571 if (IN6_IS_SCOPE_LINKLOCAL(&dst->sin6_addr))
572 dst->sin6_scope_id = ntohs(dst->sin6_addr.s6_addr16[1]);
594 state.dst = (struct sockaddr *)dst;
602 dst = (struct sockaddr_in6 *)state.dst;
658 dst = (struct sockaddr_in6 *)ro->ro_rt->rt_gateway;
781 ip6_mloopback(ifp, m, dst);
1007 error = nd6_output(ifp, origifp, m, dst, ro->ro_rt, 1);
1143 error = nd6_output(ifp, origifp, m, dst, ro->ro_rt, 1);
1419 * receiving ANY hbh/dst options in order to avoid
1903 dst->type = _MALLOC(hlen, M_IP6OPT, canwait);\
1904 if (dst->type == NULL && canwait == M_NOWAIT)\
1906 bcopy(src->type, dst->type, hlen);\
1915 struct ip6_pktopts *dst;
1922 dst = _MALLOC(sizeof(*dst), M_IP6OPT, canwait);
1923 if (dst == NULL && canwait == M_NOWAIT)
1925 bzero(dst, sizeof(*dst));
1927 dst->ip6po_hlim = src->ip6po_hlim;
1929 dst->ip6po_pktinfo = _MALLOC(sizeof(*dst->ip6po_pktinfo),
1931 if (dst->ip6po_pktinfo == NULL && canwait == M_NOWAIT)
1933 *dst->ip6po_pktinfo = *src->ip6po_pktinfo;
1936 dst->ip6po_nexthop = _MALLOC(src->ip6po_nexthop->sa_len,
1938 if (dst->ip6po_nexthop == NULL && canwait == M_NOWAIT)
1940 bcopy(src->ip6po_nexthop, dst->ip6po_nexthop,
1947 return(dst);
1950 if (dst->ip6po_pktinfo) FREE(dst->ip6po_pktinfo, M_IP6OPT);
1951 if (dst->ip6po_nexthop) FREE(dst->ip6po_nexthop, M_IP6OPT);
1952 if (dst->ip6po_hbh) FREE(dst->ip6po_hbh, M_IP6OPT);
1953 if (dst->ip6po_dest1) FREE(dst->ip6po_dest1, M_IP6OPT);
1954 if (dst->ip6po_dest2) FREE(dst->ip6po_dest2, M_IP6OPT);
1955 if (dst->ip6po_rthdr) FREE(dst->ip6po_rthdr, M_IP6OPT);
1956 FREE(dst, M_IP6OPT);
1990 struct sockaddr_in6 *dst;
2167 dst = (struct sockaddr_in6 *)&ro.ro_dst;
2168 bzero(dst, sizeof(*dst));
2169 dst->sin6_len = sizeof(struct sockaddr_in6);
2170 dst->sin6_family = AF_INET6;
2171 dst->sin6_addr = mreq->ipv6mr_multiaddr;
2650 struct sockaddr_in6 *dst)
2699 dlil_output(lo_ifp, PF_INET6, copym, 0, (struct sockaddr *)dst, 0);
2704 (void)if_simloop(ifp, copym, dst->sin6_family, NULL);