Home
last modified time | relevance | path

Searched refs:sin6 (Results 1 – 25 of 156) sorted by relevance

1234567

/illumos-gate/usr/src/uts/common/inet/ip/
H A Dip6_rts.c87 sin6_t *sin6; in rts_fill_msg_v6() local
109 sin6 = (sin6_t *)cp; in rts_fill_msg_v6()
112 sin6->sin6_addr = *dst; in rts_fill_msg_v6()
113 sin6->sin6_family = AF_INET6; in rts_fill_msg_v6()
117 sin6->sin6_addr = *gateway; in rts_fill_msg_v6()
118 sin6->sin6_family = AF_INET6; in rts_fill_msg_v6()
122 sin6->sin6_addr = *mask; in rts_fill_msg_v6()
127 sin6->sin6_addr = *ifaddr; in rts_fill_msg_v6()
132 sin6->sin6_addr = *src_addr; in rts_fill_msg_v6()
140 sin6->sin6_addr = *author; in rts_fill_msg_v6()
[all …]
H A Dicmp.c316 sin6_t *sin6; in icmp_tpi_bind() local
424 sin6_t *sin6; in rawip_do_bind() local
722 sin6_t *sin6; in rawip_do_connect() local
742 sin6 = NULL; in rawip_do_connect()
1284 sin6_t sin6; in icmp_icmp_error_ipv6() local
1330 sin6_t *sin6; in icmp_icmp_error_ipv6() local
1412 sin6 = sin6_null; in icmp_icmp_error_ipv6()
2579 sin6_t *sin6; in icmp_input() local
4130 sin6_t *sin6; in icmp_wput() local
5147 sin6_t *sin6; in rawip_implicit_bind() local
[all …]
H A Dip2mac.c82 sin6_t *sin6; in ncec_ip2mac_response() local
92 sin6 = (sin6_t *)&ip2m->ip2mac_pa; in ncec_ip2mac_response()
93 sin6->sin6_family = AF_INET6; in ncec_ip2mac_response()
94 sin6->sin6_addr = ncec->ncec_addr; in ncec_ip2mac_response()
188 sin6_t *sin6; in ip2mac() local
217 sin6 = (sin6_t *)&ip2m->ip2mac_pa; in ip2mac()
219 nce = nce_lookup_v6(ill, &sin6->sin6_addr); in ip2mac()
223 &sin6->sin6_addr, 0, ND_UNCHANGED, &nce); in ip2mac()
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Doutput.c71 supply(sin6, ifp, rtstate, splith); in supplyall()
76 solicit(struct sockaddr_in6 *sin6, struct interface *ifp) in solicit() argument
83 sendpacket(sin6, ifp, sizeof (struct rip6), 0); in solicit()
87 solicitall(struct sockaddr_in6 *sin6) in solicitall() argument
106 solicit(sin6, ifp); in solicitall()
120 (struct sockaddr *)sin6, sizeof (*sin6)) < 0) { in sendpacket()
124 TRACE_OUTPUT(ifp, sin6, sizeof (struct rip6)); in sendpacket()
199 sendpacket(sin6, ifp, size, 0); in supply()
200 TRACE_OUTPUT(ifp, sin6, size); in supply()
213 sendpacket(sin6, ifp, size, 0); in supply()
[all …]
/illumos-gate/usr/src/cmd/idmap/idmapd/
H A Dkrb5_lookup.c142 struct sockaddr_in6 sin6; in _krb5_override_service_locator() local
144 (void) memset(&sin6, 0, sizeof (sin6)); in _krb5_override_service_locator()
145 sin6.sin6_family = AF_INET6; in _krb5_override_service_locator()
146 sin6.sin6_port = port; in _krb5_override_service_locator()
147 (void) memcpy(&sin6.sin6_addr, &dsa6->sin6_addr, in _krb5_override_service_locator()
148 sizeof (sin6.sin6_addr)); in _krb5_override_service_locator()
149 rc = cbfunc(cbdata, socktype, (struct sockaddr *)&sin6); in _krb5_override_service_locator()
/illumos-gate/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_krb5lookup.c148 struct sockaddr_in6 sin6; in _krb5_override_service_locator() local
149 (void) memset(&sin6, 0, sizeof (sin6)); in _krb5_override_service_locator()
150 sin6.sin6_family = AF_INET6; in _krb5_override_service_locator()
151 sin6.sin6_port = port; in _krb5_override_service_locator()
152 (void) memcpy(&sin6.sin6_addr, &dxi.d_dci.dc_addr.a_ipv6, in _krb5_override_service_locator()
153 sizeof (sin6.sin6_addr)); in _krb5_override_service_locator()
154 rc = cbfunc(cbdata, socktype, (struct sockaddr *)&sin6); in _krb5_override_service_locator()
/illumos-gate/usr/src/uts/common/inet/kifconf/
H A Dkifconf.c43 struct sockaddr_in6 *sin6 = NULL; in kivoid_to_sock() local
54 sin6 = (struct sockaddr_in6 *)dest; in kivoid_to_sock()
55 (void) bcopy(source, &sin6->sin6_addr, in kivoid_to_sock()
57 sin6->sin6_family = af; in kivoid_to_sock()
71 struct sockaddr_in6 sin6; in kdlifconfig() local
87 rc = kivoid_to_sock(af, mymask, &sin6); in kdlifconfig()
91 sbuf.buf = (caddr_t)&sin6; in kdlifconfig()
92 sbuf.maxlen = sbuf.len = sizeof (sin6); in kdlifconfig()
106 rc = kivoid_to_sock(af, myIPaddr, &sin6); in kdlifconfig()
110 sbuf.buf = (caddr_t)&sin6; in kdlifconfig()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/
H A Dipseckey.c1267 bzero(sin6, sizeof (*sin6)); in doaddresses()
1348 bzero(sin6, sizeof (*sin6)); in doaddresses()
1382 bzero(sin6, sizeof (*sin6)); in doaddresses()
1464 bzero(sin6, sizeof (*sin6)); in doaddresses()
1980 bzero(sin6, sizeof (*sin6)); in doaddup()
2017 bzero(sin6, sizeof (*sin6)); in doaddup()
2084 bzero(sin6, sizeof (*sin6)); in doaddup()
2174 bzero(sin6, sizeof (*sin6)); in doaddup()
2708 bzero(sin6, sizeof (*sin6)); in doaddup()
3166 bzero(sin6, sizeof (*sin6)); in dodelget()
[all …]
/illumos-gate/usr/src/lib/libipadm/common/
H A Dipadm_ndpd.c144 struct sockaddr_in6 *sin6; in i_ipadm_create_linklocal() local
169 sin6 = (struct sockaddr_in6 *)&lifr.lifr_addr; in i_ipadm_create_linklocal()
184 sin6->sin6_addr = ll_template; in i_ipadm_create_linklocal()
211 struct sockaddr_in6 *sin6; in i_ipadm_create_linklocal() local
213 sin6 = (struct sockaddr_in6 *)&lifr.lifr_addr; in i_ipadm_create_linklocal()
216 sin6->sin6_family = AF_INET6; in i_ipadm_create_linklocal()
217 sin6->sin6_addr = in6addr_any; in i_ipadm_create_linklocal()
234 sin6->sin6_family = AF_INET6; in i_ipadm_make_linklocal()
235 sin6->sin6_addr = *intfid; in i_ipadm_make_linklocal()
237 sin6->sin6_addr.s6_addr[i] = in i_ipadm_make_linklocal()
[all …]
/illumos-gate/usr/src/cmd/sendmail/util/
H A Dmconnect.c56 struct sockaddr_in6 sin6; /* INET/IPv6 */ member
138 &SendmailAddress.sin6.sin6_addr, IN6ADDRSZ);
139 if (IN6_IS_ADDR_V4MAPPED(&SendmailAddress.sin6.sin6_addr)) {
147 SendmailAddress.sin6.sin6_port = port;
166 SendmailAddress.sin6.sin6_addr.s6_addr,
168 ntohs(SendmailAddress.sin6.sin6_port));
176 &SendmailAddress.sin6.sin6_addr, IN6ADDRSZ);
178 &SendmailAddress.sin6.sin6_addr)) {
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/tftp/
H A Dmain.c67 struct sockaddr_in6 sin6; variable
167 struct sockaddr_in6 sin6; in main() local
180 (void) memset(&sin6, 0, sizeof (sin6)); in main()
181 sin6.sin6_family = AF_INET6; in main()
182 if (bind(f, (struct sockaddr *)&sin6, sizeof (sin6)) < 0) { in main()
261 (void) memset(&sin6, 0, sizeof (sin6)); in setpeer()
262 sin6.sin6_family = AF_INET6; in setpeer()
442 sin6.sin6_port = port; in put()
469 sin6.sin6_port = port; in put()
558 sin6.sin6_port = port; in get()
[all …]
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_opt_data.c73 struct sockaddr_in6 *sin6; in sctp_get_status() local
160 struct sockaddr_in6 *sin6; in sctp_get_paddrinfo() local
171 faddr = sin6->sin6_addr; in sctp_get_paddrinfo()
417 addr = sin6->sin6_addr; in sctp_find_peer_fp()
1376 sin6_t *sin6; in sctp_getsockname() local
1400 sin6 = (sin6_t *)addr; in sctp_getsockname()
1403 bzero(&sin6->sin6_addr, sizeof (sin6->sin6_addr)); in sctp_getsockname()
1430 sin6_t *sin6; in sctp_getpeername() local
1447 sin6 = (sin6_t *)addr; in sctp_getpeername()
1497 sin6 = paddrs; in sctp_getpeeraddrs()
[all …]
H A Dsctp_notify.c89 struct sockaddr_in6 *sin6; in sctp_notify() local
91 tudi->SRC_length = sizeof (*sin6); in sctp_notify()
92 sin6 = (struct sockaddr_in6 *)(tudi + 1); in sctp_notify()
93 sin6->sin6_family = AF_INET6; in sctp_notify()
94 sin6->sin6_port = connp->conn_fport; in sctp_notify()
95 sin6->sin6_addr = fp->sf_faddr; in sctp_notify()
96 mp->b_wptr = (uchar_t *)(sin6 + 1); in sctp_notify()
327 struct sockaddr_in6 *sin6; in sctp_intf_event() local
350 sin6->sin6_family = AF_INET6; in sctp_intf_event()
351 sin6->sin6_port = 0; in sctp_intf_event()
[all …]
/illumos-gate/usr/src/cmd/hal/addons/network-devices/
H A Dcommon.c62 struct sockaddr_in6 sin6; in test_socket_access() local
65 memset(&sin6, 0, sizeof (sin6)); in test_socket_access()
66 sin6.sin6_family = AF_INET6; in test_socket_access()
67 memcpy(&sin6.sin6_addr, addr, sizeof (*addr)); in test_socket_access()
68 sin6.sin6_port = htons(port); in test_socket_access()
73 rc = connect(sd, (struct sockaddr *)&sin6, sizeof (sin6)); in test_socket_access()
129 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)&ar.xarp_pa; in pseudo_serialno_from_addr() local
131 sin6->sin6_family = AF_INET6; in pseudo_serialno_from_addr()
132 (void) memcpy(&sin6->sin6_addr, hp->h_addr_list[0], in pseudo_serialno_from_addr()
/illumos-gate/usr/src/cmd/cmd-inet/common/
H A Daddr_match.c48 const struct sockaddr_in6 *sin6) in find_match() argument
54 (fromp->ss_family == AF_INET6 && sin6 == NULL)) in find_match()
75 addr2 = &((struct sockaddr_in6 *)sin6)->sin6_addr; in find_match()
90 const struct sockaddr_in6 *sin6, in check_address() argument
108 match_found = find_match(res, fromp, sin, sin6); in check_address()
/illumos-gate/usr/src/uts/common/inet/udp/
H A Dudp.c483 sin6_t *sin6; in udp_tpi_bind() local
899 sin6_t sin6; in udp_icmp_input() local
1066 sin6_t sin6; in udp_icmp_error_ipv6() local
2359 sin6_t *sin6; in udp_input() local
3319 sin6_t *sin6; in udp_ud_err_connected() local
3372 sin6_t *sin6; in udp_wput() local
4822 sin6_t *sin6; in udp_do_bind() local
4842 sin6 = NULL; in udp_do_bind()
4866 if (sin6 == NULL || !OK_32PTR((char *)sin6)) in udp_do_bind()
5439 sin6_t *sin6; in udp_implicit_bind() local
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/
H A Dtables.c179 struct sockaddr_in6 *sin6; in phyint_init_from_k() local
264 pi->pi_ifaddr = sin6->sin6_addr; in phyint_init_from_k()
278 pi->pi_token = sin6->sin6_addr; in phyint_init_from_k()
646 struct sockaddr_in6 *sin6; in phyint_get_lla() local
656 sin6->sin6_family = AF_INET6; in phyint_get_lla()
855 struct sockaddr_in6 sin6; in tmptoken_timer() local
926 (void) memset(&sin6, 0, sizeof (sin6)); in tmptoken_timer()
1203 struct sockaddr_in6 *sin6; in prefix_init_from_k() local
1490 struct sockaddr_in6 *sin6; in prefix_update_k() local
1603 sin6->sin6_family = AF_INET6; in prefix_update_k()
[all …]
H A Dmain.c136 (struct sockaddr *)sin6, sizeof (*sin6)); in sendpacket()
143 (void *)&sin6->sin6_addr, in sendpacket()
196 sin6); in solicit()
240 ra, packetlen, sin6); in advertise()
267 ra, packetlen, sin6); in advertise()
340 ra, packetlen, sin6); in advertise()
1459 struct sockaddr_in6 *sin6; in setup_rtsock() local
1505 sin6->sin6_family = AF_INET6; in setup_rtsock()
1521 sin6->sin6_family = AF_INET6; in setup_rtsock()
2337 struct sockaddr_in6 *sin6; in ndpd_create_addrs() local
[all …]
/illumos-gate/usr/src/uts/common/inet/tcp/
H A Dtcp_tpi.c206 sin6_t *sin6; in tcp_tpi_bind() local
259 sin6 = (sin6_t *)&tbr[1]; in tcp_tpi_bind()
260 *sin6 = sin6_null; in tcp_tpi_bind()
308 sin6 = (sin6_t *)sa; in tcp_tpi_bind()
419 sin6_t sin6; in tcp_conn_con() local
458 sin6 = sin6_null; in tcp_conn_con()
471 sin6 = sin6_null; in tcp_conn_con()
1527 sin6->sin6_scope_id = in tcp_tli_accept()
1532 sin6->__sin6_src_id = 0; in tcp_tli_accept()
1837 sin6_t *sin6; in tcp_tpi_accept() local
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dgetnameinfo.c121 const struct sockaddr_in6 *sin6; local
171 sin6 = (const struct sockaddr_in6 *)sa;
172 switch (sin6->sin6_addr.s6_addr[0]) {
174 if (IN6_IS_ADDR_V4MAPPED(&sin6->sin6_addr))
176 else if (IN6_IS_ADDR_LOOPBACK(&sin6->sin6_addr))
182 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr))
184 else if (IN6_IS_ADDR_MULTICAST(&sin6->sin6_addr))
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dvfs.c570 sin6_t *sin6; in sctp_getsockaddr() local
658 sin6 = (sin6_t *)addr; in sctp_getsockaddr()
661 bzero(&sin6->sin6_addr, in sctp_getsockaddr()
665 sin6 += added; in sctp_getsockaddr()
671 sin6->sin6_scope_id = 0; in sctp_getsockaddr()
672 sin6->__sin6_src_id = 0; in sctp_getsockaddr()
711 struct sockaddr_in6 *sin6; in sctp_getpeeraddr() local
739 sin6->sin6_addr = faddr; in sctp_getpeeraddr()
742 sin6->sin6_flowinfo = 0; in sctp_getpeeraddr()
743 sin6->sin6_scope_id = 0; in sctp_getpeeraddr()
[all …]
/illumos-gate/usr/src/uts/common/rpc/
H A Dclnt_gen.c225 struct sockaddr_in6 *sin6; in bindresvport() local
251 sin6 = (struct sockaddr_in6 *)req->addr.buf; in bindresvport()
252 sin6->sin6_family = AF_INET6; in bindresvport()
253 bzero((char *)&sin6->sin6_addr, sizeof (struct in6_addr)); in bindresvport()
269 sin6->sin6_port = in bindresvport()
308 sin6->sin6_port = htons(i); in bindresvport()
333 sin6->sin6_port); in bindresvport()
334 *last_used = ntohs(sin6->sin6_port); in bindresvport()
/illumos-gate/usr/src/uts/common/io/comstar/port/iscsit/
H A Discsit_text.c120 struct sockaddr_in6 *sin6; in iscsit_add_portal() local
131 sin6 = (struct sockaddr_in6 *)ss; in iscsit_add_portal()
132 (void) inet_ntop(AF_INET6, &sin6->sin6_addr, ipaddr, in iscsit_add_portal()
135 ipaddr, ntohs(sin6->sin6_port), tag); in iscsit_add_portal()
157 struct sockaddr_in6 *sin6; in iscsit_add_default_portals() local
168 sin6 = (struct sockaddr_in6 *)&ss; in iscsit_add_default_portals()
180 sin6->sin6_family = AF_INET6; in iscsit_add_default_portals()
181 sin6->sin6_port = htons(ISCSI_LISTEN_PORT); in iscsit_add_default_portals()
182 sin6->sin6_addr = tip->a_addr.i_addr.in6; in iscsit_add_default_portals()
/illumos-gate/usr/src/lib/libnsl/nss/
H A Dnetdir_inet_sundry.c653 struct sockaddr_in6 *sin6; in select_server_addr() local
672 sin6->sin6_family = AF_INET6; in select_server_addr()
673 sin6->sin6_port = 111; in select_server_addr()
674 sin6->sin6_addr = dst_addr->addr6; in select_server_addr()
904 struct sockaddr_in6 *sin6; in bindresvport() local
915 struct sockaddr_in6 *sin6; in bindresvport() member
942 sin6 = &myaddr6; in bindresvport()
943 (void) memset(sin6, 0, sizeof (*sin6)); in bindresvport()
944 sin6->sin6_family = AF_INET6; in bindresvport()
945 u.buf = (char *)sin6; in bindresvport()
[all …]
/illumos-gate/usr/src/cmd/smbsrv/bind-helper/
H A Dbind-helper.c48 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)&sa; in main() local
65 rc = inet_pton(AF_INET6, argv[2], &sin6->sin6_addr); in main()
66 sin6->sin6_port = htons(atoi(argv[3])); in main()

1234567