diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-10-23 21:17:03 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-10-23 21:17:03 +0000 |
commit | 7bfeb66c5938fb20eaca3ee1f1a0316ddd0252e8 (patch) | |
tree | c89f8870831ade2133bd93de09ca10833fa33f5d /packet-rpc.h | |
parent | 706a463690ea61bf587034924fd86beba43d136e (diff) |
Add an extra argument to "rpc_init_proc_table()" that can specify an hf_
value for a field to be used for the procedure number for that version
of the protocol; use that field, if specified, instead of just putting
in a generic "rpc.procedure" field.
Have the ypserv dissector register those fields and supply them to
"rpc_init_proc_table()". Supply -1 for other RPC programs (for now),
meaning "no such field exists".
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6486 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-rpc.h')
-rw-r--r-- | packet-rpc.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packet-rpc.h b/packet-rpc.h index 1c6125f95f..39eb74f9ca 100644 --- a/packet-rpc.h +++ b/packet-rpc.h @@ -1,6 +1,6 @@ /* packet-rpc.h * - * $Id: packet-rpc.h,v 1.38 2002/09/04 09:40:24 sahlberg Exp $ + * $Id: packet-rpc.h,v 1.39 2002/10/23 21:17:03 guy Exp $ * * (c) 1999 Uwe Girlich * @@ -8,7 +8,6 @@ * By Gerald Combs <gerald@ethereal.com> * Copyright 1998 Gerald Combs * - * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 @@ -108,7 +107,8 @@ typedef struct _vsff { extern const value_string rpc_auth_flavor[]; -extern void rpc_init_proc_table(guint prog, guint vers, const vsff *proc_table); +extern void rpc_init_proc_table(guint prog, guint vers, const vsff *proc_table, + int procedure_hf); extern void rpc_init_prog(int proto, guint32 prog, int ett); extern char *rpc_prog_name(guint32 prog); extern char *rpc_proc_name(guint32 prog, guint32 vers, guint32 proc); @@ -146,6 +146,7 @@ typedef struct _rpc_prog_info_value { int proto; int ett; char* progname; + GArray *procedure_hfs; } rpc_prog_info_value; extern GHashTable *rpc_progs; |