2 * socktoa - return a numeric host name from a sockaddr_storage structure
5 #include <sys/socket.h>
6 #include <netinet/in.h>
13 #include "lib_strbuf.h"
14 #include "ntp_stdlib.h"
20 struct sockaddr_storage* sock
23 register char *buffer;
26 if (getnameinfo((struct sockaddr *)sock, SOCKLEN(sock), buffer,
27 LIB_BUFLENGTH /* NI_MAXHOST*/, NULL, 0, 0))