summaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mpls-mac.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:53 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:53 +0000
commita86c5f7cae7ec9a3398300555a0b644689d946a1 (patch)
tree39fe4b107c71174fd1e8a8ceb9a4d2aa14116248 /epan/dissectors/packet-mpls-mac.c
parentReleasing progress-linux version 4.2.6-1~progress7.99u1. (diff)
downloadwireshark-a86c5f7cae7ec9a3398300555a0b644689d946a1.tar.xz
wireshark-a86c5f7cae7ec9a3398300555a0b644689d946a1.zip
Merging upstream version 4.4.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'epan/dissectors/packet-mpls-mac.c')
-rw-r--r--epan/dissectors/packet-mpls-mac.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/epan/dissectors/packet-mpls-mac.c b/epan/dissectors/packet-mpls-mac.c
index 7bb27724..39a88e74 100644
--- a/epan/dissectors/packet-mpls-mac.c
+++ b/epan/dissectors/packet-mpls-mac.c
@@ -19,24 +19,24 @@ void proto_reg_handoff_mpls_mac(void);
static dissector_handle_t mpls_mac_handle;
-static gint proto_mpls_mac = -1;
-
-static gint ett_mpls_mac = -1;
-static gint ett_mpls_mac_flags = -1;
-static gint ett_mpls_mac_tlv = -1;
-
-static int hf_mpls_mac_reserved = -1;
-static int hf_mpls_mac_tlv_length_total = -1;
-static int hf_mpls_mac_flags = -1;
-static int hf_mpls_mac_flags_a = -1;
-static int hf_mpls_mac_flags_r = -1;
-static int hf_mpls_mac_flags_reserved = -1;
-static int hf_mpls_mac_tlv = -1;
-static int hf_mpls_mac_tlv_res = -1;
-static int hf_mpls_mac_tlv_type = -1;
-static int hf_mpls_mac_tlv_length = -1;
-static int hf_mpls_mac_tlv_value = -1;
-static int hf_mpls_mac_tlv_sequence_number = -1;
+static int proto_mpls_mac;
+
+static int ett_mpls_mac;
+static int ett_mpls_mac_flags;
+static int ett_mpls_mac_tlv;
+
+static int hf_mpls_mac_reserved;
+static int hf_mpls_mac_tlv_length_total;
+static int hf_mpls_mac_flags;
+static int hf_mpls_mac_flags_a;
+static int hf_mpls_mac_flags_r;
+static int hf_mpls_mac_flags_reserved;
+static int hf_mpls_mac_tlv;
+static int hf_mpls_mac_tlv_res;
+static int hf_mpls_mac_tlv_type;
+static int hf_mpls_mac_tlv_length;
+static int hf_mpls_mac_tlv_value;
+static int hf_mpls_mac_tlv_sequence_number;
static int * const mpls_mac_flags[] = {
@@ -51,7 +51,7 @@ dissect_mpls_mac(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data
{
proto_item *ti;
proto_tree *mac_tree;
- guint32 offset = 0, tlv_length, offset_end;
+ uint32_t offset = 0, tlv_length, offset_end;
col_set_str(pinfo->cinfo, COL_PROTOCOL, "MPLS-MAC");
col_clear(pinfo->cinfo, COL_INFO);
@@ -73,7 +73,7 @@ dissect_mpls_mac(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data
offset_end = offset + tlv_length;
while(offset < offset_end){
- guint32 type, length;
+ uint32_t type, length;
proto_tree *tlv_tree;
ti = proto_tree_add_item(mac_tree, hf_mpls_mac_tlv, tvb, offset, 4, ENC_NA);
@@ -211,7 +211,7 @@ proto_register_mpls_mac(void)
},
};
- static gint *ett[] = {
+ static int *ett[] = {
&ett_mpls_mac,
&ett_mpls_mac_flags,
&ett_mpls_mac_tlv,