From: Chuck Lever Date: Tue, 22 Jun 2010 16:43:01 +0000 (-0400) Subject: mountd: Replace "struct hostent" with "struct addrinfo" X-Git-Tag: nfs-utils-1-2-3-rc4~6 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=0509d3428f523776ddd9d6e9fa318587d3ec7d84;hp=0509d3428f523776ddd9d6e9fa318587d3ec7d84 mountd: Replace "struct hostent" with "struct addrinfo" struct hostent can store either IPv4 or IPv6 addresses, but it can't store both address families concurrently for the same host. Neither can hostent deal with parts of socket addresses that are outside of the sin{,6}_addr field. Replace the use of "struct hostent" everywhere in libexport.a, mountd, and exportfs with "struct addrinfo". This is a large change, but there are so many strong dependencies on struct hostent that this can't easily be broken into smaller pieces. One benefit of this change is that hostent_dup() is no longer required, since the results of getaddrinfo(3) are already dynamically allocated. Signed-off-by: Chuck Lever Signed-off-by: Steve Dickson ---