From 0489e347dc390e653f020ed540ec2d92e08841e3 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 15 Dec 2017 12:21:29 -0800 Subject: 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. --- nfs.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'nfs.h') 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 -- cgit v1.2.1