aboutsummaryrefslogtreecommitdiffstats
path: root/packet-rpc.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-08-24 06:19:53 +0000
committerGuy Harris <guy@alum.mit.edu>2000-08-24 06:19:53 +0000
commit47d5cfab522706c1cadfb1598325a44e77f56815 (patch)
tree954b178ae3a1d9966988474fe8b176a519a470e3 /packet-rpc.h
parentd93c1854b85b5484797cb97e884604a268b6573f (diff)
Instead of keeping in the information about an RPC call a count of the
number of replies seen, keep the frame number of the first request seen for that call and the first reply seen for that call. Use that to determine whether a request or reply is a duplicate or not. That means that we don't have to reset the table of RPC calls on a rescan of the capture (which didn't even fix all the cases where we'd have misreported the original call or reply as a duplicate due to having seen it once on the initial pass through the file and once again when, for example, the user clicked on the packet); doing so causes plenty of other problems, so don't do that - and don't clear the "visited" flag on frames on a rescan, either, as that's only done because we were clearing out conversations and calling all protocols' "init" routines. As a free bonus, this means that, for a reply, we know what frame the request was in; put that information into the protocol tree for the reply, snoop-style. Make the table of RPC call information, and the routines that manipulate it, static to "packet-rpc.c"; nobody outside "packet-rpc.c" uses them. svn path=/trunk/; revision=2358
Diffstat (limited to 'packet-rpc.h')
-rw-r--r--packet-rpc.h20
1 files changed, 1 insertions, 19 deletions
diff --git a/packet-rpc.h b/packet-rpc.h
index 70a3a1a227..4ef1e87178 100644
--- a/packet-rpc.h
+++ b/packet-rpc.h
@@ -1,6 +1,6 @@
/* packet-rpc.h
*
- * $Id: packet-rpc.h,v 1.17 2000/08/11 13:34:01 deniel Exp $
+ * $Id: packet-rpc.h,v 1.18 2000/08/24 06:19:53 guy Exp $
*
* (c) 1999 Uwe Girlich
*
@@ -102,26 +102,8 @@ typedef struct _rpc_prog_info_value {
char* progname;
} rpc_prog_info_value;
-typedef struct _rpc_call_info {
- guint32 xid;
- conversation_t *conversation;
- guint32 replies;
- guint32 prog;
- guint32 vers;
- guint32 proc;
- guint32 flavor;
- guint32 gss_proc;
- guint32 gss_svc;
- rpc_proc_info_value* proc_info;
-} rpc_call_info;
-
-#define RPC_CALL_TABLE_LENGTH 1000
-
extern const value_string rpc_auth_flavor[];
-extern void rpc_call_insert(rpc_call_info *call);
-extern rpc_call_info* rpc_call_lookup(rpc_call_info *call);
-
extern void rpc_init_proc_table(guint prog, guint vers, const vsff *proc_table);
extern void rpc_init_prog(int proto, guint32 prog, int ett);
extern char *rpc_prog_name(guint32 prog);