浏览代码

Added TLV 22.43.7 SAV Authorization.

AdrianSimionov 10 年之前
父节点
当前提交
d18d5830fe

+ 1 - 1
src/docsis_common.h

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

+ 6 - 1
src/docsis_symtable.h

@@ -308,6 +308,11 @@ symbol_type symtable[NUM_IDENTIFIERS] =  {
 { 445,    "ExtendedCMTSMICHMACtype",           1,      444,    (encode_uchar),          (decode_uchar),          0,           0             }, /* TLV 22.43.6.1 MULPIv3.0-I24 Annex C.1.1.18.1.6.1 */
 { 446,    "ExtendedCMTSMICBitmap",             2,      444,    (encode_hexstr),         (decode_hexstr),         0,           0             }, /* TLV 22.43.6.2 MULPIv3.0-I24 Annex C.1.1.18.1.6.2 */
 { 447,    "ExplicitExtendedCMTSMICDigest",     3,      444,    (encode_hexstr),         (decode_hexstr),         0,           0             }, /* TLV 22.43.6.3 MULPIv3.0-I24 Annex C.1.1.18.1.6.3 */
+{ 450,    "SAVAuthorizationEncoding",          7,      200,    (encode_nothing),        (decode_aggregate),      0,           0             }, /* TLV 22.43.7 MULPIv3.0-I24 Annex C.1.1.18.1.7 */
+{ 451,    "SAVGroupName",                      1,      450,    (encode_string),         (decode_string),         1,           15            }, /* TLV 22.43.7.1 MULPIv3.0-I24 Annex C.1.1.18.1.7.1 */
+{ 452,    "SAVStaticPrefixRule",               2,      450,    (encode_nothing),        (decode_aggregate),      0,           0             }, /* TLV 22.43.7.2 MULPIv3.0-I24 Annex C.1.1.18.1.7.2 */
+{ 453,    "SAVStaticPrefixAddress",            1,      452,    (encode_ip_ip6),         (decode_ip_ip6),         0,           0             }, /* TLV 22.43.7.2.1 MULPIv3.0-I24 Annex C.1.1.18.1.7.2.1 */
+{ 454,    "SAVStaticPrefixLength",             2,      452,    (encode_uchar),          (decode_uchar),          0,           0             }, /* TLV 22.43.7.2.2 MULPIv3.0-I24 Annex C.1.1.18.1.7.2.2 */
 { 201,    "VendorIdentifier",                  8,      200,    (encode_hexstr),         (decode_hexstr),         3,           3             }, /* TLV 22.43.8 */
 
 /* TODO: Vendor Specific support in the IEEE802Classifier */
@@ -551,7 +556,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 450 */
+/* A little more organized -> Start with 455 */
 
 /* 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_22_43_7_SAVAuthorization.cm


+ 36 - 0
tests/TLV_22_43_7_SAVAuthorization.conf

@@ -0,0 +1,36 @@
+Main 
+{
+	NetworkAccess 1;
+	UsServiceFlow
+	{
+		UsServiceFlowRef 1;
+		QosParamSetType 7;
+	}
+	DsServiceFlow
+	{
+		DsServiceFlowRef 2;
+		QosParamSetType 7;
+	}
+	UsPacketClass
+	{
+		VendorSpecific
+		{
+			VendorIdentifier 0xffffff;
+			SAVAuthorizationEncoding
+			{
+				SAVGroupName "SAVGROUPNAME";
+				SAVStaticPrefixRule
+				{
+					SAVStaticPrefixAddress 2002::2:1;
+					SAVStaticPrefixLength 128;
+				}
+			}
+		}
+		ClassifierRef 1;
+		ServiceFlowRef 1;
+	}
+	/* CmMic 5bd5d599ede2810a9e7ebaa34826926d; */
+	/* CmtsMic a13d9ed8d41d2da78a2ea5cf8a8527ba; */
+	/*EndOfDataMkr*/
+	/* Pad */
+}

+ 32 - 0
tests/TLV_22_43_7_SAVAuthorization.txt

@@ -0,0 +1,32 @@
+Main 
+{
+NetworkAccess 1;
+UsServiceFlow
+{
+UsServiceFlowRef 1;
+QosParamSetType 7;
+}
+DsServiceFlow
+{
+DsServiceFlowRef 2;
+QosParamSetType 7;
+}
+UsPacketClass
+{
+VendorSpecific
+{
+VendorIdentifier 0xffffff;
+SAVAuthorizationEncoding
+{
+SAVGroupName "SAVGROUPNAME";
+SAVStaticPrefixRule
+{
+SAVStaticPrefixAddress 2002::2:1;
+SAVStaticPrefixLength 128;
+}
+}
+}
+ClassifierRef 1;
+ServiceFlowRef 1;
+}
+}