Searched defs:sa6 (Results 1 - 25 of 28) sorted by relevance

12

/freebsd-head/tools/tools/ifpifa/
H A Difpifa.c96 struct sockaddr_in6 *sa6; member in union:__anon10542
171 inet_ntop(AF_INET6, &sa.sa6->sin6_addr,
/freebsd-head/contrib/ntp/lib/isc/unix/
H A Dinterfaceiter.c73 struct sockaddr_in6 *sa6; local
91 sa6 = (struct sockaddr_in6 *)(void *)src;
92 memcpy(&dst->type.in6, &sa6->sin6_addr,
95 if (sa6->sin6_scope_id != 0)
96 isc_netaddr_setzone(dst, sa6->sin6_scope_id);
109 if (IN6_IS_ADDR_LINKLOCAL(&sa6->sin6_addr)) {
112 memcpy(&zone16, &sa6->sin6_addr.s6_addr[2],
/freebsd-head/contrib/bearssl/samples/
H A Dserver_basic.c115 struct sockaddr_in6 sa6; local
131 sa6 = *(struct sockaddr_in6 *)sa;
132 sa = (struct sockaddr *)&sa6;
133 sa_len = sizeof sa6;
134 addr = &sa6.sin6_addr;
136 sa6.sin6_addr = in6addr_any;
/freebsd-head/contrib/ntp/include/
H A Dntp_net.h31 struct sockaddr_in6 sa6; member in union:__anon204
38 #define SOCK_ADDR6(psau) ((psau)->sa6.sin6_addr)
77 #define SCOPE_VAR(psau) ((psau)->sa6.sin6_scope_id)
124 : sizeof((psau)->sa6))
131 memset((psau)->sa6.sin6_addr.s6_addr, (v), \
132 sizeof((psau)->sa6.sin6_addr.s6_addr))
171 ADDR6_EQ(&(psau)->sa6.sin6_addr, pin6)
/freebsd-head/sys/netinet6/
H A Dscope6.c521 sa6_checkzone(struct sockaddr_in6 *sa6) argument
525 scope = in6_addrscope(&sa6->sin6_addr);
527 return (sa6->sin6_scope_id ? EINVAL: 0);
528 if (IN6_IS_ADDR_MULTICAST(&sa6->sin6_addr) &&
531 if (sa6->sin6_scope_id == 0 && V_ip6_use_defzone != 0)
532 sa6->sin6_scope_id = V_sid_default.s6id_list[scope];
541 if (IN6_IS_ADDR_LOOPBACK(&sa6->sin6_addr)) {
542 if (sa6->sin6_scope_id == 0)
543 sa6->sin6_scope_id = in6_getscopezone(V_loif, scope);
544 else if (sa6
561 sa6_checkzone_ifp(struct ifnet *ifp, struct sockaddr_in6 *sa6) argument
[all...]
H A Din6_src.c749 struct sockaddr_in6 *sa6; local
753 sa6 = (struct sockaddr_in6 *)&ro->ro_dst;
754 *sa6 = *dstsock;
755 sa6->sin6_scope_id = 0;
759 ntohl(sa6->sin6_addr.s6_addr32[3]), fibnum);
H A Dip6_output.c2928 struct sockaddr_in6 *sa6 = (struct sockaddr_in6 *)buf; local
2931 if (sa6->sin6_len != sizeof(struct sockaddr_in6))
2934 if (IN6_IS_ADDR_UNSPECIFIED(&sa6->sin6_addr) ||
2935 IN6_IS_ADDR_MULTICAST(&sa6->sin6_addr)) {
2938 if ((error = sa6_embedscope(sa6, V_ip6_use_defzone))
H A Din6.c248 struct sockaddr_in6 *sa6; local
361 sa6 = &ifra->ifra_addr;
379 sa6 = &ifr->ifr_addr;
394 sa6 = NULL;
397 if (sa6 && sa6->sin6_family == AF_INET6) {
398 if (sa6->sin6_scope_id != 0)
399 error = sa6_embedscope(sa6, 0);
401 error = in6_setscope(&sa6->sin6_addr, ifp, NULL);
405 &sa6
1728 in6_is_addr_deprecated(struct sockaddr_in6 *sa6) argument
[all...]
H A Dnd6_rtr.c2204 struct sockaddr_in6 sa6, mask6; local
2216 bzero(&sa6, sizeof(sa6));
2217 sa6.sin6_family = AF_INET6;
2218 sa6.sin6_len = sizeof(sa6);
2219 bcopy(&pr->ndpr_prefix.sin6_addr, &sa6.sin6_addr,
2223 mask6.sin6_len = sizeof(sa6);
2237 error = in6_rtrequest(RTM_DELETE, (struct sockaddr *)&sa6, NULL,
2303 ip6_sprintf(ip6buf, &sa6
[all...]
/freebsd-head/sys/netpfil/ipfw/
H A Dip_fw_pfil.c218 struct sockaddr_in6 *sa6; local
220 sa6 = satosin6(tag + 1);
222 sa6->sin6_family = AF_INET6;
223 sa6->sin6_len = sizeof(*sa6);
224 sa6->sin6_addr = args.hopstore6.sin6_addr;
225 sa6->sin6_port = args.hopstore6.sin6_port;
226 sa6->sin6_scope_id =
234 if (sa6_embedscope(sa6, V_ip6_use_defzone) != 0) {
238 if (in6_localip(&sa6
[all...]
/freebsd-head/lib/libc/net/
H A Dgetnameinfo.c382 ip6_sa2str(const struct sockaddr_in6 *sa6, char *buf, size_t bufsiz, int flags) argument
388 ifindex = (unsigned int)sa6->sin6_scope_id;
389 a6 = &sa6->sin6_addr;
392 n = snprintf(buf, bufsiz, "%u", sa6->sin6_scope_id);
409 n = snprintf(buf, bufsiz, "%u", sa6->sin6_scope_id);
H A Dname6.c1081 struct sockaddr_in6 *sa6; local
1088 sa6 = (struct sockaddr_in6 *)sa;
1089 if (IN6_IS_ADDR_MULTICAST(&sa6->sin6_addr)) {
1091 return(sa6->sin6_addr.s6_addr[2] & 0x0f);
1098 if (IN6_IS_ADDR_LOOPBACK(&sa6->sin6_addr))
1100 if (IN6_IS_ADDR_LINKLOCAL(&sa6->sin6_addr))
1102 if (IN6_IS_ADDR_SITELOCAL(&sa6->sin6_addr))
H A Dgetaddrinfo.c1100 struct sockaddr_in6 *sa6; local
1107 sa6 = (struct sockaddr_in6 *)sa;
1108 if (IN6_IS_ADDR_MULTICAST(&sa6->sin6_addr)) {
1110 return(sa6->sin6_addr.s6_addr[2] & 0x0f);
1117 if (IN6_IS_ADDR_LOOPBACK(&sa6->sin6_addr))
1119 if (IN6_IS_ADDR_LINKLOCAL(&sa6->sin6_addr))
1121 if (IN6_IS_ADDR_SITELOCAL(&sa6->sin6_addr))
/freebsd-head/crypto/openssh/openbsd-compat/
H A Dport-aix.c419 struct sockaddr_in6 *sa6; local
424 sa6 = (struct sockaddr_in6 *)sa;
425 a6 = sa6->sin6_addr.u6_addr.u6_addr32;
429 snprintf(serv, servlen, "%d", sa6->sin6_port);
/freebsd-head/lib/msun/src/
H A Ds_erf.c175 sa6 = 1.08635005541779435134e+02, /* 0x405B28A3, 0xEE48AE2C */ variable
233 S=one+s*(sa1+s*(sa2+s*(sa3+s*(sa4+s*(sa5+s*(sa6+s*(sa7+
291 S=one+s*(sa1+s*(sa2+s*(sa3+s*(sa4+s*(sa5+s*(sa6+s*(sa7+
/freebsd-head/usr.bin/netstat/
H A Droute.c458 * The sa6->sin6_scope_id must be filled here because
461 * sa6->sin6_addr.s6_addr[2].
678 in6_fillscopeid(struct sockaddr_in6 *sa6) argument
685 if (IN6_IS_ADDR_LINKLOCAL(&sa6->sin6_addr) ||
686 IN6_IS_ADDR_MC_NODELOCAL(&sa6->sin6_addr) ||
687 IN6_IS_ADDR_MC_LINKLOCAL(&sa6->sin6_addr)) {
688 if (sa6->sin6_scope_id == 0)
689 sa6->sin6_scope_id =
690 ntohs(*(u_int16_t *)&sa6->sin6_addr.s6_addr[2]);
691 sa6
710 netname6(struct sockaddr_in6 *sa6, struct sockaddr_in6 *mask) argument
[all...]
/freebsd-head/usr.bin/systat/
H A Dnetstat.c363 struct sockaddr_in6 *sa6; local
383 sa6 = (struct sockaddr_in6 *)&lsa;
384 memcpy(&sa6->sin6_addr, &inc->inc6_laddr,
386 sa6->sin6_port = inc->inc_lport;
387 sa6->sin6_family = AF_INET6;
388 sa6->sin6_len = sizeof(struct sockaddr_in6);
390 sa6 = (struct sockaddr_in6 *)&fsa;
391 memcpy(&sa6->sin6_addr, &inc->inc6_faddr,
393 sa6->sin6_port = inc->inc_fport;
394 sa6
[all...]
/freebsd-head/usr.sbin/ppp/
H A Droute.c721 struct sockaddr_in6 *sa6; local
725 sa6 = (struct sockaddr_in6 *)sa;
726 if (!IN6_IS_ADDR_LINKLOCAL(&sa6->sin6_addr) &&
727 !IN6_IS_ADDR_MC_LINKLOCAL(&sa6->sin6_addr))
729 if (*(u_int16_t *)&sa6->sin6_addr.s6_addr[2] != 0)
731 *(u_int16_t *)&sa6->sin6_addr.s6_addr[2] = htons(ifindex);
/freebsd-head/crypto/openssh/
H A Dloginrec.c651 struct sockaddr_in6 *sa6; local
705 sa6 = ((struct sockaddr_in6 *)&li->hostaddr.sa);
706 memcpy(ut->ut_addr_v6, sa6->sin6_addr.s6_addr, 16);
707 if (IN6_IS_ADDR_V4MAPPED(&sa6->sin6_addr)) {
742 struct sockaddr_in6 *sa6; local
787 sa6 = ((struct sockaddr_in6 *)&li->hostaddr.sa);
788 memcpy(utx->ut_addr_v6, sa6->sin6_addr.s6_addr, 16);
789 if (IN6_IS_ADDR_V4MAPPED(&sa6->sin6_addr)) {
H A Dsshconnect.c279 struct sockaddr_in6 *sa6; local
311 sa6 = (struct sockaddr_in6 *)ifa->ifa_addr;
312 v6addr = &sa6->sin6_addr;
323 memcpy(resultp, sa6, *rlenp);
/freebsd-head/contrib/bearssl/tools/
H A Dserver.c71 struct sockaddr_in6 sa6; local
86 memcpy(&sa6, sa, sizeof sa6);
87 sa = (struct sockaddr *)&sa6;
88 sa_len = sizeof sa6;
89 addr = &sa6.sin6_addr;
91 sa6.sin6_addr = in6addr_any;
/freebsd-head/lib/msun/ld128/
H A Ds_erfl.c123 sa6 = 6.76963075165099718574753447122393797e+06L, /* 0x40159d2f, 0x7b01b0cc, 0x8bac9e95, 0x5d35d56e */ variable
239 S=one+s*(sa1+s*(sa2+s*(sa3+s*(sa4+s*(sa5+s*(sa6+s*(sa7+
306 S=one+s*(sa1+s*(sa2+s*(sa3+s*(sa4+s*(sa5+s*(sa6+s*(sa7+
/freebsd-head/contrib/unbound/respip/
H A Drespip.c540 struct sockaddr_in6* sa6 = (struct sockaddr_in6*)ss; local
542 memset(sa6, 0, sizeof(*sa6));
543 sa6->sin6_family = AF_INET6;
544 memcpy(&sa6->sin6_addr, rd->rr_data[i] + 2,
545 sizeof(sa6->sin6_addr));
546 *addrlenp = sizeof(*sa6);
/freebsd-head/lib/msun/ld80/
H A Ds_erfl.c151 #define sa6 (sa6u.e) macro
262 S=one+s*(sa1+s*(sa2+s*(sa3+s*(sa4+s*(sa5+s*(sa6+s*(sa7+
321 S=one+s*(sa1+s*(sa2+s*(sa3+s*(sa4+s*(sa5+s*(sa6+s*(sa7+
/freebsd-head/sbin/ipfw/
H A Dtables.c1774 struct sockaddr_in6 sa6; local
1833 sa6.sin6_family = AF_INET6;
1834 sa6.sin6_len = sizeof(sa6);
1835 sa6.sin6_addr = v->nh6;
1836 sa6.sin6_port = 0;
1837 sa6.sin6_scope_id = v->zoneid;
1838 if (getnameinfo((const struct sockaddr *)&sa6,
1839 sa6.sin6_len, abuf, sizeof(abuf), NULL, 0,

Completed in 341 milliseconds

12