summaryrefslogtreecommitdiff
path: root/sys/nfs/nfsrtt.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/nfs/nfsrtt.h')
-rw-r--r--sys/nfs/nfsrtt.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/sys/nfs/nfsrtt.h b/sys/nfs/nfsrtt.h
index a8bfc8b8b90..6e2bd20d3a8 100644
--- a/sys/nfs/nfsrtt.h
+++ b/sys/nfs/nfsrtt.h
@@ -1,4 +1,4 @@
-/* $NetBSD: nfsrtt.h,v 1.3 1995/12/19 23:08:05 cgd Exp $ */
+/* $NetBSD: nfsrtt.h,v 1.4 1996/02/18 11:54:07 fvdl Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -35,9 +35,13 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * @(#)nfsrtt.h 8.1 (Berkeley) 6/10/93
+ * @(#)nfsrtt.h 8.2 (Berkeley) 3/30/95
*/
+
+#ifndef _NFS_NFSRTT_H_
+#define _NFS_NFSRTT_H_
+
/*
* Definitions for performance monitor.
* The client and server logging are turned on by setting the global
@@ -80,6 +84,7 @@ struct nfsrtt {
#define DRT_TCP 0x02 /* Client used TCP transport */
#define DRT_CACHEREPLY 0x04 /* Reply was from recent request cache */
#define DRT_CACHEDROP 0x08 /* Rpc request dropped, due to recent reply */
+#define DRT_NFSV3 0x10 /* Rpc used NFS Version 3 */
/*
* Server log structure
@@ -89,10 +94,12 @@ struct nfsrtt {
struct nfsdrt {
int pos; /* Position of next log entry */
struct drt {
- int flag; /* Bits as defined above */
- int proc; /* NFS procedure number */
- u_int32_t ipadr; /* IP address of client */
- int resptime; /* Response time (usec) */
+ int flag; /* Bits as defined above */
+ int proc; /* NFS procedure number */
+ u_int32_t ipadr; /* IP address of client */
+ int resptime; /* Response time (usec) */
struct timeval tstamp; /* Timestamp of log entry */
} drt[NFSRTTLOGSIZ];
};
+
+#endif