浏览代码

Added support for TLV 40 EnableTestModes

AdrianSimionov 10 年之前
父节点
当前提交
de7ef16916
共有 5 个文件被更改,包括 37 次插入3 次删除
  1. 1 1
      src/docsis_common.h
  2. 2 2
      src/docsis_symtable.h
  3. 二进制
      tests/TLV_40_EnableTestModes.cm
  4. 19 0
      tests/TLV_40_EnableTestModes.conf
  5. 15 0
      tests/TLV_40_EnableTestModes.txt

+ 1 - 1
src/docsis_common.h

@@ -31,7 +31,7 @@
 
 
 #ifndef NUM_IDENTIFIERS
-#define NUM_IDENTIFIERS 538
+#define NUM_IDENTIFIERS 539
 #endif /*  NUM_IDENTIFIERS, needed in docsis_symtable.h  */
 
 #define MAXINT 2000000000

+ 2 - 2
src/docsis_symtable.h

@@ -505,7 +505,7 @@ symbol_type symtable[NUM_IDENTIFIERS] =  {
 { 142,    "SnmpV3TrapRxSecurityName",          7,      135,    (encode_string),         (decode_string),         1,           16            }, /* TLV 38.7 MULPIv3.0-I24 Annex C.1.2.12.7 */
 
 { 143,    "DocsisTwoEnable",                   39,     0,      (encode_uchar),          (decode_uchar),          0,           1             }, /* TLV 39 MULPIv3.0-I24 Annex C.1.1.20 */
-
+{ 532,    "EnableTestModes",                   40,     0,      (encode_uchar),          (decode_uchar),          0,           1             }, /* TLV 40 MULPIv3.0-I24 Annex C.1.1.21 */
 { 158,    "DsChannelList",                     41,     0,      (encode_nothing),        (decode_aggregate),      0,           0             }, /* TLV 41 MULPIv3.0-I24 Annex C.1.1.22 */
 { 159,    "SingleDsChannel",                   1,      158,    (encode_nothing),        (decode_aggregate),      0,           0             }, /* TLV 41.1 MULPIv3.0-I24 Annex C.1.1.22.1 */
 { 160,    "SingleDsTimeout",                   1,      159,    (encode_ushort),         (decode_ushort),         0,           65535         }, /* TLV 41.1.1 MULPIv3.0-I24 Annex C.1.1.22.1.1 */
@@ -633,7 +633,7 @@ symbol_type symtable[NUM_IDENTIFIERS] =  {
 { 236,    "SNMPv3AccessViewMask",              3,      233,    (encode_hexstr),         (decode_hexstr),         2,           2             }, /* TLV 202.54.3 eRouter-I12 Annex B.4.6.3 */
 { 237,    "SNMPv3AccessViewType",              4,      233,    (encode_uchar),          (decode_uchar),          1,           2             }, /* TLV 202.54.4 eRouter-I12 Annex B.4.6.4 */
 
-/* A little more organized -> Start with 532 */
+/* A little more organized -> Start with 533 */
 
 /* Generic TLV ... we only use the limits, code and length don't matter ...*/
 { 998,    "GenericTLV",                        0,      0,      (encode_nothing),        (decode_special),        0,           0             },

二进制
tests/TLV_40_EnableTestModes.cm


+ 19 - 0
tests/TLV_40_EnableTestModes.conf

@@ -0,0 +1,19 @@
+Main 
+{
+	NetworkAccess 1;
+	UsServiceFlow
+	{
+		UsServiceFlowRef 1;
+		QosParamSetType 7;
+	}
+	DsServiceFlow
+	{
+		DsServiceFlowRef 2;
+		QosParamSetType 7;
+	}
+	EnableTestModes 1;
+	/* CmMic b99d3ae458b292741d94e4ce1ea09a06; */
+	/* CmtsMic 217cda741a762b69c6d0ebfbf698a443; */
+	/*EndOfDataMkr*/
+	/* Pad */
+}

+ 15 - 0
tests/TLV_40_EnableTestModes.txt

@@ -0,0 +1,15 @@
+Main 
+{
+NetworkAccess 1;
+UsServiceFlow
+{
+UsServiceFlowRef 1;
+QosParamSetType 7;
+}
+DsServiceFlow
+{
+DsServiceFlowRef 2;
+QosParamSetType 7;
+}
+EnableTestModes 1;
+}