From ff5a77256c1987e6aeac6cb032a25fd43d3d8929 Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Mon, 29 Sep 2014 14:07:49 -0400 Subject: Add editor modelines and adjust indentation as needed. Change-Id: Id57d264299f2026d703c5b08bace4b24b32f184c Reviewed-on: https://code.wireshark.org/review/4371 Reviewed-by: Bill Meier --- epan/dissectors/packet-mplstp-oam.c | 209 +++++++++++++++++++----------------- 1 file changed, 111 insertions(+), 98 deletions(-) (limited to 'epan/dissectors/packet-mplstp-oam.c') diff --git a/epan/dissectors/packet-mplstp-oam.c b/epan/dissectors/packet-mplstp-oam.c index 0627b405a5..3174c19be1 100644 --- a/epan/dissectors/packet-mplstp-oam.c +++ b/epan/dissectors/packet-mplstp-oam.c @@ -221,114 +221,127 @@ dissect_mplstp_fm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) void proto_register_mplstp_lock(void) { - static hf_register_info hf[] = { + static hf_register_info hf[] = { - {&hf_mplstp_lock_version, - {"Version", "mplstp_lock.version", FT_UINT8, - BASE_HEX, NULL, 0x0, NULL, HFILL }}, + {&hf_mplstp_lock_version, + {"Version", "mplstp_lock.version", FT_UINT8, + BASE_HEX, NULL, 0x0, NULL, HFILL }}, - {&hf_mplstp_lock_reserved, - {"Reserved", "mplstp_lock.reserved", FT_UINT24, - BASE_HEX, NULL, 0x0, NULL, HFILL }}, + {&hf_mplstp_lock_reserved, + {"Reserved", "mplstp_lock.reserved", FT_UINT24, + BASE_HEX, NULL, 0x0, NULL, HFILL }}, - {&hf_mplstp_lock_refresh_timer, - {"Refresh-timer value", "mplstp_lock.refresh-timer", FT_UINT8, - BASE_DEC, NULL, 0x0, NULL, HFILL }}, - }; + {&hf_mplstp_lock_refresh_timer, + {"Refresh-timer value", "mplstp_lock.refresh-timer", FT_UINT8, + BASE_DEC, NULL, 0x0, NULL, HFILL }}, + }; - static gint *ett[] = { - &ett_mplstp_lock, - }; + static gint *ett[] = { + &ett_mplstp_lock, + }; - proto_mplstp_lock = - proto_register_protocol("MPLS-TP Lock-Instruct", "MPLS[-TP] Lock-Instruct " - "Lock-Instruct (LI) Protocol", - "mplstp_lock"); + proto_mplstp_lock = + proto_register_protocol("MPLS-TP Lock-Instruct", "MPLS[-TP] Lock-Instruct " + "Lock-Instruct (LI) Protocol", + "mplstp_lock"); - proto_register_field_array(proto_mplstp_lock, hf, array_length(hf)); - proto_register_subtree_array(ett, array_length(ett)); + proto_register_field_array(proto_mplstp_lock, hf, array_length(hf)); + proto_register_subtree_array(ett, array_length(ett)); - register_dissector("mplstp_lock", dissect_mplstp_lock, proto_mplstp_lock); + register_dissector("mplstp_lock", dissect_mplstp_lock, proto_mplstp_lock); } void proto_register_mplstp_fm(void) { - static hf_register_info hf[] = { - - {&hf_mplstp_fm_version, - {"Version", "mplstp_oam.version", FT_UINT8, - BASE_HEX, NULL, 0x0, NULL, HFILL }}, - - {&hf_mplstp_fm_reserved, - {"Reserved", "mplstp_oam.reserved", FT_UINT8, - BASE_HEX, NULL, 0x0, NULL, HFILL }}, - - {&hf_mplstp_fm_refresh_timer, - {"Refresh-timer value", "mplstp_oam.refresh.timer", FT_UINT8, - BASE_DEC, NULL, 0x0, NULL, HFILL }}, - - {&hf_mplstp_fm_total_tlv_len, - {"FM TLV Length", "mplstp_oam.total.tlv.len", FT_UINT8, - BASE_DEC, NULL, 0x0, NULL, HFILL }}, - - {&hf_mplstp_fm_if_tlv_type, - {"Type : IF-ID TLV", "mplstp_oam.if_id_tlv_type", FT_UINT8, - BASE_DEC, NULL, 0x0, NULL, HFILL }}, - - {&hf_mplstp_fm_global_tlv_type, - {"Type : GLOBAL-ID TLV", "mplstp_oam.global_id_tlv_type", FT_UINT8, - BASE_DEC, NULL, 0x0, NULL, HFILL }}, - - {&hf_mplstp_fm_tlv_len, - {"Length", "mplstp_oam.tlv_len", FT_UINT8, - BASE_DEC, NULL, 0x0, NULL, HFILL }}, - - {&hf_mplstp_fm_node_id, - {"Node id", "mplstp_oam.node_id", FT_IPv4, - BASE_NONE, NULL, 0x0, NULL, HFILL }}, - - {&hf_mplstp_fm_if_num, - {"Interface Number", "mplstp_oam.if_num", FT_UINT32, - BASE_DEC, NULL, 0x0, NULL, HFILL }}, - - {&hf_mplstp_fm_global_id, - {"Global id", "mplstp_oam.global_id", FT_UINT32, - BASE_DEC, NULL, 0x0, NULL, HFILL }}, - - {&hf_mplstp_fm_msg_type, - {"Message Type", "mplstp_oam.message.type", FT_UINT8, - BASE_DEC, VALS(fm_msg_type), 0x0, "MPLS-TP FM Message Type", HFILL }}, - - { &hf_mplstp_fm_flags, - { "FM Flags", "mplstp_oam.flags", - FT_UINT8, BASE_HEX, NULL, 0x0000, "MPLS-TP FM Flags", HFILL} - }, - - { &hf_mplstp_fm_flags_l, - { "Link Down Indication", "mplstp_oam.flag_l", - FT_BOOLEAN, 8, NULL, 0x0002, NULL, HFILL} - }, - - { &hf_mplstp_fm_flags_r, - { "FM Condition Cleared", "mplstp_oam.flag_r", - FT_BOOLEAN, 8, NULL, 0x0001, "Fault Condition Cleared", HFILL} - }, - }; - - static gint *ett[] = { - &ett_mplstp_fm, - &ett_mplstp_fm_tlv_tree, - &ett_mplstp_fm_flags, - }; - - proto_mplstp_fm = - proto_register_protocol("MPLS-TP Fault-Management", "MPLS[-TP] Fault-Management " - "Fault-Management (FM) Protocol", - "mplstp_fm"); - - proto_register_field_array(proto_mplstp_fm, hf, array_length(hf)); - proto_register_subtree_array(ett, array_length(ett)); - - register_dissector("mplstp_fm", dissect_mplstp_fm, proto_mplstp_fm); + static hf_register_info hf[] = { + + {&hf_mplstp_fm_version, + {"Version", "mplstp_oam.version", FT_UINT8, + BASE_HEX, NULL, 0x0, NULL, HFILL }}, + + {&hf_mplstp_fm_reserved, + {"Reserved", "mplstp_oam.reserved", FT_UINT8, + BASE_HEX, NULL, 0x0, NULL, HFILL }}, + + {&hf_mplstp_fm_refresh_timer, + {"Refresh-timer value", "mplstp_oam.refresh.timer", FT_UINT8, + BASE_DEC, NULL, 0x0, NULL, HFILL }}, + + {&hf_mplstp_fm_total_tlv_len, + {"FM TLV Length", "mplstp_oam.total.tlv.len", FT_UINT8, + BASE_DEC, NULL, 0x0, NULL, HFILL }}, + + {&hf_mplstp_fm_if_tlv_type, + {"Type : IF-ID TLV", "mplstp_oam.if_id_tlv_type", FT_UINT8, + BASE_DEC, NULL, 0x0, NULL, HFILL }}, + + {&hf_mplstp_fm_global_tlv_type, + {"Type : GLOBAL-ID TLV", "mplstp_oam.global_id_tlv_type", FT_UINT8, + BASE_DEC, NULL, 0x0, NULL, HFILL }}, + + {&hf_mplstp_fm_tlv_len, + {"Length", "mplstp_oam.tlv_len", FT_UINT8, + BASE_DEC, NULL, 0x0, NULL, HFILL }}, + + {&hf_mplstp_fm_node_id, + {"Node id", "mplstp_oam.node_id", FT_IPv4, + BASE_NONE, NULL, 0x0, NULL, HFILL }}, + + {&hf_mplstp_fm_if_num, + {"Interface Number", "mplstp_oam.if_num", FT_UINT32, + BASE_DEC, NULL, 0x0, NULL, HFILL }}, + + {&hf_mplstp_fm_global_id, + {"Global id", "mplstp_oam.global_id", FT_UINT32, + BASE_DEC, NULL, 0x0, NULL, HFILL }}, + + {&hf_mplstp_fm_msg_type, + {"Message Type", "mplstp_oam.message.type", FT_UINT8, + BASE_DEC, VALS(fm_msg_type), 0x0, "MPLS-TP FM Message Type", HFILL }}, + + { &hf_mplstp_fm_flags, + { "FM Flags", "mplstp_oam.flags", + FT_UINT8, BASE_HEX, NULL, 0x0000, "MPLS-TP FM Flags", HFILL} + }, + + { &hf_mplstp_fm_flags_l, + { "Link Down Indication", "mplstp_oam.flag_l", + FT_BOOLEAN, 8, NULL, 0x0002, NULL, HFILL} + }, + + { &hf_mplstp_fm_flags_r, + { "FM Condition Cleared", "mplstp_oam.flag_r", + FT_BOOLEAN, 8, NULL, 0x0001, "Fault Condition Cleared", HFILL} + }, + }; + + static gint *ett[] = { + &ett_mplstp_fm, + &ett_mplstp_fm_tlv_tree, + &ett_mplstp_fm_flags, + }; + + proto_mplstp_fm = + proto_register_protocol("MPLS-TP Fault-Management", "MPLS[-TP] Fault-Management " + "Fault-Management (FM) Protocol", + "mplstp_fm"); + + proto_register_field_array(proto_mplstp_fm, hf, array_length(hf)); + proto_register_subtree_array(ett, array_length(ett)); + + register_dissector("mplstp_fm", dissect_mplstp_fm, proto_mplstp_fm); } + +/* + * Editor modelines - http://www.wireshark.org/tools/modelines.html + * + * Local Variables: + * c-basic-offset: 2 + * tab-width: 8 + * indent-tabs-mode: nil + * End: + * + * ex: set shiftwidth=2 tabstop=8 expandtab: + * :indentSize=2:tabSize=8:noTabs=true: + */ -- cgit v1.2.3