aboutsummaryrefslogtreecommitdiffstats
path: root/packet-rpc.c
diff options
context:
space:
mode:
authorsahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>2003-09-05 10:26:44 +0000
committersahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>2003-09-05 10:26:44 +0000
commit497045efca85111072146544160ae88656893be8 (patch)
tree8bebe6ff0b7f038e09db933c88a9c6fff1bf4935 /packet-rpc.c
parent24904790fad0b0203151c1986b1e40a83a82bf20 (diff)
Add a popup to the ServicveResponseTime tables where the user can select
Prepare/Match/FindFrame similar to chat the ConversationList has. Only enabled for SMB and ONC-RPC at this point git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8391 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-rpc.c')
-rw-r--r--packet-rpc.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/packet-rpc.c b/packet-rpc.c
index 219923ae29..c2a44bc5d2 100644
--- a/packet-rpc.c
+++ b/packet-rpc.c
@@ -2,7 +2,7 @@
* Routines for rpc dissection
* Copyright 1999, Uwe Girlich <Uwe.Girlich@philosys.de>
*
- * $Id: packet-rpc.c,v 1.137 2003/09/03 07:11:13 guy Exp $
+ * $Id: packet-rpc.c,v 1.138 2003/09/05 10:26:42 sahlberg Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -322,6 +322,7 @@ rpc_init_proc_table(guint prog, guint vers, const vsff *proc_table,
}
}
+
/* return the name associated with a previously registered procedure. */
char *rpc_proc_name(guint32 prog, guint32 vers, guint32 proc)
{
@@ -394,6 +395,22 @@ rpc_init_prog(int proto, guint32 prog, int ett)
g_hash_table_insert(rpc_progs,key,value);
}
+
+
+/* return the hf_field associated with a previously registered program.
+*/
+int rpc_prog_hf(guint32 prog, guint32 vers)
+{
+ rpc_prog_info_key rpc_prog_key;
+ rpc_prog_info_value *rpc_prog;
+
+ rpc_prog_key.prog = prog;
+ if ((rpc_prog = g_hash_table_lookup(rpc_progs,&rpc_prog_key))) {
+ return g_array_index(rpc_prog->procedure_hfs, int, vers);
+ }
+ return -1;
+}
+
/* return the name associated with a previously registered program. This
should probably eventually be expanded to use the rpc YP/NIS map
so that it can give names for programs not handled by ethereal */