From: Chuck Lever Date: Tue, 22 Jun 2010 17:06:40 +0000 (-0400) Subject: libexport.a: Replace matchhostname() X-Git-Tag: nfs-utils-1-2-3-rc4~2 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=21015ace7d0a356b24a57540ccfeb41d941e78ed;hp=21015ace7d0a356b24a57540ccfeb41d941e78ed libexport.a: Replace matchhostname() So that exportfs can eventually support IPv6 addresses, copy statd's getaddrinfo(3)-based matchhostname to exportfs, with adjustments for dealing with export wildcards and netgroups. Until exportfs has full IPv6 support, however, we want to ensure that IPv6 addresses continue to remain blocked in the address comparison code used by exportfs. At a later point we'll replace much of this with the generic functions in sockaddr.h. Since it contains special logic for handling wildcard and netgroups, this function is specialized for exportfs, and does not belong in one of the shared libraries. Signed-off-by: Chuck Lever Signed-off-by: Steve Dickson ---