summaryrefslogtreecommitdiffstats
path: root/utils/statd/Makefile.am
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2010-01-14 12:23:19 -0500
committerSteve Dickson <steved@redhat.com>2010-01-15 14:55:51 -0500
commitcbd3a131e5c02bbd7b92a72b3ac467d71cfee1c4 (patch)
tree026b19a8311b83c5bf9a16edd7299020ff528a07 /utils/statd/Makefile.am
parentf0d3a4bedccca7cce48296757bc1c8bd59b80828 (diff)
downloadnfs-utils-cbd3a131e5c02bbd7b92a72b3ac467d71cfee1c4.tar.gz
nfs-utils-cbd3a131e5c02bbd7b92a72b3ac467d71cfee1c4.tar.xz
nfs-utils-cbd3a131e5c02bbd7b92a72b3ac467d71cfee1c4.zip
statd: Introduce statd version of matchhostname()
For the near future, statd will support IPv6 but exportfs will not. Thus statd will need a version of matchhostname() that can deal properly with IPv6 remotes. To reduce the risk of breaking exportfs, introduce a separate version of matchhostname() for statd to use while exportfs continues to use the existing AF_INET-only implementation. Note that statd will never send matchhostname() a hostname string containing export wildcards, so is_hostame() is not needed in the statd version of matchhostname(). This saves some computational expense when comparing hostnames. A separate statd-specific implementation of matchhostname() allows some flexibility in the long term, as well. We might want to enrich the matching heuristics of our SM_NOTIFY, for example, or replace them entirely with a heuristic that is not dependent upon DNS. Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'utils/statd/Makefile.am')
-rw-r--r--utils/statd/Makefile.am5
1 files changed, 2 insertions, 3 deletions
diff --git a/utils/statd/Makefile.am b/utils/statd/Makefile.am
index d9731b7..a94c012 100644
--- a/utils/statd/Makefile.am
+++ b/utils/statd/Makefile.am
@@ -6,14 +6,13 @@ RPCPREFIX = rpc.
KPREFIX = @kprefix@
sbin_PROGRAMS = statd sm-notify
dist_sbin_SCRIPTS = start-statd
-statd_SOURCES = callback.c notlist.c misc.c monitor.c \
+statd_SOURCES = callback.c notlist.c misc.c monitor.c hostname.c \
simu.c stat.c statd.c svc_run.c rmtcall.c \
notlist.h statd.h system.h version.h
sm_notify_SOURCES = sm-notify.c
BUILT_SOURCES = $(GENFILES)
-statd_LDADD = ../../support/export/libexport.a \
- ../../support/nsm/libnsm.a \
+statd_LDADD = ../../support/nsm/libnsm.a \
../../support/nfs/libnfs.a \
../../support/misc/libmisc.a \
$(LIBWRAP) $(LIBNSL)