Kaynağa Gözat

Added eRouter support:
Initialization Mode (TLV 202.1)
TR69 (TLV 202.1)

AdrianSimionov 11 yıl önce
ebeveyn
işleme
5edf954eb3
4 değiştirilmiş dosya ile 69 ekleme ve 1 silme
  1. 25 0
      examples/eRouter.cfg
  2. 31 0
      examples/eRouter.txt
  3. 1 1
      src/docsis_common.h
  4. 12 0
      src/docsis_symtable.h

+ 25 - 0
examples/eRouter.cfg

@@ -0,0 +1,25 @@
+Main { /* this is a comment */
+NetworkAccess 1;
+/* this is a comment */
+UsServiceFlow {
+  UsServiceFlowRef 1;
+  QosParamSetType 7;
+}
+/* this is a comment */
+DsServiceFlow {
+  DsServiceFlowRef 2;
+  QosParamSetType 7;
+}
+eRouter { /* this is a comment */
+  InitializationMode 1;
+  TR69ManagementServer {
+    EnableCWMP 1;
+    URL "https://www.example.com/index.xml";
+    Username "ExampleUsername";
+    Password "ExamplePassword";
+    ConnectionRequestUsername "ConnectionUsername";
+    ConnectionRequestPassword "ConnectionPassword";
+    ACSOverride 0;
+  }
+}
+}

+ 31 - 0
examples/eRouter.txt

@@ -0,0 +1,31 @@
+Main 
+{
+	NetworkAccess 1;
+	UsServiceFlow
+	{
+		UsServiceFlowRef 1;
+		QosParamSetType 7;
+	}
+	DsServiceFlow
+	{
+		DsServiceFlowRef 2;
+		QosParamSetType 7;
+	}
+	eRouter
+	{
+		InitializationMode 1;
+		TR69ManagementServer
+		{
+			EnableCWMP 1;
+			URL "https://www.example.com/index.xml";
+			Username "ExampleUsername";
+			Password "ExamplePassword";
+			ConnectionRequestUsername "ConnectionUsername";
+			ConnectionRequestPassword "ConnectionPassword";
+			ACSOverride 0;
+		}
+	}
+	/* CmMic 25a823457d112076a8b586b687f27f41; */
+	/* CmtsMic 53f14d37898ced37ba933798019dadd7; */
+	/*EndOfDataMkr*/
+}

+ 1 - 1
src/docsis_common.h

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

+ 12 - 0
src/docsis_symtable.h

@@ -263,6 +263,18 @@ symbol_type symtable[NUM_IDENTIFIERS] =  {
 { 173, "SwUpgradeServer6",    	58,  0,   (encode_ip6),        (decode_ip6),          0,        0          },
 { 174, "SubMgmtControl6", 		63,  0,	  (encode_hexstr),    (decode_hexstr), 		2,	2 	},
 
+/* eRouter TLVs */
+{ 175,  "eRouter",                    202,  0,    (encode_nothing),  (decode_aggregate),  0,  0    },
+{ 176,  "InitializationMode",         1,    175,  (encode_uchar),    (decode_uchar),      0,  255  },
+{ 177,  "TR69ManagementServer",       2,    175,  (encode_nothing),  (decode_aggregate),  0,  0    },
+{ 178,  "EnableCWMP",                 1,    177,  (encode_uchar),    (decode_uchar),      0,  1    },
+{ 179,  "URL",                        2,    177,  (encode_string),   (decode_string),     0,  0    },
+{ 180,  "Username",                   3,    177,  (encode_string),   (decode_string),     0,  0    },
+{ 181,  "Password",    		          4,    177,  (encode_string),   (decode_string),     0,  0    },
+{ 182,  "ConnectionRequestUsername",  5,    177,  (encode_string),   (decode_string),     0,  0    },
+{ 183,  "ConnectionRequestPassword",  6,    177,  (encode_string),   (decode_string),     0,  0    },
+{ 184,  "ACSOverride",                7,    177,  (encode_uchar),    (decode_uchar),      0,  1    },
+
 /* Generic TLV ... we only use the limits, code and length don't matter ...*/
 { 998, "GenericTLV",           		0, 0,     (encode_nothing),   (decode_special),  0,        0        },
 { 999, "/*EndOfDataMkr*/",     		255, 0,   (encode_nothing),   (decode_special),  0,        0          }