Home
last modified time | relevance | path

Searched refs:addrlen (Results 1 – 25 of 97) sorted by relevance

1234

/titanic_51/usr/src/lib/libsocket/socket/
H A Dweaks.c82 _bind(int sock, struct sockaddr *addr, int addrlen) in _bind() argument
84 return (_so_bind(sock, addr, addrlen, SOV_SOCKBSD)); in _bind()
94 _accept(int sock, struct sockaddr *addr, int *addrlen) in _accept() argument
96 return (_so_accept(sock, addr, addrlen, SOV_DEFAULT, 0)); in _accept()
100 _accept4(int sock, struct sockaddr *addr, int *addrlen, int flags) in _accept4() argument
102 return (_so_accept(sock, addr, addrlen, SOV_DEFAULT, flags)); in _accept4()
106 _connect(int sock, struct sockaddr *addr, int addrlen) in _connect() argument
108 return (_so_connect(sock, addr, addrlen, SOV_DEFAULT)); in _connect()
125 struct sockaddr *addr, int *addrlen) in _recvfrom() argument
128 addr, addrlen)); in _recvfrom()
151 _sendto(int sock,char * buf,int len,int flags,struct sockaddr * addr,int * addrlen) _sendto() argument
221 __xnet_bind(int sock,const struct sockaddr * addr,socklen_t addrlen) __xnet_bind() argument
234 __xnet_connect(int sock,const struct sockaddr * addr,socklen_t addrlen) __xnet_connect() argument
253 __xnet_sendto(int sock,const void * buf,size_t len,int flags,const struct sockaddr * addr,socklen_t addrlen) __xnet_sendto() argument
[all...]
/titanic_51/usr/src/uts/common/io/
H A Dsundlpi.c47 t_uscalar_t addrlen, in dlbindack() argument
54 size = sizeof (dl_bind_ack_t) + addrlen; in dlbindack()
60 dlp->bind_ack.dl_addr_length = addrlen; in dlbindack()
64 if (addrlen != 0) in dlbindack()
65 bcopy(addrp, mp->b_rptr + sizeof (dl_bind_ack_t), addrlen); in dlbindack()
110 t_uscalar_t addrlen, in dluderrorind() argument
117 size = sizeof (dl_uderror_ind_t) + addrlen; in dluderrorind()
122 dlp->uderror_ind.dl_dest_addr_length = addrlen; in dluderrorind()
126 if (addrlen != 0) in dluderrorind()
127 bcopy(addrp, mp->b_rptr + sizeof (dl_uderror_ind_t), addrlen); in dluderrorind()
409 int addrlen, addroff; dl_info() local
[all...]
/titanic_51/usr/src/lib/libsocket/inet/
H A Dgetaddrinfo.c451 socklen_t addrlen; in _getaddrinfo() local
461 addrlen = sizeof (struct sockaddr_in6); in _getaddrinfo()
462 nai->ai_addr = malloc(addrlen); in _getaddrinfo()
467 bzero(nai->ai_addr, addrlen); in _getaddrinfo()
468 nai->ai_addrlen = addrlen; in _getaddrinfo()
499 addrlen = sizeof (struct sockaddr_in); in _getaddrinfo()
500 nai->ai_addr = malloc(addrlen); in _getaddrinfo()
505 bzero(nai->ai_addr, addrlen); in _getaddrinfo()
506 nai->ai_addrlen = addrlen; in _getaddrinfo()
568 int addrlen; in get_addr() local
[all...]
H A Dgetnameinfo.c282 size_t addrlen = strlen(host); in addzoneid() local
286 ((addrlen + 1 + zonelen + 1) > hostlen)) { in addzoneid()
291 host[addrlen] = '%'; /* place address-zoneid delimiter */ in addzoneid()
292 (void) strlcpy((host + addrlen + 1), zonestr, (zonelen + 1)); in addzoneid()
/titanic_51/usr/src/lib/nsswitch/files/common/
H A Dgetnetent.c56 int addrlen; in check_addr() local
75 addrlen = linep - addrstart; in check_addr()
76 if (addrlen < sizeof (addrbuf)) { in check_addr()
77 (void) memcpy(addrbuf, addrstart, addrlen); in check_addr()
78 addrbuf[addrlen] = '\0'; in check_addr()
H A Dnetmasks.c55 int addrlen; in check_addr() local
71 addrlen = linep - addrstart; in check_addr()
72 if (addrlen < sizeof (addrbuf)) { in check_addr()
73 (void) memcpy(addrbuf, addrstart, addrlen); in check_addr()
74 addrbuf[addrlen] = '\0'; in check_addr()
H A Dgethostent.c53 int v6flag = 0, addrlen; in check_name() local
65 addrlen = linep - addrstart; in check_name()
80 if (__nss_files_get_addr(type, addrstart, addrlen, in check_name()
104 return (__nss_files_get_addr(type, addrstart, addrlen, in check_name()
130 __nss_files_get_addr(int af, const char *addrstart, int addrlen, in __nss_files_get_addr() argument
138 if (addrlen >= sizeof (addrbuf)) in __nss_files_get_addr()
140 (void) memcpy(addrbuf, addrstart, addrlen); in __nss_files_get_addr()
141 addrbuf[addrlen] = '\0'; in __nss_files_get_addr()
172 int v6flag = 0, addrlen, h_length; in __nss_files_check_addr() local
194 addrlen in __nss_files_check_addr()
[all...]
/titanic_51/usr/src/lib/libfakekernel/common/
H A Dksocket.c155 ksocket_bind_helper(int fd, struct sockaddr *addr, uint_t addrlen) in ksocket_bind_helper() argument
161 ksocket_bind(ksocket_t ks, struct sockaddr *addr, socklen_t addrlen, in ksocket_bind() argument
172 if (bind(KSTOSO(ks), addr, addrlen) != 0) in ksocket_bind()
176 err = ksocket_bind_helper(KSTOSO(ks), addr, addrlen); in ksocket_bind()
224 ksocket_connect(ksocket_t ks, struct sockaddr *addr, socklen_t addrlen, in ksocket_connect() argument
233 if (connect(KSTOSO(ks), addr, addrlen) != 0) in ksocket_connect()
473 ksocket_getsockname(ksocket_t ks, struct sockaddr *addr, socklen_t *addrlen, in ksocket_getsockname() argument
482 if (addrlen == NULL || (addr == NULL && *addrlen != 0)) in ksocket_getsockname()
485 if (getsockname(KSTOSO(ks), addr, addrlen) ! in ksocket_getsockname()
492 ksocket_getpeername(ksocket_t ks,struct sockaddr * addr,socklen_t * addrlen,struct cred * cr) ksocket_getpeername() argument
[all...]
/titanic_51/usr/src/cmd/sendmail/aux/
H A Dmconnect.c90 int addrlen; local
144 addrlen = sizeof (struct sockaddr_in);
148 addrlen = sizeof (struct sockaddr_in6);
170 addrlen) >= 0)
184 addrlen = sizeof (struct sockaddr_in);
187 addrlen = sizeof (struct sockaddr_in6);
/titanic_51/usr/src/lib/libnsl/nss/
H A Dgethostent.c112 int addrlen, res; in __str2hostent() local
198 addrlen = p - addrstart; in __str2hostent()
199 if (addrlen >= sizeof (addrbuf)) in __str2hostent()
202 (void) memcpy(addrbuf, addrstart, addrlen); in __str2hostent()
203 addrbuf[addrlen] = '\0'; in __str2hostent()
205 if (addrlen > ((af == AF_INET6) ? INET6_ADDRSTRLEN in __str2hostent()
/titanic_51/usr/src/uts/common/inet/
H A Dsdp_itf.h87 socklen_t addrlen);
90 const struct sockaddr *dst, socklen_t addrlen);
101 struct sockaddr *addr, socklen_t *addrlen);
103 struct sockaddr *addr, socklen_t *addrlen);
H A Dsctp_itf.h81 socklen_t addrlen);
86 socklen_t addrlen, cred_t *cr, pid_t pid);
94 socklen_t *addrlen);
96 socklen_t *addrlen);
/titanic_51/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dhostaddr.c92 size_t addrlen; in krb5_os_hostaddr() local
97 addrlen = sizeof (struct in_addr); in krb5_os_hostaddr()
104 addrlen = sizeof (struct in6_addr); in krb5_os_hostaddr()
120 addrs[i]->length = addrlen; in krb5_os_hostaddr()
H A Dchangepw.c108 GETSOCKNAME_ARG3_TYPE addrlen; in kpasswd_sendto_msg_callback() local
116 addrlen = sizeof(local_addr); in kpasswd_sendto_msg_callback()
118 if (getsockname(conn->fd, ss2sa(&local_addr), &addrlen) < 0) { in kpasswd_sendto_msg_callback()
201 GETSOCKNAME_ARG3_TYPE addrlen; in krb5_change_set_password() local
235 addrlen = sizeof(remote_addr); in krb5_change_set_password()
249 &addrlen, in krb5_change_set_password()
/titanic_51/usr/src/uts/common/fs/sockfs/
H A Dsocktpi.c633 t_uscalar_t addrlen; in sotpi_bindlisten() local
680 addrlen = (t_uscalar_t)sizeof (sti->sti_ux_laddr); in sotpi_bindlisten()
681 dprintso(so, 1, ("sobind rebind UNIX: addrlen %d, " in sotpi_bindlisten()
683 addrlen, in sotpi_bindlisten()
688 addrlen = (t_uscalar_t)sti->sti_laddr_len; in sotpi_bindlisten()
723 addrlen = (t_uscalar_t)sizeof (sti->sti_ux_laddr); in sotpi_bindlisten()
739 addrlen = 0; in sotpi_bindlisten()
754 addrlen = 0; in sotpi_bindlisten()
943 addrlen = (t_uscalar_t)sti->sti_laddr_len; in sotpi_bindlisten()
1012 addrlen in sotpi_bindlisten()
2186 socklen_t addrlen; sotpi_connect() local
2837 socklen_t addrlen; so_unix_close() local
3330 t_uscalar_t addrlen; sotpi_recvmsg() local
3651 socklen_t addrlen; sosend_dgramcmsg() local
3965 socklen_t addrlen; sosend_dgram() local
4293 t_uscalar_t addrlen; sotpi_sendmsg() local
4594 socklen_t addrlen; sodgram_direct() local
4824 t_uscalar_t addrlen; sotpi_getpeername() local
4960 t_uscalar_t addrlen; sotpi_getsockname() local
[all...]
/titanic_51/usr/src/lib/libbc/libc/sys/common/
H A Daccept.c36 accept(int s, struct sockaddr *addr, int *addrlen) in accept() argument
39 if ((a = _accept(s, addr, addrlen)) == -1) { in accept()
/titanic_51/usr/src/contrib/ast/src/lib/libcmd/
H A Dfds.c176 socklen_t addrlen; in b_fds() local
256 addrlen = sizeof(addr); in b_fds()
257 memset(&addr, 0, addrlen); in b_fds()
258 if (!getsockname(i, (struct sockaddr*)&addr, (void*)&addrlen)) in b_fds()
340 e = (b = (unsigned char*)&addr) + addrlen; in b_fds()
/titanic_51/usr/src/lib/libcmd/common/
H A Dfds.c176 socklen_t addrlen; in b_fds() local
256 addrlen = sizeof(addr); in b_fds()
257 memset(&addr, 0, addrlen); in b_fds()
258 if (!getsockname(i, (struct sockaddr*)&addr, (void*)&addrlen)) in b_fds()
340 e = (b = (unsigned char*)&addr) + addrlen; in b_fds()
/titanic_51/usr/src/lib/nsswitch/dns/common/
H A Dgethostent6.c135 int domap, addrlen, i, j, addrCount, moreAddrCount = 0; in cloneAddrList() local
154 addrlen = h->h_length; in cloneAddrList()
155 if (domap && addrlen < sizeof (struct in6_addr)) in cloneAddrList()
156 addrlen = sizeof (struct in6_addr); in cloneAddrList()
166 addrCount*addrlen)) == 0) { in cloneAddrList()
182 addrlen); in cloneAddrList()
184 addrList = PTROFF(addrList, addrlen); in cloneAddrList()
H A Dgethostent.c202 int af, addrlen; local
211 addrlen = sizeof (unmapv4);
213 (void) memcpy(addrp, &argp->key.hostaddr.addr[12], addrlen);
216 addrlen = argp->key.hostaddr.len;
219 he = _gethostbyaddr(&argp->h_errno, addrp, addrlen, af);
/titanic_51/usr/src/cmd/cmd-inet/usr.lib/slpd/
H A Dslpd.c165 socklen_t addrlen; in main() local
209 addrlen = sizeof (bindaddr); in main()
210 if ((connfd = accept(lfd, (struct sockaddr *)&bindaddr, &addrlen)) in main()
/titanic_51/usr/src/lib/libsocket/common/
H A Dllib-lsocket85 int accept(int s, struct sockaddr *addr, Psocklen_t addrlen);
86 int accept4(int s, struct sockaddr *addr, Psocklen_t addrlen, int flags);
104 int _accept(int s, struct sockaddr *addr, int *addrlen);
105 int _accept4(int s, struct sockaddr *addr, int *addrlen, int flags);
120 int __xnet_bind(int sock, const struct sockaddr *addr, socklen_t addrlen);
122 int __xnet_connect(int sock, const struct sockaddr *addr, socklen_t addrlen);
126 const struct sockaddr *addr, socklen_t addrlen);
/titanic_51/usr/src/uts/common/io/ksocket/
H A Dksocket.c102 ksocket_bind(ksocket_t ks, struct sockaddr *addr, socklen_t addrlen, in ksocket_bind() argument
113 error = socket_bind(KSTOSO(ks), addr, addrlen, _SOBIND_SOCKBSD, cr); in ksocket_bind()
171 ksocket_connect(ksocket_t ks, struct sockaddr *addr, socklen_t addrlen, in ksocket_connect() argument
180 return (socket_connect(KSTOSO(ks), addr, addrlen, in ksocket_connect()
565 ksocket_getsockname(ksocket_t ks, struct sockaddr *addr, socklen_t *addrlen, in ksocket_getsockname() argument
578 if (addrlen == NULL || (addr == NULL && *addrlen != 0)) in ksocket_getsockname()
581 return (socket_getsockname(so, addr, addrlen, cr)); in ksocket_getsockname()
585 ksocket_getpeername(ksocket_t ks, struct sockaddr *addr, socklen_t *addrlen, in ksocket_getpeername() argument
598 if (addrlen in ksocket_getpeername()
[all...]
/titanic_51/usr/src/cmd/sendmail/src/
H A Dsasl.c215 ** addrlen -- length of socket address
237 iptostring(addr, addrlen, out, outlen) in iptostring() argument
239 SOCKADDR_LEN_T addrlen;
260 if (getnameinfo((struct sockaddr *) addr, addrlen,
/titanic_51/usr/src/lib/krb5/kadm5/clnt/
H A Dchangepw.c98 int i, addrlen; local
189 addrlen = sizeof (local_addr);
191 if (getsockname(s2, &local_addr, &addrlen) < 0)
230 addrlen = sizeof (remote_addr);
231 if (getpeername(s2, &remote_addr, &addrlen) < 0)

1234