From 21015ace7d0a356b24a57540ccfeb41d941e78ed Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Tue, 22 Jun 2010 13:06:40 -0400 Subject: 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 --- support/include/misc.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'support/include/misc.h') diff --git a/support/include/misc.h b/support/include/misc.h index 9a1b25d..e817bc5 100644 --- a/support/include/misc.h +++ b/support/include/misc.h @@ -15,8 +15,6 @@ int randomkey(unsigned char *keyout, int len); int weakrandomkey(unsigned char *keyout, int len); -int matchhostname(const char *h1, const char *h2); - struct hostent; struct hostent *hostent_dup(struct hostent *hp); struct hostent *get_hostent (const char *addr, int len, int type); -- cgit