aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-lmi.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-lmi.c')
-rw-r--r--epan/dissectors/packet-lmi.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/epan/dissectors/packet-lmi.c b/epan/dissectors/packet-lmi.c
index 9d5cf26798..64f343589d 100644
--- a/epan/dissectors/packet-lmi.c
+++ b/epan/dissectors/packet-lmi.c
@@ -109,27 +109,27 @@ static const value_string pvc_status_act_str[] = {
static void
dissect_lmi_report_type(tvbuff_t *tvb, int offset, proto_tree *tree)
{
- proto_tree_add_uint(tree, hf_lmi_rcd_type, tvb, offset, 1, tvb_get_guint8( tvb, offset));
+ proto_tree_add_item(tree, hf_lmi_rcd_type, tvb, offset, 1, ENC_NA);
}
static void
dissect_lmi_link_int(tvbuff_t *tvb, int offset, proto_tree *tree)
{
- proto_tree_add_uint(tree, hf_lmi_send_seq, tvb, offset, 1, tvb_get_guint8( tvb, offset));
+ proto_tree_add_item(tree, hf_lmi_send_seq, tvb, offset, 1, ENC_NA);
++offset;
- proto_tree_add_uint(tree, hf_lmi_recv_seq, tvb, offset, 1, tvb_get_guint8( tvb, offset));
+ proto_tree_add_item(tree, hf_lmi_recv_seq, tvb, offset, 1, ENC_NA);
}
static void
dissect_lmi_pvc_status(tvbuff_t *tvb, int offset, proto_tree *tree)
{
- proto_tree_add_uint(tree, hf_lmi_dlci_high, tvb, offset, 1, tvb_get_guint8( tvb, offset));
+ proto_tree_add_item(tree, hf_lmi_dlci_high, tvb, offset, 1, ENC_NA);
++offset;
- proto_tree_add_uint(tree, hf_lmi_dlci_low, tvb, offset, 1, tvb_get_guint8( tvb, offset));
+ proto_tree_add_item(tree, hf_lmi_dlci_low, tvb, offset, 1, ENC_NA);
++offset;
- proto_tree_add_uint(tree, hf_lmi_new, tvb, offset, 1, tvb_get_guint8( tvb, offset));
- proto_tree_add_uint(tree, hf_lmi_act, tvb, offset, 1, tvb_get_guint8( tvb, offset));
+ proto_tree_add_item(tree, hf_lmi_new, tvb, offset, 1, ENC_NA);
+ proto_tree_add_item(tree, hf_lmi_act, tvb, offset, 1, ENC_NA);
}
static int