aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mplstp-oam.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2014-09-29 14:07:49 -0400
committerBill Meier <wmeier@newsguy.com>2014-09-29 18:21:50 +0000
commitff5a77256c1987e6aeac6cb032a25fd43d3d8929 (patch)
tree6a2172f6fb16c2be06ab9a74790fdbe6036a5632 /epan/dissectors/packet-mplstp-oam.c
parent1c055f5b1d31a2b10135ce67467c71af6a42fd6d (diff)
Add editor modelines and adjust indentation as needed.
Change-Id: Id57d264299f2026d703c5b08bace4b24b32f184c Reviewed-on: https://code.wireshark.org/review/4371 Reviewed-by: Bill Meier <wmeier@newsguy.com>
Diffstat (limited to 'epan/dissectors/packet-mplstp-oam.c')
-rw-r--r--epan/dissectors/packet-mplstp-oam.c209
1 files changed, 111 insertions, 98 deletions
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:
+ */