aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dvbci.c
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2013-11-21 21:54:31 +0000
committerMartin Kaiser <wireshark@kaiser.cx>2013-11-21 21:54:31 +0000
commit36f11a79ccddf05a1d9b61034a89fd95ec0efd41 (patch)
treebdaff75b9c24473134caf963c459605755154611 /epan/dissectors/packet-dvbci.c
parent63c8b20360159ad9ce5fdc5f37973bed1bb42138 (diff)
next unprocessed descriptor 0xFF means that
all descriptors were processed svn path=/trunk/; revision=53494
Diffstat (limited to 'epan/dissectors/packet-dvbci.c')
-rw-r--r--epan/dissectors/packet-dvbci.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/epan/dissectors/packet-dvbci.c b/epan/dissectors/packet-dvbci.c
index 667829aac4..6cb65aa292 100644
--- a/epan/dissectors/packet-dvbci.c
+++ b/epan/dissectors/packet-dvbci.c
@@ -427,6 +427,8 @@
#define OPP_TUNE_INVALID 2
#define OPP_TUNE_ERR 3
+#define OPP_NO_MORE_DESC 0xFF
+
/* sas resource */
#define SAS_SESS_STATE_CONNECTED 0
#define SAS_SESS_STATE_NOT_FOUND 1
@@ -3713,6 +3715,7 @@ dissect_dvbci_payload_opp(guint32 tag, gint len_field _U_,
guint8 cap_loop_len;
gboolean info_valid;
guint8 char_tbl;
+ guint8 desc_num;
guint8 sig_strength, sig_qual;
proto_item *pi;
@@ -3844,8 +3847,11 @@ dissect_dvbci_payload_opp(guint32 tag, gint len_field _U_,
tvb, offset, pinfo, tree);
break;
case T_OPERATOR_TUNE_STATUS:
- proto_tree_add_item(tree, hf_dvbci_desc_num,
+ desc_num = tvb_get_guint8(tvb, offset);
+ pi = proto_tree_add_item(tree, hf_dvbci_desc_num,
tvb, offset, 1, ENC_BIG_ENDIAN);
+ if (desc_num==OPP_NO_MORE_DESC)
+ proto_item_append_text(pi, " (all descriptors were processed)");
offset++;
sig_strength = tvb_get_guint8(tvb, offset);
proto_tree_add_item(tree, hf_dvbci_sig_strength,