diff options
author | Tim Potter <tpot@samba.org> | 2002-06-24 00:03:18 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-06-24 00:03:18 +0000 |
commit | 6d6dce305d497a5d7267456d9465a7b44a6f12e9 (patch) | |
tree | f263cc80f6ca77b7160544442eeff3d5e2dd5377 /packet-dcerpc-srvsvc.c | |
parent | 2cf14082d633ccb8c2ffc58313e86ced29282632 (diff) |
Change each DCERPC dissector to pass in a hf value on initialisation
for a value_string that corresponds to that dissectors opnums. Pass
in -1 if no such table is available.
svn path=/trunk/; revision=5749
Diffstat (limited to 'packet-dcerpc-srvsvc.c')
-rw-r--r-- | packet-dcerpc-srvsvc.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/packet-dcerpc-srvsvc.c b/packet-dcerpc-srvsvc.c index c5b3871750..3486a3444a 100644 --- a/packet-dcerpc-srvsvc.c +++ b/packet-dcerpc-srvsvc.c @@ -6,7 +6,7 @@ * Copyright 2002, Ronnie Sahlberg * rewrote entire dissector * - * $Id: packet-dcerpc-srvsvc.c,v 1.38 2002/06/23 12:00:38 sahlberg Exp $ + * $Id: packet-dcerpc-srvsvc.c,v 1.39 2002/06/24 00:03:18 tpot Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -44,6 +44,7 @@ #include "smb.h" static int proto_dcerpc_srvsvc = -1; +static int hf_srvsvc_opnum = -1; static int hf_srvsvc_reserved = -1; static int hf_srvsvc_server = -1; static int hf_srvsvc_emulated_server = -1; @@ -6939,6 +6940,9 @@ void proto_register_dcerpc_srvsvc(void) { static hf_register_info hf[] = { + { &hf_srvsvc_opnum, + { "Operation", "srvsvc.opnum", FT_UINT16, BASE_DEC, + VALS(srvsvc_opnum_vals), 0x0, "Operation", HFILL }}, { &hf_srvsvc_server, { "Server", "srvsvc.server", FT_STRING, BASE_NONE, NULL, 0x0, "Server Name", HFILL}}, @@ -7500,6 +7504,5 @@ proto_reg_handoff_dcerpc_srvsvc(void) dcerpc_init_uuid(proto_dcerpc_srvsvc, ett_dcerpc_srvsvc, &uuid_dcerpc_srvsvc, ver_dcerpc_srvsvc, - dcerpc_srvsvc_dissectors); + dcerpc_srvsvc_dissectors, hf_srvsvc_opnum); } - |