odd question
in the man page for getaddrinfo they use it in an example for a icmp echo server.
s = getaddrinfo(NULL, argv[1], &hints, &result);
what is the purpose of running this on your own system, fill up a LL of structs with different field options? seems like that should already be known.
struct addrinfo {
int ai_flags;
int ai_family;
int ai_socktype;
int ai_protocol;
socklen_t ai_addrlen;
struct sockaddr *ai_addr;
char *ai_canonname;
struct addrinfo *ai_next;
};