From 9aeb1dac1770c29b74b0278eda284701a2e8f731 Mon Sep 17 00:00:00 2001 From: Jeff Morriss Date: Wed, 17 Nov 2010 03:16:30 +0000 Subject: From David Katz via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5166 : Add a configuration parameter of the NWG version for WiMAX ASN CP dissector. The format and meaning of TLVs, as well as function types and messages changed between the different NWG versions. Added support for the version number of TLVs in the dictionary xml, its parser, and of course in the packet itself. Added support for the version number of function-types and message-types by extending the value_string structure to contain also a "since" version number. Successfully tested with a live capture and capture file, containing WiMAX ASN packets (full Network entry). Also fuzzed 500 passes successfully. The XML doesn't contain all existing NWG versions, only selected ones. This is a little tedious work to go over all TLVs of each version, so I'll add some newer versions later on. can add a short how-to of adding a new version, for others to use, if needed. svn path=/trunk/; revision=34919 --- wimaxasncp/dictionary.dtd | 1 + wimaxasncp/dictionary.xml | 1948 +++++++++++++++++++++++++++------------------ 2 files changed, 1194 insertions(+), 755 deletions(-) (limited to 'wimaxasncp') diff --git a/wimaxasncp/dictionary.dtd b/wimaxasncp/dictionary.dtd index 97adff9c31..08dc3c7910 100644 --- a/wimaxasncp/dictionary.dtd +++ b/wimaxasncp/dictionary.dtd @@ -9,6 +9,7 @@ name CDATA #REQUIRED type CDATA #REQUIRED decoder CDATA #IMPLIED + since CDATA #IMPLIED > diff --git a/wimaxasncp/dictionary.xml b/wimaxasncp/dictionary.xml index 2c5dbdb96d..3b1ec624b2 100644 --- a/wimaxasncp/dictionary.xml +++ b/wimaxasncp/dictionary.xml @@ -4,6 +4,12 @@ + + + + + + @@ -44,13 +50,16 @@ - - + + - @@ -86,7 +95,13 @@ + decoder="WIMAXASNCP_TLV_DEC16"> + + + @@ -130,10 +145,10 @@ type="14" decoder="WIMAXASNCP_TLV_ENUM8"> - - @@ -146,20 +161,26 @@ + + + - - + + - - - + + - @@ -192,40 +213,76 @@ + + + + decoder="WIMAXASNCP_TLV_BYTES" + since="1"> + decoder="WIMAXASNCP_TLV_BITFLAGS16"> + code="WIMAXASNCP_BIT16(15)"/> + code="WIMAXASNCP_BIT16(14)"/> + code="WIMAXASNCP_BIT16(13)"/> + + + + + + + + + + + + + + + + + + + - - - + + code="WIMAXASNCP_BIT8(0)"/> @@ -286,36 +343,84 @@ + + + + decoder="WIMAXASNCP_TLV_DEC16" + since="1"> - - - - - + + + + + + + + + + + + + + + + + + + + + + + + @@ -338,49 +443,52 @@ + decoder="WIMAXASNCP_TLV_BITFLAGS32"> - - - - - - - - - - - - - + + @@ -430,7 +538,7 @@ type="39" decoder="WIMAXASNCP_TLV_ENUM8"> - + + + + + @@ -535,21 +650,49 @@ + decoder="WIMAXASNCP_TLV_BITFLAGS8"> + decoder="WIMAXASNCP_TLV_COMPOUND"> + + + + + + + + decoder="WIMAXASNCP_TLV_BITFLAGS8" + since="1"> + + + + + + + + + + @@ -584,7 +727,7 @@ + decoder="WIMAXASNCP_TLV_IP_ADDRESS"> @@ -598,7 +741,7 @@ + decoder="WIMAXASNCP_TLV_IP_ADDRESS"> @@ -644,6 +787,13 @@ + + + + + @@ -651,9 +801,20 @@ + + + + + + + decoder="WIMAXASNCP_TLV_COMPOUND" + since="1"> @@ -686,10 +847,10 @@ - - - - - - - - - - - - - - - - @@ -743,90 +883,9 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -844,36 +903,11 @@ - - - - - - - - - - - - - - - - - - @@ -895,14 +929,14 @@ + decoder="WIMAXASNCP_TLV_COMPOUND"> + decoder="WIMAXASNCP_TLV_COMPOUND"> @@ -958,14 +992,14 @@ type="79" decoder="WIMAXASNCP_TLV_ENUM32"> - + - + - + @@ -979,7 +1013,30 @@ + decoder="WIMAXASNCP_TLV_BITFLAGS8"> + + + + + + + + + + + + + + + @@ -1007,7 +1064,7 @@ + decoder="WIMAXASNCP_TLV_BYTES"> @@ -1038,37 +1095,51 @@ + + - + decoder="WIMAXASNCP_TLV_ENUM8"> + + + + + + + code="0x00000001"/> + code="0x00000002"/> + code="0x00000004"/> + code="0x00000008"/> + code="0x00000010"/> + code="0x00000020"/> + code="0x00000040"/> @@ -1167,9 +1238,15 @@ + + + + decoder="WIMAXASNCP_TLV_BYTES" + since="1"> @@ -1195,9 +1272,9 @@ - + decoder="WIMAXASNCP_TLV_COMPOUND"> @@ -1239,6 +1316,26 @@ + + + + + + + + + + + + + @@ -1280,7 +1377,7 @@ - @@ -1324,7 +1421,7 @@ + decoder="WIMAXASNCP_TLV_DEC16"> @@ -1345,7 +1442,13 @@ + decoder="WIMAXASNCP_TLV_ENUM8"> + + + + @@ -1357,7 +1460,7 @@ - @@ -1431,9 +1534,25 @@ + + + + + + decoder="WIMAXASNCP_TLV_COMPOUND" + since="1"> + + + + + @@ -1450,20 +1569,33 @@ decoder="WIMAXASNCP_TLV_ENUM8"> - + code="18"/> - + + + + + + + + + decoder="WIMAXASNCP_TLV_DEC16" + since="1"> @@ -1517,9 +1649,40 @@ + + + + + + + + + + + + + + decoder="WIMAXASNCP_TLV_ENUM8"> + + + + + @@ -1531,7 +1694,7 @@ - - - @@ -1559,23 +1719,41 @@ - + decoder="WIMAXASNCP_TLV_ID"> + + + + + + + + + + + decoder="WIMAXASNCP_TLV_BYTES" + since="1"> - + decoder="WIMAXASNCP_TLV_ENUM8"> @@ -1666,10 +1844,10 @@ decoder="WIMAXASNCP_TLV_ENUM8"> + code="0x00"/> + code="0x01"/> @@ -1681,10 +1859,10 @@ - - + + + + + + + + + + + + + decoder="WIMAXASNCP_TLV_DEC32" + since="1"> + + + + + + decoder="WIMAXASNCP_TLV_DEC32" + since="1"> + decoder="WIMAXASNCP_TLV_HEX32"> + + + @@ -1826,6 +2038,13 @@ + + + + + @@ -1860,7 +2079,13 @@ + decoder="WIMAXASNCP_TLV_HEX8"> + + + @@ -1881,7 +2106,13 @@ + decoder="WIMAXASNCP_TLV_DEC8"> + + + @@ -1911,10 +2142,10 @@ type="181" decoder="WIMAXASNCP_TLV_ENUM8"> - - @@ -1933,6 +2164,41 @@ + + + + + + + + + + + + + + + + + + + + @@ -2063,27 +2329,27 @@ type="202" decoder="WIMAXASNCP_TLV_ASCII_STRING"> - - + + - - - - - - - - - + + + + + + + + + + code="4"/> @@ -2092,204 +2358,364 @@ type="204" decoder="WIMAXASNCP_TLV_COMPOUND"> - - + + - + + decoder="WIMAXASNCP_TLV_BYTES"> - - + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + - - + + - - + + - - + + + + + + + - - - + + + - + - + - - - + + + - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + + + + + + - - - + + + + + + + + - + + + + + + + + + + - - + + - + - + + code="0x01"/> - + - + - + - + - + + code="0x01"/> - + - + + code="0x01"/> + + + + + + + + + + - + + + + + + + + + + + + - + - - + + - + @@ -2297,18 +2723,18 @@ type="278" decoder="WIMAXASNCP_TLV_DEC32"> - + - + - - + + + code="0x02"/> + code="0x06"/> + code="0x08"/> + code="0x0A"/> - - - + + + - - - - + + + + + + + - - - - + + + + + + + - + + code="0x02"/> - - - - + + + + + + + - - - - + + + + + + + - + + + + - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - - + type="290" + decoder="WIMAXASNCP_TLV_BYTES" + since="2"> + + - + - - + type="291" + decoder="WIMAXASNCP_TLV_DEC16" + since="2"> + + - - + + - + - - + + - + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + - + - + - + + + - + + + - + - + - + - + - + - + - + - + - + + + + + - + - + - + - + - - - + + - + + + - + - + - + + + + + + + + + + + + + + + + + + + + + + - + + + + + - + + + + + + - + - + - + - + - + - + - + - + - + - + - - - + + - - - + - - - + + - - - + - + + + + + - + - - - + + - + + + - + - + - - + - + + - + - + - + + - + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + -- cgit v1.2.3