diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2014-08-13 08:25:21 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2014-08-13 07:38:09 +0000 |
commit | 38418210e399341960b3440d9619464626322c45 (patch) | |
tree | d1475e4e47cca8fc4f4c520e4f6b0690055a8186 /epan/dissectors/packet-snmp.c | |
parent | f59e69489d3cea7e7f6c7b6a4d377201496fdade (diff) |
SNMP: Remove some unused hf field
Change-Id: I33c89d07af6658569df3a9a094e2865e28ed0acb
Reviewed-on: https://code.wireshark.org/review/3569
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-snmp.c')
-rw-r--r-- | epan/dissectors/packet-snmp.c | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/epan/dissectors/packet-snmp.c b/epan/dissectors/packet-snmp.c index 7c2e1fd30f..50d51bf548 100644 --- a/epan/dissectors/packet-snmp.c +++ b/epan/dissectors/packet-snmp.c @@ -311,9 +311,6 @@ static int hf_snmp_operation = -1; /* T_operation */ /*--- End of included file: packet-snmp-hf.c ---*/ #line 235 "../../asn1/snmp/packet-snmp-template.c" -static int hf_smux_version = -1; -static int hf_smux_pdutype = -1; - /* Initialize the subtree pointers */ static gint ett_smux = -1; static gint ett_snmp = -1; @@ -352,7 +349,7 @@ static gint ett_snmp_SimpleOpen_U = -1; static gint ett_snmp_RReqPDU_U = -1; /*--- End of included file: packet-snmp-ett.c ---*/ -#line 254 "../../asn1/snmp/packet-snmp-template.c" +#line 251 "../../asn1/snmp/packet-snmp-template.c" static expert_field ei_snmp_failed_decrypted_data_pdu = EI_INIT; static expert_field ei_snmp_decrypted_data_bad_formatted = EI_INIT; @@ -3082,7 +3079,7 @@ static void dissect_SMUX_PDUs_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, pro /*--- End of included file: packet-snmp-fn.c ---*/ -#line 1874 "../../asn1/snmp/packet-snmp-template.c" +#line 1871 "../../asn1/snmp/packet-snmp-template.c" guint @@ -3907,7 +3904,7 @@ void proto_register_snmp(void) { NULL, HFILL }}, /*--- End of included file: packet-snmp-hfarr.c ---*/ -#line 2434 "../../asn1/snmp/packet-snmp-template.c" +#line 2431 "../../asn1/snmp/packet-snmp-template.c" }; /* List of subtrees */ @@ -3947,7 +3944,7 @@ void proto_register_snmp(void) { &ett_snmp_RReqPDU_U, /*--- End of included file: packet-snmp-ettarr.c ---*/ -#line 2450 "../../asn1/snmp/packet-snmp-template.c" +#line 2447 "../../asn1/snmp/packet-snmp-template.c" }; static ei_register_info ei[] = { { &ei_snmp_failed_decrypted_data_pdu, { "snmp.failed_decrypted_data_pdu", PI_MALFORMED, PI_WARN, "Failed to decrypt encryptedPDU", EXPFILL }}, @@ -4128,21 +4125,13 @@ void proto_reg_handoff_snmp(void) { void proto_register_smux(void) { - static hf_register_info hf[] = { - { &hf_smux_version, - { "Version", "smux.version", FT_UINT8, BASE_DEC, NULL, - 0x0, NULL, HFILL }}, - { &hf_smux_pdutype, - { "PDU type", "smux.pdutype", FT_UINT8, BASE_DEC, VALS(smux_types), - 0x0, NULL, HFILL }}, - }; static gint *ett[] = { &ett_smux, }; proto_smux = proto_register_protocol("SNMP Multiplex Protocol", "SMUX", "smux"); - proto_register_field_array(proto_smux, hf, array_length(hf)); + proto_register_subtree_array(ett, array_length(ett)); } |