Bug 991445 - Part 1: Update CP Code Page 0 to the one defined in OMA-WAP-TS-ProvCont-V1_1-20090421-C. r=vyang, a=1.3+
authorBevis Tseng <btseng@mozilla.com>
Tue, 22 Apr 2014 16:41:19 +0800
changeset 193097 436884f12e4545eef16ce25cf0c60f5c5da496e5
parent 193096 cd6ad8bd5a84c5f5a81db6b120d6655e2f50e006
child 193098 c04fa70ed442f89ca1055f5086065f99c34b93b0
push id474
push userasasaki@mozilla.com
push dateMon, 02 Jun 2014 21:01:02 +0000
treeherdermozilla-release@967f4cf1b31c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvyang, 1
bugs991445, 20090421
milestone30.0a2
Bug 991445 - Part 1: Update CP Code Page 0 to the one defined in OMA-WAP-TS-ProvCont-V1_1-20090421-C. r=vyang, a=1.3+
dom/wappush/src/gonk/CpPduHelper.jsm
--- a/dom/wappush/src/gonk/CpPduHelper.jsm
+++ b/dom/wappush/src/gonk/CpPduHelper.jsm
@@ -205,18 +205,17 @@ this.Authenticator = {
         return null;
     }
   }
 };
 
 /**
   * Tag tokens
   *
-  * @see WAP-183-ProvCont-20010724-A, clause 8.1 for code page 0
-  * @see OMA-WAP-TS-ProvCont-V1_1-20090421-C, clause 7.1 for code page 1
+  * @see OMA-WAP-TS-ProvCont-V1_1-20090421-C, clause 7.1
   */
 const CP_TAG_FIELDS = (function () {
   let names = {};
   function add(name, codepage, number) {
     let entry = {
       name: name,
       number: number,
     };
@@ -235,18 +234,17 @@ const CP_TAG_FIELDS = (function () {
   add("parm",                1, 0x07);
 
   return names;
 })();
 
 /**
   * Attribute Tokens
   *
-  * @see WAP-183-ProvCont-20010724-A, clause 8.2 for code page 0
-  * @see OMA-WAP-TS-ProvCont-V1_1-20090421-C, clause 7.2 for code page 1
+  * @see OMA-WAP-TS-ProvCont-V1_1-20090421-C, clause 7.2
   */
 const CP_ATTRIBUTE_FIELDS = (function () {
   let names = {};
   function add(name, value, codepage, number) {
     let entry = {
       name: name,
       value: value,
       number: number,
@@ -309,33 +307,45 @@ const CP_ATTRIBUTE_FIELDS = (function ()
   add("name",     "MAX-BITRATE-UPLINK",           0,  0x35);
   add("name",     "MAX-BITRATE-DNLINK",           0,  0x36);
   add("name",     "RESIDUAL-BER",                 0,  0x37);
   add("name",     "SDU-ERROR-RATIO",              0,  0x38);
   add("name",     "TRAFFIC-HANDL-PRIO",           0,  0x39);
   add("name",     "TRANSFER-DELAY",               0,  0x3A);
   add("name",     "GUARANTEED-BITRATE-UPLINK",    0,  0x3B);
   add("name",     "GUARANTEED-BITRATE-DNLINK",    0,  0x3C);
+  add("name",     "PXADDR-FQDN",                  0,  0x3D);
+  add("name",     "PROXY-PW",                     0,  0x3E);
+  add("name",     "PPGAUTH-TYPE",                 0,  0x3F);
   add("version",  "",                             0,  0x45);
   add("version",  "1.0",                          0,  0x46);
+  add("name",     "PULLENABLED",                  0,  0x47);
+  add("name",     "DNS-ADDR",                     0,  0x48);
+  add("name",     "MAX-NUM-RETRY",                0,  0x49);
+  add("name",     "FIRST-RETRY-TIMEOUT",          0,  0x4A);
+  add("name",     "REREG-THRESHOLD",              0,  0x4B);
+  add("name",     "T-BIT",                        0,  0x4C);
+  add("name",     "AUTH-ENTITY",                  0,  0x4E);
+  add("name",     "SPI",                          0,  0x4F);
   add("type",     "",                             0,  0x50);
   add("type",     "PXLOGICAL",                    0,  0x51);
   add("type",     "PXPHYSICAL",                   0,  0x52);
   add("type",     "PORT",                         0,  0x53);
   add("type",     "VALIDITY",                     0,  0x54);
   add("type",     "NAPDEF",                       0,  0x55);
   add("type",     "BOOTSTRAP",                    0,  0x56);
 /*
  *  Mark out VENDORCONFIG so if it is contained in message, parse
  *  will failed and raw data is returned.
  */
 //  add("type",     "VENDORCONFIG",                 0,  0x57);
   add("type",     "CLIENTIDENTITY",               0,  0x58);
   add("type",     "PXAUTHINFO",                   0,  0x59);
   add("type",     "NAPAUTHINFO",                  0,  0x5A);
+  add("type",     "ACCESS",                       0,  0x5B);
 
   // Code page 1
   add("name",     "",                             1,  0x05);
   add("value",    "",                             1,  0x06);
   add("name",     "NAME",                         1,  0x07);
   add("name",     "INTERNET",                     1,  0x14);
   add("name",     "STARTPAGE",                    1,  0x1C);
   add("name",     "TO-NAPID",                     1,  0x22);
@@ -364,18 +374,17 @@ const CP_ATTRIBUTE_FIELDS = (function ()
   add("type",     "RESOURCE",                     1,  0x59);
 
   return names;
 })();
 
 /**
   * Value Tokens
   *
-  * @see WAP-183-ProvCont-20010724-A, clause 8.3 for code page 0
-  * @see OMA-WAP-TS-ProvCont-V1_1-20090421-C, clause 7.3 for code page 1
+  * @see OMA-WAP-TS-ProvCont-V1_1-20090421-C, clause 7.3
   */
 const CP_VALUE_FIELDS = (function () {
   let names = {};
   function add(value, codepage, number) {
     let entry = {
       value: value,
       number: number,
     };