Searched refs:sin6_addr (Results 1 - 25 of 330) sorted by relevance

1234567891011>>

/freebsd-head/contrib/ntp/sntp/libevent/
H A Dipv6-internal.h68 struct in6_addr sin6_addr; member in struct:sockaddr_in6
/freebsd-head/contrib/libevent/
H A Dipv6-internal.h68 struct in6_addr sin6_addr; member in struct:sockaddr_in6
/freebsd-head/contrib/sendmail/libsm/
H A Dt-inet6_ntop.c47 r = inet_pton(AF_INET6, ip, &addr.sin6_addr);
49 ipf = sm_inet6_ntop(&addr.sin6_addr, ipv6str, sizeof(ipv6str));
/freebsd-head/sys/ofed/drivers/infiniband/core/
H A Dib_iwpm_util.c67 if (!memcmp(&a6_sockaddr->sin6_addr,
68 &b6_sockaddr->sin6_addr, sizeof(struct in6_addr))
94 msg, &sockaddr_v6->sin6_addr,
/freebsd-head/tests/sys/net/routing/
H A Drtsock_config.h107 inet_pton(AF_INET6, buf, &c->net6.sin6_addr);
117 memcpy(&c->addr6.sin6_addr, &c->net6.sin6_addr, sizeof(struct in6_addr));
119 c->addr6.sin6_addr._s6_addr32[3] = htonl(ntohl(c->net6.sin6_addr._s6_addr32[3]) + 1);
121 inet_ntop(AF_INET6, &c->net6.sin6_addr, c->net6_str, INET6_ADDRSTRLEN);
122 inet_ntop(AF_INET6, &c->addr6.sin6_addr, c->addr6_str, INET6_ADDRSTRLEN);
/freebsd-head/sys/netinet6/
H A Din6_fib.c119 pnh6->nh_addr = gw->sin6_addr;
126 if (IN6_IS_ADDR_UNSPECIFIED(&gw->sin6_addr))
147 pnh6->nh_addr = gw->sin6_addr;
154 if (IN6_IS_ADDR_UNSPECIFIED(&gw->sin6_addr))
189 sin6.sin6_addr = *dst;
193 sin6.sin6_addr.s6_addr16[1] = htons(scopeid & 0xffff);
201 fib6_rte_to_nh_basic(rte, &sin6.sin6_addr, flags, pnh6);
240 sin6.sin6_addr = *dst;
243 sin6.sin6_addr.s6_addr16[1] = htons(scopeid & 0xffff);
258 fib6_rte_to_nh_extended(rte, &sin6.sin6_addr, flag
[all...]
H A Dscope6.c327 zoneid = scope6_addr2default(&sin6->sin6_addr);
330 (IN6_IS_SCOPE_LINKLOCAL(&sin6->sin6_addr) ||
331 IN6_IS_ADDR_MC_INTFACELOCAL(&sin6->sin6_addr))) {
342 sin6->sin6_addr.s6_addr16[1] = htons(zoneid & 0xffff);
358 if (IN6_IS_SCOPE_LINKLOCAL(&sin6->sin6_addr) ||
359 IN6_IS_ADDR_MC_INTFACELOCAL(&sin6->sin6_addr)) {
363 zoneid = ntohs(sin6->sin6_addr.s6_addr16[1]);
378 ip6_sprintf(ip6buf, &sin6->sin6_addr),
381 sin6->sin6_addr.s6_addr16[1] = 0;
525 scope = in6_addrscope(&sa6->sin6_addr);
[all...]
H A Din6_src.c165 printf("in6_selectsrc: replace %s with %s by %d\n", ia_best ? ip6_sprintf(ip6buf, &ia_best->ia_addr.sin6_addr) : "none", ip6_sprintf(ip6b, &ia->ia_addr.sin6_addr), (r)); \
172 printf("in6_selectsrc: keep %s against %s by %d\n", ia_best ? ip6_sprintf(ip6buf, &ia_best->ia_addr.sin6_addr) : "none", ip6_sprintf(ip6b, &ia->ia_addr.sin6_addr), (r)); \
200 dst = dstsock->sin6_addr; /* make a copy for local operation */
265 bcopy(&ia->ia_addr.sin6_addr, srcp, sizeof(*srcp));
329 src = ia->ia_addr.sin6_addr;
346 prison_check_ip6(cred, &ia->ia_addr.sin6_addr) != 0)
350 if (IN6_ARE_ADDR_EQUAL(&dst, &ia->ia_addr.sin6_addr)) {
361 new_scope = in6_addrscope(&ia->ia_addr.sin6_addr);
[all...]
H A Dnd6_rtr.c510 pr.ndpr_prefix.sin6_addr = pi->nd_opt_pi_prefix;
693 gate.sin6_addr = new->rtaddr;
724 gate.sin6_addr = dr->rtaddr;
1220 plen0 = in6_mask2len(&ib->ia_prefixmask.sin6_addr, NULL);
1230 in6_prepare_ifra(&ifra, &pr->ndpr_prefix.sin6_addr, &mask);
1232 IN6_MASK_ADDR(&ifra.ifra_addr.sin6_addr, &mask);
1234 ifra.ifra_addr.sin6_addr.s6_addr32[0] |=
1235 (ib->ia_addr.sin6_addr.s6_addr32[0] & ~mask.s6_addr32[0]);
1236 ifra.ifra_addr.sin6_addr.s6_addr32[1] |=
1237 (ib->ia_addr.sin6_addr
[all...]
H A Dip6_fastfwd.c62 if (fib6_lookup_nh_basic(M_GETFIB(m), &dst->sin6_addr,
154 dst.sin6_addr = ip6->ip6_dst;
187 dst.sin6_addr = ip6->ip6_dst;
251 !IN6_ARE_ADDR_EQUAL(&dst.sin6_addr, &ip6->ip6_dst)) {
257 dst.sin6_addr = ip6->ip6_dst;
281 dst.sin6_addr = nh.nh_addr;
282 if (IN6_IS_SCOPE_LINKLOCAL(&dst.sin6_addr))
283 dst.sin6_addr.s6_addr16[1] = htons(nh.nh_ifp->if_index & 0xffff);
H A Din6.c406 error = in6_setscope(&sa6->sin6_addr, ifp, NULL);
410 &sa6->sin6_addr)) != 0)
412 ia = in6ifa_ifpwithaddr(ifp, &sa6->sin6_addr);
577 if ((ia = in6ifa_ifpwithaddr(ifp, &ifra->ifra_addr.sin6_addr))
611 pr0.ndpr_plen = in6_mask2len(&ifra->ifra_prefixmask.sin6_addr,
619 IN6_MASK_ADDR(&pr0.ndpr_prefix.sin6_addr,
620 &ifra->ifra_prefixmask.sin6_addr);
786 mltaddr.s6_addr32[3] = ifra->ifra_addr.sin6_addr.s6_addr32[3];
934 ifra->ifra_addr.sin6_addr = *addr;
939 ifra->ifra_prefixmask.sin6_addr
[all...]
H A Din6_rmx.c114 if (IN6_IS_ADDR_MULTICAST(&sin6->sin6_addr))
133 ->sin6_addr,
134 &sin6->sin6_addr)) {
164 rh = rt_table_init(offsetof(struct sockaddr_in6, sin6_addr) << 3,
H A Dip6_mroute.c310 if (IN6_ARE_ADDR_EQUAL(&_rt->mf6c_origin.sin6_addr, &(o)) && \
311 IN6_ARE_ADDR_EQUAL(&_rt->mf6c_mcastgrp.sin6_addr, &(g)) && \
499 MF6CFIND(req->src.sin6_addr, req->grp.sin6_addr, rt);
823 MF6CFIND(mfccp->mf6cc_origin.sin6_addr,
824 mfccp->mf6cc_mcastgrp.sin6_addr, rt);
829 ip6_sprintf(ip6bufo, &mfccp->mf6cc_origin.sin6_addr),
830 ip6_sprintf(ip6bufg, &mfccp->mf6cc_mcastgrp.sin6_addr),
843 hash = MF6CHASH(mfccp->mf6cc_origin.sin6_addr,
844 mfccp->mf6cc_mcastgrp.sin6_addr);
[all...]
H A Din6_pcb.c160 if ((error = prison_local_ip6(cred, &sin6->sin6_addr,
165 if (IN6_IS_ADDR_MULTICAST(&sin6->sin6_addr)) {
182 } else if (!IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr)) {
218 if (!IN6_IS_ADDR_MULTICAST(&sin6->sin6_addr) &&
221 &sin6->sin6_addr, lport,
228 (!IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr) ||
247 IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr)) {
270 t = in6_pcblookup_local(pcbinfo, &sin6->sin6_addr,
290 IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr)) {
317 inp->in6p_laddr = sin6->sin6_addr;
[all...]
H A Dsctp6_usrreq.c121 src.sin6_addr = ip6->ip6_src;
122 if (in6_setscope(&src.sin6_addr, m->m_pkthdr.rcvif, NULL) != 0) {
129 dst.sin6_addr = ip6->ip6_dst;
130 if (in6_setscope(&dst.sin6_addr, m->m_pkthdr.rcvif, NULL) != 0) {
323 src.sin6_addr = ip6cp->ip6c_ip6->ip6_src;
324 if (in6_setscope(&src.sin6_addr, ip6cp->ip6c_m->m_pkthdr.rcvif, NULL) != 0) {
331 dst.sin6_addr = ip6cp->ip6c_ip6->ip6_dst;
332 if (in6_setscope(&dst.sin6_addr, ip6cp->ip6c_m->m_pkthdr.rcvif, NULL) != 0) {
621 if (IN6_IS_ADDR_UNSPECIFIED(&sin6_p->sin6_addr)) {
625 if (IN6_IS_ADDR_V4MAPPED(&sin6_p->sin6_addr)) {
[all...]
H A Din6_gif.c162 CK_LIST_FOREACH(sc, &GIF_SRCHASH(&sin->sin6_addr), srchash) {
164 &sin->sin6_addr) == 0)
222 if (IN6_IS_ADDR_UNSPECIFIED(&src->sin6_addr) ||
223 IN6_IS_ADDR_UNSPECIFIED(&dst->sin6_addr)) {
240 error = in6_gif_checkdup(sc, &src->sin6_addr,
241 &dst->sin6_addr);
250 ip6->ip6_src = src->sin6_addr;
251 ip6->ip6_dst = dst->sin6_addr;
276 src->sin6_addr = (cmd == SIOCGIFPSRCADDR_IN6) ?
/freebsd-head/crypto/heimdal/lib/roken/
H A Dinet_pton.c81 memcpy(dst, &si6.sin6_addr, sizeof(si6.sin6_addr));
H A Dgetnameinfo.c105 return doit (AF_INET6, &sin6->sin6_addr, sizeof(sin6->sin6_addr),
/freebsd-head/sys/compat/linuxkpi/common/include/linux/
H A Dinetdevice.h71 sin6.sin6_addr = addr;
77 sin6.sin6_addr.s6_addr16[1] = htons(scope_id);
/freebsd-head/contrib/llvm-project/lldb/source/Host/common/
H A DSocketAddress.cpp145 if (inet_ntop(GetFamily(), &m_socket_addr.sa_ipv6.sin6_addr, str,
266 m_socket_addr.sa_ipv6.sin6_addr = in6addr_loopback;
288 m_socket_addr.sa_ipv6.sin6_addr = in6addr_any;
300 : 0 == memcmp(&m_socket_addr.sa_ipv6.sin6_addr, &in6addr_any, 16);
306 : 0 == memcmp(&m_socket_addr.sa_ipv6.sin6_addr, &in6addr_loopback,
320 return 0 == memcmp(&m_socket_addr.sa_ipv6.sin6_addr,
321 &rhs.m_socket_addr.sa_ipv6.sin6_addr, 16);
/freebsd-head/tools/regression/netinet6/ip6_sockets/
H A Dip6_sockets.c65 sin6.sin6_addr = in6addr_loopback;
/freebsd-head/cddl/lib/libdtrace/
H A Dnfs.d61 P->rq_xprt->xp_xpc.xpc_lcladdr.buf)->sin6_addr) :
71 P->rq_xprt->xp_xpc.xpc_rtaddr.buf)->sin6_addr) :
84 inet_ntoa6(&((struct sockaddr_in6 *)&P->rc_addr)->sin6_addr);
/freebsd-head/contrib/tcp_wrappers/
H A Dhosts_access.c387 return (!memcmp(&pat.sin6_addr, &addr.sin6_addr,
465 if (IN6_IS_ADDR_V4MAPPED(&addr.sin6_addr)) {
466 if ((*(u_int32_t *)&net.sin6_addr.s6_addr[12] = dot_quad_addr(net_tok)) == INADDR_NONE
469 return ((*(u_int32_t *)&addr.sin6_addr.s6_addr[12] & mask) == *(u_int32_t *)&net.sin6_addr.s6_addr[12]);
493 if ((*(u_int32_t *)&addr.sin6_addr.s6_addr[i] & mask) != (*(u_int32_t *)&net.sin6_addr.s6_addr[i] & mask))
497 if (*(u_int32_t *)&addr.sin6_addr.s6_addr[i] != *(u_int32_t *)&net.sin6_addr
[all...]
/freebsd-head/usr.sbin/rtsold/
H A Drtsol.c241 inet_ntop(AF_INET6, &from.sin6_addr, ntopbuf,
250 inet_ntop(AF_INET6, &from.sin6_addr, ntopbuf,
260 inet_ntop(AF_INET6, &from.sin6_addr, ntopbuf,
266 if (pi && !IN6_IS_ADDR_LINKLOCAL(&from.sin6_addr)) {
269 inet_ntop(AF_INET6, &from.sin6_addr, ntopbuf,
280 inet_ntop(AF_INET6, &from.sin6_addr, ntopbuf,
288 inet_ntop(AF_INET6, &from.sin6_addr, ntopbuf, sizeof(ntopbuf)),
316 memcpy(&rai->rai_saddr.sin6_addr, &from.sin6_addr,
317 sizeof(rai->rai_saddr.sin6_addr));
[all...]
/freebsd-head/contrib/wpa/wpa_supplicant/
H A Dctrl_iface_udp.c100 inet_ntop(AF_INET6, &from->sin6_addr, addr, sizeof(*from)),
127 !os_memcmp(&from->sin6_addr, &dst->addr.sin6_addr,
128 sizeof(from->sin6_addr))) {
130 inet_ntop(AF_INET6, &from->sin6_addr, addr,
174 !os_memcmp(&from->sin6_addr, &dst->addr.sin6_addr,
175 sizeof(from->sin6_addr))) {
177 inet_ntop(AF_INET6, &from->sin6_addr, addr,
248 inet_ntop(AF_INET6, &from.sin6_addr, add
[all...]

Completed in 390 milliseconds

1234567891011>>