diff options
author | Tim Potter <tpot@samba.org> | 2003-08-04 02:49:04 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2003-08-04 02:49:04 +0000 |
commit | 4ccbfa3edca9d6b6abc2ad46f7734be82f5e994e (patch) | |
tree | 63a279850eb8eef07cd8b9f98496347eac14907f /packet-dcerpc-netlogon.c | |
parent | 77f0aa01033ca862f0ba14692859051eb5b6430f (diff) | |
download | wireshark-4ccbfa3edca9d6b6abc2ad46f7734be82f5e994e.tar.gz wireshark-4ccbfa3edca9d6b6abc2ad46f7734be82f5e994e.tar.bz2 wireshark-4ccbfa3edca9d6b6abc2ad46f7734be82f5e994e.zip |
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-netlogon.c')
-rw-r--r-- | packet-dcerpc-netlogon.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/packet-dcerpc-netlogon.c b/packet-dcerpc-netlogon.c index 984a596ef4..25ba82f9eb 100644 --- a/packet-dcerpc-netlogon.c +++ b/packet-dcerpc-netlogon.c @@ -3,7 +3,7 @@ * Copyright 2001,2003 Tim Potter <tpot@samba.org> * 2002 structure and command dissectors by Ronnie Sahlberg * - * $Id: packet-dcerpc-netlogon.c,v 1.86 2003/07/18 05:48:39 guy Exp $ + * $Id: packet-dcerpc-netlogon.c,v 1.87 2003/08/04 02:49:02 tpot Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -7080,20 +7080,12 @@ static dcerpc_auth_subdissector_fns secchan_auth_fns = { void proto_reg_handoff_dcerpc_netlogon(void) { - header_field_info *hf_info; - /* Register protocol as dcerpc */ dcerpc_init_uuid(proto_dcerpc_netlogon, ett_dcerpc_netlogon, &uuid_dcerpc_netlogon, ver_dcerpc_netlogon, dcerpc_netlogon_dissectors, hf_netlogon_opnum); - /* Set opnum strings from subdissector list */ - - hf_info = proto_registrar_get_nth(hf_netlogon_opnum); - hf_info->strings = value_string_from_subdissectors( - dcerpc_netlogon_dissectors, array_length(dcerpc_netlogon_dissectors)); - register_dcerpc_auth_subdissector(DCE_C_AUTHN_LEVEL_PKT_INTEGRITY, DCE_C_RPC_AUTHN_PROTOCOL_SEC_CHAN, &secchan_auth_fns); |