hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/tools/testing/selftests/tc-testing/tc-tests/actions/nat.json
....@@ -589,5 +589,30 @@
589589 "teardown": [
590590 "$TC actions flush action nat"
591591 ]
592
+ },
593
+ {
594
+ "id": "4b12",
595
+ "name": "Replace nat action with invalid goto chain control",
596
+ "category": [
597
+ "actions",
598
+ "nat"
599
+ ],
600
+ "setup": [
601
+ [
602
+ "$TC actions flush action nat",
603
+ 0,
604
+ 1,
605
+ 255
606
+ ],
607
+ "$TC actions add action nat ingress 1.18.1.1 1.18.2.2 drop index 90"
608
+ ],
609
+ "cmdUnderTest": "$TC actions replace action nat ingress 1.18.1.1 1.18.2.2 goto chain 42 index 90 cookie c1a0c1a0",
610
+ "expExitCode": "255",
611
+ "verifyCmd": "$TC actions get action nat index 90",
612
+ "matchPattern": "action order [0-9]+: nat ingress 1.18.1.1/32 1.18.2.2 drop.*index 90 ref",
613
+ "matchCount": "1",
614
+ "teardown": [
615
+ "$TC actions flush action nat"
616
+ ]
592617 }
593618 ]