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-nisplus.c | |
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-nisplus.c')
-rw-r--r-- | packet-nisplus.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-nisplus.c b/packet-nisplus.c index 827a4a6c12..13579369cf 100644 --- a/packet-nisplus.c +++ b/packet-nisplus.c @@ -1,7 +1,7 @@ /* packet-nisplus.c * 2001 Ronnie Sahlberg <See AUTHORS for email> * - * $Id: packet-nisplus.c,v 1.13 2002/08/28 21:00:24 jmayer Exp $ + * $Id: packet-nisplus.c,v 1.14 2002/10/23 21:17:02 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -1823,7 +1823,7 @@ proto_reg_handoff_nis(void) /* Register the protocol as RPC */ rpc_init_prog(proto_nisplus, NIS_PROGRAM, ett_nisplus); /* Register the procedure tables */ - rpc_init_proc_table(NIS_PROGRAM, 3, nisplus3_proc); + rpc_init_proc_table(NIS_PROGRAM, 3, nisplus3_proc, -1); } @@ -1914,5 +1914,5 @@ proto_reg_handoff_niscb(void) /* Register the protocol as RPC */ rpc_init_prog(proto_nispluscb, CB_PROGRAM, ett_nispluscb); /* Register the procedure tables */ - rpc_init_proc_table(CB_PROGRAM, 1, cb1_proc); + rpc_init_proc_table(CB_PROGRAM, 1, cb1_proc, -1); } |