Lines Matching refs:ntop
44 char name[NI_MAXHOST], ntop[NI_MAXHOST], ntop2[NI_MAXHOST]; in get_remote_hostname() local
54 if ((res = getnameinfo((struct sockaddr *)&from, fromlen, ntop, sizeof(ntop), in get_remote_hostname()
64 ntop, sizeof(ntop)); in get_remote_hostname()
69 return xstrdup(ntop); in get_remote_hostname()
71 debug3("Trying to reverse map address %.100s.", ntop); in get_remote_hostname()
77 log("Could not reverse map address %.100s.", ntop); in get_remote_hostname()
79 return xstrdup(ntop); in get_remote_hostname()
107 return xstrdup(ntop); in get_remote_hostname()
113 (strcmp(ntop, ntop2) == 0)) in get_remote_hostname()
122 ntop, name); in get_remote_hostname()
123 return xstrdup(ntop); in get_remote_hostname()
169 char ntop[NI_MAXHOST]; in get_socket_address() local
194 if (getnameinfo((struct sockaddr *)&addr, addrlen, ntop, sizeof (ntop), in get_socket_address()
201 return (xstrdup(ntop)); in get_socket_address()
215 char ntop[NI_MAXHOST];
231 if (getnameinfo((struct sockaddr *)&addr, addrlen, ntop, sizeof(ntop),
236 return xstrdup(ntop);