aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/tc-testing/tc-tests/filters/tests.json
blob: c727b96a59b0d009ed93246d0f624ff1bdef045c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[
    {
        "id": "e9a3",
        "name": "Add u32 with source match",
        "category": [
            "filter",
            "u32"
        ],
        "setup": [
            "$TC qdisc add dev $DEV1 ingress"
        ],
        "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: protocol ip prio 1 u32 match ip src 127.0.0.1/32 flowid 1:1 action ok",
        "expExitCode": "0",
        "verifyCmd": "$TC filter show dev $DEV1 parent ffff:",
        "matchPattern": "match 7f000002/ffffffff at 12",
        "matchCount": "0",
        "teardown": [
            "$TC qdisc del dev $DEV1 ingress"
        ]
    }
]