Home
last modified time | relevance | path

Searched refs:sin6_scope_id (Results 1 – 25 of 112) sorted by relevance

12345

/freebsd/sys/netinet6/
H A Dscope6.c326 if ((zoneid = sin6->sin6_scope_id) == 0 && defaultok) in sa6_embedscope()
349 sin6->sin6_scope_id = 0; in sa6_embedscope()
380 if (sin6->sin6_scope_id != 0 && in sa6_recoverscope()
381 zoneid != sin6->sin6_scope_id) { in sa6_recoverscope()
386 sin6->sin6_scope_id); in sa6_recoverscope()
389 sin6->sin6_scope_id = zoneid; in sa6_recoverscope()
560 return (sa6->sin6_scope_id ? EINVAL: 0); in sa6_checkzone()
564 if (sa6->sin6_scope_id == 0 && V_ip6_use_defzone != 0) in sa6_checkzone()
565 sa6->sin6_scope_id = V_sid_default.s6id_list[scope]; in sa6_checkzone()
575 if (sa6->sin6_scope_id == 0) in sa6_checkzone()
[all …]
H A Dip6_forward.c183 dst.sin6_scope_id = in6_get_unicast_scopeid(&ip6->ip6_dst, m->m_pkthdr.rcvif); in ip6_forward()
185 nh = fib6_lookup(M_GETFIB(m), &dst.sin6_addr, dst.sin6_scope_id, in ip6_forward()
258 dst.sin6_scope_id = ntohs(in6_getscope(&dst.sin6_addr)); in ip6_forward()
340 dst.sin6_scope_id = ntohs(in6_getscope(&ip6->ip6_dst)); in ip6_forward()
369 dst.sin6_scope_id = ntohs(in6_getscope(&gw6->sin6_addr)); in ip6_forward()
393 in6_set_unicast_scopeid(&dst.sin6_addr, dst.sin6_scope_id); in ip6_forward()
394 dst.sin6_scope_id = 0; in ip6_forward()
/freebsd/contrib/tcp_wrappers/
H A Dhosts_access.c369 if (pat.sin6_scope_id != 0 && in string_match()
370 addr.sin6_scope_id != pat.sin6_scope_id) in string_match()
464 if (net.sin6_scope_id != 0 && addr.sin6_scope_id != net.sin6_scope_id) in masked_match6()
H A Dsocket.c289 if (((struct sockaddr_in6 *)sin)->sin6_scope_id != in sock_hostname()
290 ((struct sockaddr_in6 *)res->ai_addr)->sin6_scope_id) { in sock_hostname()
/freebsd/lib/libutil/
H A Drealhostname.c165 SOCKADDR_IN6(sa)->sin6_scope_id == 0) in realhostname_sa()
166 SOCKADDR_IN6(sa)->sin6_scope_id = in realhostname_sa()
167 SOCKADDR_IN6(addr)->sin6_scope_id; in realhostname_sa()
/freebsd/usr.sbin/rpcbind/
H A Dutil.c217 (((struct sockaddr_in6*)hint_sa)->sin6_scope_id == in addrmerge()
218 (((struct sockaddr_in6*)ifsa)->sin6_scope_id))) { in addrmerge()
234 (SA2SIN6(ifsa)->sin6_scope_id == in addrmerge()
235 SA2SIN6(caller_sa)->sin6_scope_id)) { in addrmerge()
/freebsd/contrib/ntp/libntp/lib/isc/
H A Dsockaddr.c86 a->type.sin6.sin6_scope_id != b->type.sin6.sin6_scope_id && in isc_sockaddr_compare()
88 (a->type.sin6.sin6_scope_id != 0 && in isc_sockaddr_compare()
89 b->type.sin6.sin6_scope_id != 0))) in isc_sockaddr_compare()
394 sockaddr->type.sin6.sin6_scope_id = isc_netaddr_getzone(na); in isc_sockaddr_fromnetaddr()
/freebsd/usr.sbin/ifmcstat/
H A Difmcstat.c460 if6a.ia_addr.sin6_scope_id)); in if6_addrlist()
776 sin6.sin6_scope_id = scope_id; in inet6_n2a()
1109 pifasa->sin6.sin6_scope_id); in ifmcstat_getifmaddrs()
1133 pifasa->sin6.sin6_scope_id) in ifmcstat_getifmaddrs()
1135 pifasa->sin6.sin6_scope_id); in ifmcstat_getifmaddrs()
1198 pgsa->sin6.sin6_scope_id); in ifmcstat_getifmaddrs()
1212 pgsa->sin6.sin6_scope_id) in ifmcstat_getifmaddrs()
1214 pgsa->sin6.sin6_scope_id); in ifmcstat_getifmaddrs()
/freebsd/usr.sbin/ndp/
H A Dndp_netlink.c139 return (dst->sin6_scope_id); in guess_ifindex()
368 dst->sin6_scope_id = neigh.nda_ifindex; in print_entries_nl()
373 addr->sin6_scope_id != dst->sin6_scope_id) in print_entries_nl()
H A Dndp.c511 sin6->sin6_scope_id = in getaddr()
512 ((struct sockaddr_in6 *)res->ai_addr)->sin6_scope_id; in getaddr()
699 addr->sin6_scope_id != sin->sin6_scope_id) in dump_rtsock()
707 if (sin->sin6_scope_id == 0) in dump_rtsock()
708 sin->sin6_scope_id = sdl->sdl_index; in dump_rtsock()
/freebsd/sbin/ping/
H A Dping6.c671 if (src.sin6_scope_id == 0) in ping6()
672 src.sin6_scope_id = dst.sin6_scope_id; in ping6()
673 if (dst.sin6_scope_id == 0) in ping6()
674 dst.sin6_scope_id = src.sin6_scope_id; in ping6()
916 if ((dst.sin6_scope_id = if_nametoindex(ifname)) == 0) in ping6()
998 src.sin6_scope_id = dst.sin6_scope_id; in ping6()
1629 dstsa.sin6_scope_id = pktinfo->ipi6_ifindex; in pr_pack()
2222 (mtuctl.ip6m_addr.sin6_scope_id && in get_pathmtu()
2223 dst.sin6_scope_id && in get_pathmtu()
2224 mtuctl.ip6m_addr.sin6_scope_id != in get_pathmtu()
[all …]
/freebsd/tests/sys/net/routing/
H A Drtsock_common.h459 if (a6->sin6_scope_id != b6->sin6_scope_id) { in sa_equal_msg_flags()
460 snprintf(msg, sz, "scope diff: %u vs %u", a6->sin6_scope_id, b6->sin6_scope_id); in sa_equal_msg_flags()
602 sin6->sin6_scope_id = ifindex; in sa_convert_str_to_sa()
/freebsd/contrib/ntp/libntp/lib/isc/unix/
H A Dinterfaceiter.c95 if (sa6->sin6_scope_id != 0) in get_addr()
96 isc_netaddr_setzone(dst, sa6->sin6_scope_id); in get_addr()
/freebsd/usr.sbin/rpcbind/tests/
H A Daddrmerge_test.c140 in6->sin6_scope_id = scope_id; in mock_ifaddr6()
145 mask_in6->sin6_scope_id = scope_id; in mock_ifaddr6()
151 bcast_in6->sin6_scope_id = scope_id; in mock_ifaddr6()
413 caller_in6.sin6_scope_id = 2; /* same as igb0 */ in do_addrmerge6_ll()
/freebsd/lib/libnetbsd/
H A Dsockaddr_snprintf.c80 s[0xe], s[0xf], sin6->sin6_scope_id); in debug_in6()
262 sin6->sin6_scope_id); in sockaddr_snprintf()
/freebsd/usr.sbin/rtsold/
H A Dcap_sendmsg.c163 dst.sin6_scope_id = linkid; in probe_defrouters()
185 dst.sin6_scope_id = linkid; in rssend()
/freebsd/contrib/ntp/libntp/
H A Dis_ip_address.c79 SET_SCOPE(addr, resaddr6->sin6_scope_id); in is_ip_address()
H A Ddecodenetnum.c150 netnum.sa6.sin6_scope_id = scope; in decodenetnum()
/freebsd/lib/libc/resolv/
H A Dres_send.c193 (srv6->sin6_scope_id == 0 || in res_ourserver_p()
194 srv6->sin6_scope_id == in6p->sin6_scope_id) && in res_ourserver_p()
1141 a6->sin6_scope_id == b6->sin6_scope_id && in sock_eq()
/freebsd/sys/netipsec/
H A Dipsec_output.c500 ia2.s6_addr16[1] = htons(sa->sin6_scope_id); in ipsec6_allocsa()
548 sin6->sin6_scope_id = in ipsec6_allocsa()
561 sin6->sin6_scope_id = in ipsec6_allocsa()
1194 htons(saidx->dst.sin6.sin6_scope_id & 0xffff);
1198 htons(saidx->src.sin6.sin6_scope_id & 0xffff);
/freebsd/contrib/blocklist/port/
H A Dsockaddr_snprintf.c135 s[0xe], s[0xf], sin6->sin6_scope_id); in debug_in6()
316 sin6->sin6_scope_id); in sockaddr_snprintf()
/freebsd/sbin/ifconfig/
H A Daf_inet6.c342 if ((satosin6(ifa->ifa_addr))->sin6_scope_id) in in6_status()
344 (satosin6(ifa->ifa_addr))->sin6_scope_id); in in6_status()
390 scopeid = satosin6(ifa->ifa_address)->sin6_scope_id; in in6_status_nl()
393 scopeid = satosin6(ifa->ifa_local)->sin6_scope_id; in in6_status_nl()
/freebsd/contrib/ntp/sntp/m4/
H A Dntp_ipv6.m4323 [for sockaddr_in6.sin6_scope_id],
336 xyzzy.sin6_scope_id = 0;
346 AC_DEFINE([ISC_PLATFORM_HAVESCOPEID], [1], [sin6_scope_id?])
/freebsd/tools/tools/net80211/wlanwatch/
H A Dwlanwatch.c205 sin6.sin6_scope_id == 0) { in routename()
206 sin6.sin6_scope_id = in routename()
/freebsd/crypto/openssh/openbsd-compat/
H A Dfake-rfc2553.h78 u_int32_t sin6_scope_id; member

12345