Commit Graph

26 Commits

Author SHA1 Message Date
Martin Kaiser 9ca8ee6c06 dissect CI+ Protection Descriptor
svn path=/trunk/; revision=48651
2013-03-30 10:59:30 +00:00
Evan Huus 37600a157b Rename value string (and similar) functions to use a consistent pattern. This
was done using textual search+replace, not anything syntax-aware, so presumably
it got most comments as well (except where there were typos).

Use a consistent coding style, and make proper use of the WS_DLL_* defines.

Group the functions appropriately in the header.

I ended up getting rid of most of the explanatory comments since many of them
duplicated what was in the value_string.c file (and were out of sync with the
recent updates I made to those in r48633). Presumably most of the comments
should be in the .h file not the .c file, but there's enough churn ahead that
it's not worth fixing yet.

Part of https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8467

svn path=/trunk/; revision=48634
2013-03-29 00:26:23 +00:00
Bill Meier 77376a2363 Change "4 space tabs" indentation to use "4 spaces" indentation.
Also:
- remove some unneeded initializers;
- remove several unneeded 'col_clear()' calls;
- guint8 --> guint to prevent a possible overflow;
- reformat for style in some cases.


svn path=/trunk/; revision=48297
2013-03-14 14:42:12 +00:00
Martin Kaiser f58e2cc90a dissect Application Signalling Descriptor
svn path=/trunk/; revision=48273
2013-03-12 22:04:09 +00:00
Martin Kaiser 24fe8f7fb2 correctly mark the payload for unknown extension tags
(fixes a bug introduced by my previous commit)

svn path=/trunk/; revision=48181
2013-03-07 22:06:18 +00:00
Martin Kaiser d96c8ee09d dissect Supplementary Audio Descriptor as defined in EN300468
svn path=/trunk/; revision=48176
2013-03-07 19:14:11 +00:00
Martin Kaiser faed099b43 use defines for extension tags
svn path=/trunk/; revision=48175
2013-03-07 19:05:45 +00:00
Jeff Morriss 2552c750e5 We always HAVE_CONFIG_H so don't bother checking whether we have it or not.
svn path=/trunk/; revision=45017
2012-09-20 02:03:38 +00:00
Martin Kaiser 03993d6e0e add private data specifier for NorDig
trivial whitespace cleanup

svn path=/trunk/; revision=44858
2012-09-10 21:22:01 +00:00
Martin Kaiser 4e2268aaa4 function to dissect a sequence of mpeg/dvb descriptors
(such descriptor loops are part of all psi and si tables)

take into account that a private data specifier descriptor may set the
 context for interpretation of subsequent descriptors in the loop

as a first example, add the private descriptors defined by CI+ LLP


svn path=/trunk/; revision=44856
2012-09-10 21:09:34 +00:00
Martin Kaiser 2558013747 fix a typo in dvb service descriptor
svn path=/trunk/; revision=44760
2012-09-03 21:11:01 +00:00
Martin Kaiser a3bd9a410e add editor modelines (that match the current indentation style)
svn path=/trunk/; revision=44755
2012-09-03 18:37:03 +00:00
Michael Mann dd6ca38fff updated more display filters per checkfiltername.pl
svn path=/trunk/; revision=44178
2012-08-01 01:57:18 +00:00
Bill Meier 85e9ca3940 Create/use extended value strings as appropriate;
Remove unneeded initializers;
Do whitespace changes.

svn path=/trunk/; revision=44003
2012-07-25 17:38:05 +00:00
Pascal Quantin 86dd3248f6 Avoid using C99 '%hh' length modifier
svn path=/trunk/; revision=42904
2012-05-29 21:51:52 +00:00
Jeff Morriss 786c604ad0 From Guy Martin via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7007 :
This patch adds support for the DVB Bouquet Association Table (BAT) from ETSI
EN 300 468.

With this last patch, the support for the DVB SI table is quite complete.

svn path=/trunk/; revision=41836
2012-03-30 01:17:46 +00:00
Jeff Morriss 730ae93ce8 Line wrap a few very long lines.
svn path=/trunk/; revision=41767
2012-03-26 14:16:58 +00:00
Jeff Morriss c4acc5cecc From Guy Martin via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6999 :
This patch adds support for the DVB Time Offset Table and the related
descriptor.
It also contains the Stuffing Descriptor as an added bonus.

svn path=/trunk/; revision=41766
2012-03-26 14:08:39 +00:00
Jeff Morriss 921b0f140d From Guy Martin via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6992 :
Use a couple of hf_ entries that were supposed to be used (reported in
comment 3).

I've also fixed two other small bugs I've found :
 - Invalid checking of mpeg1_only_flag in the video stream descriptor
 - Avoid processing descriptor data if reported length is 0

svn path=/trunk/; revision=41758
2012-03-25 14:03:39 +00:00
Jeff Morriss 5eab81456d Fix some hf encodings (courtesy of fix-encoding-args.pl).
svn path=/trunk/; revision=41755
2012-03-25 01:41:18 +00:00
Jeff Morriss 55e03ca50a From Guy Martin via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6992 :
This patch adds support for DVB Network Information Table as documented in
ETSI EN 300 468.

The patch also contains additional mpeg descriptors usually found in NIT plus
a few minor bugfix for other descriptors.

svn path=/trunk/; revision=41754
2012-03-25 01:33:35 +00:00
Anders Broman f85baa9dfa From Guy Martin:
Fix
Coverity has 3 complaints about this dissector, reported in CID's 1450-1451
CONSTANT_EXPRESSION_RESULT:

Event result_independent_of_operands: (crid & 3) >> 2 is 0 regardless of the
values of its operands [non-specific operand of assignment].
1385             crid_type = (crid &
MPEG_DESCR_CONTENT_IDENTIFIER_CRID_LOCATION_MASK) >> 2;


Event result_independent_of_operands: flags & 0x1000 is always 0 regardless of
the values of its operands (logical operand of if).
1512             if (flags & MPEG_DESCR_LOGON_INITIALIZE_CONNECTIVITY_MASK) {


Event result_independent_of_operands: flags & 0x1000 is always 0 regardless of
the values of its operands (logical second operand of '&&').
1544         if (offset < end && (flags &
MPEG_DESCR_LOGON_INITIALIZE_CONNECTIVITY_MASK)) {

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6960

svn path=/trunk/; revision=41722
2012-03-21 13:07:23 +00:00
Jeff Morriss ae27b278ab From Martin Kaiser: remove a set-but-unused variable
svn path=/trunk/; revision=41608
2012-03-16 13:33:09 +00:00
Jeff Morriss 255c803c61 Make most of the functions in here static
svn path=/trunk/; revision=41605
2012-03-16 13:24:15 +00:00
Jeff Morriss 53c44185bf Terminate a value_string. Remove a couple of trailing commas.
svn path=/trunk/; revision=41604
2012-03-16 13:19:16 +00:00
Anders Broman affd39940f From Guy Martin:
Add packet-mpeg-pmt, packet-mpeg-ca and mpeg-descriptors.

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6960

svn path=/trunk/; revision=41600
2012-03-16 12:25:06 +00:00