summaryrefslogtreecommitdiff
path: root/nfs.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-12-15 12:21:29 -0800
committerGuy Harris <guy@alum.mit.edu>2017-12-15 12:21:50 -0800
commit0489e347dc390e653f020ed540ec2d92e08841e3 (patch)
tree68367ee11b1bdc2e0d7fd475e70dcc776328f71e /nfs.h
parent1a04b92e365f5ed01ca38619b41bcc4fc9cbd63c (diff)
downloadtcpdump-0489e347dc390e653f020ed540ec2d92e08841e3.tar.gz
Use nd_ types for ONC RPC.
We don't do this for NFS; that'd require more work. The NFS dissector is already using EXTRACT_ calls for the NFS message.
Diffstat (limited to 'nfs.h')
-rw-r--r--nfs.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/nfs.h b/nfs.h
index da7bc508..2e55569d 100644
--- a/nfs.h
+++ b/nfs.h
@@ -248,7 +248,15 @@
typedef enum { NFNON=0, NFREG=1, NFDIR=2, NFBLK=3, NFCHR=4, NFLNK=5,
NFSOCK=6, NFFIFO=7 } nfs_type;
-/* Structs for common parts of the rpc's */
+/*
+ * Structs for common parts of the rpc's
+ *
+ * NOTE: these structures are not always overlaid directly on the
+ * packet data - sometimes we declare a local variable of that type,
+ * and fill it up with fields extracted using byte pointers - so we
+ * don't use nd_ types for their members.
+ */
+
/*
* File Handle (32 bytes for version 2), variable up to 64 for version 3.
* File Handles of up to NFS_SMALLFH in size are stored directly in the