/titanic_44/usr/src/uts/common/inet/ip/ |
H A D | ip6_rts.c | 87 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() 123 sin6->sin6_family = AF_INET6; in rts_fill_msg_v6() 127 sin6->sin6_addr = *ifaddr; in rts_fill_msg_v6() 128 sin6->sin6_family = AF_INET6; in rts_fill_msg_v6() [all …]
|
H A D | icmp.c | 130 sin6_t *sin6, cred_t *cr, pid_t pid, ip_xmit_attr_t *ixa); 315 sin6_t *sin6; in icmp_tpi_bind() local 380 sin6 = (sin6_t *)&tbr[1]; in icmp_tpi_bind() 381 *sin6 = sin6_null; in icmp_tpi_bind() 382 sin6->sin6_family = AF_INET6; in icmp_tpi_bind() 383 mp->b_wptr = (uchar_t *)&sin6[1]; in icmp_tpi_bind() 384 sa = (struct sockaddr *)sin6; in icmp_tpi_bind() 423 sin6_t *sin6; in rawip_do_bind() local 455 sin6 = (sin6_t *)sa; in rawip_do_bind() 456 if (sin6->sin6_family != AF_INET6 || in rawip_do_bind() [all …]
|
H A D | ip2mac.c | 82 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()
|
/titanic_44/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/ |
H A D | output.c | 47 supplyall(struct sockaddr_in6 *sin6, int rtstate, struct interface *skipif, in supplyall() argument 71 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() 116 sendpacket(struct sockaddr_in6 *sin6, struct interface *ifp, int size, in sendpacket() argument 120 (struct sockaddr *)sin6, sizeof (*sin6)) < 0) { in sendpacket() 124 TRACE_OUTPUT(ifp, sin6, sizeof (struct rip6)); in sendpacket() 133 supply(struct sockaddr_in6 *sin6, struct interface *ifp, int rtstate, in supply() argument [all …]
|
/titanic_44/usr/src/uts/common/inet/kifconf/ |
H A D | kifconf.c | 43 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 …]
|
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ |
H A D | ipseckey.c | 1204 struct sockaddr_in6 *sin6; in doaddresses() local 1222 sin6 = (struct sockaddr_in6 *)(src + 1); in doaddresses() 1223 srcport = ntohs(sin6->sin6_port); in doaddresses() 1226 sin6 = (struct sockaddr_in6 *)(dst + 1); in doaddresses() 1227 dstport = ntohs(sin6->sin6_port); in doaddresses() 1265 sin6 = (struct sockaddr_in6 *)(src + 1); in doaddresses() 1266 bzero(sin6, sizeof (*sin6)); in doaddresses() 1267 bcopy(srchp->h_addr_list[i], &sin6->sin6_addr, in doaddresses() 1269 sin6->sin6_family = AF_INET6; in doaddresses() 1270 sin6->sin6_port = htons(srcport); in doaddresses() [all …]
|
/titanic_44/usr/src/lib/libipadm/common/ |
H A D | ipadm_ndpd.c | 143 struct sockaddr_in6 *sin6; in i_ipadm_create_linklocal() local 168 sin6 = (struct sockaddr_in6 *)&lifr.lifr_addr; in i_ipadm_create_linklocal() 183 sin6->sin6_addr = ll_template; in i_ipadm_create_linklocal() 189 i_ipadm_make_linklocal(sin6, &addr->ipadm_intfid.sin6_addr); in i_ipadm_create_linklocal() 210 struct sockaddr_in6 *sin6; in i_ipadm_create_linklocal() local 212 sin6 = (struct sockaddr_in6 *)&lifr.lifr_addr; in i_ipadm_create_linklocal() 215 sin6->sin6_family = AF_INET6; in i_ipadm_create_linklocal() 216 sin6->sin6_addr = in6addr_any; in i_ipadm_create_linklocal() 227 i_ipadm_make_linklocal(struct sockaddr_in6 *sin6, const struct in6_addr *intfid) in i_ipadm_make_linklocal() argument 233 sin6->sin6_family = AF_INET6; in i_ipadm_make_linklocal() [all …]
|
/titanic_44/usr/src/cmd/sendmail/aux/ |
H A D | mconnect.c | 56 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)) {
|
/titanic_44/usr/src/cmd/cmd-inet/usr.bin/tftp/ |
H A D | main.c | 67 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() 265 (void) memcpy(&sin6.sin6_addr, host->h_addr_list[0], in setpeer() 408 (void) memcpy(&sin6.sin6_addr, hp->h_addr_list[0], in put() 411 sin6.sin6_family = AF_INET6; in put() [all …]
|
/titanic_44/usr/src/cmd/hal/addons/network-devices/ |
H A D | common.c | 61 struct sockaddr_in6 sin6; in test_socket_access() local 64 memset(&sin6, 0, sizeof (sin6)); in test_socket_access() 65 sin6.sin6_family = AF_INET6; in test_socket_access() 66 memcpy(&sin6.sin6_addr, addr, sizeof (*addr)); in test_socket_access() 67 sin6.sin6_port = htons(port); in test_socket_access() 72 rc = connect(sd, (struct sockaddr *)&sin6, sizeof (sin6)); in test_socket_access() 128 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)&ar.xarp_pa; in pseudo_serialno_from_addr() local 130 sin6->sin6_family = AF_INET6; in pseudo_serialno_from_addr() 131 (void) memcpy(&sin6->sin6_addr, hp->h_addr_list[0], in pseudo_serialno_from_addr()
|
/titanic_44/usr/src/uts/common/inet/sctp/ |
H A D | sctp_opt_data.c | 69 struct sockaddr_in6 *sin6; in sctp_get_status() local 92 sin6 = (struct sockaddr_in6 *)&sp->spinfo_address; in sctp_get_status() 93 sin6->sin6_family = AF_INET6; in sctp_get_status() 94 sin6->sin6_port = connp->conn_fport; in sctp_get_status() 95 sin6->sin6_addr = fp->sf_faddr; in sctp_get_status() 156 struct sockaddr_in6 *sin6; in sctp_get_paddrinfo() local 166 sin6 = (struct sockaddr_in6 *)&infop->spinfo_address; in sctp_get_paddrinfo() 167 faddr = sin6->sin6_addr; in sctp_get_paddrinfo() 405 struct sockaddr_in6 *sin6; in sctp_find_peer_fp() local 412 sin6 = (struct sockaddr_in6 *)ss; in sctp_find_peer_fp() [all …]
|
H A D | sctp_notify.c | 89 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 349 sin6 = (struct sockaddr_in6 *)&spc->spc_aaddr; in sctp_intf_event() 350 sin6->sin6_family = AF_INET6; in sctp_intf_event() [all …]
|
/titanic_44/usr/src/cmd/cmd-inet/common/ |
H A D | addr_match.c | 48 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()
|
/titanic_44/usr/src/uts/common/inet/udp/ |
H A D | udp.c | 167 sin6_t *sin6, ushort_t ipversion, cred_t *cr, pid_t, 482 sin6_t *sin6; in udp_tpi_bind() local 549 sin6 = (sin6_t *)&tbr[1]; in udp_tpi_bind() 550 *sin6 = sin6_null; in udp_tpi_bind() 551 sin6->sin6_family = AF_INET6; in udp_tpi_bind() 552 mp->b_wptr = (uchar_t *)&sin6[1]; in udp_tpi_bind() 553 sa = (struct sockaddr *)sin6; in udp_tpi_bind() 897 sin6_t sin6; in udp_icmp_input() local 1018 sin6 = sin6_null; in udp_icmp_input() 1019 sin6.sin6_family = AF_INET6; in udp_icmp_input() [all …]
|
/titanic_44/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/ |
H A D | tables.c | 179 struct sockaddr_in6 *sin6; in phyint_init_from_k() local 263 sin6 = (struct sockaddr_in6 *)&lifr.lifr_addr; in phyint_init_from_k() 264 pi->pi_ifaddr = sin6->sin6_addr; in phyint_init_from_k() 272 sin6 = (struct sockaddr_in6 *)&lifr.lifr_token; in phyint_init_from_k() 273 if (IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr)) { in phyint_init_from_k() 278 pi->pi_token = sin6->sin6_addr; in phyint_init_from_k() 291 sin6 = (struct sockaddr_in6 *)&lifr.lifr_addr; in phyint_init_from_k() 292 if (sin6->sin6_family != AF_INET6 || in phyint_init_from_k() 293 IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr) || in phyint_init_from_k() 294 !IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr)) { in phyint_init_from_k() [all …]
|
H A D | main.c | 32 static void advertise(struct sockaddr_in6 *sin6, struct phyint *pi, 34 static void solicit(struct sockaddr_in6 *sin6, struct phyint *pi); 130 sendpacket(struct sockaddr_in6 *sin6, int sock, int size, int flags) in sendpacket() argument 136 (struct sockaddr *)sin6, sizeof (*sin6)); in sendpacket() 142 inet_ntop(sin6->sin6_family, in sendpacket() 143 (void *)&sin6->sin6_addr, in sendpacket() 177 solicit(struct sockaddr_in6 *sin6, struct phyint *pi) in solicit() argument 196 sin6); in solicit() 198 sendpacket(sin6, pi->pi_sock, packetlen, 0); in solicit() 208 advertise(struct sockaddr_in6 *sin6, struct phyint *pi, boolean_t no_prefixes) in advertise() argument [all …]
|
/titanic_44/usr/src/lib/libresolv2/common/irs/ |
H A D | getnameinfo.c | 121 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))
|
/titanic_44/usr/src/uts/common/inet/tcp/ |
H A D | tcp_tpi.c | 202 sin6_t *sin6; in tcp_tpi_bind() local 255 sin6 = (sin6_t *)&tbr[1]; in tcp_tpi_bind() 256 *sin6 = sin6_null; in tcp_tpi_bind() 257 sin6->sin6_family = AF_INET6; in tcp_tpi_bind() 258 sa = (struct sockaddr *)sin6; in tcp_tpi_bind() 260 mp->b_wptr = (uchar_t *)&sin6[1]; in tcp_tpi_bind() 304 sin6 = (sin6_t *)sa; in tcp_tpi_bind() 305 sin6->sin6_port = connp->conn_lport; in tcp_tpi_bind() 413 sin6_t sin6; in tcp_conn_con() local 452 sin6 = sin6_null; in tcp_conn_con() [all …]
|
/titanic_44/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | vfs.c | 570 sin6_t *sin6; in sctp_getsockaddr() local 658 sin6 = (sin6_t *)addr; in sctp_getsockaddr() 661 bzero(&sin6->sin6_addr, in sctp_getsockaddr() 662 sizeof (sin6->sin6_addr)); in sctp_getsockaddr() 663 sin6->sin6_port = connp->conn_lport; in sctp_getsockaddr() 665 sin6 += added; in sctp_getsockaddr() 666 sin6->sin6_family = AF_INET6; in sctp_getsockaddr() 667 sin6->sin6_port = connp->conn_lport; in sctp_getsockaddr() 668 sin6->sin6_addr = laddr; in sctp_getsockaddr() 670 sin6->sin6_flowinfo = connp->conn_flowinfo; in sctp_getsockaddr() [all …]
|
/titanic_44/usr/src/uts/common/rpc/ |
H A D | clnt_gen.c | 225 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()
|
/titanic_44/usr/src/lib/libsmbfs/smb/ |
H A D | connect.c | 167 struct sockaddr_in6 sin6; in conn_tcp6() local 177 bcopy(sa, &sin6, sizeof (sin6)); in conn_tcp6() 178 sin6.sin6_port = htons(port); in conn_tcp6() 181 inet_ntop(AF_INET6, &sin6.sin6_addr, in conn_tcp6() 201 sndcall.addr.maxlen = sizeof (sin6); in conn_tcp6() 202 sndcall.addr.len = sizeof (sin6); in conn_tcp6() 203 sndcall.addr.buf = (void *) &sin6; in conn_tcp6()
|
/titanic_44/usr/src/cmd/cmd-inet/sbin/dhcpagent/ |
H A D | util.c | 452 struct sockaddr_in6 sin6; in bind_sock_v6() local 455 (void) memset(&sin6, 0, sizeof (struct sockaddr_in6)); in bind_sock_v6() 456 sin6.sin6_family = AF_INET6; in bind_sock_v6() 457 sin6.sin6_port = htons(port_hbo); in bind_sock_v6() 459 (void) memcpy(&sin6.sin6_addr, addr_nbo, in bind_sock_v6() 460 sizeof (sin6.sin6_addr)); in bind_sock_v6() 465 return (bind(fd, (struct sockaddr *)&sin6, sizeof (sin6)) == 0); in bind_sock_v6()
|
/titanic_44/usr/src/uts/common/io/comstar/port/iscsit/ |
H A D | iscsit_text.c | 133 struct sockaddr_in6 *sin6; in iscsit_add_portal() local 143 sin6 = (struct sockaddr_in6 *)ss; in iscsit_add_portal() 144 (void) inet_ntop(AF_INET6, &sin6->sin6_addr, ipaddr, in iscsit_add_portal() 147 ipaddr, ntohs(sin6->sin6_port), tag); in iscsit_add_portal() 169 struct sockaddr_in6 *sin6; in iscsit_add_default_portals() local 180 sin6 = (struct sockaddr_in6 *)&ss; in iscsit_add_default_portals() 192 sin6->sin6_family = AF_INET6; in iscsit_add_default_portals() 193 sin6->sin6_port = htons(ISCSI_LISTEN_PORT); in iscsit_add_default_portals() 194 sin6->sin6_addr = tip->a_addr.i_addr.in6; in iscsit_add_default_portals()
|
/titanic_44/usr/src/cmd/smbsrv/bind-helper/ |
H A D | bind-helper.c | 48 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()
|
/titanic_44/usr/src/lib/libnsl/nss/ |
H A D | netdir_inet_sundry.c | 652 struct sockaddr_in6 *sin6; in select_server_addr() local 670 sin6 = (struct sockaddr_in6 *)sock; in select_server_addr() 671 sin6->sin6_family = AF_INET6; in select_server_addr() 672 sin6->sin6_port = 111; in select_server_addr() 673 sin6->sin6_addr = dst_addr->addr6; in select_server_addr() 722 sin6 = (struct sockaddr_in6 *)sock; in select_server_addr() 723 src_addr->addr6 = sin6->sin6_addr; in select_server_addr() 903 struct sockaddr_in6 *sin6; in bindresvport() local 914 struct sockaddr_in6 *sin6; in bindresvport() member 941 sin6 = &myaddr6; in bindresvport() [all …]
|