]> git.decadent.org.uk Git - nfs-utils.git/commit
libexport.a: Replace matchhostname()
authorChuck Lever <chuck.lever@oracle.com>
Tue, 22 Jun 2010 17:06:40 +0000 (13:06 -0400)
committerSteve Dickson <steved@redhat.com>
Tue, 22 Jun 2010 20:04:53 +0000 (16:04 -0400)
commit21015ace7d0a356b24a57540ccfeb41d941e78ed
tree1735653057e844649f03706b35112d029cafdac7
parent22d6566d473f71e241c791a02435d414648c99e8
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>
support/include/misc.h
utils/exportfs/exportfs.c