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