summaryrefslogtreecommitdiff
path: root/sys/nfs/nfs.h
diff options
context:
space:
mode:
authorNathan Binkert <nate@cvs.openbsd.org>2002-01-11 01:20:57 +0000
committerNathan Binkert <nate@cvs.openbsd.org>2002-01-11 01:20:57 +0000
commit85d55b026ed83614708f835806feb9b15245fe7f (patch)
treef3a274897116b003d4d9927760a46daeb5613677 /sys/nfs/nfs.h
parentea3895d1acd085a6fdf27ccb93ba3d5ce07ef46e (diff)
Add a new sysctl that removes the requirement for reserved ports to be
used by the nfs server.
Diffstat (limited to 'sys/nfs/nfs.h')
-rw-r--r--sys/nfs/nfs.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/nfs/nfs.h b/sys/nfs/nfs.h
index 6956ce54b26..56840a40208 100644
--- a/sys/nfs/nfs.h
+++ b/sys/nfs/nfs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs.h,v 1.15 2001/12/19 08:58:06 art Exp $ */
+/* $OpenBSD: nfs.h,v 1.16 2002/01/11 01:20:56 nate Exp $ */
/* $NetBSD: nfs.h,v 1.10.4.1 1996/05/27 11:23:56 fvdl Exp $ */
/*
@@ -225,12 +225,14 @@ struct nfsstats {
*/
#define NFS_NFSSTATS 1 /* struct: struct nfsstats */
#define NFS_NIOTHREADS 2 /* number of i/o threads */
-#define NFS_MAXID 3
+#define NFS_NORSVPORT 3 /* if > 0, don't require reserved port */
+#define NFS_MAXID 4
#define FS_NFS_NAMES { \
{ 0, 0 }, \
{ "nfsstats", CTLTYPE_STRUCT }, \
- { "iothreads", CTLTYPE_INT } \
+ { "iothreads", CTLTYPE_INT }, \
+ { "norsvport", CTLTYPE_INT } \
}
/*
@@ -243,6 +245,7 @@ struct nfsstats {
*/
#ifdef _KERNEL
extern int nfs_niothreads;
+extern int nfs_norsvport;
struct uio; struct buf; struct vattr; struct nameidata; /* XXX */