Searched refs:ip6_dst (Results 1 - 25 of 29) sorted by relevance

12

/macosx-10.5.8/xnu-1228.15.4/bsd/netinet6/
H A Droute6.c193 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) ||
194 IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_dst) ||
195 IN6_IS_ADDR_V4MAPPED(&ip6->ip6_dst) ||
196 IN6_IS_ADDR_V4COMPAT(&ip6->ip6_dst)) {
206 *nextaddr = ip6->ip6_dst;
209 ip6->ip6_dst = tmpaddr;
210 if (IN6_IS_ADDR_LINKLOCAL(&ip6->ip6_dst))
211 ip6->ip6_dst.s6_addr16[1] = htons(m->m_pkthdr.rcvif->if_index);
H A Dnd6_nbr.c104 struct in6_addr daddr6 = ip6->ip6_dst;
132 ip6_sprintf(&ip6->ip6_dst), if_name(ifp)));
402 ip6->ip6_dst = *daddr6;
404 ip6->ip6_dst.s6_addr16[0] = IPV6_ADDR_INT16_MLL;
405 ip6->ip6_dst.s6_addr16[1] = htons(ifp->if_index);
406 ip6->ip6_dst.s6_addr32[1] = 0;
407 ip6->ip6_dst.s6_addr32[2] = IPV6_ADDR_INT32_ONE;
408 ip6->ip6_dst.s6_addr32[3] = taddr6->s6_addr32[3];
409 ip6->ip6_dst.s6_addr8[12] = 0xff;
419 ia = in6_ifawithifp(ifp, &ip6->ip6_dst);
[all...]
H A Dip6_input.c498 IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_dst)) {
507 IN6_IS_ADDR_LOOPBACK(&ip6->ip6_dst)) &&
527 IN6_IS_ADDR_V4MAPPED(&ip6->ip6_dst)) {
541 IN6_IS_ADDR_V4COMPAT(&ip6->ip6_dst)) {
555 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst) &&
556 ip6->ip6_dst.s6_addr16[1]) {
565 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst))
566 ip6->ip6_dst.s6_addr16[1]
580 IN6_IS_ADDR_LINKLOCAL(&ip6->ip6_dst)) {
582 if (!(ia6 = in6ifa_ifpwithaddr(m->m_pkthdr.rcvif, &ip6->ip6_dst))) {
[all...]
H A Dip6_forward.c132 IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) ||
142 ip6_sprintf(&ip6->ip6_dst),
308 * ip6forward_rt->ro_dst.sin6_addr is equal to ip6->ip6_dst
336 !IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst, &dst->sin6_addr)) {
344 dst->sin6_addr = ip6->ip6_dst;
383 ip6_sprintf(&ip6->ip6_dst),
522 ip6_sprintf(&ip6->ip6_dst),
538 in6_clearscope(&ip6->ip6_dst);
H A Dicmp6.c257 IN6_IS_ADDR_MULTICAST(&oip6->ip6_dst)) &&
330 nip6->ip6_dst = oip6->ip6_dst;
334 if (IN6_IS_SCOPE_LINKLOCAL(&oip6->ip6_dst))
335 oip6->ip6_dst.s6_addr16[1] = 0;
417 if (faithprefix(&ip6->ip6_dst)) {
520 if (icmp6_ratelimit(&ip6->ip6_dst, icmp6->icmp6_type, code)) {
609 if (icmp6_ratelimit(&ip6->ip6_dst, icmp6->icmp6_type, code)) {
652 if (icmp6_ratelimit(&ip6->ip6_dst, icmp6->icmp6_type, code)) {
681 if (icmp6_ratelimit(&ip6->ip6_dst, icmp
[all...]
H A Dip6_mroute.c971 ip6_sprintf(&ip6->ip6_src), ip6_sprintf(&ip6->ip6_dst),
979 if (ip6->ip6_hlim <= 1 || IN6_IS_ADDR_MC_NODELOCAL(&ip6->ip6_dst) ||
980 IN6_IS_ADDR_MC_LINKLOCAL(&ip6->ip6_dst))
1000 ip6_sprintf(&ip6->ip6_dst),
1010 MF6CFIND(ip6->ip6_src, ip6->ip6_dst, rt);
1037 ip6_sprintf(&ip6->ip6_dst));
1063 hash = MF6CHASH(ip6->ip6_src, ip6->ip6_dst);
1067 IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst,
1170 rt->mf6c_mcastgrp.sin6_addr = ip6->ip6_dst;
1425 (in6_addr2scopeid(ifp, &ip6->ip6_dst) !
[all...]
H A Draw_ip6.c139 if (faithprefix(&ip6->ip6_dst)) {
156 !IN6_ARE_ADDR_EQUAL(&in6p->in6p_laddr, &ip6->ip6_dst))
338 ip6->ip6_dst = *dst;
346 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst)) {
354 ip6->ip6_dst.s6_addr16[1] = htons(pi->ipi6_ifindex);
356 } else if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) &&
360 ip6->ip6_dst.s6_addr16[1] = htons(oifp->if_index);
368 ip6->ip6_dst.s6_addr16[1]
H A Dfrag6.c171 || !IN6_ARE_ADDR_EQUAL(&dst->sin6_addr, &ip6->ip6_dst))) {
179 dst->sin6_addr = ip6->ip6_dst;
233 IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst, &q6->ip6q_dst))
270 q6->ip6q_dst = ip6->ip6_dst;
337 ip6err->ip6_dst = q6->ip6q_dst;
498 ip6->ip6_dst = q6->ip6q_dst;
595 ip6->ip6_dst = q6->ip6q_dst;
H A Dudp6_usrreq.c208 if (faithprefix(&ip6->ip6_dst)) {
238 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) {
304 &ip6->ip6_dst) &&
305 !in6_mcmatch(in6p, &ip6->ip6_dst,
386 &ip6->ip6_dst, uh->uh_dport, 1,
392 strlcpy(buf, ip6_sprintf(&ip6->ip6_dst), sizeof(buf));
399 !IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst, &ip6->ip6_src))
H A Dip6_output.c391 if (im6o != NULL && IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) {
400 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst) &&
401 (ip6->ip6_dst.s6_addr16[1] == 0) && (ro != NULL)) {
403 ip6->ip6_dst.s6_addr16[1] = htons(ro->ro_dst.sin6_scope_id);
438 ip6->ip6_dst.s6_addr16[1] = 0;
509 finaldst = ip6->ip6_dst;
513 ip6->ip6_dst = rh0->ip6r0_addr[0];
559 !IN6_ARE_ADDR_EQUAL(&dst->sin6_addr, &ip6->ip6_dst) ||
568 dst->sin6_addr = ip6->ip6_dst;
629 if (!IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) {
[all...]
H A Din6_gif.c164 ip6->ip6_dst = sin6_dst->sin6_addr;
320 if (!IN6_ARE_ADDR_EQUAL(&src->sin6_addr, &ip6->ip6_dst) ||
H A Dipsec.c1190 bcopy(&ip6->ip6_dst, &sin6->sin6_addr, sizeof(ip6->ip6_dst));
1191 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst)) {
1193 sin6->sin6_scope_id = ntohs(ip6->ip6_dst.s6_addr16[1]);
2319 if (IN6_IS_SCOPE_LINKLOCAL(&oip6->ip6_dst))
2320 oip6->ip6_dst.s6_addr16[1] = 0;
2334 &ip6->ip6_dst, sizeof(ip6->ip6_dst));
2687 ip6_sprintf(&ip6->ip6_dst));
3094 bcopy(&ip6->ip6_dst,
[all...]
H A Dip6_fw.c477 ip6_sprintf(&ip6->ip6_dst));
491 ip6_sprintf(&ip6->ip6_dst));
505 ip6_sprintf(&ip6->ip6_dst));
511 ip6_sprintf(&ip6->ip6_dst));
614 (!IN6_ARE_ADDR_MASKEQUAL(&ip6->ip6_dst,&f->fw_dmsk,&f->fw_dst)))
826 && !IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) {
H A Dah_input.c601 (caddr_t)&ip6->ip6_src, (caddr_t)&ip6->ip6_dst,
753 || !IN6_ARE_ADDR_EQUAL(&nip6->ip6_dst, &ip6->ip6_dst)) {
826 (caddr_t)&ip6->ip6_src, (caddr_t)&ip6->ip6_dst)) {
H A Din6_cksum.c145 if (!IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst))
H A Dudp6_output.c303 ip6->ip6_dst = *faddr;
H A Dipcomp_input.c271 (caddr_t)&ip6->ip6_dst, IPPROTO_IPCOMP, htonl(cpi));
H A Dmld6.c445 ip6->ip6_dst = dst ? *dst : in6m->in6m_addr;
H A Desp_input.c421 (caddr_t)&ip6->ip6_src, (caddr_t)&ip6->ip6_dst)) {
606 (caddr_t)&ip6->ip6_src, (caddr_t)&ip6->ip6_dst,
832 (caddr_t)&ip6->ip6_src, (caddr_t)&ip6->ip6_dst)) {
H A Dnd6_rtr.c148 struct in6_addr daddr6 = ip6->ip6_dst;
169 ip6_sprintf(&ip6->ip6_dst), if_name(ifp)));
243 struct in6_addr daddr6 = ip6->ip6_dst;
261 ip6_sprintf(&ip6->ip6_dst), if_name(ifp)));
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/
H A Dkpi_ipfilter.c374 sin6->sin6_addr = ip6->ip6_dst;
378 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst)) {
380 sin6->sin6_scope_id = ntohs(ip6->ip6_dst.s6_addr16[1]);
381 ip6->ip6_dst.s6_addr16[1] = 0;
H A Dip6.h114 struct in6_addr ip6_dst; /* destination address */ member in struct:ip6_hdr
H A Dtcp_input.c514 (caddr_t)&ip6->ip6_dst - (caddr_t)ip6);
608 (((ip6->ip6_src.s6_addr16[0]) << 16) | (ip6->ip6_dst.s6_addr16[0])),
829 &ip6->ip6_dst, th->th_dport, 1,
878 inet_ntop(AF_INET6, &ip6->ip6_dst, dbuf, sizeof(dbuf));
905 ((isipv6 && !IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst, &ip6->ip6_src)) ||
1153 inp->in6p_laddr = ip6->ip6_dst;
1590 (((ip6->ip6_src.s6_addr16[0]) << 16) | (ip6->ip6_dst.s6_addr16[0])),
1672 if (IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst,
1692 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) ||
1715 inp->in6p_laddr = ip6->ip6_dst;
[all...]
H A Dip_encap.c284 d.sin6_addr = ip6->ip6_dst;
/macosx-10.5.8/xnu-1228.15.4/bsd/net/
H A Dif_stf.c496 * ip6_dst has priority as it may be able to give us shorter IPv4 hops.
498 if (IN6_IS_ADDR_6TO4(&ip6->ip6_dst))
499 in4 = GET_V4(&ip6->ip6_dst);
716 if (stf_checkaddr6(sc, &ip6.ip6_dst, NULL) < 0 ||

Completed in 137 milliseconds

12