diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2002-09-04 09:40:29 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2002-09-04 09:40:29 +0000 |
commit | 93a649db6f5db64dbdc80eece52f0891c8a72cfb (patch) | |
tree | 90bdf086756c8f41361d49ed02ea7adfa1bbd84a /packet-rpc.h | |
parent | 7876ca4fe0bd8ce1cf1bd16d9e4cbdb8a4a007d3 (diff) | |
download | wireshark-93a649db6f5db64dbdc80eece52f0891c8a72cfb.tar.gz wireshark-93a649db6f5db64dbdc80eece52f0891c8a72cfb.tar.bz2 wireshark-93a649db6f5db64dbdc80eece52f0891c8a72cfb.zip |
Tap api. tap is a simple api that can be used for arbitrary extensions.
One example extension is rpcstat.
Try -Z rpc,rtt,100003,3 as argument to tethereal when reading a capture
containing NFSv3 packets.
tap-rpcstat.[ch] is intended to demonstrate the api and can be used to
base other extensions on.
svn path=/trunk/; revision=6175
Diffstat (limited to 'packet-rpc.h')
-rw-r--r-- | packet-rpc.h | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/packet-rpc.h b/packet-rpc.h index 60f45b38cf..1c6125f95f 100644 --- a/packet-rpc.h +++ b/packet-rpc.h @@ -1,6 +1,6 @@ /* packet-rpc.h * - * $Id: packet-rpc.h,v 1.37 2002/08/28 21:00:29 jmayer Exp $ + * $Id: packet-rpc.h,v 1.38 2002/09/04 09:40:24 sahlberg Exp $ * * (c) 1999 Uwe Girlich * @@ -137,5 +137,32 @@ extern int dissect_rpc_indir_reply(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, int result_id, int prog_id, int vers_id, int proc_id); + +typedef struct _rpc_prog_info_key { + guint32 prog; +} rpc_prog_info_key; + +typedef struct _rpc_prog_info_value { + int proto; + int ett; + char* progname; +} rpc_prog_info_value; + +extern GHashTable *rpc_progs; + +typedef struct _rpc_proc_info_key { + guint32 prog; + guint32 vers; + guint32 proc; +} rpc_proc_info_key; + +typedef struct _rpc_proc_info_value { + gchar *name; + dissect_function_t *dissect_call; + dissect_function_t *dissect_reply; +} rpc_proc_info_value; + +extern GHashTable *rpc_procs; + #endif /* packet-rpc.h */ |