summaryrefslogtreecommitdiffstats
path: root/support/include/misc.h
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2010-06-22 13:06:40 -0400
committerSteve Dickson <steved@redhat.com>2010-06-22 16:04:53 -0400
commit21015ace7d0a356b24a57540ccfeb41d941e78ed (patch)
tree1735653057e844649f03706b35112d029cafdac7 /support/include/misc.h
parent22d6566d473f71e241c791a02435d414648c99e8 (diff)
downloadnfs-utils-21015ace7d0a356b24a57540ccfeb41d941e78ed.tar.gz
nfs-utils-21015ace7d0a356b24a57540ccfeb41d941e78ed.tar.xz
nfs-utils-21015ace7d0a356b24a57540ccfeb41d941e78ed.zip
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 <chuck.lever@oracle.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/include/misc.h')
-rw-r--r--support/include/misc.h2
1 files changed, 0 insertions, 2 deletions
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);