Searched defs:sin6 (Results 1 - 25 of 164) sorted by relevance

1234567

/freebsd-head/tools/regression/netinet6/ip6_sockets/
H A Dip6_sockets.c44 struct sockaddr_in6 sin6; local
62 bzero(&sin6, sizeof(sin6));
63 sin6.sin6_len = sizeof(sin6);
64 sin6.sin6_family = AF_INET6;
65 sin6.sin6_addr = in6addr_loopback;
66 sin6.sin6_port = htons(1024);
67 if (connect(s, (struct sockaddr *)&sin6, sizeof(sin6)) <
[all...]
/freebsd-head/contrib/ipfilter/lib/
H A Dgethost.c61 struct sockaddr_in6 *sin6; local
68 sin6 = (struct sockaddr_in6 *)res->ai_addr;
69 hostp->in6 = sin6->sin6_addr;
/freebsd-head/contrib/netbsd-tests/lib/libutil/
H A Dt_sockaddr_snprintf.c41 #include <netinet/in.h> /* sin/sin6 */
82 struct sockaddr_in6 sin6; local
85 memset(&sin6, 0, sizeof(sin6));
86 sin6.sin6_len = sizeof(sin6);
87 sin6.sin6_family = AF_INET6;
88 sin6.sin6_port = ntohs(80);
89 sin6.sin6_addr = in6addr_nodelocal_allnodes;
91 (struct sockaddr *)&sin6);
[all...]
/freebsd-head/contrib/ntp/lib/isc/include/isc/
H A Dsockaddr.h36 struct sockaddr_in6 sin6; member in union:isc_sockaddr::__anon250
/freebsd-head/contrib/netbsd-tests/sys/netinet6/
H A Dt_print.c116 struct sockaddr_in6 sin6; local
117 memset(&sin6, 0, sizeof(sin6));
120 sin6.sin6_addr = tst[i].ia;
121 sin6.sin6_port = (in_port_t)htons(i);
122 r = sin6_print(buf, l, &sin6);
135 sin6.sin6_addr = tst[i].ia;
136 sin6.sin6_port = (in_port_t)htons(i);
137 r = sin6_print(buf, l, &sin6);
/freebsd-head/sys/compat/linuxkpi/common/include/linux/
H A Dinetdevice.h65 struct sockaddr_in6 sin6; local
70 memset(&sin6, 0, sizeof(sin6));
71 sin6.sin6_addr = addr;
72 sin6.sin6_len = sizeof(sin6);
73 sin6.sin6_family = AF_INET6;
77 sin6.sin6_addr.s6_addr16[1] = htons(scope_id);
81 ifa = ifa_ifwithaddr((struct sockaddr *)&sin6);
/freebsd-head/crypto/heimdal/lib/roken/
H A Dgetnameinfo.c103 const struct sockaddr_in6 *sin6 = (const struct sockaddr_in6 *)sa; local
105 return doit (AF_INET6, &sin6->sin6_addr, sizeof(sin6->sin6_addr),
106 sin6->sin6_port,
H A Dsocket.c58 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sa; local
60 memset (sin6, 0, sizeof(*sin6));
61 sin6->sin6_family = AF_INET6;
62 sin6->sin6_port = 0;
63 sin6->sin6_addr = in6addr_any;
92 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sa; local
94 memset (sin6, 0, sizeof(*sin6));
95 sin6
159 const struct sockaddr_in6 *sin6 = (const struct sockaddr_in6 *)sa; local
182 const struct sockaddr_in6 *sin6 = (const struct sockaddr_in6 *)sa; local
206 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sa; local
[all...]
/freebsd-head/tools/regression/netinet/udpzerobyte/
H A Dudpzerobyte.c112 struct sockaddr_in6 sin6; local
127 bzero(&sin6, sizeof(sin6));
128 sin6.sin6_len = sizeof(sin6);
129 sin6.sin6_family = AF_INET6;
130 sin6.sin6_addr = loopback6addr;
131 sin6.sin6_port = htons(THEPORT);
133 test(PF_INET6, "PF_INET6", (struct sockaddr *)&sin6, sizeof(sin6));
[all...]
/freebsd-head/lib/libc/rpc/
H A Dbindresvport.c81 struct sockaddr_in6 *sin6; local
113 sin6 = (struct sockaddr_in6 *)sa;
115 portp = &sin6->sin6_port;
/freebsd-head/usr.sbin/rtsold/
H A Dcap_llflags.c68 struct sockaddr_in6 *sin6; local
84 sin6 = (struct sockaddr_in6 *)(void *)ifa->ifa_addr;
85 if (!IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr))
95 memcpy(&ifr6.ifr_ifru.ifru_addr, sin6, sin6->sin6_len);
/freebsd-head/usr.sbin/rip6query/
H A Drip6query.c59 static struct sockaddr_in6 sin6; variable in typeref:struct:sockaddr_in6
124 if (sizeof(sin6) != res->ai_addrlen) {
128 memcpy(&sin6, res->ai_addr, res->ai_addrlen);
130 sin6.sin6_scope_id = ifidx;
145 if (sendto(s, ripbuf, RIPSIZE(1), 0, (struct sockaddr *)&sin6,
/freebsd-head/contrib/ofed/librdmacm/examples/
H A Dcommon.h69 struct sockaddr_in6 sin6; member in union:socket_addr
/freebsd-head/lib/libutil/
H A Drealhostname.c116 struct sockaddr_in6 *sin6; local
118 sin6 = SOCKADDR_IN6(addr);
123 lsin.sin_port = sin6->sin6_port;
124 memcpy(&lsin.sin_addr, &sin6->sin6_addr.s6_addr[12],
/freebsd-head/lib/libifconfig/
H A Dlibifconfig.h77 struct sockaddr_in6 *sin6; member in struct:ifconfig_inet6_addr
/freebsd-head/usr.sbin/pnfsdsfile/
H A Dpnfsdsfile.c72 struct sockaddr_in6 *sin6, adsin6; local
182 sin6 = &dsfile[i].dsf_sin6;
195 sin6->sin6_family == AF_INET6 &&
199 if (IN6_ARE_ADDR_EQUAL(&sin6->sin6_addr,
220 sin6 = &dsfile[i].dsf_sin6;
233 sin6->sin6_family == AF_INET6 &&
237 if (IN6_ARE_ADDR_EQUAL(&sin6->sin6_addr,
262 sin6 = &dsfile[i].dsf_sin6;
275 sin6->sin6_family == AF_INET6 &&
279 if (IN6_ARE_ADDR_EQUAL(&sin6
[all...]
/freebsd-head/usr.sbin/pnfsdscopymr/
H A Dpnfsdscopymr.c78 struct sockaddr_in6 sin6; local
208 sizeof(sin6)) {
209 memcpy(&sin6, nres->ai_addr,
210 sizeof(sin6));
211 if (IN6_ARE_ADDR_EQUAL(&sin6.sin6_addr,
271 sizeof(sin6)) {
272 memcpy(&sin6, nres->ai_addr,
273 sizeof(sin6));
274 if (IN6_ARE_ADDR_EQUAL(&sin6.sin6_addr,
/freebsd-head/contrib/tcp_wrappers/
H A Dsocket.c181 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sin; local
183 if (IN6_IS_ADDR_V4MAPPED(&sin6->sin6_addr)) {
189 sin4.sin_port = sin6->sin6_port;
190 sin4.sin_addr.s_addr = *(u_int32_t *)&sin6->sin6_addr.s6_addr[12];
/freebsd-head/tests/sys/net/routing/
H A Dtest_rtsock_lladdr.c132 struct sockaddr_in6 sin6; local
136 sa_convert_str_to_sa(str_buf, (struct sockaddr *)&sin6);
142 prepare_route_message(rtm, RTM_ADD, (struct sockaddr *)&sin6, (struct sockaddr *)&ether);
156 ret = sa_equal_msg(sa, (struct sockaddr *)&sin6, msg, sizeof(msg));
181 struct sockaddr_in6 sin6; local
182 sin6 = c->net6;
184 sin6.sin6_addr._s6_addr32[3] = htonl(0x42424242);
191 prepare_route_message(rtm, RTM_ADD, (struct sockaddr *)&sin6, (struct sockaddr *)&ether);
208 ret = sa_equal_msg(sa, (struct sockaddr *)&sin6, msg, sizeof(msg));
278 struct sockaddr_in6 sin6; local
324 struct sockaddr_in6 sin6; local
[all...]
/freebsd-head/sys/netinet6/
H A Din6_fib.c152 struct sockaddr_in6 sin6; local
161 memset(&sin6, 0, sizeof(sin6));
162 sin6.sin6_addr = *dst;
163 sin6.sin6_len = sizeof(struct sockaddr_in6);
166 sin6.sin6_addr.s6_addr16[1] = htons(scopeid & 0xffff);
169 rn = rh->rnh_matchaddr((void *)&sin6, &rh->head);
174 fib6_rte_to_nh_basic(nh, &sin6.sin6_addr, flags, pnh6);
202 struct sockaddr_in6 sin6; local
212 memset(&sin6,
272 struct sockaddr_in6 sin6; local
364 struct sockaddr_in6 sin6; local
407 struct sockaddr_in6 sin6; local
[all...]
/freebsd-head/tools/test/netfibs/
H A Dreflect.c195 struct sockaddr_in6 sin6; local
225 sin6.sin6_len = sizeof(sin6);
226 sin6.sin6_family = AF_INET6;
227 sin6.sin6_port = htons(port);
228 sin6.sin6_flowinfo = 0;
229 bzero(&sin6.sin6_addr, sizeof(sin6.sin6_addr));
231 rc = inet_pton(PF_INET6, addr, &sin6.sin6_addr);
239 sin6
[all...]
/freebsd-head/lib/libnetbsd/
H A Dsockaddr_snprintf.c72 debug_in6(char *str, size_t len, const struct sockaddr_in6 *sin6) argument
74 const uint8_t *s = sin6->sin6_addr.s6_addr;
80 SALEN(sin6), sin6->sin6_family, sin6->sin6_port,
81 sin6->sin6_flowinfo, s[0x0], s[0x1], s[0x2], s[0x3], s[0x4], s[0x5],
83 s[0xe], s[0xf], sin6->sin6_scope_id);
122 const struct sockaddr_in6 *sin6 = NULL; local
152 salen = sizeof(*sin6);
153 sin6
[all...]
/freebsd-head/usr.sbin/rrenumd/
H A Dparser.y113 %type <dl> dest_addrs dest_addr sin sin6
172 | sin6
176 | sin6 ifname
178 struct sockaddr_in6 *sin6;
180 sin6 = (struct sockaddr_in6 *)$1->dl_dst;
181 sin6->sin6_scope_id = if_nametoindex($2.cp);
233 sin6: label
236 struct sockaddr_in6 *sin6;
238 sin6 = (struct sockaddr_in6 *)malloc(sizeof(*sin6));
[all...]
/freebsd-head/lib/libc/net/
H A Dsourcefilter.c69 struct sockaddr_in6 sin6; member in union:sockunion
307 !IN6_IS_ADDR_MULTICAST(&psu->sin6.sin6_addr)) {
370 !IN6_IS_ADDR_MULTICAST(&psu->sin6.sin6_addr)) {
/freebsd-head/sbin/pfctl/
H A Dpf_print_state.c157 struct sockaddr_in6 sin6; local
159 memset(&sin6, 0, sizeof(sin6));
160 sin6.sin6_len = sizeof(sin6);
161 sin6.sin6_family = AF_INET6;
162 sin6.sin6_addr = addr->v6;
163 getnameinfo((struct sockaddr *)&sin6, sin6.sin6_len,

Completed in 117 milliseconds

1234567