share the text description of service types between MPEG PMT and DVB-CI

svn path=/trunk/; revision=53289
This commit is contained in:
Martin Kaiser 2013-11-12 22:04:47 +00:00
parent 7221215cdc
commit 72f3c258a0
4 changed files with 37 additions and 3 deletions

View File

@ -1457,6 +1457,7 @@ DISSECTOR_INCLUDES = \
packet-mount.h \
packet-mp4ves.h \
packet-mpeg-descriptor.h \
packet-mpeg-pmt.h \
packet-mpeg-sect.h \
packet-mpls.h \
packet-mq.h \

View File

@ -45,6 +45,7 @@
#include <epan/asn1.h>
#include <epan/dissectors/packet-dvbci.h>
#include <epan/dissectors/packet-mpeg-descriptor.h>
#include <epan/dissectors/packet-mpeg-pmt.h>
#include <epan/dissectors/packet-x509af.h>
#include <epan/dissectors/packet-x509ce.h>
@ -5133,8 +5134,9 @@ proto_register_dvbci(void)
FT_UINT16, BASE_HEX, NULL, 0x0FFF, NULL, HFILL }
},
{ &hf_dvbci_stream_type,
{ "Stream type", "dvb-ci.ca.stream_type",
FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL }
{ "Stream type", "dvb-ci.ca.stream_type", FT_UINT8,
BASE_HEX|BASE_EXT_STRING, &mpeg_pmt_stream_type_vals_ext,
0, NULL, HFILL }
},
{ &hf_dvbci_es_pid,
{ "Elementary stream PID", "dvb-ci.ca.elementary_pid",

View File

@ -115,7 +115,7 @@ static const value_string mpeg_pmt_stream_type_vals[] = {
{ 0xC0, "ETV-AM EISS Signaling" },
{ 0x00, NULL }
};
static value_string_ext mpeg_pmt_stream_type_vals_ext = VALUE_STRING_EXT_INIT(mpeg_pmt_stream_type_vals);
value_string_ext mpeg_pmt_stream_type_vals_ext = VALUE_STRING_EXT_INIT(mpeg_pmt_stream_type_vals);
static int
dissect_mpeg_pmt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)

View File

@ -0,0 +1,31 @@
/* packet-mpeg-pmt.h
*
* $Id$
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef __PACKET_MPEG_PMT_H__
#define __PACKET_MPEG_PMT_H__
#include <epan/value_string.h>
extern value_string_ext mpeg_pmt_stream_type_vals_ext;
#endif