[
{
"id": "319a",
"name": "Add pedit action that mangles IP TTL",
"category": [
"actions",
"pedit"
],
"setup": [
[
"$TC actions flush action pedit",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action pedit ex munge ip ttl set 10",
"expExitCode": "0",
"verifyCmd": "$TC actions ls action pedit",
"matchPattern": "action order [0-9]+: pedit action pass keys 1.*index 1 ref.*key #0 at ipv4\\+8: val 0a000000 mask 00ffffff",
"matchCount": "1",
"teardown": [
"$TC actions flush action pedit"
]
},
{
"id": "7e67",
"name": "Replace pedit action with invalid goto chain",
"category": [
"actions",
"pedit"
],
"setup": [
[
"$TC actions flush action pedit",
0,
1,
255
],
"$TC actions add action pedit ex munge ip ttl set 10 pass index 90"
],
"cmdUnderTest": "$TC actions replace action pedit ex munge ip ttl set 10 goto chain 42 index 90 cookie c1a0c1a0",
"expExitCode": "255",
"verifyCmd": "$TC actions ls action pedit",
"matchPattern": "action order [0-9]+: pedit action pass keys 1.*index 90 ref.*key #0 at ipv4\\+8: val 0a000000 mask 00ffffff",
"matchCount": "1",
"teardown": [
"$TC actions flush action pedit"
]
},
{
"id": "377e",
"name": "Add pedit action with RAW_OP offset u32",
"category": [
"actions",
"pedit",
"raw_op"
],
"setup": [
[
"$TC actions flush action pedit",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action pedit munge offset 12 u32 set 0x90abcdef",
"expExitCode": "0",
"verifyCmd": "$TC actions list action pedit | grep 'key '",
"matchPattern": "12: val 90abcdef mask 00000000",
"matchCount": "1",
"teardown": [
"$TC actions flush action pedit"
]
},
{
"id": "a0ca",
"name": "Add pedit action with RAW_OP offset u32 (INVALID)",
"category": [
"actions",
"pedit",
"raw_op"
],
"setup": [
[
"$TC actions flush action pedit",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action pedit munge offset 2 u32 set 0x12345678",
"expExitCode": "255",
"verifyCmd": "/bin/true",
"matchPattern": " ",
"matchCount": "0",
"teardown": [
"$TC actions flush action pedit"
]
},
{
"id": "dd8a",
"name": "Add pedit action with RAW_OP offset u16 u16",
"category": [
"actions",
"pedit",
"raw_op"
],
"setup": [
[
"$TC actions flush action pedit",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action pedit munge offset 12 u16 set 0x1234 munge offset 14 u16 set 0x5678",
"expExitCode": "0",
"verifyCmd": "$TC actions list action pedit | grep 'key '",
"matchPattern": "val 12340000 mask 0000ffff.*val 00005678 mask ffff0000",
"matchCount": "1",
"teardown": [
"$TC actions flush action pedit"
]
},
{
"id": "53db",
"name": "Add pedit action with RAW_OP offset u16 (INVALID)",
"category": [
"actions",
"pedit",
"raw_op"
],
"setup": [
[
"$TC actions flush action pedit",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action pedit munge offset 15 u16 set 0x1234",
"expExitCode": "255",
"verifyCmd": "/bin/true",
"matchPattern": " ",
"matchCount": "0",
"teardown": [
"$TC actions flush action pedit"
]
},
{
"id": "5c7e",
"name": "Add pedit action with RAW_OP offset u8 add value",
"category": [
"actions",
"pedit",
"raw_op"
],
"setup": [
[
"$TC actions flush action pedit",
0,
1,
255
]
],
"cmdUnderTest&quo