summaryrefslogtreecommitdiffstats
path: root/support/include/tcpwrapper.h
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2010-01-15 16:02:49 -0500
committerSteve Dickson <steved@redhat.com>2010-01-17 16:55:20 -0500
commit8e710e90bcf937d500445082800503f374560399 (patch)
tree9df3f6fc32d7a9a1491f29724ed2c3f8e3781b1a /support/include/tcpwrapper.h
parent7d81b45faeb9ca652f4076cfecd0da742caa22a8 (diff)
downloadnfs-utils-8e710e90bcf937d500445082800503f374560399.tar.gz
nfs-utils-8e710e90bcf937d500445082800503f374560399.tar.xz
nfs-utils-8e710e90bcf937d500445082800503f374560399.zip
tcpwrapper: Add support for IPv6
Assuming the tcp_wrappers library can actually support IPv6 addresses, here's a crack at IPv6 support in nfs-utils' TCP wrapper shim. Some reorganization is done to limit the number of times that @sap is converted to a presentation address string. Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'support/include/tcpwrapper.h')
-rw-r--r--support/include/tcpwrapper.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/support/include/tcpwrapper.h b/support/include/tcpwrapper.h
index 930ec6a..f735106 100644
--- a/support/include/tcpwrapper.h
+++ b/support/include/tcpwrapper.h
@@ -6,6 +6,7 @@
#include <arpa/inet.h>
extern int from_local(const struct sockaddr *sap);
-extern int check_default(char *name, struct sockaddr_in *addr, u_long prog);
+extern int check_default(char *name, struct sockaddr *sap,
+ const unsigned long program);
#endif /* TCP_WRAPPER_H */