summaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-lmi.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-lmi.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-lmi.c')
-rw-r--r--epan/dissectors/packet-lmi.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/epan/dissectors/packet-lmi.c b/epan/dissectors/packet-lmi.c
index c81f5117..065542d6 100644
--- a/epan/dissectors/packet-lmi.c
+++ b/epan/dissectors/packet-lmi.c
@@ -30,22 +30,22 @@ void proto_reg_handoff_lmi(void);
static dissector_handle_t lmi_handle;
-static int proto_lmi = -1;
-static int hf_lmi_call_ref = -1;
-static int hf_lmi_msg_type = -1;
-static int hf_lmi_inf_ele = -1;
-static int hf_lmi_inf_len = -1;
-
-static int hf_lmi_rcd_type = -1;
-static int hf_lmi_send_seq = -1;
-static int hf_lmi_recv_seq = -1;
-static int hf_lmi_dlci_high = -1;
-static int hf_lmi_dlci_low = -1;
-static int hf_lmi_new = -1;
-static int hf_lmi_act = -1;
-
-static gint ett_lmi = -1;
-static gint ett_lmi_ele = -1;
+static int proto_lmi;
+static int hf_lmi_call_ref;
+static int hf_lmi_msg_type;
+static int hf_lmi_inf_ele;
+static int hf_lmi_inf_len;
+
+static int hf_lmi_rcd_type;
+static int hf_lmi_send_seq;
+static int hf_lmi_recv_seq;
+static int hf_lmi_dlci_high;
+static int hf_lmi_dlci_low;
+static int hf_lmi_new;
+static int hf_lmi_act;
+
+static int ett_lmi;
+static int ett_lmi_ele;
#ifdef _OLD_
/*
@@ -72,7 +72,7 @@ static const value_string element_type_str[] = {
/*** These are the ITU values ***/
{0x51, "Report"},
{0x53, "Keep Alive"},
- {0x07, "PVC Status"},
+ //{0x07, "PVC Status"},
{0, NULL }
};
@@ -128,8 +128,8 @@ dissect_lmi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
proto_tree *lmi_tree, *lmi_subtree;
proto_item *ti;
int offset = 2, len;
- guint8 msg_type;
- guint8 ele_id;
+ uint8_t msg_type;
+ uint8_t ele_id;
col_set_str(pinfo->cinfo, COL_PROTOCOL, "LMI");
col_clear(pinfo->cinfo, COL_INFO);
@@ -139,7 +139,7 @@ dissect_lmi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
proto_tree_add_item(lmi_tree, hf_lmi_call_ref, tvb, 0, 1, ENC_BIG_ENDIAN);
- msg_type = tvb_get_guint8( tvb, 1);
+ msg_type = tvb_get_uint8( tvb, 1);
col_add_str(pinfo->cinfo, COL_INFO,
val_to_str(msg_type, msg_type_str, "Unknown message type (0x%02x)"));
@@ -147,8 +147,8 @@ dissect_lmi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
/* Display the LMI elements */
while (tvb_reported_length_remaining(tvb, offset) > 0) {
- ele_id = tvb_get_guint8( tvb, offset);
- len = tvb_get_guint8( tvb, offset + 1);
+ ele_id = tvb_get_uint8( tvb, offset);
+ len = tvb_get_uint8( tvb, offset + 1);
lmi_subtree = proto_tree_add_subtree_format(lmi_tree, tvb, offset, len + 2,
ett_lmi_ele, NULL, "Information Element: %s",
@@ -212,7 +212,7 @@ proto_register_lmi(void)
{ "DLCI Active","lmi.dlci_act", FT_UINT8, BASE_DEC, VALS(pvc_status_act_str), 0x02,
"DLCI Active Flag", HFILL }},
};
- static gint *ett[] = {
+ static int *ett[] = {
&ett_lmi,
&ett_lmi_ele,
};