diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2002-11-01 00:48:39 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2002-11-01 00:48:39 +0000 |
commit | 422596a0fecf9dd9100d716c4dab4f3ea51e3655 (patch) | |
tree | cb0386d63e9bab8ef056eec177202d2374b890c5 /packet-ypbind.c | |
parent | f64906c9b399e4c0fbf775b530d1773090a3458d (diff) |
Updated all remaining ONC-RPC dissectors to pass the procedure name value_string in the call to prc_init_proc_table()
svn path=/trunk/; revision=6528
Diffstat (limited to 'packet-ypbind.c')
-rw-r--r-- | packet-ypbind.c | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/packet-ypbind.c b/packet-ypbind.c index f815d5bba1..320eaf6d95 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.14 2002/10/23 21:17:03 guy Exp $ + * $Id: packet-ypbind.c,v 1.15 2002/11/01 00:48:39 sahlberg Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -36,6 +36,8 @@ #include "packet-ypbind.h" static int proto_ypbind = -1; +static int hf_ypbind_procedure_v1 = -1; +static int hf_ypbind_procedure_v2 = -1; static int hf_ypbind_domain = -1; static int hf_ypbind_resp_type = -1; static int hf_ypbind_error = -1; @@ -138,6 +140,12 @@ static const vsff ypbind1_proc[] = { { YPBINDPROC_SETDOM, "SETDOMAIN", NULL, NULL }, { 0, NULL, NULL, NULL } }; +static const value_string ypbind1_proc_vals[] = { + { YPBINDPROC_NULL, "NULL" }, + { YPBINDPROC_DOMAIN, "DOMAIN" }, + { YPBINDPROC_SETDOM, "SETDOMAIN" }, + { 0, NULL } +}; /* end of YPBind version 1 */ static const vsff ypbind2_proc[] = { @@ -148,6 +156,12 @@ static const vsff ypbind2_proc[] = { dissect_ypbind_setdomain_v2_request, NULL}, { 0, NULL, NULL, NULL } }; +static const value_string ypbind2_proc_vals[] = { + { YPBINDPROC_NULL, "NULL" }, + { YPBINDPROC_DOMAIN, "DOMAIN" }, + { YPBINDPROC_SETDOM, "SETDOMAIN" }, + { 0, NULL } +}; /* end of YPBind version 2 */ @@ -155,6 +169,12 @@ void proto_register_ypbind(void) { static hf_register_info hf[] = { + { &hf_ypbind_procedure_v1, { + "V1 Procedure", "ypbind.procedure_v1", FT_UINT32, BASE_DEC, + VALS(ypbind1_proc_vals), 0, "V1 Procedure", HFILL }}, + { &hf_ypbind_procedure_v2, { + "V2 Procedure", "ypbind.procedure_v2", FT_UINT32, BASE_DEC, + VALS(ypbind2_proc_vals), 0, "V2 Procedure", HFILL }}, { &hf_ypbind_domain, { "Domain", "ypbind.domain", FT_STRING, BASE_DEC, NULL, 0, "Name of the NIS/YP Domain", HFILL }}, @@ -197,6 +217,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, -1); - rpc_init_proc_table(YPBIND_PROGRAM, 2, ypbind2_proc, -1); + rpc_init_proc_table(YPBIND_PROGRAM, 1, ypbind1_proc, hf_ypbind_procedure_v1); + rpc_init_proc_table(YPBIND_PROGRAM, 2, ypbind2_proc, hf_ypbind_procedure_v2); } |