From d5f34ad8b2c85b08bfdadc3c021c0f24b34cdfbc Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 23 Oct 2002 21:17:03 +0000 Subject: 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 --- packet-ypbind.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packet-ypbind.c') diff --git a/packet-ypbind.c b/packet-ypbind.c index cd69505ed6..f815d5bba1 100644 --- a/packet-ypbind.c +++ b/packet-ypbind.c @@ -1,7 +1,7 @@ /* packet-ypbind.c * Routines for ypbind dissection * - * $Id: packet-ypbind.c,v 1.13 2002/08/28 21:00:40 jmayer Exp $ + * $Id: packet-ypbind.c,v 1.14 2002/10/23 21:17:03 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -197,6 +197,6 @@ proto_reg_handoff_ypbind(void) /* Register the protocol as RPC */ rpc_init_prog(proto_ypbind, YPBIND_PROGRAM, ett_ypbind); /* Register the procedure tables */ - rpc_init_proc_table(YPBIND_PROGRAM, 1, ypbind1_proc); - rpc_init_proc_table(YPBIND_PROGRAM, 2, ypbind2_proc); + rpc_init_proc_table(YPBIND_PROGRAM, 1, ypbind1_proc, -1); + rpc_init_proc_table(YPBIND_PROGRAM, 2, ypbind2_proc, -1); } -- cgit v1.2.3