summaryrefslogtreecommitdiffstats
path: root/support/include/tcpwrapper.h
diff options
context:
space:
mode:
authorhjl <hjl>2000-08-25 23:10:40 +0000
committerhjl <hjl>2000-08-25 23:10:40 +0000
commit764e46f5c5fe1a6e376f4cd350424f33afc9e838 (patch)
tree29248c861c97d8be3f44e162b062808dca306988 /support/include/tcpwrapper.h
parent25f30caad17b6379a462d567b242e961082e1485 (diff)
downloadnfs-utils-764e46f5c5fe1a6e376f4cd350424f33afc9e838.tar.gz
nfs-utils-764e46f5c5fe1a6e376f4cd350424f33afc9e838.tar.xz
nfs-utils-764e46f5c5fe1a6e376f4cd350424f33afc9e838.zip
2000-08-25 H.J. Lu <hjl@lucon.org>
* support/include/tcpwrapper.h: New for the tcp wrapper support. * support/misc/Makefile: Likewise. * support/misc/from_local.c: Likewise. * support/misc/tcpwrapper.c: Likewise. * aclocal.m4 (AC_TCP_WRAPPER): New. * configure.in: Use it. Substitute LIBWRAP. * configure: Rebuilt. * config.mk.in (LIBNSL): New. (LIBWRAP): Likewise. * support/Makefile (SUBDIRS): Add misc. * support/lib/Makefile (LIBS): Add libmisc.a. * utils/rquotad/Makefile (LIBS): Add -lmisc $(LIBWRAP) $(LIBNSL) * utils/statd/Makefile (LIBS): Likewise. * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if HAVE_TCP_WRAPPER is defined. (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is defined. Reject an RPC call if check_default () fails. * utils/statd/statd.c: Include "tcpwrapper.h" if HAVE_TCP_WRAPPER is defined. (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call check_default () before calling sm_prog_1 (). Define it as sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
Diffstat (limited to 'support/include/tcpwrapper.h')
-rw-r--r--support/include/tcpwrapper.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/support/include/tcpwrapper.h b/support/include/tcpwrapper.h
new file mode 100644
index 0000000..98cf806
--- /dev/null
+++ b/support/include/tcpwrapper.h
@@ -0,0 +1,18 @@
+#ifndef TCP_WRAPPER_H
+#define TCP_WRAPPER_H
+
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
+
+extern int verboselog;
+
+extern int allow_severity;
+extern int deny_severity;
+
+extern int good_client(char *daemon, struct sockaddr_in *addr);
+extern int from_local (struct sockaddr_in *addr);
+extern int check_default(char *daemon, struct sockaddr_in *addr,
+ u_long proc, u_long prog);
+
+#endif /* TCP_WRAPPER_H */