/osnet-11/usr/src/lib/libsocket/inet/ |
H A D | bindresvport.c | 52 bindresvport(int sd, struct sockaddr_in *sin) argument 61 bindaddr = sin; 107 if (ret >= 0 && sin != NULL) { 113 * filled in its "sin" parameter (if passed in), perhaps
|
H A D | rcmd.c | 103 struct sockaddr_in *sin; local 337 sin = (struct sockaddr_in *)&faddr; 338 if (ntohs(sin->sin_port) >= IPPORT_RESERVED) { 423 struct sockaddr_in *sin; local 431 sin = (struct sockaddr_in *)addr; 456 sin->sin_port = htons((ushort_t)*alport); 483 sin->sin_port = 0; 501 sin = (struct sockaddr_in *)addr; 502 *alport = ntohs(sin->sin_port);
|
/osnet-11/usr/src/lib/libinetutil/common/ |
H A D | ifaddrlist.c | 57 struct sockaddr_in *sin; local 158 sin = (struct sockaddr_in *)&lifrp->lifr_addr; 159 al->addr.addr = sin->sin_addr;
|
/osnet-11/usr/src/lib/libuuid/common/ |
H A D | etheraddr.c | 55 struct sockaddr_in *sin; local 64 sin = (struct sockaddr_in *)&ar.arp_pa; 65 sin->sin_family = AF_INET; 66 sin->sin_addr.s_addr = inet_addr(name.nodename); 67 if (sin->sin_addr.s_addr == (in_addr_t)-1) { 72 (void) memcpy(&sin->sin_addr, hp->h_addr, 73 sizeof (sin->sin_addr));
|
/osnet-11/usr/src/lib/librpcsvc/common/ |
H A D | bindresvport.c | 69 struct sockaddr_in *sin; local 141 sin = (struct sockaddr_in *)tbind->addr.buf; 142 sin->sin_family = AF_INET; 161 sin->sin_port = htons(port++);
|
/osnet-11/usr/src/lib/libwrap/ |
H A D | socket.c | 114 request->client->sin = &client; 128 request->server->sin = &server; 136 struct sockaddr_gen *sin = host->sin; local 138 if (sin != 0) 141 (void) inet_ntop(SGFAM(sin), SGADDRP(sin), host->addr, sizeof(host->addr)); 143 STRN_CPY(host->addr, inet_ntoa(sin->sg_sin.sin_addr), sizeof(host->addr)); 152 struct sockaddr_gen *sin = host->sin; local 248 struct sockaddr_in sin; local [all...] |
H A D | workarounds.c | 173 struct sockaddr_in *sin = (struct sockaddr_in *) sa; local 177 && sin->sin_addr.s_addr == 0) {
|
H A D | tcpd.h | 90 struct sockaddr_gen *sin; /* socket address or 0 */ member in struct:host_info
|
/osnet-11/usr/src/lib/libslp/clib/ |
H A D | slp_ipc.c | 263 struct sockaddr_in *sin; local 272 if (!(sin = calloc(1, sizeof (*sin)))) { 277 IN_SET_LOOPBACK_ADDR(sin); 278 sin->sin_family = AF_INET; 279 sin->sin_port = htons(SLP_PORT); 282 local_sin = sin;
|
H A D | slp_net_utils.c | 335 struct sockaddr_in *sin = (struct sockaddr_in *)sa; local 337 if (slp_pton(surl->s_pcHost, &(sin->sin_addr)) < 1) 339 sin->sin_family = AF_INET; 341 sin->sin_port = htons(
|
H A D | slp_targets.c | 91 * with slp_free_target; the input sin will duplicated 114 struct sockaddr_in sin; member in struct:da_node 295 return (void *)(p ? &(p->da->sin) : NULL); 311 struct sockaddr_in *sin = (struct sockaddr_in *)s; local 322 (void) memcpy(&(dn->sin), sin, sizeof (dn->sin)); 416 static void add_da_entry(struct da_node **tel, struct sockaddr_in *sin, argument 427 (void) memcpy(&(te->sin), sin, sizeo 475 struct sockaddr_in sin[1]; local [all...] |
/osnet-11/usr/src/lib/libipmp/common/ |
H A D | ipmp_mpathd.c | 58 struct sockaddr_in sin; local 76 (void) memset(&sin, 0, sizeof (struct sockaddr_in)); 77 sin.sin_port = htons(0); 78 sin.sin_family = AF_INET; 79 sin.sin_addr.s_addr = htonl(INADDR_ANY); 81 if (bind(fd, (struct sockaddr *)&sin, sizeof (sin)) == -1) 87 sin.sin_port = htons(MPATHD_PORT); 88 sin.sin_addr.s_addr = htonl(INADDR_LOOPBACK); 90 if (connect(fd, (struct sockaddr *)&sin, sizeo [all...] |
/osnet-11/usr/src/cmd/sendmail/aux/ |
H A D | mconnect.c | 55 struct sockaddr_in sin; /* INET family */ member in union:bigsockaddr 141 SendmailAddress.sin.sin_port = port; 143 &SendmailAddress.sin.sin_addr, INADDRSZ); 161 host, inet_ntoa(SendmailAddress.sin.sin_addr), 162 ntohs(SendmailAddress.sin.sin_port)); 182 &SendmailAddress.sin.sin_addr,
|
/osnet-11/usr/src/lib/libstmfproxy/common/ |
H A D | stmftransport.c | 81 struct sockaddr_in sin; local 132 if ((inet_aton(server, &sin.sin_addr)) == 0) { 134 memcpy(&sin.sin_addr.s_addr, hp->h_addr, 148 sin.sin_family = AF_INET; 150 sin.sin_port = htons(6543); 152 while (connect(sfd, (struct sockaddr *)&sin, 153 sizeof (sin)) < 0) {
|
/osnet-11/usr/src/lib/libsmbfs/common/ |
H A D | smbfs_connect.c | 222 struct sockaddr_in sin; local 232 bcopy(sa, &sin, sizeof (sin)); 233 sin.sin_port = htons(port); 236 inet_ntop(AF_INET, &sin.sin_addr, 256 sndcall.addr.maxlen = sizeof (sin); 257 sndcall.addr.len = sizeof (sin); 258 sndcall.addr.buf = (void *) &sin; 289 struct sockaddr_in sin; local 295 bcopy(saarg, &sin, sizeo [all...] |
H A D | smbfs_util.c | 491 struct sockaddr_in *sin; local 500 sin = (void *)sa; 501 ip = inet_ntop(AF_INET, &sin->sin_addr,
|
/osnet-11/usr/src/lib/ncad_addr/common/ |
H A D | ncad_addr.c | 198 struct sockaddr_in sin; local 226 namelen != sizeof (sin)) { 230 (void) memcpy(&sin, name, sizeof (sin)); 237 if (sin.sin_port == ncaaddrs[i].port && 238 (sin.sin_addr.s_addr == ncaaddrs[i].ipaddr || 245 sin.sin_family = AF_NCA; 251 return (real_bind(sock, (struct sockaddr *)&sin, namelen));
|
/osnet-11/usr/src/lib/libsmbns/common/ |
H A D | smbns_netbios_datagram.c | 322 struct sockaddr_in sin; local 360 (void) memcpy(&buffer[4], &src->addr_list.sin.sin_addr.s_addr, 362 (void) memcpy(&buffer[8], &src->addr_list.sin.sin_port, 372 bzero(&sin, sizeof (sin)); 373 sin.sin_family = AF_INET; 374 sinlen = sizeof (sin); 377 ipaddr.a_ipv4 = addr->sin.sin_addr.s_addr; 383 sin.sin_addr.s_addr = ipaddr.a_ipv4; 384 sin 402 struct sockaddr_in sin; local 820 struct sockaddr_in sin; local [all...] |
/osnet-11/usr/src/lib/libldap4/common/ |
H A D | os-ip.c | 88 do_connect(int s, struct sockaddr *sin, int timeout) argument 100 if (connect(s, sin, sizeof (struct sockaddr_in)) == 0) { 145 struct sockaddr_in sin; local 191 (void) memset((char *)&sin, 0, sizeof (struct sockaddr_in)); 192 sin.sin_family = AF_INET; 193 sin.sin_port = port; 194 SAFEMEMCPY((char *) &sin.sin_addr.s_addr, 196 (char *)&address), sizeof (sin.sin_addr.s_addr)); 198 if (do_connect(s, (struct sockaddr *)&sin, timeout) == 0) { 220 perror((char *)inet_ntoa(sin 273 struct sockaddr_in sin; local [all...] |
/osnet-11/usr/src/lib/libdscp/ |
H A D | libdscp.c | 178 struct sockaddr_in *sin; local 204 sin = (struct sockaddr_in *)saddr; 205 reqaddr = ntohl(*((uint32_t *)&(sin->sin_addr))); 222 sin = (struct sockaddr_in *)&daddr; 223 spaddr = ntohl(*((uint32_t *)&(sin->sin_addr)));
|
/osnet-11/usr/src/lib/libipadm/common/ |
H A D | ipadm_ngz.c | 229 struct sockaddr_in *sin; local 245 sin = (struct sockaddr_in *)&ss; 246 bcopy(&zaddr[i].zna_addr4, &sin->sin_addr, 247 sizeof (sin->sin_addr));
|
/osnet-11/usr/src/lib/krb5/kadm5/srv/ |
H A D | chgpwd.c | 57 struct sockaddr_in *sin, krb5_data *req, 291 remote_kaddr.length = sizeof (sin->sin_addr); 292 remote_kaddr.contents = (krb5_octet *) &sin->sin_addr; 55 process_chpw_request(krb5_context context, void *server_handle, char *realm, int s, krb5_keytab keytab, struct sockaddr_in *sin, krb5_data *req, krb5_data *rep) argument
|
/osnet-11/usr/src/cmd/hal/addons/network-devices/ |
H A D | common.c | 134 struct sockaddr_in *sin = (struct sockaddr_in *)&ar.xarp_pa; local 136 sin->sin_family = AF_INET; 137 sin->sin_addr.s_addr = inet_addr(name); 157 struct sockaddr_in *sin = (struct sockaddr_in *)&ar.xarp_pa; local 159 addr_to_string("IPV4ADDR-", (uchar_t *)&sin->sin_addr.s_addr, 4,
|
/osnet-11/usr/src/lib/udapl/udapl_tavor/common/ |
H A D | dapl_name_service.c | 357 struct sockaddr_in *sin; local 362 sin = (struct sockaddr_in *)&ar.xarp_pa; 363 sin->sin_family = AF_INET; 364 sin->sin_addr.s_addr = addr->sin_addr.s_addr;
|
/osnet-11/usr/src/lib/libdhcpagent/common/ |
H A D | dhcpagent_ipc.c | 422 struct sockaddr_in sin; local 425 (void) memset(&sin, 0, sizeof (struct sockaddr_in)); 427 sin.sin_family = AF_INET; 428 sin.sin_port = htons(IPPORT_DHCPAGENT); 429 sin.sin_addr.s_addr = htonl(INADDR_LOOPBACK); 444 if (bind(*listen_fd, (struct sockaddr *)&sin, sizeof (sin)) == -1) {
|