4 * socktoa - return a numeric host name from a sockaddr_storage structure
7 #ifdef HAVE_SYS_SOCKET_H
8 #include <sys/socket.h>
10 #ifdef HAVE_NETINET_IN_H
11 #include <netinet/in.h>
14 #include <arpa/inet.h>
19 #include "lib_strbuf.h"
20 #include "ntp_stdlib.h"
29 register char *buffer
;
32 if (getnameinfo(&sock
->sa
, SOCKLEN(sock
), buffer
,
33 LIB_BUFLENGTH
, NULL
, 0, 0))