Searched defs:sin (Results 1 - 25 of 189) sorted by relevance

12345678

/illumos-gate/usr/src/lib/libm/i386/src/
H A Dsin.s29 .file "sin.s"
32 LIBM_ANSI_PRAGMA_WEAK(sin,function)
35 ENTRY(sin) function
58 SET_SIZE(sin)
/illumos-gate/usr/src/lib/libbc/libc/net/
H A Dbindresvport.c38 bindresvport(int sd, struct sockaddr_in *sin) argument
49 if (sin == (struct sockaddr_in *)0) {
50 sin = &myaddr;
51 bzero(sin, sizeof (*sin));
52 sin->sin_family = AF_INET;
53 } else if (sin->sin_family != AF_INET) {
63 sin->sin_port = htons(port++);
67 res = bind(sd, sin, sizeof(struct sockaddr_in));
H A Drexec.c53 struct sockaddr_in sin, sin2, from; local
71 sin.sin_family = hp->h_addrtype;
72 sin.sin_port = rport;
73 bcopy(hp->h_addr, (caddr_t)&sin.sin_addr, hp->h_length);
74 if (connect(s, &sin, sizeof(sin)) < 0) {
/illumos-gate/usr/src/cmd/smbsrv/bind-helper/
H A Dbind-helper.c46 struct sockaddr_in *sin = (struct sockaddr_in *)&sa; local
61 rc = inet_pton(AF_INET, argv[2], &sin->sin_addr);
62 sin->sin_port = htons(atoi(argv[3]));
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dbindresvport.c55 bindresvport(int sd, struct sockaddr_in *sin) argument
63 bindaddr = sin;
109 if (ret >= 0 && sin != NULL) {
115 * filled in its "sin" parameter (if passed in), perhaps
/illumos-gate/usr/src/lib/libuuid/common/
H A Detheraddr.c55 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));
/illumos-gate/usr/src/lib/libinetutil/common/
H A Difaddrlist.c57 struct sockaddr_in *sin; local
158 sin = (struct sockaddr_in *)&lifrp->lifr_addr;
159 al->addr.addr = sin->sin_addr;
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.fingerd.c57 struct sockaddr_storage sin; local
63 i = sizeof (sin);
64 if (getpeername(0, (struct sockaddr *)&sin, &i) < 0)
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/
H A Drdma_transport.c161 struct sockaddr_in sin; local
176 sin.sin_family = PF_INET;
177 sin.sin_addr.s_addr = (uint32_t)htonl(INADDR_ANY);
178 sin.sin_port = (uint16_t)htons(RDSV3_PORT);
184 ret = rdma_bind_addr(cm_id, (struct sockaddr *)&sin);
/illumos-gate/usr/src/cmd/smbsrv/fksmbd/
H A Dfksmbd_ksock.c40 struct sockaddr_in *sin = (struct sockaddr_in *)addr; local
50 ntohs(sin->sin_port));
51 p = inet_ntop(AF_INET, &sin->sin_addr,
/illumos-gate/usr/src/cmd/idmap/idmapd/
H A Dkrb5_lookup.c123 struct sockaddr_in sin; local
125 (void) memset(&sin, 0, sizeof (sin));
126 sin.sin_family = AF_INET;
127 sin.sin_port = port;
128 (void) memcpy(&sin.sin_addr, &dsa->sin_addr,
129 sizeof (sin.sin_addr));
130 rc = cbfunc(cbdata, socktype, (struct sockaddr *)&sin);
/illumos-gate/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_krb5lookup.c127 struct sockaddr_in sin; local
128 (void) memset(&sin, 0, sizeof (sin));
129 sin.sin_family = AF_INET;
130 sin.sin_port = port;
131 (void) memcpy(&sin.sin_addr, &dxi.d_dci.dc_addr.a_ipv4,
132 sizeof (sin.sin_addr));
133 rc = cbfunc(cbdata, socktype, (struct sockaddr *)&sin);
/illumos-gate/usr/src/lib/librpcsvc/common/
H A Dbindresvport.c72 struct sockaddr_in *sin; local
144 sin = (struct sockaddr_in *)tbind->addr.buf;
145 sin->sin_family = AF_INET;
164 sin->sin_port = htons(port++);
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dgetaddr.c85 struct sockaddr_in *sin; local
94 sin = (void *)sa;
95 ip = inet_ntop(AF_INET, &sin->sin_addr,
H A Dnb_name.c86 struct sockaddr_in *sin; local
107 sin = (struct sockaddr_in *)peer;
108 snb->snb_ipaddr = sin->sin_addr.s_addr;
/illumos-gate/usr/src/lib/libwrap/
H A Dsocket.c117 request->client->sin = &client;
131 request->server->sin = &server;
139 struct sockaddr_gen *sin = host->sin; local
141 if (sin != 0)
144 (void) inet_ntop(SGFAM(sin), SGADDRP(sin), host->addr, sizeof(host->addr));
146 STRN_CPY(host->addr, inet_ntoa(sin->sg_sin.sin_addr), sizeof(host->addr));
155 struct sockaddr_gen *sin = host->sin; local
251 struct sockaddr_in sin; local
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/common/
H A Daddr_match.c39 * the res parameter, comparing to the original address in sin or sin6,
47 const struct sockaddr_in *sin,
53 if ((fromp->ss_family == AF_INET && sin == NULL) ||
69 addr2 = &((struct sockaddr_in *)sin)->sin_addr;
89 const struct sockaddr_in *sin,
108 match_found = find_match(res, fromp, sin, sin6);
45 find_match(const struct addrinfo *res, const struct sockaddr_storage *fromp, const struct sockaddr_in *sin, const struct sockaddr_in6 *sin6) argument
87 check_address(const char *prog, const struct sockaddr_storage *fromp, const struct sockaddr_in *sin, const struct sockaddr_in6 *sin6, const char *printable_addr, char *hostname, size_t hostsize) argument
/illumos-gate/usr/src/lib/libslp/clib/
H A Dslp_ipc.c263 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;
/illumos-gate/usr/src/lib/libstmfproxy/common/
H A Dstmftransport.c81 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) {
/illumos-gate/usr/src/lib/libipmp/common/
H A Dipmp_mpathd.c58 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...]
/illumos-gate/usr/src/cmd/prtdscp/sparc/sun4u/
H A Dprtdscp.c198 struct sockaddr_in *sin; local
208 sin = (struct sockaddr_in *)&saddr;
209 if (inet_ntop(AF_INET, &(sin->sin_addr), addr, sizeof (*sin)) == NULL) {
/illumos-gate/usr/src/cmd/sendmail/aux/
H A Dmconnect.c55 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,
/illumos-gate/usr/src/cmd/audio/utilities/
H A DAudioTypeChannel.cc83 short *sin; local
153 sin = (short *)inbuf->GetAddress();
159 smix += *sin++;
/illumos-gate/usr/src/cmd/isns/isnsd/
H A Dserver.c229 struct sockaddr_in sin; local
246 sin.sin_family = AF_INET;
247 sin.sin_port = htons(ISNS_DEFAULT_SERVER_PORT);
248 sin.sin_addr.s_addr = htonl(INADDR_ANY);
250 if (bind(s, (struct sockaddr *)&sin, sizeof (sin)) < 0) {
/illumos-gate/usr/src/cmd/tcpd/
H A Dscaffold.c128 struct sockaddr_gen sin; local
135 request_init(&request, RQ_CLIENT_SIN, &sin, 0);
137 memset((char *) &sin, 0, sizeof(sin));
138 sin.sg_family = hp->h_addrtype;
141 memcpy((char *) SGADDRP(&sin), addr, SGADDRSZ(&sin));

Completed in 95 milliseconds

12345678