/* 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.13 2003/04/01 04:38:05 guy Exp $ */
#ifndef __PACKET_NFS_H__
#define __PACKET_NFS_H__
#define GUARDED 1
#define EXCLUSIVE 2
+extern gboolean nfs_file_name_snooping;
/* 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 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);
+
+int dissect_nfs_post_op_attr(tvbuff_t *tvb, int offset, proto_tree *tree,
+ char* name);
+
+void nfs_name_snoop_add_name(int xid, tvbuff_t *tvb, int name_offset, int name_len, int parent_offset, int parent_len, unsigned char *name);
+
+
+extern gboolean nfs_fhandle_reqrep_matching;
+extern GHashTable *nfs_fhandle_frame_table;
+typedef struct nfs_fhandle_data {
+ int len;
+ const unsigned char *fh;
+ tvbuff_t *tvb;
+} nfs_fhandle_data_t;
+void dissect_fhandle_hidden(packet_info *pinfo, proto_tree *tree, nfs_fhandle_data_t *nfd);
#endif /* packet-nfs.h */