diff options
author | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-11-01 00:48:39 +0000 |
---|---|---|
committer | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-11-01 00:48:39 +0000 |
commit | d08cf2a113d798e2c04fd3b344a6ec3b4385b9c9 (patch) | |
tree | cb0386d63e9bab8ef056eec177202d2374b890c5 /packet-rquota.c | |
parent | 16c9f332f76d82abecef6fbb2d3fa138de4d9e32 (diff) |
Updated all remaining ONC-RPC dissectors to pass the procedure name value_string in the call to prc_init_proc_table()
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6528 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-rquota.c')
-rw-r--r-- | packet-rquota.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/packet-rquota.c b/packet-rquota.c index 4e984c79c4..482c287a2e 100644 --- a/packet-rquota.c +++ b/packet-rquota.c @@ -2,7 +2,7 @@ * Routines for rquota dissection * Copyright 2001, Mike Frisch <frisch@hummingbird.com> * - * $Id: packet-rquota.c,v 1.10 2002/10/23 21:17:03 guy Exp $ + * $Id: packet-rquota.c,v 1.11 2002/11/01 00:48:38 sahlberg Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -35,6 +35,7 @@ #include "packet-rquota.h" static int proto_rquota = -1; +static int hf_rquota_procedure_v1 = -1; static int hf_rquota_pathp = -1; static int hf_rquota_uid = -1; static int hf_rquota_status = -1; @@ -151,6 +152,12 @@ static const vsff rquota1_proc[] = { { 0, NULL, NULL, NULL } }; +static const value_string rquota1_proc_vals[] = { + { RQUOTAPROC_NULL, "NULL" }, + { RQUOTAPROC_GETQUOTA, "GETQUOTA" }, + { RQUOTAPROC_GETACTIVEQUOTA, "GETACTIVEQUOTA" }, + { 0, NULL } +}; /* end of RQUOTA version 1 */ void @@ -159,6 +166,9 @@ proto_register_rquota(void) static struct true_false_string tfs_active = { "Quota is ACTIVE", "Quota is NOT active" }; static hf_register_info hf[] = { + { &hf_rquota_procedure_v1, { + "V1 Procedure", "rquota.procedure_v1", FT_UINT32, BASE_DEC, + VALS(rquota1_proc_vals), 0, "V1 Procedure", HFILL }}, { &hf_rquota_uid, { "uid", "rquota.uid", FT_UINT32, BASE_DEC, NULL, 0, "User ID", HFILL }}, @@ -236,7 +246,7 @@ proto_reg_handoff_rquota(void) /* Register the protocol as RPC */ rpc_init_prog(proto_rquota, RQUOTA_PROGRAM, ett_rquota); /* Register the procedure tables */ - rpc_init_proc_table(RQUOTA_PROGRAM, 1, rquota1_proc, -1); + rpc_init_proc_table(RQUOTA_PROGRAM, 1, rquota1_proc, hf_rquota_procedure_v1); } |