diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2002-05-21 10:17:30 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2002-05-21 10:17:30 +0000 |
commit | 3143c595a413604bfbc26902c1ce2d5deaa3ffd8 (patch) | |
tree | 07f8a52717b39abc2c3cb0c9e88942553a95c5ca /packet-nfs.h | |
parent | 198c46df1e2e41e408ae09057899cf847ae5a1f6 (diff) |
Option to make filtering on nfs fhandles stateful.
When this ption is enabled in Protocols/NFS displayfilters for fhandle fields
such as nfs.fh.{hash|name|full_name} will find both the request and matching
response packets even if the fhandle is only present in one of the packets.
The option supports all NFS and related protocols which use nfs fhandles
including async NLM.
The option will not work with nfs packets containing multiple fhandles in
one PDU, nor will it work if tcp collapses multiple segments/pdus into
one larger segment.
It only works for async NLM if one first enables the MSG/RES stateful
matching for async NLM.
svn path=/trunk/; revision=5515
Diffstat (limited to 'packet-nfs.h')
-rw-r--r-- | packet-nfs.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/packet-nfs.h b/packet-nfs.h index 948bf3a8a7..585cde76cd 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.9 2002/01/12 10:24:47 guy Exp $ */ +/* $Id: packet-nfs.h,v 1.10 2002/05/21 10:17:26 sahlberg Exp $ */ #ifndef __PACKET_NFS_H__ #define __PACKET_NFS_H__ @@ -108,5 +108,15 @@ int dissect_nfs_fh3(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *t 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; + 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 */ |