1[ 2 { 3 "id": "2002", 4 "name": "Add valid connmark action with defaults", 5 "category": [ 6 "actions", 7 "connmark" 8 ], 9 "plugins": { 10 "requires": "nsPlugin" 11 }, 12 "setup": [ 13 [ 14 "$TC actions flush action connmark", 15 0, 16 1, 17 255 18 ] 19 ], 20 "cmdUnderTest": "$TC actions add action connmark", 21 "expExitCode": "0", 22 "verifyCmd": "$TC actions list action connmark", 23 "matchPattern": "action order [0-9]+: connmark zone 0 pipe", 24 "matchCount": "1", 25 "teardown": [ 26 "$TC actions flush action connmark" 27 ] 28 }, 29 { 30 "id": "56a5", 31 "name": "Add valid connmark action with control pass", 32 "category": [ 33 "actions", 34 "connmark" 35 ], 36 "plugins": { 37 "requires": "nsPlugin" 38 }, 39 "setup": [ 40 [ 41 "$TC actions flush action connmark", 42 0, 43 1, 44 255 45 ] 46 ], 47 "cmdUnderTest": "$TC actions add action connmark pass index 1", 48 "expExitCode": "0", 49 "verifyCmd": "$TC actions get action connmark index 1", 50 "matchPattern": "action order [0-9]+: connmark zone 0 pass.*index 1 ref", 51 "matchCount": "1", 52 "teardown": [ 53 "$TC actions flush action connmark" 54 ] 55 }, 56 { 57 "id": "7c66", 58 "name": "Add valid connmark action with control drop", 59 "category": [ 60 "actions", 61 "connmark" 62 ], 63 "plugins": { 64 "requires": "nsPlugin" 65 }, 66 "setup": [ 67 [ 68 "$TC actions flush action connmark", 69 0, 70 1, 71 255 72 ] 73 ], 74 "cmdUnderTest": "$TC actions add action connmark drop index 100", 75 "expExitCode": "0", 76 "verifyCmd": "$TC actions get action connmark index 100", 77 "matchPattern": "action order [0-9]+: connmark zone 0 drop.*index 100 ref", 78 "matchCount": "1", 79 "teardown": [ 80 "$TC actions flush action connmark" 81 ] 82 }, 83 { 84 "id": "a913", 85 "name": "Add valid connmark action with control pipe", 86 "category": [ 87 "actions", 88 "connmark" 89 ], 90 "plugins": { 91 "requires": "nsPlugin" 92 }, 93 "setup": [ 94 [ 95 "$TC actions flush action connmark", 96 0, 97 1, 98 255 99 ] 100 ], 101 "cmdUnderTest": "$TC actions add action connmark pipe index 455", 102 "expExitCode": "0", 103 "verifyCmd": "$TC actions get action connmark index 455", 104 "matchPattern": "action order [0-9]+: connmark zone 0 pipe.*index 455 ref", 105 "matchCount": "1", 106 "teardown": [ 107 "$TC actions flush action connmark" 108 ] 109 }, 110 { 111 "id": "bdd8", 112 "name": "Add valid connmark action with control reclassify", 113 "category": [ 114 "actions", 115 "connmark" 116 ], 117 "plugins": { 118 "requires": "nsPlugin" 119 }, 120 "setup": [ 121 [ 122 "$TC actions flush action connmark", 123 0, 124 1, 125 255 126 ] 127 ], 128 "cmdUnderTest": "$TC actions add action connmark reclassify index 7", 129 "expExitCode": "0", 130 "verifyCmd": "$TC actions list action connmark", 131 "matchPattern": "action order [0-9]+: connmark zone 0 reclassify.*index 7 ref", 132 "matchCount": "1", 133 "teardown": [ 134 "$TC actions flush action connmark" 135 ] 136 }, 137 { 138 "id": "b8be", 139 "name": "Add valid connmark action with control continue", 140 "category": [ 141 "actions", 142 "connmark" 143 ], 144 "plugins": { 145 "requires": "nsPlugin" 146 }, 147 "setup": [ 148 [ 149 "$TC actions flush action connmark", 150 0, 151 1, 152 255 153 ] 154 ], 155 "cmdUnderTest": "$TC actions add action connmark continue index 17", 156 "expExitCode": "0", 157 "verifyCmd": "$TC actions list action connmark", 158 "matchPattern": "action order [0-9]+: connmark zone 0 continue.*index 17 ref", 159 "matchCount": "1", 160 "teardown": [ 161 "$TC actions flush action connmark" 162 ] 163 }, 164 { 165 "id": "d8a6", 166 "name": "Add valid connmark action with control jump", 167 "category": [ 168 "actions", 169 "connmark" 170 ], 171 "plugins": { 172 "requires": "nsPlugin" 173 }, 174 "setup": [ 175 [ 176 "$TC actions flush action connmark", 177 0, 178 1, 179 255 180 ] 181 ], 182 "cmdUnderTest": "$TC actions add action connmark jump 10 index 17", 183 "expExitCode": "0", 184 "verifyCmd": "$TC actions list action connmark", 185 "matchPattern": "action order [0-9]+: connmark zone 0 jump 10.*index 17 ref", 186 "matchCount": "1", 187 "teardown": [ 188 "$TC actions flush action connmark" 189 ] 190 }, 191 { 192 "id": "aae8", 193 "name": "Add valid connmark action with zone argument", 194 "category": [ 195 "actions", 196 "connmark" 197 ], 198 "plugins": { 199 "requires": "nsPlugin" 200 }, 201 "setup": [ 202 [ 203 "$TC actions flush action connmark", 204 0, 205 1, 206 255 207 ] 208 ], 209 "cmdUnderTest": "$TC actions add action connmark zone 100 pipe index 1", 210 "expExitCode": "0", 211 "verifyCmd": "$TC actions get action connmark index 1", 212 "matchPattern": "action order [0-9]+: connmark zone 100 pipe.*index 1 ref", 213 "matchCount": "1", 214 "teardown": [ 215 "$TC actions flush action connmark" 216 ] 217 }, 218 { 219 "id": "2f0b", 220 "name": "Add valid connmark action with invalid zone argument", 221 "category": [ 222 "actions", 223 "connmark" 224 ], 225 "plugins": { 226 "requires": "nsPlugin" 227 }, 228 "setup": [ 229 [ 230 "$TC actions flush action connmark", 231 0, 232 1, 233 255 234 ] 235 ], 236 "cmdUnderTest": "$TC actions add action connmark zone 65536 reclassify index 21", 237 "expExitCode": "255", 238 "verifyCmd": "$TC actions get action connmark index 1", 239 "matchPattern": "action order [0-9]+: connmark zone 65536 reclassify.*index 21 ref", 240 "matchCount": "0", 241 "teardown": [ 242 "$TC actions flush action connmark" 243 ] 244 }, 245 { 246 "id": "9305", 247 "name": "Add connmark action with unsupported argument", 248 "category": [ 249 "actions", 250 "connmark" 251 ], 252 "plugins": { 253 "requires": "nsPlugin" 254 }, 255 "setup": [ 256 [ 257 "$TC actions flush action connmark", 258 0, 259 1, 260 255 261 ] 262 ], 263 "cmdUnderTest": "$TC actions add action connmark zone 655 unsupp_arg pass index 2", 264 "expExitCode": "255", 265 "verifyCmd": "$TC actions get action connmark index 2", 266 "matchPattern": "action order [0-9]+: connmark zone 655 unsupp_arg pass.*index 2 ref", 267 "matchCount": "0", 268 "teardown": [ 269 "$TC actions flush action connmark" 270 ] 271 }, 272 { 273 "id": "71ca", 274 "name": "Add valid connmark action and replace it", 275 "category": [ 276 "actions", 277 "connmark" 278 ], 279 "plugins": { 280 "requires": "nsPlugin" 281 }, 282 "setup": [ 283 [ 284 "$TC actions flush action connmark", 285 0, 286 1, 287 255 288 ], 289 "$TC actions add action connmark zone 777 pass index 555" 290 ], 291 "cmdUnderTest": "$TC actions replace action connmark zone 555 reclassify index 555", 292 "expExitCode": "0", 293 "verifyCmd": "$TC actions get action connmark index 555", 294 "matchPattern": "action order [0-9]+: connmark zone 555 reclassify.*index 555 ref", 295 "matchCount": "1", 296 "teardown": [ 297 "$TC actions flush action connmark" 298 ] 299 }, 300 { 301 "id": "5f8f", 302 "name": "Add valid connmark action with cookie", 303 "category": [ 304 "actions", 305 "connmark" 306 ], 307 "plugins": { 308 "requires": "nsPlugin" 309 }, 310 "setup": [ 311 [ 312 "$TC actions flush action connmark", 313 0, 314 1, 315 255 316 ] 317 ], 318 "cmdUnderTest": "$TC actions add action connmark zone 555 pipe index 5 cookie aabbccddeeff112233445566778800a1", 319 "expExitCode": "0", 320 "verifyCmd": "$TC actions get action connmark index 5", 321 "matchPattern": "action order [0-9]+: connmark zone 555 pipe.*index 5 ref.*cookie aabbccddeeff112233445566778800a1", 322 "matchCount": "1", 323 "teardown": [ 324 "$TC actions flush action connmark" 325 ] 326 }, 327 { 328 "id": "c506", 329 "name": "Replace connmark with invalid goto chain control", 330 "category": [ 331 "actions", 332 "connmark" 333 ], 334 "plugins": { 335 "requires": "nsPlugin" 336 }, 337 "setup": [ 338 [ 339 "$TC actions flush action connmark", 340 0, 341 1, 342 255 343 ], 344 "$TC actions add action connmark pass index 90" 345 ], 346 "cmdUnderTest": "$TC actions replace action connmark goto chain 42 index 90 cookie c1a0c1a0", 347 "expExitCode": "255", 348 "verifyCmd": "$TC actions get action connmark index 90", 349 "matchPattern": "action order [0-9]+: connmark zone 0 pass.*index 90 ref", 350 "matchCount": "1", 351 "teardown": [ 352 "$TC actions flush action connmark" 353 ] 354 }, 355 { 356 "id": "6571", 357 "name": "Delete connmark action with valid index", 358 "category": [ 359 "actions", 360 "connmark" 361 ], 362 "plugins": { 363 "requires": "nsPlugin" 364 }, 365 "setup": [ 366 [ 367 "$TC actions flush action connmark", 368 0, 369 1, 370 255 371 ], 372 "$TC actions add action connmark pass index 20" 373 ], 374 "cmdUnderTest": "$TC actions del action connmark index 20", 375 "expExitCode": "0", 376 "verifyCmd": "$TC actions get action connmark index 20", 377 "matchPattern": "action order [0-9]+: connmark zone 0 pass.*index 20 ref", 378 "matchCount": "0", 379 "teardown": [ 380 "$TC actions flush action connmark" 381 ] 382 }, 383 { 384 "id": "3426", 385 "name": "Delete connmark action with invalid index", 386 "category": [ 387 "actions", 388 "connmark" 389 ], 390 "plugins": { 391 "requires": "nsPlugin" 392 }, 393 "setup": [ 394 [ 395 "$TC actions flush action connmark", 396 0, 397 1, 398 255 399 ], 400 "$TC actions add action connmark pass index 20" 401 ], 402 "cmdUnderTest": "$TC actions del action connmark index 1", 403 "expExitCode": "255", 404 "verifyCmd": "$TC actions get action connmark index 20", 405 "matchPattern": "action order [0-9]+: connmark zone 0 pass.*index 20 ref", 406 "matchCount": "1", 407 "teardown": [ 408 "$TC actions flush action connmark" 409 ] 410 } 411] 412