Searched refs:sin6 (Results 1 - 25 of 201) sorted by relevance

123456789

/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/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/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...]
H A Dsctp6_usrreq.c700 struct sockaddr_in6 *sin6; local
732 sin6 = (struct sockaddr_in6 *)addr;
742 if (IN6_IS_ADDR_V4MAPPED(&sin6->sin6_addr)) {
747 if (IN6_IS_ADDR_V4MAPPED(&sin6->sin6_addr)) {
751 in6_sin6_2_sin(&sin, sin6);
806 struct sockaddr_in6 *sin6; local
866 sin6 = (struct sockaddr_in6 *)addr;
878 if (IN6_IS_ADDR_V4MAPPED(&sin6->sin6_addr)) {
885 if (IN6_IS_ADDR_V4MAPPED(&sin6->sin6_addr)) {
887 in6_sin6_2_sin(&store.sin, sin6);
945 struct sockaddr_in6 *sin6; local
1048 struct sockaddr_in6 *sin6; local
1123 struct sockaddr_in6 *sin6; local
1159 struct sockaddr_in6 *sin6; local
[all...]
H A Din6_pcb.c121 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)NULL; local
147 sin6 = (struct sockaddr_in6 *)nam;
148 if (nam->sa_len != sizeof(*sin6))
156 if ((error = sa6_embedscope(sin6, V_ip6_use_defzone)) != 0)
159 if ((error = prison_local_ip6(cred, &sin6->sin6_addr,
163 lport = sin6->sin6_port;
164 if (IN6_IS_ADDR_MULTICAST(&sin6->sin6_addr)) {
181 } else if (!IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr)) {
185 sin6->sin6_port = 0; /* yech... */
187 if ((ifa = ifa_ifwithaddr((struct sockaddr *)sin6))
350 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)nam; local
416 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)nam; local
502 struct sockaddr_in6 *sin6; local
1380 init_sin6(struct sockaddr_in6 *sin6, struct mbuf *m, int srcordst) argument
[all...]
H A Dscope6.c322 sa6_embedscope(struct sockaddr_in6 *sin6, int defaultok) argument
326 if ((zoneid = sin6->sin6_scope_id) == 0 && defaultok)
327 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);
343 sin6->sin6_scope_id = 0;
353 sa6_recoverscope(struct sockaddr_in6 *sin6) argument
358 if (IN6_IS_SCOPE_LINKLOCAL(&sin6->sin6_addr) ||
359 IN6_IS_ADDR_MC_INTFACELOCAL(&sin6
[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/crypto/heimdal/lib/roken/
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...]
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,
/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/sys/netipsec/
H A Dipsec_pcb.c64 struct sockaddr_in6 *sin6; local
66 bzero(&src->sin6, sizeof(src->sin6));
67 bzero(&dst->sin6, sizeof(dst->sin6));
68 src->sin6.sin6_family = AF_INET6;
69 src->sin6.sin6_len = sizeof(struct sockaddr_in6);
70 dst->sin6.sin6_family = AF_INET6;
71 dst->sin6.sin6_len = sizeof(struct sockaddr_in6);
74 sin6
[all...]
/freebsd-head/contrib/ntp/lib/isc/
H A Dsockaddr.c77 memcmp(&a->type.sin6.sin6_addr, &b->type.sin6.sin6_addr,
78 sizeof(a->type.sin6.sin6_addr)) != 0)
86 a->type.sin6.sin6_scope_id != b->type.sin6.sin6_scope_id &&
88 (a->type.sin6.sin6_scope_id != 0 &&
89 b->type.sin6.sin6_scope_id != 0)))
93 a->type.sin6.sin6_port != b->type.sin6.sin6_port)
133 snprintf(pbuf, sizeof(pbuf), "%u", ntohs(sockaddr->type.sin6
[all...]
/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/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/contrib/blacklist/port/
H A Dsockaddr_snprintf.c124 debug_in6(char *str, size_t len, const struct sockaddr_in6 *sin6) argument
126 const uint8_t *s = sin6->sin6_addr.s6_addr;
132 SLEN(sin6), sin6->sin6_family, sin6->sin6_port,
133 sin6->sin6_flowinfo, s[0x0], s[0x1], s[0x2], s[0x3], s[0x4], s[0x5],
135 s[0xe], s[0xf], sin6->sin6_scope_id);
177 const struct sockaddr_in6 *sin6 = NULL; local
214 sin6 = ((const struct sockaddr_in6 *)(const void *)sa);
215 p = ntohs(sin6
[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/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/lib/libifconfig/
H A Dlibifconfig_inet6.c72 addr->sin6 = (struct sockaddr_in6 *)ifa->ifa_addr;
85 ifr6.ifr_addr = *addr->sin6;
93 ifr6.ifr_addr = *addr->sin6;
/freebsd-head/tools/tools/net80211/wlanwatch/
H A Dwlanwatch.c189 struct sockaddr_in6 sin6; /* use static var for safety */ local
195 memset(&sin6, 0, sizeof(sin6));
196 memcpy(&sin6, sa, sa->sa_len);
197 sin6.sin6_len = sizeof(struct sockaddr_in6);
198 sin6.sin6_family = AF_INET6;
201 (IN6_IS_ADDR_LINKLOCAL(&sin6.sin6_addr) ||
202 IN6_IS_ADDR_MC_LINKLOCAL(&sin6.sin6_addr)) &&
203 sin6.sin6_scope_id == 0) {
204 sin6
[all...]
/freebsd-head/usr.sbin/tcpdrop/
H A Dtcpdrop.c334 struct sockaddr_in6 sin6[2]; local
338 memset(sin6, 0, sizeof sin6);
340 sin6[TCPDROP_LOCAL].sin6_len = sizeof sin6[TCPDROP_LOCAL];
341 sin6[TCPDROP_LOCAL].sin6_family = AF_INET6;
342 sin6[TCPDROP_LOCAL].sin6_port = inc->inc_lport;
343 memcpy(&sin6[TCPDROP_LOCAL].sin6_addr, &inc->inc6_laddr,
345 local = (struct sockaddr *)&sin6[TCPDROP_LOCAL];
347 sin6[TCPDROP_FOREIG
[all...]
/freebsd-head/tools/tools/switch_tls/
H A Dswitch_tls.c331 struct sockaddr_in6 sin6[2]; local
335 memset(sin6, 0, sizeof sin6);
337 sin6[TCPDROP_LOCAL].sin6_len = sizeof sin6[TCPDROP_LOCAL];
338 sin6[TCPDROP_LOCAL].sin6_family = AF_INET6;
339 sin6[TCPDROP_LOCAL].sin6_port = inc->inc_lport;
340 memcpy(&sin6[TCPDROP_LOCAL].sin6_addr, &inc->inc6_laddr,
342 local = (struct sockaddr *)&sin6[TCPDROP_LOCAL];
344 sin6[TCPDROP_FOREIG
[all...]
/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/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/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/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...]

Completed in 131 milliseconds

123456789