aboutsummaryrefslogtreecommitdiffstats
path: root/packet-dcerpc-dfs.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-08-04 02:49:04 +0000
committerTim Potter <tpot@samba.org>2003-08-04 02:49:04 +0000
commit4ccbfa3edca9d6b6abc2ad46f7734be82f5e994e (patch)
tree63a279850eb8eef07cd8b9f98496347eac14907f /packet-dcerpc-dfs.c
parent77f0aa01033ca862f0ba14692859051eb5b6430f (diff)
Guy suggested that the dcerpc opnum value_string code could be simplified
somewhat. Now the dynamic initialisation of the value_string is contained in the value_string_from_subdissectors() function instead of being distributed amongst the dcerpc dissectors. svn path=/trunk/; revision=8123
Diffstat (limited to 'packet-dcerpc-dfs.c')
-rw-r--r--packet-dcerpc-dfs.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/packet-dcerpc-dfs.c b/packet-dcerpc-dfs.c
index f6dec86238..32b49f81af 100644
--- a/packet-dcerpc-dfs.c
+++ b/packet-dcerpc-dfs.c
@@ -2,7 +2,7 @@
* Routines for SMB \\PIPE\\netdfs packet disassembly
* Copyright 2001, Tim Potter <tpot@samba.org>
*
- * $Id: packet-dcerpc-dfs.c,v 1.6 2003/06/26 04:30:27 tpot Exp $
+ * $Id: packet-dcerpc-dfs.c,v 1.7 2003/08/04 02:49:03 tpot Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -78,16 +78,8 @@ proto_register_dcerpc_dfs(void)
void
proto_reg_handoff_dcerpc_dfs(void)
{
- header_field_info *hf_info;
-
/* Register protocol as dcerpc */
dcerpc_init_uuid(proto_dcerpc_dfs, ett_dcerpc_dfs, &uuid_dcerpc_dfs,
ver_dcerpc_dfs, dcerpc_dfs_dissectors, hf_dfs_opnum);
-
- /* Set opnum strings from subdissector list */
-
- hf_info = proto_registrar_get_nth(hf_dfs_opnum);
- hf_info->strings = value_string_from_subdissectors(
- dcerpc_dfs_dissectors, array_length(dcerpc_dfs_dissectors));
}