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