aboutsummaryrefslogtreecommitdiffstats
path: root/packet-rpc.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-10-23 21:17:03 +0000
committerGuy Harris <guy@alum.mit.edu>2002-10-23 21:17:03 +0000
commitd5f34ad8b2c85b08bfdadc3c021c0f24b34cdfbc (patch)
treec89f8870831ade2133bd93de09ca10833fa33f5d /packet-rpc.h
parent6cfdb3c0ed0f3879f238608aed5773ae367d8719 (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". svn path=/trunk/; revision=6486
Diffstat (limited to 'packet-rpc.h')
-rw-r--r--packet-rpc.h7
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;