Home
last modified time | relevance | path

Searched refs:fromlen (Results 1 – 25 of 37) sorted by relevance

12

/titanic_44/usr/src/cmd/ssh/libssh/common/
H A Dcanohost.c42 socklen_t fromlen; in get_remote_hostname() local
47 fromlen = sizeof(from); in get_remote_hostname()
49 if (getpeername(socket, (struct sockaddr *) &from, &fromlen) < 0) { in get_remote_hostname()
54 if ((res = getnameinfo((struct sockaddr *)&from, fromlen, ntop, sizeof(ntop), in get_remote_hostname()
73 if (getnameinfo((struct sockaddr *)&from, fromlen, name, sizeof(name), in get_remote_hostname()
308 socklen_t fromlen; in get_sock_port() local
312 fromlen = sizeof(from); in get_sock_port()
315 if (getsockname(sock, (struct sockaddr *)&from, &fromlen) < 0) { in get_sock_port()
320 if (getpeername(sock, (struct sockaddr *) & from, &fromlen) < 0) { in get_sock_port()
326 if (getnameinfo((struct sockaddr *)&from, fromlen, NULL, 0, in get_sock_port()
H A Dpacket.c227 socklen_t fromlen, tolen; in packet_connection_is_on_socket() local
232 fromlen = sizeof(from); in packet_connection_is_on_socket()
234 if (getpeername(connection_in, (struct sockaddr *)&from, &fromlen) < 0) in packet_connection_is_on_socket()
240 if (fromlen != tolen || memcmp(&from, &to, fromlen) != 0) in packet_connection_is_on_socket()
/titanic_44/usr/src/lib/libbc/libc/sys/common/
H A Drecv.c54 int recvfrom(s, buf, len, flags, from, fromlen) in recvfrom() argument
59 int *fromlen;
62 if ((a = _recvfrom(s, buf, len, flags, from, fromlen)) == -1) {
/titanic_44/usr/src/lib/libc/port/gen/
H A Diconv.c278 size_t tolen, fromlen; in iconv_search_alias() local
316 fromlen = search_alias(&p, buflen, fromcode); in iconv_search_alias()
317 if (fromlen) { in iconv_search_alias()
318 from_canonical = alloca(fromlen + 1); in iconv_search_alias()
319 (void) memcpy(from_canonical, p, fromlen); in iconv_search_alias()
320 from_canonical[fromlen] = '\0'; in iconv_search_alias()
325 if (tolen == 0 && fromlen == 0) { in iconv_search_alias()
/titanic_44/usr/src/cmd/ssh/sshd/
H A Dsshlogin.c84 static socklen_t fromlen; in record_login() local
97 fromlen = sizeof(from); in record_login()
99 (struct sockaddr *) &from, &fromlen) < 0) { in record_login()
/titanic_44/usr/src/ucblib/librpcsoc/
H A Drtime.c86 int fromlen; local
120 fromlen = sizeof (from);
122 (struct sockaddr *)&from, &fromlen);
H A Dclnt_udp.c230 int fromlen; local
378 fromlen = sizeof (struct sockaddr);
381 (struct sockaddr *)&from, &fromlen);
/titanic_44/usr/src/lib/libsctp/common/
H A Dsctp.c262 socklen_t *fromlen, struct sctp_sndrcvinfo *sinfo, int *msg_flags) in sctp_recvmsg() argument
271 hdr.msg_namelen = (fromlen != NULL) ? *fromlen : 0; in sctp_recvmsg()
289 if (fromlen != NULL) { in sctp_recvmsg()
290 *fromlen = hdr.msg_namelen; in sctp_recvmsg()
/titanic_44/usr/src/lib/libwrap/
H A Dworkarounds.c129 int fix_recvfrom(sock, buf, buflen, flags, from, fromlen) in fix_recvfrom() argument
135 int *fromlen;
141 if ((ret = recvfrom(sock, buf, buflen, flags, from, fromlen)) >= 0) {
/titanic_44/usr/src/cmd/cmd-inet/usr.bin/tftp/
H A Dtftpsubs.c312 socklen_t fromlen; in synchnet() local
321 fromlen = sizeof (from); in synchnet()
323 (struct sockaddr *)&from, &fromlen) < 0) in synchnet()
H A Dtftp.c122 socklen_t fromlen; in tftp_sendfile() local
175 fromlen = (socklen_t)sizeof (from); in tftp_sendfile()
178 (struct sockaddr *)&from, &fromlen); in tftp_sendfile()
249 socklen_t fromlen; in tftp_recvfile() local
303 fromlen = (socklen_t)sizeof (from); in tftp_recvfile()
305 (struct sockaddr *)&from, &fromlen); in tftp_recvfile()
/titanic_44/usr/src/stand/lib/sock/
H A Dsock_test.c237 struct sockaddr *from, socklen_t *fromlen) in st_local_recvfrom() argument
240 return (recvfrom(sd, buf, len, flags, from, fromlen)); in st_local_recvfrom()
669 socklen_t fromlen; in st_recvfrom() local
686 fromlen = sizeof (from); in st_recvfrom()
688 (struct sockaddr *)&from, &fromlen)) <= 0) { in st_recvfrom()
H A Dsocket.c795 socklen_t *fromlen) in recvfrom() argument
885 if (from != NULL && fromlen != NULL) { in recvfrom()
889 bcopy(&(sockets[sock_id].remote), from, MIN(*fromlen, in recvfrom()
895 if (*fromlen > sizeof (icp->igm_saddr)) in recvfrom()
896 *fromlen = sizeof (icp->igm_saddr); in recvfrom()
898 MIN(*fromlen, sizeof (struct sockaddr_in))); in recvfrom()
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.comsat.c139 socklen_t fromlen; local
159 fromlen = (socklen_t)sizeof (from);
160 if (getsockname(0, (struct sockaddr *)&from, &fromlen) < 0) {
H A Din.rexecd.c114 socklen_t fromlen; in main() local
118 fromlen = (socklen_t)sizeof (from); in main()
119 if (getpeername(0, (struct sockaddr *)&from, &fromlen) < 0) { in main()
H A Din.rlogind.c184 socklen_t fromlen; in main() local
296 fromlen = sizeof (from); in main()
297 if ((fd = accept(s, (struct sockaddr *)&from, &fromlen)) < 0) { in main()
311 fromlen = sizeof (from); in main()
312 if (getpeername(fd, (struct sockaddr *)&from, &fromlen) < 0) in main()
/titanic_44/usr/src/stand/lib/fs/nfs/
H A Dclnt_budp.c240 socklen_t fromlen; local
333 fromlen = sizeof (struct sockaddr);
337 (struct sockaddr *)&from, &fromlen);
H A Dclnt_btcp.c409 uint_t fromlen = sizeof (from); in readtcp() local
419 &fromlen)) == 0) { in readtcp()
/titanic_44/usr/src/cmd/sed/
H A Ddefs.h79 size_t fromlen; member
H A Dprocess.c501 if (left >= y->multis[i].fromlen && in do_tr()
503 y->multis[i].fromlen) == 0) in do_tr()
508 clen = y->multis[i].fromlen; in do_tr()
/titanic_44/usr/src/lib/krb5/kadm5/srv/
H A Dchgpwd.c573 int fromlen; in handle_chpw() local
583 fromlen = sizeof (from); in handle_chpw()
586 &fromlen)) < 0) { in handle_chpw()
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Drdisc.c1434 socklen_t fromlen; in process_d_mib_sock() local
1444 fromlen = (socklen_t)sizeof (from); in process_d_mib_sock()
1446 (struct sockaddr *)&from, &fromlen); in process_d_mib_sock()
1467 (struct sockaddr *)&from, fromlen); in process_d_mib_sock()
1480 fromlen); in process_d_mib_sock()
/titanic_44/usr/src/cmd/krb5/slave/
H A Dkpropd.c324 int finet, fromlen, s; in do_standalone() local
525 socklen_t fromlen; local
563 fromlen = (socklen_t)sizeof (from);
564 if (getpeername(fd, (struct sockaddr *) &from, &fromlen) < 0) {
575 if (getnameinfo((struct sockaddr *)&from, fromlen, ntop, sizeof(ntop),
/titanic_44/usr/src/lib/libsocket/common/
H A Dllib-lsocket91 struct sockaddr *from, Psocklen_t fromlen);
110 struct sockaddr *from, int *fromlen);
/titanic_44/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/
H A Dmain.c1713 socklen_t fromlen; in process_mibsock() local
1719 fromlen = (socklen_t)sizeof (from); in process_mibsock()
1721 (struct sockaddr *)&from, &fromlen); in process_mibsock()
1733 (struct sockaddr *)&from, fromlen); in process_mibsock()
1771 (struct sockaddr *)&from, fromlen); in process_mibsock()
1796 (struct sockaddr *)&from, fromlen); in process_mibsock()
1810 (struct sockaddr *)&from, fromlen); in process_mibsock()

12