diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-01-28 03:39:48 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-01-28 03:39:48 +0000 |
commit | b2ae96ed4dd50870b593bd7abfb7d222cea5b7e6 (patch) | |
tree | 1403addb62187af84eaa9f4902e74d9c269bb3b0 /packet-nfs.h | |
parent | 67fb5332334da6483ef4a843521c1df4ab731ace (diff) |
Allow dissectors of ONC RPC-based protocols to register themselves
either with a table of old-style dissectors or a table of tvbuffified
dissectors, and have the RPC dissector pass the appropriate arguments to
the dissectors.
Finish tvbuffifying the NLM dissector, getting rid of the last traces of
old-style dissector code.
In those routines in the NFS dissector that take new-style arguments
(because they're called from the NLM dissector), make them take an
offset as an argument, so they don't assume that they're handed a tvbuff
starting at the stuff they're supposed to dissect, and make the versions
that take old-style arguments construct a tvbuff and call the versions
that take new-style arguments. Do the latter with the routines in
"packet-rpc.c" as well.
svn path=/trunk/; revision=2943
Diffstat (limited to 'packet-nfs.h')
-rw-r--r-- | packet-nfs.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/packet-nfs.h b/packet-nfs.h index 57b0517ec1..0ee4b8f69d 100644 --- a/packet-nfs.h +++ b/packet-nfs.h @@ -1,5 +1,5 @@ /* packet-nfs.h (c) 1999 Uwe Girlich */ -/* $Id: packet-nfs.h,v 1.7 2000/12/01 00:38:18 guy Exp $ */ +/* $Id: packet-nfs.h,v 1.8 2001/01/28 03:39:48 guy Exp $ */ #ifndef __PACKET_NFS_H__ #define __PACKET_NFS_H__ @@ -97,8 +97,13 @@ /* the RPC mount protocol needs both function to decode a MNT reply */ -int dissect_fhandle(const u_char *pd, int offset, frame_data *fd, proto_tree *tree, char* name); -int dissect_nfs_fh3(const u_char *pd, int offset, frame_data *fd, proto_tree *tree, char* name); +int old_dissect_fhandle(const u_char *pd, int offset, frame_data *fd, proto_tree *tree, char* name); +int old_dissect_nfs_fh3(const u_char *pd, int offset, frame_data *fd, proto_tree *tree, char* name); + +int dissect_fhandle(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, + char *name); +int dissect_nfs_fh3(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, + char *name); #endif /* packet-nfs.h */ |