Searched refs:sin6_scope_id (Results 1 - 20 of 20) sorted by relevance
/darwin-on-arm/xnu/bsd/netinet6/ |
H A D | scope6.c | 320 * Validate the specified scope zone ID in the sin6_scope_id field. If the ID 333 if ((zoneid = sin6->sin6_scope_id) == 0 && defaultok) 357 sin6->sin6_scope_id = 0; 369 sin6->sin6_scope_id = 0; 378 sin6->sin6_scope_id = 0; 389 if (sin6->sin6_scope_id != 0) { 392 ip6_sprintf(&sin6->sin6_addr), sin6->sin6_scope_id); 425 sin6->sin6_scope_id = zoneid;
|
H A D | raw_ip6.c | 415 * XXX advanced-api value overrides sin6_scope_id 441 } else if (dstsock->sin6_scope_id) { 445 * Sinced stsock->sin6_scope_id is unsigned, we don't 448 if (if_index < dstsock->sin6_scope_id) { 454 = htons(dstsock->sin6_scope_id & 0xffff);/*XXX*/ 823 if (addr->sin6_scope_id == 0) { /* not change if specified */ 824 addr->sin6_scope_id = scope6_addr2default(&addr->sin6_addr); 869 if (addr->sin6_scope_id == 0) { /* not change if specified */ 873 addr->sin6_scope_id = scope6_addr2default(&addr->sin6_addr); 932 if (dst->sin6_scope_id [all...] |
H A D | in6.h | 187 __uint32_t sin6_scope_id; /* scope zone index */ member in struct:sockaddr_in6 308 (((a)->sin6_scope_id == 0 || (b)->sin6_scope_id == 0 || \ 309 ((a)->sin6_scope_id == (b)->sin6_scope_id)) && \
|
H A D | in6_pcb.c | 229 sin6->sin6_scope_id = 0; 501 * in6_pcbladdr() may automatically fill in sin6_scope_id. 644 sin6->sin6_scope_id = ntohs(sin6->sin6_addr.s6_addr16[1]); 646 sin6->sin6_scope_id = 0; /*XXX*/ 1254 sin6->sin6_scope_id =
|
H A D | in6_src.c | 336 * XXX: we should probably use sin6_scope_id here. 598 dstsock->sin6_scope_id); /* for debug */ 684 ifscope = dstsock->sin6_scope_id; 1661 * XXX actually, it is over-specification to return ifp against sin6_scope_id. 1679 scopeid = sin6->sin6_scope_id; 1749 * touches sin6_addr and sin6_scope_id only. 1769 sin6->sin6_scope_id = 0; 1787 sin6->sin6_scope_id = scopeid;
|
H A D | in6.c | 814 if (sa6->sin6_scope_id) { 815 if (sa6->sin6_scope_id != 818 sa6->sin6_scope_id = 0; /* XXX: good way? */ 1526 if (dst6.sin6_scope_id == 0) /* user omit to specify the ID. */ 1527 dst6.sin6_scope_id = scopeid; 1528 else if (dst6.sin6_scope_id != scopeid) 1534 dst6.sin6_scope_id = 0; /* XXX */ 2445 s6->sin6_scope_id = 2454 s6->sin6_scope_id =
|
H A D | icmp6.c | 1222 /* sin6.sin6_scope_id = XXX: should be set if DST is a scoped addr */ 1383 sin6.sin6_scope_id = in6_addr2scopeid(m->m_pkthdr.rcvif, 1391 sin6_d.sin6_scope_id = in6_addr2scopeid(m->m_pkthdr.rcvif, 2662 /* we don't currently use sin6_scope_id, but eventually use it */ 2663 src_sa.sin6_scope_id = in6_addr2scopeid(ifp, &sip6->ip6_src); 3136 if (dst->sin6_scope_id == 0) { /* not change if specified */ 3137 dst->sin6_scope_id = scope6_addr2default(&dst->sin6_addr);
|
H A D | nd6_nbr.c | 2225 sin6->sin6_scope_id = sdla->sdl_index; 2226 if (sin6->sin6_scope_id == 0) 2227 sin6->sin6_scope_id = ifp->if_index;
|
H A D | in6_mcast.c | 2050 ssa->sin6.sin6_scope_id = 0; 2077 gsa->sin6.sin6_scope_id = 0; 2340 gsa->sin6.sin6_scope_id = 0; 2381 gsa->sin6.sin6_scope_id = 0;
|
H A D | ipsec.c | 1203 sin6->sin6_scope_id = ntohs(ip6->ip6_src.s6_addr16[1]); 1214 sin6->sin6_scope_id = ntohs(ip6->ip6_dst.s6_addr16[1]); 3332 sin6->sin6_scope_id = ntohs(ip6->ip6_src.s6_addr16[1]); 3345 sin6->sin6_scope_id = ntohs(ip6->ip6_dst.s6_addr16[1]); 3515 sin6->sin6_scope_id = ntohs(ip6->ip6_src.s6_addr16[1]); 3528 sin6->sin6_scope_id = ntohs(ip6->ip6_dst.s6_addr16[1]);
|
H A D | ip6_output.c | 635 ip6->ip6_dst.s6_addr16[1] = htons(ro->ro_dst.sin6_scope_id); 1004 if (sa6_recoverscope(&src_sa, TRUE) || zone != src_sa.sin6_scope_id) 1015 if (sa6_recoverscope(&dst_sa, TRUE) || zone != dst_sa.sin6_scope_id) {
|
H A D | nd6.c | 1505 if (sin6_copy.sin6_scope_id == zone) 3153 sin6.sin6_scope_id = 0;
|
/darwin-on-arm/xnu/bsd/net/ |
H A D | route.c | 455 SIN6IFSCOPE(sa)->sin6_scope_id = ifscope; 479 return (SIN6IFSCOPE(sa)->sin6_scope_id); 532 * use that as the value for sin6_scope_id as long 541 * If sin6_scope_id is set but the address doesn't 586 SIN6IFSCOPE(dst)->sin6_scope_id = ifscope; 588 offsetof(struct sockaddr_in6, sin6_scope_id) + 589 sizeof (SIN6IFSCOPE(dst)->sin6_scope_id); 647 SIN6IFSCOPE(sa)->sin6_scope_id != IFSCOPE_NONE) { 687 SIN6IFSCOPE(ss)->sin6_scope_id = IFSCOPE_NONE; 724 (SIN6IFSCOPE(rt_key(rt))->sin6_scope_id [all...] |
H A D | ntstat.c | 138 if (sin6->sin6_scope_id == 0) 139 sin6->sin6_scope_id = ntohs(sin6->sin6_addr.__u6_addr.__u6_addr16[1]); 177 sin6->sin6_scope_id = ntohs(sin6->sin6_addr.__u6_addr.__u6_addr16[1]);
|
H A D | dlil.c | 5594 src_rt.ro_dst.sin6_scope_id = in6_addr2scopeid(ifp, src_ip6);
|
/darwin-on-arm/xnu/bsd/netinet/ |
H A D | tcp_usrreq.c | 1210 if (IN6_IS_SCOPE_LINKLOCAL(&ina6_local) && itpl->itpl_local_sin6.sin6_scope_id) 1211 ina6_local.s6_addr16[1] = htons(itpl->itpl_local_sin6.sin6_scope_id); 1214 if (IN6_IS_SCOPE_LINKLOCAL(&ina6_remote) && itpl->itpl_remote_sin6.sin6_scope_id) 1215 ina6_remote.s6_addr16[1] = htons(itpl->itpl_remote_sin6.sin6_scope_id);
|
H A D | tcp_input.c | 1815 sin6->sin6_scope_id = 0;
|
/darwin-on-arm/xnu/bsd/netkey/ |
H A D | key.c | 1195 sin6.sin6_scope_id = 1232 sin6.sin6_scope_id = 5028 * scope_id check. if sin6_scope_id is 0, we regard it 5031 if (satosin6(&spidx0->src)->sin6_scope_id && 5032 satosin6(&spidx1->src)->sin6_scope_id && 5033 satosin6(&spidx0->src)->sin6_scope_id != 5034 satosin6(&spidx1->src)->sin6_scope_id) 5063 * scope_id check. if sin6_scope_id is 0, we regard it 5066 if (satosin6(&spidx0->src)->sin6_scope_id && 5067 satosin6(&spidx1->src)->sin6_scope_id [all...] |
H A D | key_debug.c | 746 sin6->sin6_flowinfo, sin6->sin6_scope_id);
|
/darwin-on-arm/xnu/bsd/nfs/ |
H A D | nfs_subs.c | 1915 sin6->sin6_scope_id = ifnet_index(interface); 1919 sin6->sin6_scope_id = strtoul(pscope, NULL, 10);
|
Completed in 217 milliseconds