make the menu string filterable
authorMartin Kaiser <wireshark@kaiser.cx>
Thu, 23 Jan 2014 22:19:52 +0000 (22:19 -0000)
committerMartin Kaiser <wireshark@kaiser.cx>
Thu, 23 Jan 2014 22:19:52 +0000 (22:19 -0000)
svn path=/trunk/; revision=54934

epan/dissectors/packet-dvbci.c

index ad4ab24521b2ddb0b8634c15b003895552d336ec..c1ba62e8967db9b984ce4899618f0150377b6d5e 100644 (file)
@@ -915,6 +915,7 @@ static int hf_dvbci_app_manf = -1;
 static int hf_dvbci_manf_code = -1;
 static int hf_dvbci_menu_str_len = -1;
 static int hf_dvbci_ap_char_tbl = -1;
+static int hf_dvbci_menu_str = -1;
 static int hf_dvbci_data_rate = -1;
 static int hf_dvbci_ca_sys_id = -1;
 static int hf_dvbci_ca_pmt_list_mgmt = -1;
@@ -2545,7 +2546,8 @@ dissect_dvbci_payload_ap(guint32 tag, gint len_field _U_,
                     tvb, offset, menu_str_len, dvb_enc_to_item_enc(encoding));
             col_append_sep_fstr(pinfo->cinfo, COL_INFO, NULL,
                     "Module name %s", menu_string);
-            proto_tree_add_text(tree, tvb, offset, menu_str_len,
+            proto_tree_add_string_format(tree, hf_dvbci_menu_str,
+                    tvb, offset, menu_str_len, menu_string,
                     "Menu string: %s", menu_string);
         }
     }
@@ -5183,6 +5185,10 @@ proto_register_dvbci(void)
           { "Character table", "dvb-ci.ap.menu_char_tbl",
             FT_BYTES, BASE_NONE, NULL, 0, NULL, HFILL}
         },
+        { &hf_dvbci_menu_str,
+          { "Menu string", "dvb-ci.ap.menu_string",
+            FT_STRING, STR_UNICODE, NULL, 0, NULL, HFILL }
+        },
         { &hf_dvbci_data_rate,
           { "Transport stream data rate supported by the host",
             "dvb-ci.ap.data_rate",