Added helpers for addrinfo structure.