]> The Tcpdump Group git mirrors - tcpdump/blobdiff - nfs.h
More UNALIGNED_MEM{CPY,CMP} on IP addresses.
[tcpdump] / nfs.h
diff --git a/nfs.h b/nfs.h
index f8956f0def3793fc8de11b1dae4bef7fde283d83..056a909911899ae4184b3f3f918ea6677d9d1c4a 100644 (file)
--- a/nfs.h
+++ b/nfs.h
@@ -1,5 +1,4 @@
-/* @(#) $Header: /tcpdump/master/tcpdump/nfs.h,v 1.6 2002-12-11 05:04:12 guy Exp $ (LBL) */
-/*     $NetBSD: nfs.h,v 1.1 1996/05/23 22:49:53 fvdl Exp $     */
+/*     NetBSD: nfs.h,v 1.1 1996/05/23 22:49:53 fvdl Exp        */
 
 /*
  * Copyright (c) 1989, 1993
 #define NFSV3ACCESS_EXTEND             0x08
 #define NFSV3ACCESS_DELETE             0x10
 #define NFSV3ACCESS_EXECUTE            0x20
+#define NFSV3ACCESS_FULL               0x3f
 
 #define NFSV3WRITE_UNSTABLE            0
 #define NFSV3WRITE_DATASYNC            1
@@ -262,19 +262,19 @@ typedef enum { NFNON=0, NFREG=1, NFDIR=2, NFBLK=3, NFCHR=4, NFLNK=5,
 union nfsfh {
 /*     fhandle_t fh_generic; */
        u_char    fh_bytes[NFS_SMALLFH];
-} __attribute__((packed));
+};
 typedef union nfsfh nfsfh_t;
 
 struct nfsv2_time {
        u_int32_t nfsv2_sec;
        u_int32_t nfsv2_usec;
-} __attribute__((packed));
+};
 typedef struct nfsv2_time      nfstime2;
 
 struct nfsv3_time {
        u_int32_t nfsv3_sec;
        u_int32_t nfsv3_nsec;
-} __attribute__((packed));
+};
 typedef struct nfsv3_time      nfstime3;
 
 /*
@@ -283,31 +283,16 @@ typedef struct nfsv3_time nfstime3;
  */
 struct nfs_uquad {
        u_int32_t nfsuquad[2];
-} __attribute__((packed));
+};
 typedef        struct nfs_uquad        nfsuint64;
 
-#if 0 /* XXX - this doesn't seemed to be used and it doesn't work
-       * with non-gcc, so comment it out for now.
-       */
-
-/*
- * Used to convert between two u_longs and a u_quad_t.
- */
-union nfs_quadconvert {
-       u_int32_t lval[2];
-       u_int64_t qval;
-} __attribute__((packed));
-typedef union nfs_quadconvert  nfsquad_t;
-
-#endif
-
 /*
  * NFS Version 3 special file number.
  */
 struct nfsv3_spec {
        u_int32_t specdata1;
        u_int32_t specdata2;
-} __attribute__((packed));
+};
 typedef        struct nfsv3_spec       nfsv3spec;
 
 /*
@@ -348,7 +333,7 @@ struct nfs_fattr {
                        nfstime3  nfsv3fa_ctime;
                } fa_nfsv3;
        } fa_un;
-} __attribute__((packed));
+};
 
 /* and some ugly defines for accessing union components */
 #define        fa2_size                fa_un.fa_nfsv2.nfsv2fa_size
@@ -376,7 +361,7 @@ struct nfsv2_sattr {
        u_int32_t sa_size;
        nfstime2  sa_atime;
        nfstime2  sa_mtime;
-} __attribute__((packed));
+};
 
 /*
  * NFS Version 3 sattr structure for the new node creation case.
@@ -394,7 +379,7 @@ struct nfsv3_sattr {
        nfstime3  sa_atime;
        u_int32_t   sa_mtimetype;
        nfstime3  sa_mtime;
-} __attribute__((packed));
+};
 
 struct nfs_statfs {
        union {
@@ -415,7 +400,7 @@ struct nfs_statfs {
                        u_int32_t nfsv3sf_invarsec;
                } sf_nfsv3;
        } sf_un;
-} __attribute__((packed));
+};
 
 #define sf_tsize       sf_un.sf_nfsv2.nfsv2sf_tsize
 #define sf_bsize       sf_un.sf_nfsv2.nfsv2sf_bsize
@@ -441,7 +426,7 @@ struct nfsv3_fsinfo {
        nfsuint64 fs_maxfilesize;
        nfstime3  fs_timedelta;
        u_int32_t fs_properties;
-} __attribute__((packed));
+};
 
 struct nfsv3_pathconf {
        u_int32_t pc_linkmax;
@@ -450,4 +435,4 @@ struct nfsv3_pathconf {
        u_int32_t pc_chownrestricted;
        u_int32_t pc_caseinsensitive;
        u_int32_t pc_casepreserving;
-} __attribute__((packed));
+};