diff --git a/docs/netlink/gotc-status.md b/docs/netlink/gotc-status.md index 6d957bfa4..167add1db 100644 --- a/docs/netlink/gotc-status.md +++ b/docs/netlink/gotc-status.md @@ -330,6 +330,29 @@ increment 23, refused by name; branch `gotc/actwrite`; leads W156+, K63+). Dry-r (skbmod's dmac and smac, vlan's dst_mac and src_mac). The NULs tc's parsers leave in argv now persist in the batch line buffer, so a later line's sdata copies them as tc does (V064). +**Increment 23: the last six action kinds and the bpf filter** (the parse side of pedit, tunnel_key, ife, ct, gate +and the bpf action, standalone and in filters, and the bpf filter's cBPF writes; eBPF is refused by name; branch +`gotc/act2write`; leads W216+, K77+). Dry-run, as in 17. + +- **23C (captures): done.** `tcact2write`: 418 rows (258 writes, 160 refusals), each write with a `tc actions ls` or + `filter show` readback. Two batches on one boot agree on every row and on all 336 requests. Every lead W216–W320 + has a row, apart from W294, whose outcome is uninitialised stack memory that changed from run to run. Five leads + are corrected and K77–K89 written up (V065). +- **23P (encoders): done.** `Append` for pedit's selector and keys, tunnel_key's and ife's parms (ife with its two + zero bytes of tail padding, W275) and the cBPF instruction. Each one, fed the read side's decode of tc's captured + payload, gives back tc's bytes. No new lead (V066). +- **23W (gotc writes): done.** pedit (with the six layered kinds), tunnel_key, ife, ct, gate, the bpf action and the + bpf filter with cBPF. All 418 tcact2write rows replay byte for byte, except 12 refused by name (eBPF, W280, W297). + tcactwrite ec-217–ec-222 and tcfwrite ec-117 are now sent, and of the tdc writes only flower's two filter rows stay + refused. No new lead (V067). +- **23B (write-up): done.** The "Increment 23" part of + [upstream/iproute2-tc-action-write.md](upstream/iproute2-tc-action-write.md): a full entry for each of W216–W320 + (where, trigger and outcome from its rows, gotc, status), the HEAD check, and the extensions in their own docs. At + HEAD, ll_addr's rewrite partly fixes W232 and c4d6334c55aa fixes increment 22's W182 (DOC016). +- **23L (live diff): done.** On the workbench, tc 7.2.0 and the gotc_write build ran all 418 tcact2write rows, + tcactwrite ec-217–ec-222 and tcfwrite ec-117. 413 of 425 are identical, 78 of them rows where only tc hears the + kernel; the other 12 are the refusals by name. tc matched the corpus on every row, so K77–K89 recurred (V068). + ## Ledger | id | task | what was verified | @@ -409,6 +432,11 @@ increment 23, refused by name; branch `gotc/actwrite`; leads W156+, K63+). Dry-r | DOC015 | 22B | **Write-up:** `docs/netlink/upstream/iproute2-tc-action-write.md` (not submitted to netdev), finished: status block, contents, 60 summary rows (W156–W215) with a new gotc column, one section per kind and m_action.c, K63–K76 and four bug-class candidates for the user's review (bug-classes.md is unchanged). **At HEAD** (GitHub mirror `7f88aa3c8bab`, 2026-11-30, `gh api "repos/iproute2/iproute2/commits?path=&since=2026-08-18"`, each hit checked with `gh api …/compare/v7.2.0...`): no commit after v7.2.0 touches m_action.c, the twelve m_*.c, tc_util.c, tc_core.c, tc.c, q_tbf.c or utils_math.c. lib/ll_addr.c's `5faf18f672c1` (2026-08-23, "lib: fix warning from ll_addr_a2n") partly fixes W172: eight groups and trailing garbage are refused and the error names the whole argument, while a short MAC is still zero-filled and a dotted quad still taken as bytes (gotc keeps v7.2.0's behaviour, which the corpus pins). lib/utils.c's `fde561a2a135` and `e11870d5b941` change only getcmdline's error paths, so W189's line buffer is unchanged, and `552d9842b1f4` (resolve_address's cache) is out of reach. **Kernel at HEAD:** torvalds/linux `fe6ff8d5d675` (2026-11-29) has no commit after v7.4-rc4 in any net/sched/act_*.c that K63–K76 cite. **Corrected while checking the evidence:** W179 said the kernel deletes all 33 actions, but ec-231's readback still lists gact index 33. tca_action_gd parses with TCA_ACT_MAX_PRIO (act_api.c:2081-2082, 2094), so the 33rd is skipped with no error: K8's get-side note, now on the delete side too. W188 (`rate … avrate` returns -1 with no message) is AC33, found live in increment 12 (V014), so it is dropped as a duplicate with its number kept; AC33 now has ng-004's write-side stderr. **Entries added:** W200 (skbmod's base-0 index against the other eleven kinds' base 10, ec-206) and W202 (mpls usage() against its parser, ng-076) had only summary rows. **Extensions,** each an "Extended in increment 22" line where the lead lives: in iproute2-tc-action.md, AC6 (flush, W182), AC7 (flush's skipped word, W181), AC33 (W188, W169), AC34 (corrected by W178 and K70: the kernel refuses a get or delete without INDEX), AC70 (skbmod's debug lines, W199) and K8 (W179), plus a status pointer to the new doc; in iproute2-tc-filter-write.md, W65 and W75 (mirred's dev, W162), W68 (police's duparg, W166), W74 (skbedit priority, W174), W85 (skbmod MACs, W196), W113 (W179, K71), W114 (W161, W208), W117 (W158, W175, W190) and W121 (W185, W201), plus a status line. **Checklist** (no doc-audit test covers lead numbering, so a grep): every W156–W215 has a summary row and an entry, every K63–K76 a row, every ec-/ng- row the doc cites exists in `ws/tcactwrite/`, and all 15 extension leads have their line. The `goip-docs` link and whitespace gate is clean on the three docs. | | V063 | 22L | **Live diff** on the workbench (kernel 7.3.1, tc 7.2.0 `/nix/store/x1pwsbz5cm23hk58b7fcpn3hhg9j7gwh-iproute2-7.2.0`). gotc was built with `-tags gotc_write` at a5fab166e (`/nix/store/6bfgnvxx3b6zfwwzllf23z71200mrr6c-gotc-write-22l`), with `GOTC_CONF_USR_DIR` and `TC_LIB_DIR` set to tc's. V058's method: each of the 363 `tcactwrite.rows.jsonl` rows, and tcfwrite's ec-111, ec-112 and ec-113, runs its pre steps in a fresh named namespace from its own directory (the six batch rows write `b.txt` there), then gotc with `GOTC_WRITE_OUT`, then tc, each under a 60 s timeout. Requests (RTM_NEW/DELACTION, RTM_NEW/DELTFILTER, RTM_NEW/DELCHAIN) are compared with tc's from the corpus pcaps, seq and pid zeroed, a tcmsg's ifindex zeroed (gotc saw 2 and 3), and W189's past-argv DEF_DATA bytes zeroed as `w189Canon` does. The comparer was first checked with the corpus on both sides (366/366). **Result: 342/366 identical**, 55 of them rows where the request is identical and only tc hears the kernel (K66's offload warning, K63–K75's refusals, W187's follow-on line) and 10 of them W189 rows identical once masked (ec-037–ec-040, ec-174, ec-175, ec-178, ec-179, ec-232, ec-250). **Named exceptions:** (1) increment 23's six refusals by name (ec-217–ec-222: pedit, tunnel_key, ife, ct, gate, bpf). (2) 18 rows whose one differing field is mirred's target ifindex, 4 in the corpus and 3 live, every other byte equal: ec-007–ec-010, ec-110–ec-112, ec-114–ec-118, ec-120, ec-121, ec-229, ec-245, ec-256 and tcfwrite ec-113. The capture harness gives each row its own nlmon0, which takes ifindex 2, so d0 and d1 are 3 and 4 there (the corpus tcmsg ifindexes are 3 and 4); without it they are 2 and 3, checked in a fresh namespace on the same boot. This is 20L's ec-032 exception. **tc against the corpus:** stdout, stderr and rc match `ws/tcactwrite` and `ws/tcfwrite` on all 366 rows, so every kernel answer the write-up cites (K63–K76, W164's ENOMEM, W171's ERANGE, W178's `Invalid TC action index value`, W183's EINVAL, W179's surviving index 33) recurred on a second boot. **Leads:** none new, none changed; the write-up's status block records 22L. tc made no core file. **VM:** pre-checked (`free -g`: 46G available; port 12061 free; no workbench process, the other qemu processes being unrelated libvirt guests), booted from off with `up`. The baseline was 86 modules, no namespace and no core files. The run took 105 s. It loaded 37 modules (the act_*, cls_* and sch_* modules, em_cmp, and the dependencies ife, mpls_gso, nf_flow_table, nf_nat and psample) and removed them with `modprobe -r` (none left), made no core file, left no namespace and removed `/tmp/t22l`. After the ifindex probe the VM was back at 86 modules, no namespace and no core file, and it was powered off with `down`: port 12061 free, no workbench process. | | V064 | 22R | **PR #375 review fixes**, both reproduced against host tc 7.2.0 by the reviewer and again here. (1) **A bare `0x` MAC group:** glibc 2.44's `%x` takes `0x` as a prefix and cannot give the `x` back, so `0x` with no hex digit after it is no conversion (`sscanf("0x:2", "%x")` is 0; `00x:` is 0, its second 0 a digit). `scanfHex` (aw_skbmod.go) had read it as 0, so `skbmod set dmac 0x:2:3:4:5:6` sent a request where tc prints `Invalid dst mac address`, rc 255. vlan's `llAddrA2N` used the strtoul model (`strtoul16`), so `dst_mac 0x:…` was accepted too; it now uses `scanfHex`. Host tc and gotc agree on five probes (bare `0x` first and last, skbmod and vlan). `TestScanfMac` gains 5 rows (its old row "0x with no digit is 0" was the error), `TestLlAddrA2N` gains 4 and checks the colons cut. (2) **Parsers' NULs in the batch buffer (W189):** `argMem.nul` and `nulEach` write a parser's NUL into argv's memory, which in a batch is getline's buffer: ll_addr_a2n's colons (ll_addr.c:65), skbedit's mark slash (m_skbedit.c:86), get_size64_and_cell's slash on a failure (tc_util.c:265; police, tbf, htb, through `sizeCellCut`), flow_parse_keys' commas (f_flow.c:70) and fw's handle slash (f_fw.c:43, through `filterArgs.handleAt`). A sweep of tc/*.c and lib/ at v7.2.0 for in-place NULs found no other ported site: get_prefix_1 and the control word's `/` put the byte back; flower, ct and gate are not ported. `TestGotcBatchArgvNuls` (10 rows: vlan, skbedit, flow, fw; tbf's size and cell failures, htb, flow's unknown key; eight MAC groups; a size and cell that parse) is each case's DEF_DATA, checked against host tc 7.2.0 under `unshare -rn strace -e write=all`: every byte gotc knows matches, and the rest is tc's heap, which gotc sends as zeros and the replay masks. A mutant with `nul` disabled fails 9 of the 10 (the restored slash passes, as it should). `TestArgMemNul` (8 rows) is the helper. **Leads:** W196 and W189 extended in [upstream/iproute2-tc-action-write.md](upstream/iproute2-tc-action-write.md); no new lead. **Gates:** `go test ./internal/gotc/ ./pkg/xtcpnl/ ./internal/wsreplay/ ./tools/nlcapgen/`, with and without `-tags gotc_write`; `CGO_ENABLED=0 go build ./...` in both builds; `gofmt -s` clean. | +| V065 | 23C | **Captures**: `tools/nlcapgen/matrix_tcact2write.go` (`tcact2write`, 418 rows: 258 writes and 160 refusals, on 20C's fixture: d0 with clsact, d1 with an htb root, two classes and ingress block 10), registered in `main.go`'s `families`; rows `nix/microvms/workbench/tcact2write.rows.jsonl`; corpus `pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/`. Modules: increment 22's, cls_bpf, and act_meta_mark, act_meta_skbprio and act_meta_skbtcindex, which `tdcGuestModules` now lists (the guest has them in net/sched). **Rows:** each kind's add, change, replace (existing and new index), delete and flush with a `tc actions ls action K` readback, and each inside matchall. pedit's raw u8/u16/u32 offsets with `at`, every command (set, add, decrement, invert, clear, preserve, retain), every layered field of ip (17), ip6 (8), tcp, udp and eth, ex and legacy; tunnel_key v4 and v6 with id, dst_port, tos, ttl, csum/nocsum, nofrag, geneve with three options, vxlan and erspan v1/v2, and unset; ife encode and decode with allow and use for each meta kind, dst, src and type; ct commit, force, clear, zone, masked mark and label, nat src/dst with v4/v6 ranges and ports, helpers ipv4/ipv6-tcp-ftp; gate's every scalar, six clockid spellings, ipv and maxoctets with a size suffix; bpf's bytecode, bc, run, bytecode-file and bcf. The bpf filter: add with classid, da, skip_hw, an action, police, run, flowid first and two actions; change, replace (existing and new) and delete; a bytecode-file filter; one on d1's htb. eBPF (object-file, object-pinned, pinned, fd, obj, and the `o`/`p`/`f` prefixes) only as refusal rows recording tc's answer. A row for every lead W216–W320 except W294. Boundaries: 128 and 129 pedit keys, 30/31/40 open and 36 closed gate entries, 2038/2039/2041/2042/4097 bpf instructions, 62- and 63-byte nat ranges, the u32 interval edge, tos 255/256. Batches: W232's MAC colons, W265's strtok NULs and W291's slashes, each carried into a later `simple sdata x` (line 2's DEF_DATA shows them: `th\0dst\0set\002…`, `e_opts\00102\080\0…`, `x1\00xff\0label\001\0ff`); bytecode-file in a batch; three `-force` batches (ife's usage exit and get_addr's exit(1) end tc; ct's -1 carries on). **Trial batches** (scratch, same boot): the first matched 400 of 420; the second 419. Corrected in the generator: a fresh `ife decode` with no meta module loaded is EINVAL with no extack (K79), which made the first ife rows depend on row order, so the meta modules now load up front; ct's and gate's `… drop index 1` sends `index` as a second action kind (W288, W303); the index-only binds of pedit, gate and bpf became matchall binds; geneve's 0- and 3-byte DATA and erspan's shifted fields are kernel refusals; bpf's edge is 2039, not 2040; `src_ip any` and ct's `addr any` are ERANGE; netbios is EINVAL and a 22-byte helper ERANGE; skip_sw is ENOTSUP; W280's 63-byte range and W297's inf, nan and 1e30 are sent and accepted, so they are positive rows that gotc will refuse by name; `bytecode-file -` reads a file named `-`. **W294 removed from the corpus:** `gate sched-entry open 1ms 1 index 1` sent maxoctets 0x33874a91, 0x4c352a91 and 0x7fec5a91 in three runs (get_size stores an uninitialised sz64), and `… 1 sched-entry close 1ms` was refused twice as `"maxoctets" is too large` and sent once; no two batches could agree, so 23W pins gotc's refusal with a unit test and the write-up records the values. **Final:** two batches on one boot, 418/418 OK each, agree on every row's rc, stdout, stderr and readback, and on all 336 requests byte for byte (seq and pid zeroed). `TestWsCorpusRows` passes on all 418. Two `cmd.json` files (ec-132, ec-133) had only `axes` and `desc` rewritten from the regenerated rows, when their fix became w274 and w275; tc never reads them. **Write-up** (the new "Increment 23" part of `docs/netlink/upstream/iproute2-tc-action-write.md`, not submitted to netdev): a summary row for each of W216–W320 with its pinning rows and status, K77–K89 and five bug-class candidates. **Corrected from the sweep:** W220 (key 129 is followed by `Bad pedit construct (index)`), W267 (accepted while a meta module is loaded), W288 and W303 (tc sends the stray `index` kind; the kernel refuses it, ENOENT), W295 (`1.5` is consumed as 1), W307 (2039 and 2042). **Kernel notes K77–K89:** the legacy pedit offload warning on every add, ct's helper offload warning, ife's use_all_metadata EINVAL, gate's skipped non-entry with rc 0, tunnel_key's overwritten ERANGE message, ct's EXACT_LEN NAT addresses, ct's helper name limit, act_bpf's missing program, cls_bpf's flags, pedit's keys check after the idr, gate's empty list and zero interval, tunnel_key's option rules, and gate's u64 times. No new lead outside W216–W320. **Unit:** `TestTcAct2WriteSpace` (107 sub-tests). Positive: the verb grid and matchall for each kind, every keyword, the bpf filter's verbs. Lead: each W216–W320 has a row, and W294 has none. Negative: eBPF only as refusals, no `actions ls` or `get`, no host device, no `dev lo` or `-netns`. Boundary: the key, entry, instruction, nat and interval edges. Corner: the seven batches' lines and `-force`, determinism. **VM:** pre-checked (`free -g`: 38G available; port 12061 free; no workbench process), booted from off with `up`; baseline 86 modules, no namespace, no core file. The batches left no namespace and no core file. The run left 129 modules; this run's 40 (act_*, cls_*, sch_htb, sch_ingress, act_meta_*, nf_conntrack_ftp, nf_nat, nf_flow_table, ife, psample, mpls_gso, dummy, nlmon) were removed with `modprobe -r`, leaving 89: the baseline's 86 (nf_conntrack among them, held by the guest firewall's xt_conntrack) and bridge/stp/llc, which no row of this run uses, left alone as in 22C. The VM was powered off with `down` (it was off before): port 12061 free, no workbench process. **Bench pin:** ng-157 (W248's 16 KiB pedit echo, with the extack `act_pedit: Not enough extended keys to parse`) is now the corpus's largest NLMSG_ERROR. It replaces tcematch's W151 refusal, so `TestParseBenchAllocs` pins ParseNlMsgErr's largest pick at 1 allocation (the message copy), not 0. | +| V066 | 23P | **Encoders** (untagged, `pkg/xtcpnl/xtcpnl_tc_actencode.go`): `Append` for `TcPeditKey` (tc_pedit.h:52), `TcPeditSel` (new: tc_gen, nkeys, flags, two zero bytes aligning keys[] as m_pedit.c:626's `= {}` leaves them, then the keys; `Nkeys` is its own field, as on the read side), `TcTunnelKey` (new: tc_gen and t_action, tc_tunnel_key.h:15), `TcIfe` (new: tc_gen, flags and two zero bytes of tail padding, tc_ife.h:13, m_ife.c:53, W275) and `TcBpfInsn` (sock_filter, filter.h:24, host order), each cited at v7.4-rc4. ct, gate and the bpf action's parms are tc_gen, so `TcGen.Append` covers them as is. The builders need no change. **Unit** (`xtcpnl_tc_act2encode_test.go`): `TestAppendTcAct2Structs` (37 sub-tests). 21 are captured rows, each payload decoded by the read side and laid out again equal to tc's bytes: pedit PARMS with one and two raw keys, PARMS_EX for ip src and ip6 src (four keys), W216's at/offmask/shift, 128 keys ec-088 (3096 bytes) and eth dst invert ec-091 (W223); tunnel_key set v4, unset, tos/ttl 255 and ng-048's t_action 0 (W253); ife encode with type, dst, src and use, decode, ec-133's padding (W275) and index alone (W267); the bpf action's four-instruction program, 2038 instructions ec-222 (W307), the 65537 header ec-223 (W308) and wrapped fields ec-225 (W309); the bpf filter's OPS from bytecode ec-239 and from bytecode-file ec-247. 14 are round trips, including every field at its extreme, 128 keys and each zero struct as all-zero bytes. `TestAppendTcAct2StructsEdges` (5 rows): a full destination grows and keeps its bytes, pedit's padding after nkeys and flags, `TcIfe{Flags: 1}`'s zero tail, `Nkeys` sent as given, and sock_filter's host byte order. The capture helpers take a corpus directory (`tcActCapturedReqIn`, `tcActCapturedOptionsIn`). **Audits:** netlink-audit and kernel-citation-audit pass. **Bugs found:** none; every struct's layout and padding agree with the kernel headers. | +| V067 | 23W | **gotc writes** (tagged `gotc_write`): `aw_pedit.go` and `aw_pedit_hdr.go` (parse_pedit, parse_munge, parse_offset, parse_cmd, parse_val, the pack_key family, and p_ip, p_ip6, p_icmp, p_tcp, p_udp and p_eth as one table; any other kind is pedit_parse_nopopt), `aw_tunnel_key.go`, `aw_ife.go`, `aw_ct.go`, `aw_gate.go`, `aw_bpf.go`, `fw_bpf.go` and `cbpf.go` (bpf_parse_string, bpf_ops_parse, bpf_do_parse and the mode words, shared by the action and the filter; bytecode-file is read relative to the working directory, as `-batch` FILE is). Six new `actParsers` entries, now built from a kind list, and bpf in `foptParsers`. **Groundwork:** `fops` checks tc's addattr_l and addraw_l bounds as each call is recorded, from the running request length. A call past its bound prints tc's `addattr_l ERROR: message exceeded bound of N` (or addraw_l's), and the attribute is dropped while the request is still sent. A failed addattr_nest leaves a mark (`xtcpnl.AttrBuilder.Mark`), and its addattr_nest_end patches rta_len over whatever was written since. That gives W97, W151, W248, W293's broken gate entries (each entry's nest bound is 1024) and W307 byte for byte, and tcematch ec-137 and ng-095 are now sent instead of refused. `getAddr` is utils.c:738's `Error: address is expected rather than "X".` and exit(1), used by tunnel_key, ct and flow's addend. **Copied as tc does it:** the `Bad pedit construct` word, `(null)` at the end of the line (W218), the silent 128-key limit (W220), invert as 0xff on eth and ip6 (W223), the six-group MAC rule (W232), tunnel_key's base-16 fallback (W257), NO_CSUM always sent (W263), METALST's fixed order (W271), ct's index only inside the loop (W288), the u16 header wrap (W308), and the NULs W232, W265 and W291 leave in a batch line for a later `simple sdata`. **Refused by name** (rc 255, `gotc: not implemented: …`): eBPF modes as `eBPF program via bpf(2)`, where tc first touches bpf(2) (ng-139–ng-144, ng-153, ng-154); W280's 63-byte nat argument (ec-168); W297's inf, nan and out-of-range times (ec-204–ec-206); W294's uninitialised maxoctets (unit test only, as 23C has no row). **Corpus:** `TestGotcCorpus` replays tcact2write (418 rows, 12 of them refused by name). tcactwrite ec-217–ec-222 and tcfwrite ec-117 move from refused to sent. **tdc:** `tdcActionSkips` is empty and `tdcActionWritesSent` goes from 332 to 516. `tdcFilterSkips` is only `kind flower: 2`, and `tdcFilterWritesSent` goes from 276 to 293. Every newly matched row matches, so nothing is added to the known lists. **Unit:** `TestGotcPeditWrite` (61 rows), `TestGotcTunnelKeyWrite` (52) with `TestStrtok` (7), `TestGotcIfeWrite` (38) with `TestGotcIfeUsage` (4), `TestGotcCtWrite` (35) with `TestCtHelpers`, `TestGotcGateWrite` (33) with `TestGateHelpers`, `TestGotcBpfWrite` (44) and `TestCbpfParseOps` (24), plus `TestAttrBuilderMark` (4) in xtcpnl. Rows are positive, negative, boundary and corner, taking tc's bytes from the corpus where a row exists. `TestGotcActParsers` and `TestGotcFilterWrite` expect the six kinds sent. `imports_test.go` lets gotc import `internal/goip/render`, for ct's helper protocol via `ProtoByName` (inet_proto_a2n). **Fuzz** (60 s each, `MemoryMax=6G`): `FuzzCbpfParseOps` (new, 123k execs), `FuzzGotcActionWrite` (128k), `FuzzGotcActionBatch` (136k) and `FuzzGotcFilterWrite` (140k), with seeds for each kind and for the three NUL batches; nothing found. bytecode-file inputs naming `dev/`, `proc/` or `sys/` are skipped, since stdin or a tty never reaches EOF, for tc as for gotc. **Mutants** (10, each under `MemoryMax=6G`), all killed: W218's `(null)`, W220's 128, W223's invert, W232's six groups, W257's base 16, W263's NO_CSUM, W271's order, W288's index, W293's 1024 and W308's wrap. **Coverage:** `internal/gotc` 86.6% (tagged), with the new files at 95.6% per function on average. **no-write-encoders:** `gotcWriteFiles` (nix/checks/no-write-encoders.nix) did not match `aw_pedit_hdr.go`, `aw_tunnel_key.go` or `cbpf.go`. The plan had assumed `aw_[a-z0-9]+` covered the new files, but the check's exactness control failed on all three before push. The rule now allows underscores after `qw_`, `fw_` and `aw_` and names `cbpf`; no untagged file matches it. **Lint:** tiers 0-2 clean after fixes in code: shared word constants (tos, ttl, nofrag, firstfrag, sport, dport, icmp_type, icmp_code, type, with prio and flags moved to the untagged `util.go`), get_time64's and get_size64's suffixes as `time64Scale` and `size64Scale`, shared with gate, and parseBpfFopt split. **Bugs found:** no new lead and no new kernel note. Each kind's port confirmed W216–W320 against its rows, and the corrections 23C made (W220, W267, W288, W295, W303, W307) were seen again. W295 gains one detail: the partial value is kept and the word read again only past 32 bits (`5G`). K77 (pedit's offload warning on every legacy add) is what the replay carries. The gotc column of the upstream summary is filled in for every lead. | +| DOC016 | 23B | **Write-up:** the "Increment 23" part of `docs/netlink/upstream/iproute2-tc-action-write.md` (not submitted to netdev), finished. Its status block gains the 23W outcome and the HEAD check. The summary has 105 rows (W216–W320), each with its gotc cell. A new "Lead entries (23B)" section has one entry per lead, grouped by kind: where, what, **trigger and outcome** (each pinning row's exact command, batch lines included, with tc's rc, the first lines of its stderr and whether the request was sent, generated from the tcact2write rows so nothing is retyped), gotc and status. W294 has no row, so its entry gives 23C's trial values and the unit test. K77–K89 and the five bug-class candidates are unchanged (bug-classes.md is untouched). **At HEAD** (GitHub mirror `3f4b36e5b10a`, 2026-11-30, `gh api …/compare/v7.2.0...main`: 92 commits, v7.3.0 among them, over every cited file): no commit touches m_pedit.c, m_pedit.h, the p_*.c, m_tunnel_key.c, m_ife.c, m_ct.c, m_gate.c, m_bpf.c, f_bpf.c, lib/bpf_legacy.c or utils_math.c. lib/ll_addr.c's `5faf18f672c1` (in v7.3.0) partly fixes W232: trailing junk (ec-098) and seven groups (ng-021) are refused with a message naming the whole argument, and the colons are no longer written (ec-255's NULs), while a short MAC and a dotted quad still fail silently in pedit. lib/libnetlink.c changed its receive path and opening seq but not addattr_l, addraw_l or addattr_nest, so W248, W293 and W307 stand. lib/utils.c's changes don't reach get_addr or the number parsers. **Found by the check:** tc/m_action.c's `c4d6334c55aa` (2026-11-30, after v7.3.0, "tc: actions: fail list and flush of an unknown action kind") fixes increment 22's W182. Its summary row and entry, and increment 22's HEAD-check block (which had said m_action.c had no commit), now record it. **Kernel at HEAD:** torvalds/linux `19cc08c1a6a6` (2026-11-30) has no commit after v7.4-rc4 in act_pedit.c, act_tunnel_key.c, act_ife.c, net/ife/ife.c, act_ct.c, act_gate.c, act_bpf.c, cls_bpf.c, act_api.c, act_meta_mark.c or tc_pedit.h. **Extensions,** each marked "Extended in increment 23" in its own doc, with row IDs written as `tcact2write …`. In `iproute2-tc-action-write.md`'s increment-22 part: W161, W166, W170, W171, W172, W175, W183, W185 (the batches section), W189, W191, W194, W195, W196, W199, W200, W201, W204, W208, W210, W214 and W215. In `iproute2-tc-filter-write.md`: W70, W95, W97, W114 and W117. In `iproute2-tc-action.md`: AC38 and AC70. Each doc's status line says so. **Checklist** (scripted over the part): every W216–W320 has a summary row and an entry; every row ID a summary row names exists in the corpus; K77–K89 has no gap; and all 28 extension lines are present. **New leads:** none. | +| V068 | 23L | **Live diff** on the workbench (kernel 7.3.1, tc 7.2.0 `/nix/store/x1pwsbz5cm23hk58b7fcpn3hhg9j7gwh-iproute2-7.2.0`). gotc was built with `-tags gotc_write` at 9fe691756 (`/nix/store/nc3agv0a8qldww5lly55hl1bfsaf6lhx-gotc-write-23l`), with `GOTC_CONF_USR_DIR` and `TC_LIB_DIR` set to tc's. V063's method: each of the 418 `tcact2write.rows.jsonl` rows, tcactwrite's ec-217–ec-222 and tcfwrite's ec-117 runs its pre steps in a fresh named namespace from its own directory (the batch rows write `b.txt` there, and the bytecode-file rows `bpf.txt`), then gotc with `GOTC_WRITE_OUT`, then tc, each under a 60 s timeout. Requests (RTM_NEW/DELACTION, RTM_NEW/DELTFILTER, RTM_NEW/DELCHAIN) are compared with tc's from the corpus pcaps, seq and pid zeroed, a tcmsg's ifindex zeroed (gotc saw 2 and 3, the corpus 3 and 4: 22L's nlmon0 shift), and W189's past-argv bytes masked (no row needed it). The comparer was first checked with the corpus on both sides (425/425). **Result: 413/425 identical.** 78 of them are rows where the request is identical and only tc hears the kernel: K77's pedit offload warning on 46 legacy adds, K78's offload warning on the three ct helper adds (ec-162, ec-163, ec-171), the kernel refusals and extacks behind W242, W251–W253, W258–W261, W281, W283, W288, W297's 0.5, W303, W305, W307, W312, W315, W316, W320 and W248's 16 KiB echo (ng-157). Gate's ec-197–ec-199 are among the 78: there the request and gotc's `addattr_l ERROR` lines are identical, and tc alone prints the kernel's `Warning: Attribute isn't type 'entry'.` after them, for the broken entries W293 sends. 22L's comparer only recognised a kernel answer at the start of stderr, so these three were checked by hand. tcactwrite ec-217–ec-222 and tcfwrite ec-117, refused in 22L, are identical. **Named exceptions** (12, gotc's refusals by name, as in TestGotcCorpus): the eight eBPF rows ng-139–ng-144, ng-153 and ng-154 (`eBPF program via bpf(2)`; tc's answers are libbpf's `Error opening object nosuch.o` and `Couldn't retrieve pinned program`), W280's ec-168 (tc sent ::1–::9 again, rc 0) and W297's ec-204–ec-206 (tc sent INT64_MIN again, rc 0). **tc against the corpus:** stdout, stderr and rc match `ws/tcact2write`, `ws/tcactwrite` and `ws/tcfwrite` on all 425 rows. So every kernel answer K77–K89 cite recurred on a second boot, and W280's 63-byte read and W297's casts gave the same bytes again. **Leads:** none new, none changed; the write-up's status block records 23L. Neither tool made a core file. **VM:** pre-checked (`free -g`: 10G available, against the workbench's 2304 MiB; port 12061 free; no workbench process, the other qemu processes being unrelated libvirt guests and another session's xtcp2-vm), booted from off with `up`. The baseline was 86 modules, no namespace and no core file. The run took 1151 s. It loaded 40 modules (the act_*, cls_* and sch_* modules, act_meta_*, em_cmp, and the dependencies ife, mpls_gso, nf_conntrack_ftp, nf_flow_table, nf_nat and psample) and removed them all with `modprobe -r`. It made no core file, left no namespace and removed `/tmp/t23l`. The VM was back at 86 modules, no namespace and no core file, and was powered off with `down`: port 12061 free, no workbench process. | | DOC009 | 16B | **Write-up:** `docs/netlink/upstream/iproute2-tc-aqm.md`: status header, reachability, contents, 24 summary rows, six sections, and K32–K43. Not submitted to netdev. **At HEAD** (GitHub mirror, `5d13122576d6`, 2026-11-26): none of the thirteen printers, `tc_red.c`, `tc_qevent.c` or `tc_qdisc.c` has a commit since v7.2.0, so all are present. **Confirmed in the corpus:** Q66 (ec-007), Q73 (ec-021, pw-021), Q79 (ec-038), Q80/Q81 (pw-035, ec-040, pw-040, pw-042), Q83 (pw-052), Q84 (pw-052, ec-055, pw-055), Q86 (ec-053), Q87 (ec-001, pw-005). **Latent, with unit rows:** Q67–Q72, Q74–Q78, Q82, Q85, Q88, Q89. **Dropped:** none. **New leads:** Q88 (gred_parse_vqs's plain parse_rtattr misses a VQ_ENTRY flagged NLA_F_NESTED), Q89 (an unknown dualpi2 ECN mask warns twice and prints an empty word). **Kernel notes:** K32–K42 confirmed at v7.4-rc4, refined: red's qevents only when bound; idle cake MIN_NETLEN 65535; cake_mq no dump_stats; plug no .dump; skbprio 64 classes; dualpi2 rejects both step_thresh forms (sch_dualpi2.c:812). **K43 (new):** codel times lose 1 µs (target 4ms dumps 3999, pw-024). **Unit rows:** TestGotcAqm adds Q88 (44 rows). **Bug classes:** none new; Q88 and Q89 fit C3/C15 and C10. | | DOC010 | 17B | **Write-up:** `docs/netlink/upstream/iproute2-tc-write.md`: status header, reachability, contents, 25 summary rows, eight sections, K44–K45. Not submitted to netdev. **At HEAD** (GitHub mirror, `35033e4713fe`, 2026-11-27): no tc file in scope has a commit since v7.2.0; `lib/utils.c`'s one (`552d9842b1f4`, resolve_address's cache) touches none of it, so all are present. **Confirmed in the corpus:** W1 (ec-088, ec-099), W2 (ec-079, ng-011), W3 (ec-089), W4 (ng-004, ng-005, ng-019), W9 (ng-013), W17 (ec-092), W22 (ec-062). **Latent, with unit rows:** W5, W6, W8, W10–W16, W18–W21, W23–W25. **Dropped:** W7. **Kernel notes:** K44 (each verb's errno and extack, ng-001–003, 007, 014, 020–025), K45 (extack errors and warnings printed in place of RTNETLINK answers). **Bug classes:** candidates for the user: a wrong option named in a copied error message (W15, W20) and a divide by a user-given zero (W21). | | V033 | 16C | **Captures** `tcaqm`: `tools/nlcapgen/matrix_tcaqm.go` (+ `TestTcAqmSpace`), rows in `nix/microvms/workbench/tcaqm.rows.jsonl`, corpus in `pkg/xtcpnl/testdata/7_3_1/ws/tcaqm/` (132 rows, 2.7M). Modules: sch_cake (with cake_mq), sch_choke, sch_codel, sch_dualpi2, sch_fq_pie, sch_gred, sch_hhf, sch_pie, sch_plug, sch_red, sch_sfb, sch_skbprio. **Fixtures (26):** red default and `ecn harddrop adaptive qevent early_drop block 10`; choke with ecn; gred `setup vqs 4 default 0 grio` with VQs 0 and 1 changed in, and gred with no VQ configured; sfb default and `rehash 5000000 db 5000000` (Q73); codel, pie, fq_pie and hhf defaults plus an option variant each; cake default, plus four variants covering every diffserv mode, the flow modes, nat/wash/ingress, both ack-filters, no-split-gso, rtt, atm overhead mpu, memlimit, fwmark 0xff, autorate-ingress and docsis; cake_mq on a four-queue dummy; dualpi2 default, step_thresh in packets with drop_enqueue/drop_on_overload/any_ect/no_split_gso, and step_thresh in time; plug; skbprio (with `class show`). Each gets `qdisc show` plus `-s`/`-d`/`-o` forms; batches: cake `-s` qdisc/class/qdisc and red `-d` twice. **Refusals:** ng-001 cake_mq under plug (ENOTSUP, "Parent qdisc is not classful"), ng-002 cake_mq autorate-ingress (ENOTSUP, K39), ng-003 gred change over plug (EINVAL), ng-004 `show dev nosuch` (rc 1). **Notes:** batch lines take no options, so the batches pass `-s`/`-d` on tc's own command line; hhf's `admit_bytes 64Kb` is not accepted, so the fixture uses 65536. Q66 is confirmed live (`Scell_log 15qevent early_drop block 10`), and Q73 (sfb prints `rehash 705s`), Q80, Q81, Q83 and Q84 show in the captures. misspell flags dualpi2's `any_ect`; a scoped exclusion in both golangci configs covers the tcaqm and dualpi2 files. **Gate:** two batches on one boot, 132/132 OK, stdout, stderr and rc identical; `TestTcAqmSpace` pins 132 rows, 26 fixtures and 21 cases; no row sends packets. | diff --git a/docs/netlink/upstream/iproute2-tc-action-write.md b/docs/netlink/upstream/iproute2-tc-action-write.md index 78d169c38..64a7951d9 100644 --- a/docs/netlink/upstream/iproute2-tc-action-write.md +++ b/docs/netlink/upstream/iproute2-tc-action-write.md @@ -21,8 +21,11 @@ - **HEAD check (22B, 2026-11-30):** iproute2's GitHub mirror at 7f88aa3c8bab (2026-11-30), with `gh api "repos/iproute2/iproute2/commits?path=&since=2026-08-18"`. Every commit found was checked with `gh api …/compare/v7.2.0...` (all are ahead of v7.2.0). - - **No commit after v7.2.0:** m_action.c, the twelve m_*.c, tc_util.c, tc_core.c, tc.c, q_tbf.c and - utils_math.c. Every lead in those files is open at HEAD. + - **No commit after v7.2.0:** the twelve m_*.c, tc_util.c, tc_core.c, tc.c, q_tbf.c and utils_math.c. Every + lead in those files is open at HEAD. + - **tc/m_action.c, c4d6334c55aa (2026-11-30, after v7.3.0) "tc: actions: fail list and flush of an unknown action + kind":** found by 23B's re-check at 3f4b36e5b10a. It sets ret to -1 on tc_act_list_or_flush's two `bad action` + paths, which fixes W182: at HEAD, `flush action nosuch` exits non-zero. No other lead in m_action.c changes. - **lib/ll_addr.c, 5faf18f672c1 (2026-08-23) "lib: fix warning from ll_addr_a2n":** this fixes part of W172. At HEAD, eight groups and trailing garbage (`00:11:zz`, `00:11:`) are refused, and the error names the whole argument because arg is no longer cut. A short MAC (`aa`) is still zero-filled, and a dotted quad still taken as @@ -62,7 +65,7 @@ gotc copies the cast (`cDoubleToU64`), as it already did for the qdisc rates. - For W189's bytes past argv or the line buffer (the environment, or the heap after a continued line), gotc sends zeros, and the replay masks those bytes. - - It refuses increment 23's six kinds by name. + - It refuses increment 23's six kinds by name (until 23W, which ports them: see the Increment 23 part). - The tdc oracle: 332 `tc actions` writes match tc and 184 are refused by kind, with no mismatch. The tdc filter writes that match rose from 245 to 276. @@ -79,6 +82,7 @@ - [Batches: W185, W201](#batches-w185-w201) - [K63–K76. Kernel notes](#k63k76-kernel-notes) - [Bug-class candidates](#bug-class-candidates) +- [Increment 23: pedit, tunnel_key, ife, ct, gate, bpf and the bpf filter (W216–W320, K77–K89)](#increment-23-pedit-tunnel_key-ife-ct-gate-bpf-and-the-bpf-filter-w216w320-k77k89) ## Summary @@ -115,7 +119,7 @@ stderr and rc as tc. Every lead is open at iproute2 HEAD apart from W172's parti | W179 | m_action.c:629-682 | a delete has no 32-action bound: 33 deletes are sent, the kernel deletes 32 and silently keeps the 33rd (K8), rc 0 | ec-231 | confirmed (readback: index 33 is left); request bytes (22W) | copies it | | W180 | m_action.c:805-830 | `flush … since N` sends TIME_DELTA, rc 0 | ec-237 | request bytes (22W) | copies it | | W181 | m_action.c:901-913 | `actions flush foo gact` flushes gact: the word after flush is skipped unread | ec-238 | confirmed | copies it | -| W182 | m_action.c:792-798,855-857 | `flush action nosuch` prints `bad action nosuch`, rc 0 | ec-239 | confirmed | copies it | +| W182 | m_action.c:792-798,855-857 | `flush action nosuch` prints `bad action nosuch`, rc 0 | ec-239 | confirmed; fixed at HEAD (c4d6334c55aa) | copies it | | W183 | m_action.c:321-337 | `skip_sw skip_hw` are both sent: EINVAL, no extack (K69) | ng-077 | confirmed | copies it | | W184 | m_police.c:85-110; tc_util.c:264-275 | `burst 10x` prints `argument "10x" is wrong: buffer`; `burst 10k/x` prints `"10k"` | ng-009, ng-010 | confirmed | copies it | | W185 | m_police.c and four other invarg/duparg paths | exit(-1) ends a `-force` batch: line 2 never runs, rc 255 | ng-092 (ng-094 is the -1 return that carries on, rc 1) | confirmed | copies it | @@ -177,7 +181,10 @@ stderr and rc as tc. Every lead is open at iproute2 HEAD apart from W172's parti - **W181:** tc_act_list_or_flush is called with argv advanced by two (m_action.c:911-912), so `flush foo gact` flushes gact. - **W182:** `flush action nosuch` prints `bad action nosuch` and returns 0, so the rc is 0. + - **At HEAD** (c4d6334c55aa, 2026-11-30, after v7.3.0): both `bad action` paths set ret to -1, so `ls` and `flush` + of an unknown kind now fail. gotc copies v7.2.0, the version the corpus was captured with. - **W183:** `skip_sw skip_hw` are both sent; act_api.c:171-176's validity check fails with EINVAL and no extack (K69). + - **Extended in increment 23:** cls_bpf: `skip_hw skip_sw` is EINVAL with no extack, and skip_sw on dummy is EOPNOTSUPP (W320, tcact2write ng-150, ng-151). See [increment 23](#increment-23-pedit-tunnel_key-ife-ct-gate-bpf-and-the-bpf-filter-w216w320-k77k89). - **W186:** `tc actions` with no verb runs no loop iteration: nothing is printed, rc 0. `actions add help` prints only `Illegal "action"` (ng-089). - **W187** (new) @@ -214,6 +221,7 @@ stderr and rc as tc. Every lead is open at iproute2 HEAD apart from W172's parti rate is 0 while the burst computed from the 64-bit rate reads back as 590295810358b. - gotc copies the x86 cast: NaN is 2^63, and 2^64 or more is 0 (ec-109). The plan said to refuse these, but the result is fixed on x86, so there was no reason to. + - **Extended in increment 23:** W297: gate's times go through the same strtod-to-__s64 cast: inf, nan and 1e30 are sent as 0x8000000000000000 and accepted (tcact2write ec-204–ec-206). gotc refuses them by name, as it does here. See [increment 23](#increment-23-pedit-tunnel_key-ife-ct-gate-bpf-and-the-bpf-filter-w216w320-k77k89). - **W167:** `ppsburst64 = tc_calc_xmittime(pps64, ppsburst64)` (m_police.c:251). tc_calc_xmittime returns an unsigned tick count, so 1000 packets at 1 pps overflows it, and the kernel reads back `pkts_burst 274`. - **W169:** goto in the slash form is goto chain 0. @@ -222,6 +230,7 @@ stderr and rc as tc. Every lead is open at iproute2 HEAD apart from W172's parti - **Exceed side:** `pass/goto` sends RESULT GOTO_CHAIN: `goto chain not allowed on fallback` (act_police.c:136-141). - **Other forms:** `foo/pass` returns -1 with no message of its own. `jump 1/pass` is `Invalid "jump count" (1/pass)`. - **W170:** `p 2mbit` is peakrate, and `o` is `ok` (readback `action pass`). + - **Extended in increment 23:** the six increment-23 kinds collide the same way: pedit's `r` is retain, a bare `p` is pedit, `a` is at and `u` u32 (W225–W227, W237); tunnel_key's `s`, `d`, `t`, `c`, `n` and `e` (W255); ife's `d`, `e`, `t`, `s`, `a` and `u` (W270); ct's `c`, `co`, `h` and `helpe` (W292); gate's `c`, `p` and `h` (W302); bpf's mode words and the bpf filter's `s` and `f` (W314, W318). See [increment 23](#increment-23-pedit-tunnel_key-ife-ct-gate-bpf-and-the-bpf-filter-w216w320-k77k89). - **W184:** get_size_and_cell writes a NUL over the `/` before invarg prints, so `burst 10k/x` names `"10k"`. - The slash is put back only once CELL parses as an integer. A CELL that isn't a power of 2 (`10k/3`), or a SIZE past u32, prints the whole word. @@ -248,6 +257,7 @@ stderr and rc as tc. Every lead is open at iproute2 HEAD apart from W172's parti - **W160:** the missing newline in `invalid block ID` runs it into `bad action parsing`. - **W161:** once `dev` is seen, mirred stops reading, so `blockid 5` is the next action's kind. tc prints `Bad action type blockid` and gact's full usage, rc 255. + - **Extended in increment 23:** W288 is the reverse case: ct reads `index` only inside its loop, so `ct commit pipe index 5` sends `index` as the next kind, which the kernel refuses (tcact2write ng-091). See [increment 23](#increment-23-pedit-tunnel_key-ife-ct-gate-bpf-and-the-bpf-filter-w216w320-k77k89). - **W162:** ll_name_to_index falls back to `if%u` parsing, so `if3junk` is ifindex 3, which here is d0 (readback `Redirect to device d0`). A missing device prints `Cannot find device "nosuch"`, `bad action parsing`, `parse_action: bad value (7:mirred)!` and `Illegal "action"`. @@ -255,6 +265,7 @@ stderr and rc as tc. Every lead is open at iproute2 HEAD apart from W172's parti ## skbedit, vlan, csum: W171–W175 - **W171:** `id 010` is 8 (readback `push id 8`). `id 4095` reaches the kernel: ERANGE with no extack (K68). + - **Extended in increment 23:** pedit's offmask is base 16 with no `0x` and at and shift base 0 (W217); its offset is signed base 0 (W235); gate's interval, priority, flags, ipv and maxoctets are base 0 (W296). See [increment 23](#increment-23-pedit-tunnel_key-ife-ct-gate-bpf-and-the-bpf-filter-w216w320-k77k89). - **W172:** ll_addr_a2n zero-fills a short MAC, takes a dotted quad as bytes, and stops at six groups. `zz:00:…` prints `"zz" is invalid lladdr.` then `argument "zz" is wrong: dst_mac is invalid`: both are cut at the first `:`. @@ -263,6 +274,7 @@ stderr and rc as tc. Every lead is open at iproute2 HEAD apart from W172's parti zero-filled and a dotted quad still taken as bytes, so ec-147 and ec-148 would still pass at HEAD, and ng-038's stderr would change. - **gotc:** `llAddrA2N` copies v7.2.0, the version the corpus was captured with. + - **Extended in increment 23:** pedit's `eth src/dst` goes through ll_addr_a2n too, but pedit wants exactly six groups, so a short MAC and a dotted quad fail with no message (W232, tcact2write ng-019, ng-020). At HEAD (5faf18f672c1) trailing junk and seven groups are refused with a message and the colons are no longer written. See [increment 23](#increment-23-pedit-tunnel_key-ife-ct-gate-bpf-and-the-bpf-filter-w216w320-k77k89). - **W173:** with `index` first, csum's loop never sees an UPDATE word. The kernel stores flags 0, and tc prints them as `csum (?empty)`. - **W174:** @@ -271,6 +283,7 @@ stderr and rc as tc. Every lead is open at iproute2 HEAD apart from W172's parti - `mark 010` is base 0, so 8. - **W175:** each kind reads its control before `index`. A control after `index` is the next action, a gact. tc's request holds two actions, and gotc's matches it (ec-121, ec-137, ec-150, ec-163). + - **Extended in increment 23:** pedit (W243), tunnel_key (W264), ct (W288, reversed), gate (W303) and bpf (W312, where `index` ends the loop) have the same order problem. See [increment 23](#increment-23-pedit-tunnel_key-ife-ct-gate-bpf-and-the-bpf-filter-w216w320-k77k89). ## nat and simple: W189–W195, W213 @@ -305,30 +318,38 @@ stderr and rc as tc. Every lead is open at iproute2 HEAD apart from W172's parti - **tdc:** the tdc simple rows send the tdc runner's environment. Their replay masks it, as for the corpus. - **gotc:** sends what tc reads from argv or the line buffer (TestArgMem), zeros past them, and the replay masks those bytes. + - **Extended in increment 23:** the same persistence for argv NULs: pedit's MAC colons (W232), tunnel_key's strtok_r (W265) and ct's `/` for mark and label (W291) each show up in a later line's `simple sdata` (tcact2write ec-255, ec-256, ec-257). See [increment 23](#increment-23-pedit-tunnel_key-ife-ct-gate-bpf-and-the-bpf-filter-w216w320-k77k89). - **W190:** simple reads `index` and then stops; `drop` after it is a gact action. - **W191:** a bare kind word hits NEXT_ARG first, so the user sees `Command line is not complete. Try option "help"` rather than the kind's explain text. + - **Extended in increment 23:** tunnel_key (W254), ife (W269), ct's `nat` (W277), gate's sched-entry (W300) and bpf (W313) print `Command line is not complete` for a bare word too. See [increment 23](#increment-23-pedit-tunnel_key-ife-ct-gate-bpf-and-the-bpf-filter-w216w320-k77k89). - **W192:** `nat ingress 10.0.0.0/33 1.1.1.1` prints `Illegal nat construct (ingress)` then nat's usage. - **W193:** parse_nat_args ORs the egress flag into sel.flags and overwrites the addresses, so the second `nat`'s addresses are kept under the first's direction: readback `egress 11.0.0.0/8 3.0.0.0`. - **W194:** NEW is read with get_addr, which drops `/16` silently. + - **Extended in increment 23:** pedit's `ip src` drops the prefix length the same way (W233); `ip6 src` drops `/64` (W234). See [increment 23](#increment-23-pedit-tunnel_key-ife-ct-gate-bpf-and-the-bpf-filter-w216w320-k77k89). - **W195:** get_addr_ipv4's inet_aton accepts `010` (octal) and `10.1`. get_prefix accepts `/0x10` and a dotted netmask. + - **Extended in increment 23:** pedit's `ip src` takes legacy IPv4 and any/all/default as 0.0.0.0 (W233). See [increment 23](#increment-23-pedit-tunnel_key-ife-ct-gate-bpf-and-the-bpf-filter-w216w320-k77k89). - **W213:** with no sdata no DEF_DATA is sent, and act_simple.c:127-133 refuses with EINVAL, no extack. ## connmark, ctinfo, sample: W208–W212, W214, W215 - **W208:** the statemask's get_u32 fails, so the word is left for parse_action, which reads it as a kind. + - **Extended in increment 23:** pedit: an unknown word after a key is the next action kind (W245, tcact2write ng-034). See [increment 23](#increment-23-pedit-tunnel_key-ife-ct-gate-bpf-and-the-bpf-filter-w216w320-k77k89). - **W209:** cpmark 0 is "unset", so no CPMARK is sent. The kernel accepts a ctinfo with no mode at all (K76). - **W210:** the loop that skips the kind word matches any word, so a stray word after the kind is eaten. + - **Extended in increment 23:** ife's kind-word loop eats `i` and `if` the same way (W269). See [increment 23](#increment-23-pedit-tunnel_key-ife-ct-gate-bpf-and-the-bpf-filter-w216w320-k77k89). - **W211 and W212** - **W211:** the missing-count message is the first check. - **W212:** `index` short-circuits the checks, and the kernel refuses with extack `sample rate and group are required` (act_sample.c:83-87). - **Related:** `rate 0` is `invalid sample rate` (act_sample.c:94-97, ng-060). - **W214:** tc's TcConnmark has its 2 bytes of tail padding zeroed, and gotc's encoder zeroes them too (ec-180–ec-183). + - **Extended in increment 23:** tc_ife's two bytes of tail padding are zeroed by `= { 0 }` (W275); every ife row's bytes pin them. See [increment 23](#increment-23-pedit-tunnel_key-ife-ct-gate-bpf-and-the-bpf-filter-w216w320-k77k89). - **W215:** parse_action_control reports the bad chain index, then connmark's own fallback reports it again. gact's usage follows, rc 255. + - **Extended in increment 23:** pedit's (W244) and gate's (W303) `goto chain x` are reported twice the same way (tcact2write ng-033, ng-114). See [increment 23](#increment-23-pedit-tunnel_key-ife-ct-gate-bpf-and-the-bpf-filter-w216w320-k77k89). ## skbmod and mpls: W196–W207 @@ -338,6 +359,7 @@ stderr and rc as tc. Every lead is open at iproute2 HEAD apart from W172's parti `Invalid dst mac address`, rc 255, and vlan's `dst_mac 0x:…` (ll_addr_a2n's `%x`) with `"0x" is invalid lladdr.` `00x:` is 0, the second 0 being a digit. Checked against glibc 2.44 and host tc 7.2.0. gotc had read `0x` as 0 and sent the request; it now refuses as tc does (TestScanfMac, TestLlAddrA2N). + - **Extended in increment 23:** ife's dst and src MACs use the same `%hhx` parse, so trailing junk is accepted (tcact2write ec-147, ec-148); bpf's instruction fields wrap through `%hu %hhu %hhu %u` (W309). See [increment 23](#increment-23-pedit-tunnel_key-ife-ct-gate-bpf-and-the-bpf-filter-w216w320-k77k89). - **W197:** - act_skbmod.c:152-155 replaces the whole flag set with SWAPMAC, so the dmac in `set dmac X swap mac` is dropped (readback `swap mac`). @@ -345,11 +367,15 @@ stderr and rc as tc. Every lead is open at iproute2 HEAD apart from W172's parti - **W198 and W199** - **W198:** etype 0 sends the flag with no ETYPE attribute; the kernel refuses with EINVAL, no extack. - **W199:** the debug lines are printed on success too. + - **Extended in increment 23:** ife writes the same kind of stderr chatter (`IFE type 0x%04X` and the allow and + use lines), in decode too, where the values are dropped (W273, tcact2write ec-146). See [increment 23](#increment-23-pedit-tunnel_key-ife-ct-gate-bpf-and-the-bpf-filter-w216w320-k77k89). - **W200:** skbmod reads its index with `get_u32(&p.index, *argv, 0)` (m_skbmod.c:127), base 0, where the other eleven kinds pass base 10: `skbmod swap mac index 010` creates index 8 (ec-206). gotc copies it, and a mutant that reads it in base 10 is killed by that row. + - **Extended in increment 23:** pedit's index (W247), tunnel_key's id, dst_port and index (W256) and gate's index are base 10; ife's mark, prio, tcindex, type and index are base 0 (W272). See [increment 23](#increment-23-pedit-tunnel_key-ife-ct-gate-bpf-and-the-bpf-filter-w216w320-k77k89). - **W201:** mpls's missarg is exit(-1), so the rest of a `-force` batch never runs (ng-093). Compare nat's -1 return in ng-094, which carries on, rc 1. + - **Extended in increment 23:** ife's mode check and usage (W268) exit(-1) and end a `-force` batch (tcact2write ng-158); pedit's help and NEXT_ARG sites do too (W246). See [increment 23](#increment-23-pedit-tunnel_key-ife-ct-gate-bpf-and-the-bpf-filter-w216w320-k77k89). - **W202:** `mpls help` (ng-076, rc 255) prints usage() from m_mpls.c:26-37. It lists pop, push, mac_push and modify, but not dec_ttl, which the parser takes (m_mpls.c:114), nor `index`. It shows push's label in brackets, though push without a label is a missarg exit (m_mpls.c:179; W201, ng-093). This is from reading the text against the @@ -358,6 +384,7 @@ stderr and rc as tc. Every lead is open at iproute2 HEAD apart from W172's parti - **W204:** - `pop protocol 0` is tc's own refusal. - `push label 5 protocol 0` sends no PROTO, and the kernel defaults to mpls_uc. + - **Extended in increment 23:** ife's `use mark 0` sends nothing (W271); gate's priority -1 and zero flags or times are not sent, so replace can't reset them (W299). See [increment 23](#increment-23-pedit-tunnel_key-ife-ct-gate-bpf-and-the-bpf-filter-w216w320-k77k89). - **W205 and W206:** `ind` is compared with strcmp, so it isn't `index`, and the action word is never found. `t` is matches()' prefix of `tc`. @@ -366,6 +393,10 @@ stderr and rc as tc. Every lead is open at iproute2 HEAD apart from W172's parti - **The rows:** ng-092 (police's invarg), ng-093 (mpls's missarg) and ng-094 (nat's -1 return), each under `-force`. - **Outcome:** the first two end tc on line 1 (rc 255, line 2 never runs). The third prints `Command failed b.txt:1` and runs line 2 (rc 1). +- **Extended in increment 23:** pedit's NEXT_ARG and help sites (W246), ife's usage (W268, tcact2write ng-158), ct's + `nat src foo` usage (W278), gate's invarg and help (W301) and get_addr's exit(1) (W250, tcact2write ng-159) end + a `-force` batch the same way; ct's -1 return carries on. See + [increment 23](#increment-23-pedit-tunnel_key-ife-ct-gate-bpf-and-the-bpf-filter-w216w320-k77k89). ## K63–K76. Kernel notes @@ -404,3 +435,848 @@ These are for the user's review. [bug-classes.md](bug-classes.md) is unchanged. the user's typo becomes a gact action, or a `Bad action type` with gact's usage. - **A positive error return that the caller's `< 0` test misses** (W187): the loop carries on over words it has already used. + +## Increment 23: pedit, tunnel_key, ife, ct, gate, bpf and the bpf filter (W216–W320, K77–K89) + +**Status (2026-12-01, increment 23: 23C captures, 23W gotc, 23B write-up, 23L live diff):** + +- **Not submitted to netdev.** Drafts for the user's review, recorded only here, like the rest of this directory. +- **Scope:** the parse side of `tc/m_pedit.c` with `p_ip.c`, `p_ip6.c`, `p_icmp.c`, `p_tcp.c`, `p_udp.c` and + `p_eth.c`; `m_tunnel_key.c`; `m_ife.c`; `m_ct.c`; `m_gate.c`; `m_bpf.c`; `f_bpf.c`; and `lib/bpf_legacy.c`'s cBPF + parser (bpf_parse_string, bpf_ops_parse, bpf_do_parse, bpf_load_common). eBPF (object-file, object-pinned, pinned, + fd) reaches bpf(2) or the ELF loader and is out of scope. +- **Numbering:** leads continue at **W216**; kernel notes at **K77**. The sweep listed W216–W320; capturing found no + lead outside them. +- **Source:** iproute2 **v7.2.0** line numbers, read with `git show`; kernel behaviour from the corpus (kernel 7.3.1) + and linux **v7.4-rc4**. +- **Corpus:** `pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/` (418 rows: 258 writes, 160 refusals), kernel 7.3.1, tc + 7.2.0. "ec-N" and "ng-N" in this part are its rows. + - Two batches on one boot agree on every row's rc, stdout, stderr and readback, and on all 336 requests byte for byte + (seq and pid zeroed). +- **What the trial batches changed:** + - **Corrected:** W220 (key 129 is followed by the generic message), W267 (accepted while a meta module is loaded), + W288 and W303 (the kernel refuses the stray `index` kind; tc sends it), W295 (`1.5` is consumed), W307 (the edges + are 2039 and 2042). + - **Kernel answers corrected:** W251 and W281 are ERANGE; W259's short DATA is ERANGE; W283's unknown helper is + EINVAL and its long name ERANGE; W320's skip_sw is ENOTSUP (EOPNOTSUPP). + - **Accepted, refused by name in gotc:** W280's 63-byte range and W297's UB time casts are sent and accepted. + - **W294 has no corpus row.** Its value is uninitialised stack memory that differed in every run (see its entry), so + no two batches could agree. 23W pins gotc's refusal by name with a unit test. + - **Determinism:** a fresh `ife decode` with no meta module loaded is EINVAL (K79), so the first trial's outcome + depended on whether an encode row had loaded act_meta_* first. The rows now load the three meta modules up front. +- **HEAD check (23B, 2026-11-30):** iproute2's GitHub mirror at 3f4b36e5b10a (2026-11-30), with + `gh api …/compare/v7.2.0...main` (92 commits, v7.3.0 among them) over every file this part cites. + - **No commit after v7.2.0:** m_pedit.c, m_pedit.h, the six p_*.c, m_tunnel_key.c, m_ife.c, m_ct.c, m_gate.c, + m_bpf.c, f_bpf.c, lib/bpf_legacy.c and utils_math.c. Every lead in those files is open at HEAD. + - **lib/ll_addr.c, 5faf18f672c1 (2026-08-23, in v7.3.0):** ll_addr_a2n now parses with strtoul and leaves arg + alone, which changes W232 at HEAD. Trailing junk after the sixth group (ec-098) and seven groups (ng-021) are + refused with `"…" is invalid lladdr.` naming the whole argument (ng-022's message is no longer cut at the `:`), + and no colon is written, so ec-255's second line would carry no NULs. A short MAC (`aa`, ng-019) and a dotted + quad (ng-020) still return 1 and 4, and pedit still fails them with no message. W172 is the same change. + - **lib/libnetlink.c:** the receive path (sender checks, `NLMSG_OK` walking, the remnant check) and the opening + seq changed; addattr_l, addraw_l and addattr_nest did not, so W248, W293 and W307 stand at HEAD. + - **lib/utils.c:** getcmdline's error paths and resolve_address's cache (see increment 22's check); get_addr, + get_integer, get_u32 and get_size are unchanged, so W250, W279 and W295 stand. + - **tc/m_action.c:** c4d6334c55aa fixes increment 22's W182 (see its entry); no increment-23 lead changes. + - **Kernel:** torvalds/linux at 19cc08c1a6a6 (2026-11-30) has no commit after v7.4-rc4 (2026-11-22) in + act_pedit.c, act_tunnel_key.c, act_ife.c, net/ife/ife.c, act_ct.c, act_gate.c, act_bpf.c, cls_bpf.c, act_api.c, + act_meta_mark.c or tc_pedit.h, so K77–K89 stand at HEAD. +- **gotc (23W):** every parser is ported. The 418 rows replay byte for byte (stdout, stderr, rc and every request, + seq aside) in TestGotcCorpus, apart from 12 rows gotc refuses by name: the eight eBPF rows (ng-139–ng-144, ng-153, + ng-154), W280's 63-byte nat range (ec-168) and W297's inf, nan and 1e30 times (ec-204–ec-206). W294 is refused by + name in a unit test. tcactwrite ec-217–ec-222 and tcfwrite ec-117 are sent byte for byte, and of the tdc writes + only flower's two filter rows stay refused. gotc found no lead beyond W216–W320 and no kernel note beyond K89. +- **Live diff (23L):** tc 7.2.0 and the gotc_write build ran side by side on the workbench (kernel 7.3.1) for all 418 + rows, tcactwrite ec-217–ec-222 and tcfwrite ec-117. tc's stdout, stderr and rc equal the corpus on every row, so + each kernel answer behind K77–K89 recurred on a second boot, and W280's and W297's sends gave the same bytes again. + gotc's requests equal tc's on every row but the 12 it refuses by name (eBPF, W280, W297). Where they differ in + stderr, it is only the kernel's reply, which a dry run never hears: for example gate's `Warning: Attribute isn't + type 'entry'.` after W293's broken entries. No lead was added or changed. + +| lead | where (v7.2.0) | what | pinned by | status | gotc | +|---|---|---|---|---|---| +| W216 | m_pedit.c:489-511 | the man page's `at A offmask M shift S` is refused: the parser is positional (`at A M S`), so `offmask` fails get_u32 and the error names the offset, `Bad pedit construct (12)` | ec-089, ng-002 | confirmed | copies (23W) | +| W217 | m_pedit.c:500 | offmask is get_u32 base 16 with no `0x` (`10` is 0x10); at and shift are base 0 | ec-090 | confirmed (request bytes held by the 23W replay) | copies (23W) | +| W218 | m_pedit.c:430-436,513-517,664 | the word in `Bad pedit construct (X)` is wherever parse_munge left argv: the offset for a parse failure, the next word after a pack failure, `(null)` at the end of the line, the kind for a layered failure | ng-003, ng-004 | confirmed | copies (23W) | +| W219 | m_pedit.c:547 | every layered failure first prints `bad pedit parsing` | ng-005 | confirmed | copies (23W) | +| W220 | m_pedit.c:122-123 | key 129 fails in pack_key with no message of its own; only the generic `Bad pedit construct (index)` follows (the kernel takes 255). *Corrected:* the sweep said silent | ec-088, ng-006 | confirmed, corrected | copies (23W) | +| W221 | m_pedit.c:173-175,203-205 | `pack_key8 bad value (val 100 mask 0` has no closing parenthesis; pack_key16's message has no values | ng-007, ng-008 | confirmed | copies (23W) | +| W222 | m_pedit.c:394-397 | `retain is not supported for fields longer the 32 bits` (sic), also for `eth dst preserve` and an ip6 retain | ng-009, ng-010 | confirmed | copies (23W) | +| W223 | m_pedit.c:351-352,400-406 | `invert` on eth or ip6 fields sets 0xff… (mask 0) instead of inverting: pack_mac and pack_ipv6 zero the mask | ec-091, ec-092 | confirmed (request bytes held by the 23W replay) | copies (23W) | +| W224 | m_pedit.c:376-392 | `preserve` sets retain 0, and a following `retain M` overrides it; `set V retain M` masks V silently | ec-093, ec-094 | confirmed (request bytes held by the 23W replay) | copies (23W) | +| W225 | m_pedit.c:386 | `r` after a command is retain: `ip ttl set 5 r` ends in NEXT_ARG, rc 255 | ng-011 | confirmed | copies (23W) | +| W226 | m_pedit.c:636 | a bare `p` after a key is `pedit`, not pass: NEXT_ARG, rc 255 | ng-012 | confirmed | copies (23W) | +| W227 | m_pedit.c:466-489 | `a` is `at`; `u` is u32 and `u1` u16 (matches() against u32 first) | ec-095, ec-096, ec-097 | confirmed | copies (23W) | +| W228 | m_pedit.c:33-41 | the usage contradicts the parser: `munge [ex]` (ex goes before munge), retain listed as a CMD, eth missing, icmp listed | ng-013 | confirmed | copies (23W) | +| W229 | m_pedit.c:141-145,438-440 | `Munge parameters not supported` is dead code; `only 'set' command is supported` also covers decrement, while invert, clear and preserve pass without ex | ng-014, ng-015 | confirmed | copies (23W) | +| W230 | m_pedit.c:59-66,73-114 | an unknown kind prints `Unknown action hence option "bar" is unparsable` (two spaces; it names the next word), then bad pedit parsing and `Bad pedit construct (foo)`; at the end of the line, NEXT_ARG | ng-016, ng-017 | confirmed | copies (23W) | +| W231 | m_pedit.c:535-538 | a kind of 16 or more bytes leaves `k[16]` unterminated and reads past it into the dlopen name; the output is the unknown-kind output, naming the whole word | ng-018 | confirmed (output deterministic) | copies (23W): no kind of 16 bytes or more exists, so gotc gives the unknown-kind output tc gives | +| W232 | ll_addr.c via m_pedit.c:318 | eth MACs: exactly six groups; trailing junk after the sixth is accepted; a dotted quad or a short MAC is refused; the colon NULs persist in a batch line (line 2's simple shows `th\0dst\0set\002\000…`) | ec-098, ec-255, ng-019, ng-020, ng-021, ng-022 | confirmed; partly fixed at HEAD (5faf18f672c1) | copies (23W) | +| W233 | m_pedit.c:298-301 | `ip src` drops a prefix length (`10.0.0.1/8`), takes legacy IPv4 (`010.1` is 8.1.0.0) and any/all/default as 0.0.0.0 | ec-099, ec-100, ec-101 | confirmed (request bytes held by the 23W replay) | copies (23W) | +| W234 | m_pedit.c:308-311 | `ip6 src any` sets :: (bytelen 0, val stays zero); `/64` is dropped | ec-102, ec-103 | confirmed (request bytes held by the 23W replay) | copies (23W) | +| W235 | m_pedit.c:456 | the offset is get_integer, base 0 and signed: `-4` passes the alignment check and is sent as 0xfffffffc; the kernel accepts it | ec-104 | confirmed | copies (23W) | +| W236 | p_ip.c:139-143 | `icmp_code` edits the type byte: offset 20, the same as icmp_type | ec-105 | confirmed (request bytes held by the 23W replay) | copies (23W) | +| W237 | p_ip.c:51,76 | `d` is dsfield and `p` precedence (both offset 1, the tos byte) | ec-106, ec-107 | confirmed | copies (23W) | +| W238 | p_ip6.c:51 | flow_lbl's retain is 0x7ffff (19 bits), so bit 19 of the 20-bit label can't be set | ec-108 | confirmed (request bytes held by the 23W replay) | copies (23W) | +| W239 | p_icmp.c:25 | `icmp` always fails (its parser returns -1), though the usage and man page list it | ng-023 | confirmed | copies (23W) | +| W240 | p_ip6/tcp/udp/eth.c:31; p_ip.c:115-119 | without `ex`, ip6, tcp, udp and eth fail with only `bad pedit parsing`; with `ex`, `ip sport`, `ip dport` and icmp_* fail the same way | ng-024, ng-025, ng-026, ng-027, ng-028, ng-029 | confirmed | copies (23W) | +| W241 | m_pedit.c:640-646 | `ok>1` counts `pedit` words too: `pedit pedit ex munge` prints `'ex' must be before first 'munge'` | ng-030 | confirmed | copies (23W) | +| W242 | m_pedit.c:633-681 | `pedit pipe` sends nkeys 0 (with ex, an empty KEYS_EX): the kernel refuses a create (`Pedit requires keys to be passed`) but binds an existing index (K86) | ec-235, ng-031, ng-032 | confirmed | copies (23W) | +| W243 | m_pedit.c:681-693 | index after control: `… set 1 index 5 pipe` leaves `pipe` for m_action.c, which adds a second (gact) action | ec-109 | confirmed (request bytes held by the 23W replay) | copies (23W) | +| W244 | m_pedit.c:681 | `goto chain x` is reported twice (`Illegal "chain index"`), then gact's usage | ng-033 | confirmed | copies (23W) | +| W245 | m_pedit.c:670-672 | an unknown word after a key becomes the next action kind: `Bad action type foo` and gact's usage | ng-034 | confirmed | copies (23W) | +| W246 | m_pedit.c:52,653; NEXT_ARG sites | `help` and every NEXT_ARG site exit(-1); a bare `ip src` returns -1 (argc < 2) | ng-035, ng-036 | confirmed | copies (23W) | +| W247 | m_pedit.c:686 | index is base 10: `index 0x5` prints `Pedit: Illegal "index"` | ng-037 | confirmed | copies (23W) | +| W248 | m_pedit.c:697-705 | addattr results are ignored: three 128-key ex actions pass 16384, `addattr_l ERROR` is printed and the rest is sent; the kernel refuses with `Not enough extended keys to parse` | ec-238, ng-157 | confirmed | copies (23W) | +| W249 | m_pedit.c:153-165 | an ex `add` on ip6 or eth sends independent 32- and 16-bit ADD keys, with no carry between them | ec-110, ec-111 | confirmed (request bytes held by the 23W replay) | copies (23W) | +| W250 | m_tunnel_key.c:45,357-370; utils.c:738 | `src_ip bogus` is get_addr's `Error: any valid address is expected rather than "bogus".` and exit(1), which also ends a `-force` batch; `Illegal "src_ip"` can't be reached | ng-045, ng-159 | confirmed | copies (23W) | +| W251 | m_tunnel_key.c:49-50; utils.c:578 | `src_ip any` (or default) is AF_UNSPEC with bytelen 0: a 0-byte IPV6_SRC, ERANGE with `Failed to parse nested tunnel key attributes` (K81) | ng-046 | confirmed | copies (23W) | +| W252 | m_tunnel_key.c:49 | a v4 src with a v6 dst is sent; the kernel refuses `Missing either ipv4 or ipv6 src and dst` | ng-047 | confirmed | copies (23W) | +| W253 | m_tunnel_key.c:321,459-466 | no set or unset word sends t_action 0: `Unknown tunnel key action` | ng-048 | confirmed | copies (23W) | +| W254 | m_tunnel_key.c:327-332 | `tunnel_key` alone ends in NEXT_ARG | ng-049 | confirmed | copies (23W) | +| W255 | m_tunnel_key.c:335-431 | prefixes: `s` is set, `d` dst_ip, `i` id, `t` tos, `n` nocsum (matches() order); `nofrag` is a strcmp | ec-126 | confirmed | copies (23W) | +| W256 | m_tunnel_key.c:61,73,450 | id, dst_port and index are base 10; the port's message is `Illegal "dst port"` (with a space) | ng-050, ng-051, ng-052 | confirmed | copies (23W) | +| W257 | m_tunnel_key.c:303-305 | tos and ttl are tried in base 10, then base 16: `tos 1a` is 26, but `ttl 010` is 10 | ec-127 | confirmed (request bytes held by the 23W replay) | copies (23W) | +| W258 | m_tunnel_key.c:150-190 | geneve's strtok_r merges empty fields, so `0102::01020304` shifts DATA into TYPE and fails; a missing DATA is refused by the kernel (`Missing tunnel key geneve option class, type or data`) | ng-053, ng-054 | confirmed | copies (23W) | +| W259 | m_tunnel_key.c:170-180; utils.c:1216 | geneve DATA is len/2 bytes: an odd last nibble is dropped unchecked and 1 char gives 0 bytes; the kernel refuses under 4 bytes (`less than 4 bytes long`, ERANGE) for both | ec-128, ng-055, ng-056 | confirmed | copies (23W) | +| W260 | m_tunnel_key.c:204-213 | `geneve_opts ''` sends an empty ENC_OPTS: `Empty list of tunnel options` | ng-058 | confirmed | copies (23W) | +| W261 | m_tunnel_key.c:252-289 | erspan's fields shift the same way: `2::1:16` is ver 2, index 1, dir 16, no hwid: `Missing tunnel key erspan option dir or hwid` | ng-057 | confirmed | copies (23W) | +| W262 | m_tunnel_key.c:391-405 | two option kinds send two ENC_OPTS nests; the kernel accepts it and keeps the last | ec-129 | confirmed | copies (23W) | +| W263 | m_tunnel_key.c:439 | NO_CSUM is always sent, even for unset; unset also sends the addresses, which the kernel accepts | ec-130 | confirmed | copies (23W) | +| W264 | m_tunnel_key.c:444-457 | index then control: `unset index 5 pipe` adds a second (gact) action | ec-131 | confirmed (request bytes held by the 23W replay) | copies (23W) | +| W265 | m_tunnel_key.c:150-288 | strtok_r writes NULs into argv, which persist in a batch line: line 2's simple shows `e_opts\0` `0102\080\000880022\00103\0` | ec-256 | confirmed | copies (23W) | +| W266 | m_tunnel_key.c:18-31,321-339 | the usage omits tos, ttl, index and CONTROL; a second set/unset prints `unexpected "set" - action already specified` | ng-059 | confirmed | copies (23W) | +| W267 | m_ife.c:150-163 | `ife index 5` counts as ok and sends flags 0 (decode) with no METALST; accepted while a meta module is loaded, EINVAL with no extack otherwise (K79). *Corrected:* the sweep predicted EINVAL | ec-138 | confirmed, corrected | copies (23W) | +| W268 | m_ife.c:163-166 | `ife pipe` prints `IFE requires decode/encode specified`, the usage, exit(-1), which ends a `-force` batch; every invarg exits too | ng-066, ng-158 | confirmed | copies (23W) | +| W269 | m_ife.c:73-75 | the kind-word loop eats `ife` and `i`; at the end of the line, NEXT_ARG | ec-139, ng-067 | confirmed | copies (23W) | +| W270 | m_ife.c:76-80,119,129 | `d` is decode (so dst needs `ds`), `e` encode, `a` allow, `t` type; the last of decode/encode wins | ec-140, ec-141 | confirmed | copies (23W) | +| W271 | m_ife.c:184-202 | `use mark 0` sends nothing for mark; use overrides allow; METALST is always mark, prio, tcindex in that order | ec-142, ec-143, ec-144 | confirmed (request bytes held by the 23W replay) | copies (23W) | +| W272 | m_ife.c:97-153 | mark, prio, tcindex, type and index are base 0 (`use mark 010` is 8; `index 0x5` is 5) | ec-145 | confirmed | copies (23W) | +| W273 | m_ife.c:171-172 | decode silently drops dst, src, type and allow/use (but still prints `dst MAC address <…>` and `IFE type`) | ec-146 | confirmed | copies (23W) | +| W274 | m_ife.c:168,177 | the nest opens after parsing; TYPE is a host-order u16 (0xED3E is sent 3e ed); encode always sends METALST | ec-132 | confirmed (request bytes held by the 23W replay) | copies (23W) | +| W275 | m_ife.c:53 | tc_ife's 2 bytes of tail padding are zeroed by `= { 0 }`; gotc pins zeros | ec-133 | confirmed (request bytes held by the 23W replay) | copies (23W) | +| W276 | m_ct.c:274 | `ct commit nat src addr 1.1.1.1` as the last words ends in NEXT_ARG: something must follow the range | ng-077 | confirmed | copies (23W) | +| W277 | m_ct.c:255 | `ct nat` as the last word ends in NEXT_ARG, though the usage shows `[nat]` | ng-078 | confirmed | copies (23W) | +| W278 | m_ct.c:263-265 | `nat src foo` prints the usage and exits | ng-079 | confirmed | copies (23W) | +| W279 | m_ct.c:50,58 | a bad nat address is get_addr's message and exit(1); the second address takes the first's family (`inet address is expected rather than "2001:db8::1"`); `Illegal nat address range` can't be reached | ng-080, ng-081 | confirmed | copies (23W) | +| W280 | m_ct.c:37-76 | SPRINT_BUF(64) with strncpy 63: a 63-byte range is left unterminated and parsed past buffer[63]. On the workbench the next stack byte was NUL in every run, so the full range was sent; gotc refuses it by name | ec-167, ec-168 | confirmed (stack byte NUL in 3 runs) | refuses by name (23W): `ct nat argument of N bytes: tc reads past its unterminated 63-byte copy (W280)` | +| W281 | m_ct.c:53-64 | `addr any` sends a 0-byte IPV6_MIN/MAX: ERANGE `binary attribute size out of range` (K82); with no second address, MAX repeats MIN | ec-169, ng-082 | confirmed | copies (23W) | +| W282 | m_ct.c:85-95 | ports are base 10; `80-` prints `ct: Illegal nat port range`; min ≤ max is unchecked (2000-1000 is accepted) | ec-170, ng-083, ng-084 | confirmed | copies (23W) | +| W283 | m_ct.c:167-183 | helper `%[^-]` keeps 3 fields: `ipv4-udp-netbios-ns` sends `netbios`, which the kernel can't find (`act_ct: Failed to add helper`); a 22-byte name passes tc's 32 and fails the kernel's 16 (ERANGE, K83) | ng-085, ng-086 | confirmed | copies (23W) | +| W284 | m_ct.c:177; inet_proto.c:42 | proto is base 10, then getprotobyname: `6` works, `0x6` is `ct: Illegal "helper"` | ec-171, ng-087 | confirmed | copies (23W) | +| W285 | m_ct.c:201-212 | the too-long message names the label even when the mask is too long (`argument "01" is wrong: 2 Max allowed size 32`) | ec-166, ng-088, ng-089 | confirmed | copies (23W) | +| W286 | m_ct.c:211-217 | the hex invarg messages embed `\n`, so they end with a blank line | ng-090 | confirmed | copies (23W) | +| W287 | m_ct.c:211-222 | odd lengths aren't refused: `00g` sends 1 byte, `0` sends 0 bytes, and the default mask is 16 bytes of 0xff | ec-172, ec-173 | confirmed (request bytes held by the 23W replay) | copies (23W) | +| W288 | m_ct.c:290-295,353 | index is parsed only inside the loop: in `ct commit pipe index 5` the word `index` becomes a second action kind, sent, and refused `Failed to load TC action module` (ENOENT). *Corrected:* the sweep said tc refuses it | ng-091 | confirmed, corrected | copies (23W) | +| W289 | m_ct.c:328-332 | `ct clear zone 5 mark 1` is sent and accepted (clear returns early); `force` without commit passes | ec-174, ec-175 | confirmed | copies (23W) | +| W290 | m_ct.c:107-111 | zone's slash split is dead (mask_type UNSPEC): `zone 5/1` is `ct: Illegal "zone"`; zone and mark are base 0 | ec-176, ng-092 | confirmed | copies (23W) | +| W291 | m_ct.c:138,196 | the NULs written at `/` for mark and label persist in a batch line: line 2's simple shows `x1\00xff\0label\001\0ff` | ec-257 | confirmed | copies (23W) | +| W292 | m_ct.c:240-321 | prefixes: `c` is clear, `co` commit, `z` zone, `m` mark, `h`/`hel` help (exits) | ec-177, ec-178, ng-093 | confirmed | copies (23W) | +| W293 | m_gate.c:110 | each entry nest is bounded by 1024 against the whole message: the 31st open entry gets `addattr_l ERROR: … bound of 1024`, its header is dropped and addattr_nest_end rewrites the first child's length to cover the entry; the kernel warns `Attribute isn't type 'entry'`, skips it and returns 0 with a shorter schedule (K80) | ec-196, ec-197, ec-198, ec-199 | confirmed | copies (23W) | +| W294 | m_gate.c:280-290; utils_math.c:145-160 | a numeric ipv followed by a word that isn't a size reads get_size's uninitialised sz64 into maxoctets_uint. The value is a stack fragment that changes per run: three runs of `sched-entry open 1ms 1 index 1` sent maxoctets 0x33874a91, 0x4c352a91 and 0x7fec5a91 (low byte fixed, as of an address), and `… 1 sched-entry close 1ms` was twice refused as `"maxoctets" is too large`, once sent as 0x365b8a7b. It sends an ASLR-derived value to the kernel, readable back with `tc actions ls`. No corpus row (not reproducible); gotc refuses it by name | (none, see the entry) | confirmed (trial batches; not in the corpus) | refuses by name (23W, unit test): `gate maxoctets "X": get_size stores an uninitialised value (W294)` | +| W295 | m_gate.c:280-290 | a fractional or suffixed maxoctets goes through get_size: `1.5` is 1 and `0kb` leaves -1. *Corrected:* the sweep said `1.5` is passed on as a kind; it is consumed, because get_size stored 1 and floor(1.5) is 1. The partial value is kept and the word read again only past 32 bits: `5G` stores the low 32 bits of 5 GiB (1 GiB) and then `Bad action type 5G` (23W unit test, TestGotcGateWrite) | ec-200, ec-201, ng-103 | confirmed, corrected | copies (23W) | +| W296 | m_gate.c:169-280 | bases: interval and the times try base 0/10 then strtod (`0x10` is 16 ns via strtod's hex); priority, flags, ipv and maxoctets are base 0; index is base 10 (`argument "0x1" is wrong: index`) | ec-202, ec-203, ng-104 | confirmed | copies (23W) | +| W297 | utils.c:1695-1730 | strtod times: inf, nan and 1e30 reach `*time = nsec`, a UB cast, and are sent (x86 gives 2^63) and accepted; fractions truncate (`1.9ns` is 1); interval 0.5 is 0, refused `Invalid interval for schedule entry`. gotc refuses the UB casts by name | ec-204, ec-205, ec-206, ec-207, ng-105 | confirmed | refuses by name (23W): `gate time "X": tc casts V to __s64, undefined behavior (W297)` | +| W298 | m_gate.c:181-197 | `base-time -1` is get_s64 and sent as u64 max; `-1ms` fails get_time64 (negative) and invarg exits | ec-208, ng-106 | confirmed | copies (23W) | +| W299 | m_gate.c:327-347 | 0 means unset: priority -1 and zero flags, base-time and cycle-time aren't sent, so a replace can't reset them | ec-209 | confirmed (request bytes held by the 23W replay) | copies (23W) | +| W300 | m_gate.c:41-57,161,230-255 | a bad state, a missing interval or a bad interval prints the entry usage and `"sched-entry" is incomplete`; `pas` typo in the usage; `index` missing from the usage | ng-107, ng-108, ng-109, ng-110 | confirmed | copies (23W) | +| W301 | m_gate.c:51,365 | invarg and `help` exit(-1); sched-entry errors return -1 | ng-111, ng-112 | confirmed | copies (23W) | +| W302 | m_gate.c:167-212 | `c` is cycle-time, `p` priority, `h` help (exits) | ec-210, ng-113 | confirmed | copies (23W) | +| W303 | m_gate.c:308-317 | a control word ends the options: in `… pipe index 5` the word `index` becomes a second action kind, refused `Failed to load TC action module`; a bad `goto chain` is reported twice. *Corrected:* the sweep said tc refuses it | ng-114, ng-115 | confirmed, corrected | copies (23W) | +| W304 | m_gate.c:272,292 | a closed entry's ipv and maxoctets are forced to -1 silently | ec-211 | confirmed (request bytes held by the 23W replay) | copies (23W) | +| W305 | m_gate.c:319,349 | `gate index 5` sends an empty ENTRY_LIST: `The entry list is empty` on create, accepted on bind | ec-236, ng-116 | confirmed | copies (23W) | +| W306 | m_gate.c loop | no check of the entry count, cycle-time against the intervals, or repeats: `cycle-time 1000` with two 1 ms entries is accepted | ec-212 | confirmed | copies (23W) | +| W307 | m_bpf.c:56; f_bpf.c:58 | the 16384 bound: 2038 instructions fit; from 2039 PARMS no longer fits and from 2042 OPS no longer fits, each with `addattr_l ERROR` and EINVAL with no extack (K84); past 4096 is refused with no message. *Corrected:* the sweep put the edge at 2040/2041 | ec-222, ng-120, ng-121, ng-122, ng-123 | confirmed, corrected | copies (23W) | +| W308 | bpf_legacy.c:284-310 | the header is `%hu%c`: `65537,` wraps to 1; `4 ,` and `0,` fail with no message of their own | ec-223, ng-124, ng-125 | confirmed | copies (23W) | +| W309 | bpf_legacy.c:320-322 | instruction fields are scanf'd: `0xffff` reads k 0 (text after k is ignored), code 65542 wraps to 6 and jt 256 to 0; a hex code is `Error at instruction 0!` | ec-224, ec-225, ng-126 | confirmed | copies (23W) | +| W310 | bpf_legacy.c:313-335 | a trailing `, ` is `Real program length exceeds encoded length parameter!`; too few instructions is `Parsed program length is less than encoded length parameter!`; a trailing `,` alone is accepted | ng-127, ng-128 | confirmed | copies (23W) | +| W311 | bpf_legacy.c:229-278 | bytecode-file: newlines become `,`, runs of blanks one blank; a leading blank line, CRLF or a directory fail with no message; a missing file is `Cannot fopen: No such file or directory`; `-` is a file name, not stdin | ec-221, ng-129, ng-130, ng-131, ng-132 | confirmed | copies (23W) | +| W312 | m_bpf.c:93-140 | `index` ends the loop: `bpf index 5` sends PARMS only (EINVAL with no extack on create, a bind works); a second program word is the next kind (`Bad action type bytecode`); `bpf drop` is `What mode is "drop"?` | ec-237, ng-133, ng-134, ng-135 | confirmed | copies (23W) | +| W313 | m_bpf.c:89,113-135 | bare `bpf` ends in NEXT_ARG; `help` prints the usage and returns -1 (bad action parsing); a bad index is `bpf: Illegal "index"` | ng-136, ng-137, ng-138 | confirmed | copies (23W) | +| W314 | bpf_legacy.c:838-858 | mode prefixes: `b` is bytecode; `o` object-file (an ELF load: `Error opening object nosuch.o`), `p` pinned and `f` fd (both bpf(2): `Couldn't retrieve pinned program`) | ec-226, ng-139, ng-140, ng-141 | confirmed | copies (23W); the eBPF modes are refused by name, `eBPF program via bpf(2)` | +| W315 | f_bpf.c:81,172 | options with no program word leave cfg.mode 0 (CBPF_BYTECODE), so OPS_LEN 0 and an empty OPS are sent: EINVAL with no extack | ng-145 | confirmed | copies (23W) | +| W316 | f_bpf.c:94-95 | `… bpf` with no words sends no OPTIONS: EINVAL with no extack | ng-146 | confirmed | copies (23W) | +| W317 | f_bpf.c:132-180 | CLASSID, ACT and POLICE go out in command order, then OPS_LEN, OPS, FLAGS_GEN, FLAGS; a repeated classid is sent twice and the kernel keeps the last | ec-253 | confirmed (request bytes held by the 23W replay) | copies (23W) | +| W318 | f_bpf.c:101-158 | `s` is skip_hw, `f` flowid (not fd as in the action's mode words) | ec-254 | confirmed | copies (23W) | +| W319 | f_bpf.c:112-164 | `What is "bogus"?` and the usage, rc 1; flowid's error says `Illegal "classid"`; a parse failure adds `Unable to parse bpf command line` | ng-147, ng-148, ng-149 | confirmed | copies (23W) | +| W320 | f_bpf.c:136-140 | `skip_hw skip_sw` is EINVAL with no extack; skip_sw on a dummy is EOPNOTSUPP with no extack (K85) | ng-150, ng-151 | confirmed | copies (23W) | + +### Lead entries (23B) + +One entry per lead, generated from the summary table and the tcact2write rows it names: **Trigger and outcome** is each +pinning row's exact command (a batch's lines after `with b.txt:`), tc's rc, the first lines of its stderr, and +whether the request was sent (from the row's classification). Where and what are as in the summary; the status +includes 23W's replay and 23B's HEAD check. + +#### pedit: W216–W249 + +- **W216** (m_pedit.c:489-511): the man page's `at A offmask M shift S` is refused: the parser is positional (`at A M S`), so `offmask` fails get_u32 and the error names the offset, `Bad pedit construct (12)` + - **Trigger and outcome:** + - ec-089: `tc actions add action pedit munge offset 12 u32 at 4 0xff 24 set 1 index 1` → rc 0; stderr `Warning: act_pedit: Unsupported pedit command offload.` (sent and accepted) + - ng-002: `tc actions add action pedit munge offset 12 u32 at 0 offmask f shift 0 set 1 index 1` → rc 255; stderr `Bad pedit construct (12)`; `Usage: ... pedit munge [ex] [CONTROL]`; `Where: MUNGE := |` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W217** (m_pedit.c:500): offmask is get_u32 base 16 with no `0x` (`10` is 0x10); at and shift are base 0 + - **Trigger and outcome:** + - ec-090: `tc actions add action pedit munge offset 12 u32 at 0x4 10 2 set 1 index 1` → rc 0; stderr `Warning: act_pedit: Unsupported pedit command offload.` (sent and accepted) + - **gotc:** copies (23W). + - **Status:** confirmed (request bytes held by the 23W replay). +- **W218** (m_pedit.c:430-436,513-517,664): the word in `Bad pedit construct (X)` is wherever parse_munge left argv: the offset for a parse failure, the next word after a pack failure, `(null)` at the end of the line, the kind for a layered failure + - **Trigger and outcome:** + - ng-003: `tc actions add action pedit munge offset 2 u32 set 1` → rc 255; stderr `pack_key32: 32 bit offsets must begin in 32bit boundaries`; `Bad pedit construct ((null))`; `Usage: ... pedit munge [ex] [CONTROL]` (tc fails it; no kernel refusal) + - ng-004: `tc actions add action pedit munge offset 2 u32 set 1 index 1` → rc 255; stderr `pack_key32: 32 bit offsets must begin in 32bit boundaries`; `Bad pedit construct (index)`; `Usage: ... pedit munge [ex] [CONTROL]` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W219** (m_pedit.c:547): every layered failure first prints `bad pedit parsing` + - **Trigger and outcome:** + - ng-005: `tc actions add action pedit munge ip foo set 1 index 1` → rc 255; stderr `bad pedit parsing`; `Bad pedit construct (ip)`; `Usage: ... pedit munge [ex] [CONTROL]` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W220** (m_pedit.c:122-123): key 129 fails in pack_key with no message of its own; only the generic `Bad pedit construct (index)` follows (the kernel takes 255). *Corrected:* the sweep said silent + - **Trigger and outcome:** + - ec-088: `tc actions add action pedit munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset … (3235 bytes)` → rc 0; stderr `Warning: act_pedit: Unsupported pedit command offload.` (sent and accepted) + - ng-006: `tc actions add action pedit munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset … (3260 bytes)` → rc 255; stderr `Bad pedit construct (index)`; `Usage: ... pedit munge [ex] [CONTROL]`; `Where: MUNGE := |` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed, corrected. +- **W221** (m_pedit.c:173-175,203-205): `pack_key8 bad value (val 100 mask 0` has no closing parenthesis; pack_key16's message has no values + - **Trigger and outcome:** + - ng-007: `tc actions add action pedit munge ip ttl set 256 index 1` → rc 255; stderr `pack_key8 bad value (val 100 mask 0`; `bad pedit parsing`; `Bad pedit construct (ip)` (tc fails it; no kernel refusal) + - ng-008: `tc actions add action pedit munge ip dport set 65536 index 1` → rc 255; stderr `pack_key16 bad value`; `bad pedit parsing`; `Bad pedit construct (ip)` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W222** (m_pedit.c:394-397): `retain is not supported for fields longer the 32 bits` (sic), also for `eth dst preserve` and an ip6 retain + - **Trigger and outcome:** + - ng-009: `tc actions add action pedit ex munge eth dst preserve index 1` → rc 255; stderr `retain is not supported for fields longer the 32 bits`; `bad pedit parsing`; `Bad pedit construct (eth)` (tc fails it; no kernel refusal) + - ng-010: `tc actions add action pedit ex munge ip6 src set ::1 retain 0xff index 1` → rc 255; stderr `retain is not supported for fields longer the 32 bits`; `bad pedit parsing`; `Bad pedit construct (ip6)` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W223** (m_pedit.c:351-352,400-406): `invert` on eth or ip6 fields sets 0xff… (mask 0) instead of inverting: pack_mac and pack_ipv6 zero the mask + - **Trigger and outcome:** + - ec-091: `tc actions add action pedit ex munge eth dst invert index 1` → rc 0; stderr empty (sent and accepted) + - ec-092: `tc actions add action pedit ex munge ip6 dst invert index 1` → rc 0; stderr empty (sent and accepted) + - **gotc:** copies (23W). + - **Status:** confirmed (request bytes held by the 23W replay). +- **W224** (m_pedit.c:376-392): `preserve` sets retain 0, and a following `retain M` overrides it; `set V retain M` masks V silently + - **Trigger and outcome:** + - ec-093: `tc actions add action pedit munge offset 12 u32 preserve retain 0xff index 1` → rc 0; stderr `Warning: act_pedit: Unsupported pedit command offload.` (sent and accepted) + - ec-094: `tc actions add action pedit munge offset 12 u32 set 0x1234 retain 0xff index 1` → rc 0; stderr `Warning: act_pedit: Unsupported pedit command offload.` (sent and accepted) + - **gotc:** copies (23W). + - **Status:** confirmed (request bytes held by the 23W replay). +- **W225** (m_pedit.c:386): `r` after a command is retain: `ip ttl set 5 r` ends in NEXT_ARG, rc 255 + - **Trigger and outcome:** + - ng-011: `tc actions add action pedit munge ip ttl set 5 r` → rc 255; stderr `Command line is not complete. Try option "help"` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W226** (m_pedit.c:636): a bare `p` after a key is `pedit`, not pass: NEXT_ARG, rc 255 + - **Trigger and outcome:** + - ng-012: `tc actions add action pedit munge ip ttl set 5 p` → rc 255; stderr `Command line is not complete. Try option "help"` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W227** (m_pedit.c:466-489): `a` is `at`; `u` is u32 and `u1` u16 (matches() against u32 first) + - **Trigger and outcome:** + - ec-095: `tc actions add action pedit munge offset 12 u32 a 0 f 0 set 1 index 1` → rc 0; stderr `Warning: act_pedit: Unsupported pedit command offload.` (sent and accepted) + - ec-096: `tc actions add action pedit munge offset 12 u set 1 index 1` → rc 0; stderr `Warning: act_pedit: Unsupported pedit command offload.` (sent and accepted) + - ec-097: `tc actions add action pedit munge offset 12 u1 set 1 index 1` → rc 0; stderr `Warning: act_pedit: Unsupported pedit command offload.` (sent and accepted) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W228** (m_pedit.c:33-41): the usage contradicts the parser: `munge [ex]` (ex goes before munge), retain listed as a CMD, eth missing, icmp listed + - **Trigger and outcome:** + - ng-013: `tc actions add action pedit help` → rc 255; stderr `Usage: ... pedit munge [ex] [CONTROL]`; `Where: MUNGE := |`; `\t:= [ATC]` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W229** (m_pedit.c:141-145,438-440): `Munge parameters not supported` is dead code; `only 'set' command is supported` also covers decrement, while invert, clear and preserve pass without ex + - **Trigger and outcome:** + - ng-014: `tc actions add action pedit munge ip ttl add 1 index 1` → rc 255; stderr `Non extended mode. only 'set' command is supported`; `bad pedit parsing`; `Bad pedit construct (ip)` (tc fails it; no kernel refusal) + - ng-015: `tc actions add action pedit munge ip ttl decrement index 1` → rc 255; stderr `Non extended mode. only 'set' command is supported`; `bad pedit parsing`; `Bad pedit construct (ip)` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W230** (m_pedit.c:59-66,73-114): an unknown kind prints `Unknown action hence option "bar" is unparsable` (two spaces; it names the next word), then bad pedit parsing and `Bad pedit construct (foo)`; at the end of the line, NEXT_ARG + - **Trigger and outcome:** + - ng-016: `tc actions add action pedit munge foo bar index 1` → rc 255; stderr `Unknown action hence option "bar" is unparsable`; `bad pedit parsing`; `Bad pedit construct (foo)` (tc fails it; no kernel refusal) + - ng-017: `tc actions add action pedit munge foo` → rc 255; stderr `Command line is not complete. Try option "help"` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W231** (m_pedit.c:535-538): a kind of 16 or more bytes leaves `k[16]` unterminated and reads past it into the dlopen name; the output is the unknown-kind output, naming the whole word + - **Trigger and outcome:** + - ng-018: `tc actions add action pedit munge abcdefghijklmnopq bar index 1` → rc 255; stderr `Unknown action hence option "bar" is unparsable`; `bad pedit parsing`; `Bad pedit construct (abcdefghijklmnopq)` (tc fails it; no kernel refusal) + - **gotc:** copies (23W): no kind of 16 bytes or more exists, so gotc gives the unknown-kind output tc gives. + - **Status:** confirmed (output deterministic). +- **W232** (ll_addr.c via m_pedit.c:318): eth MACs: exactly six groups; trailing junk after the sixth is accepted; a dotted quad or a short MAC is refused; the colon NULs persist in a batch line (line 2's simple shows `th\0dst\0set\002\000…`) + - **Trigger and outcome:** + - ec-098: `tc actions add action pedit ex munge eth dst set 02:00:00:00:00:01junk index 1` → rc 0; stderr empty (sent and accepted) + - ec-255: `tc -batch b.txt with b.txt: actions add action pedit ex munge eth dst set 02:00:00:00:00:01 index 1 / actions add action simple sdata x` → rc 0; stderr empty (sent and accepted) + - ng-019: `tc actions add action pedit ex munge eth dst set aa index 1` → rc 255; stderr `bad pedit parsing`; `Bad pedit construct (eth)`; `Usage: ... pedit munge [ex] [CONTROL]` (tc fails it; no kernel refusal) + - ng-020: `tc actions add action pedit ex munge eth dst set 1.2.3.4 index 1` → rc 255; stderr `bad pedit parsing`; `Bad pedit construct (eth)`; `Usage: ... pedit munge [ex] [CONTROL]` (tc fails it; no kernel refusal) + - also ng-021, ng-022 + - **gotc:** copies (23W). + - **Status:** confirmed; partly fixed at HEAD (5faf18f672c1). +- **W233** (m_pedit.c:298-301): `ip src` drops a prefix length (`10.0.0.1/8`), takes legacy IPv4 (`010.1` is 8.1.0.0) and any/all/default as 0.0.0.0 + - **Trigger and outcome:** + - ec-099: `tc actions add action pedit munge ip src set 10.0.0.1/8 index 1` → rc 0; stderr `Warning: act_pedit: Unsupported pedit command offload.` (sent and accepted) + - ec-100: `tc actions add action pedit munge ip src set 010.1 index 1` → rc 0; stderr `Warning: act_pedit: Unsupported pedit command offload.` (sent and accepted) + - ec-101: `tc actions add action pedit munge ip dst set any index 1` → rc 0; stderr `Warning: act_pedit: Unsupported pedit command offload.` (sent and accepted) + - **gotc:** copies (23W). + - **Status:** confirmed (request bytes held by the 23W replay). +- **W234** (m_pedit.c:308-311): `ip6 src any` sets :: (bytelen 0, val stays zero); `/64` is dropped + - **Trigger and outcome:** + - ec-102: `tc actions add action pedit ex munge ip6 src set any index 1` → rc 0; stderr empty (sent and accepted) + - ec-103: `tc actions add action pedit ex munge ip6 src set 2001:db8::1/64 index 1` → rc 0; stderr empty (sent and accepted) + - **gotc:** copies (23W). + - **Status:** confirmed (request bytes held by the 23W replay). +- **W235** (m_pedit.c:456): the offset is get_integer, base 0 and signed: `-4` passes the alignment check and is sent as 0xfffffffc; the kernel accepts it + - **Trigger and outcome:** + - ec-104: `tc actions add action pedit munge offset -4 u32 set 1 index 1` → rc 0; stderr `Warning: act_pedit: Unsupported pedit command offload.` (sent and accepted) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W236** (p_ip.c:139-143): `icmp_code` edits the type byte: offset 20, the same as icmp_type + - **Trigger and outcome:** + - ec-105: `tc actions add action pedit munge ip icmp_code set 3 index 1` → rc 0; stderr `Warning: act_pedit: Unsupported pedit command offload.` (sent and accepted) + - **gotc:** copies (23W). + - **Status:** confirmed (request bytes held by the 23W replay). +- **W237** (p_ip.c:51,76): `d` is dsfield and `p` precedence (both offset 1, the tos byte) + - **Trigger and outcome:** + - ec-106: `tc actions add action pedit munge ip d set 1 index 1` → rc 0; stderr `Warning: act_pedit: Unsupported pedit command offload.` (sent and accepted) + - ec-107: `tc actions add action pedit munge ip p set 1 index 1` → rc 0; stderr `Warning: act_pedit: Unsupported pedit command offload.` (sent and accepted) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W238** (p_ip6.c:51): flow_lbl's retain is 0x7ffff (19 bits), so bit 19 of the 20-bit label can't be set + - **Trigger and outcome:** + - ec-108: `tc actions add action pedit ex munge ip6 flow_lbl set 0xfffff index 1` → rc 0; stderr empty (sent and accepted) + - **gotc:** copies (23W). + - **Status:** confirmed (request bytes held by the 23W replay). +- **W239** (p_icmp.c:25): `icmp` always fails (its parser returns -1), though the usage and man page list it + - **Trigger and outcome:** + - ng-023: `tc actions add action pedit munge icmp type set 1 index 1` → rc 255; stderr `bad pedit parsing`; `Bad pedit construct (icmp)`; `Usage: ... pedit munge [ex] [CONTROL]` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W240** (p_ip6/tcp/udp/eth.c:31; p_ip.c:115-119): without `ex`, ip6, tcp, udp and eth fail with only `bad pedit parsing`; with `ex`, `ip sport`, `ip dport` and icmp_* fail the same way + - **Trigger and outcome:** + - ng-024: `tc actions add action pedit munge ip6 src set ::1 index 1` → rc 255; stderr `bad pedit parsing`; `Bad pedit construct (ip6)`; `Usage: ... pedit munge [ex] [CONTROL]` (tc fails it; no kernel refusal) + - ng-025: `tc actions add action pedit munge tcp dport set 80 index 1` → rc 255; stderr `bad pedit parsing`; `Bad pedit construct (tcp)`; `Usage: ... pedit munge [ex] [CONTROL]` (tc fails it; no kernel refusal) + - ng-026: `tc actions add action pedit munge udp sport set 53 index 1` → rc 255; stderr `bad pedit parsing`; `Bad pedit construct (udp)`; `Usage: ... pedit munge [ex] [CONTROL]` (tc fails it; no kernel refusal) + - ng-027: `tc actions add action pedit munge eth type set 0x800 index 1` → rc 255; stderr `bad pedit parsing`; `Bad pedit construct (eth)`; `Usage: ... pedit munge [ex] [CONTROL]` (tc fails it; no kernel refusal) + - also ng-028, ng-029 + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W241** (m_pedit.c:640-646): `ok>1` counts `pedit` words too: `pedit pedit ex munge` prints `'ex' must be before first 'munge'` + - **Trigger and outcome:** + - ng-030: `tc actions add action pedit pedit ex munge ip ttl set 1 index 1` → rc 255; stderr `'ex' must be before first 'munge'`; `Usage: ... pedit munge [ex] [CONTROL]`; `Where: MUNGE := |` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W242** (m_pedit.c:633-681): `pedit pipe` sends nkeys 0 (with ex, an empty KEYS_EX): the kernel refuses a create (`Pedit requires keys to be passed`) but binds an existing index (K86) + - **Trigger and outcome:** + - ec-235: `tc filter add dev d0 egress pref 1 protocol all handle 1 matchall action pedit index 1` → rc 0; stderr empty (sent and accepted) + - ng-031: `tc actions add action pedit pipe index 1` → rc 255; stderr `Error: act_pedit: Pedit requires keys to be passed.`; `We have an error talking to the kernel` (sent; the kernel refuses) + - ng-032: `tc actions add action pedit ex pipe index 1` → rc 255; stderr `Error: act_pedit: Pedit requires keys to be passed.`; `We have an error talking to the kernel` (sent; the kernel refuses) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W243** (m_pedit.c:681-693): index after control: `… set 1 index 5 pipe` leaves `pipe` for m_action.c, which adds a second (gact) action + - **Trigger and outcome:** + - ec-109: `tc actions add action pedit munge ip ttl set 1 index 5 pipe` → rc 0; stderr `Warning: act_pedit: Unsupported pedit command offload.` (sent and accepted) + - **gotc:** copies (23W). + - **Status:** confirmed (request bytes held by the 23W replay). +- **W244** (m_pedit.c:681): `goto chain x` is reported twice (`Illegal "chain index"`), then gact's usage + - **Trigger and outcome:** + - ng-033: `tc actions add action pedit munge ip ttl set 1 goto chain x index 1` → rc 255; stderr `Illegal "chain index"`; `Illegal "chain index"`; `Usage: ... gact [RAND] [INDEX]` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W245** (m_pedit.c:670-672): an unknown word after a key becomes the next action kind: `Bad action type foo` and gact's usage + - **Trigger and outcome:** + - ng-034: `tc actions add action pedit munge ip ttl set 1 foo index 1` → rc 255; stderr `Bad action type foo`; `Usage: ... gact [RAND] [INDEX]`; `Where: \tACTION := reclassify | drop | continue | pass | pipe |` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W246** (m_pedit.c:52,653; NEXT_ARG sites): `help` and every NEXT_ARG site exit(-1); a bare `ip src` returns -1 (argc < 2) + - **Trigger and outcome:** + - ng-035: `tc actions add action pedit munge ip src` → rc 255; stderr `bad pedit parsing`; `Bad pedit construct (ip)`; `Usage: ... pedit munge [ex] [CONTROL]` (tc fails it; no kernel refusal) + - ng-036: `tc actions add action pedit munge ip src set` → rc 255; stderr `Command line is not complete. Try option "help"` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W247** (m_pedit.c:686): index is base 10: `index 0x5` prints `Pedit: Illegal "index"` + - **Trigger and outcome:** + - ng-037: `tc actions add action pedit munge ip ttl set 1 index 0x5` → rc 255; stderr `Pedit: Illegal "index"`; `bad action parsing`; `parse_action: bad value (8:pedit)!` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W248** (m_pedit.c:697-705): addattr results are ignored: three 128-key ex actions pass 16384, `addattr_l ERROR` is printed and the rest is sent; the kernel refuses with `Not enough extended keys to parse` + - **Trigger and outcome:** + - ec-238: `tc filter add dev d0 egress pref 1 protocol all handle 1 matchall action pedit ex munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge of … (6497 bytes)` → rc 0; stderr empty (sent and accepted) + - ng-157: `tc actions add action pedit ex munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge off … (9686 bytes)` → rc 255; stderr `addattr_l ERROR: message exceeded bound of 16384`; `Error: act_pedit: Not enough extended keys to parse.`; `We have an error talking to the kernel` (sent; the kernel refuses) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W249** (m_pedit.c:153-165): an ex `add` on ip6 or eth sends independent 32- and 16-bit ADD keys, with no carry between them + - **Trigger and outcome:** + - ec-110: `tc actions add action pedit ex munge ip6 src add ::1 index 1` → rc 0; stderr empty (sent and accepted) + - ec-111: `tc actions add action pedit ex munge eth dst add 00:00:00:00:00:01 index 1` → rc 0; stderr empty (sent and accepted) + - **gotc:** copies (23W). + - **Status:** confirmed (request bytes held by the 23W replay). + +#### tunnel_key: W250–W266 + +- **W250** (m_tunnel_key.c:45,357-370; utils.c:738): `src_ip bogus` is get_addr's `Error: any valid address is expected rather than "bogus".` and exit(1), which also ends a `-force` batch; `Illegal "src_ip"` can't be reached + - **Trigger and outcome:** + - ng-045: `tc actions add action tunnel_key set src_ip bogus dst_ip 10.0.0.2 id 1 index 1` → rc 1; stderr `Error: any valid address is expected rather than "bogus".` (tc fails it; no kernel refusal) + - ng-159: `tc -force -batch b.txt with b.txt: actions add action tunnel_key set src_ip bogus dst_ip 10.0.0.2 id 1 index 1 / actions add action gact pass index 2` → rc 1; stderr `Error: any valid address is expected rather than "bogus".` (ack-then-fail) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W251** (m_tunnel_key.c:49-50; utils.c:578): `src_ip any` (or default) is AF_UNSPEC with bytelen 0: a 0-byte IPV6_SRC, ERANGE with `Failed to parse nested tunnel key attributes` (K81) + - **Trigger and outcome:** + - ng-046: `tc actions add action tunnel_key set src_ip any dst_ip 10.0.0.2 id 1 index 1` → rc 255; stderr `Error: Failed to parse nested tunnel key attributes.`; `We have an error talking to the kernel` (sent; the kernel refuses) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W252** (m_tunnel_key.c:49): a v4 src with a v6 dst is sent; the kernel refuses `Missing either ipv4 or ipv6 src and dst` + - **Trigger and outcome:** + - ng-047: `tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 2001:db8::2 id 1 index 1` → rc 255; stderr `Error: Missing either ipv4 or ipv6 src and dst.`; `We have an error talking to the kernel` (sent; the kernel refuses) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W253** (m_tunnel_key.c:321,459-466): no set or unset word sends t_action 0: `Unknown tunnel key action` + - **Trigger and outcome:** + - ng-048: `tc actions add action tunnel_key src_ip 10.0.0.1 dst_ip 10.0.0.2 id 1 index 1` → rc 255; stderr `Error: Unknown tunnel key action.`; `We have an error talking to the kernel` (sent; the kernel refuses) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W254** (m_tunnel_key.c:327-332): `tunnel_key` alone ends in NEXT_ARG + - **Trigger and outcome:** + - ng-049: `tc actions add action tunnel_key` → rc 255; stderr `Command line is not complete. Try option "help"` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W255** (m_tunnel_key.c:335-431): prefixes: `s` is set, `d` dst_ip, `i` id, `t` tos, `n` nocsum (matches() order); `nofrag` is a strcmp + - **Trigger and outcome:** + - ec-126: `tc actions add action tunnel_key s src_ip 10.0.0.1 d 10.0.0.2 i 7 t 1 n index 1` → rc 0; stderr empty (sent and accepted) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W256** (m_tunnel_key.c:61,73,450): id, dst_port and index are base 10; the port's message is `Illegal "dst port"` (with a space) + - **Trigger and outcome:** + - ng-050: `tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 0x7 index 1` → rc 255; stderr `Illegal "id"`; `bad action parsing`; `parse_action: bad value (10:tunnel_key)!` (tc fails it; no kernel refusal) + - ng-051: `tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 dst_port 0x12b5 index 1` → rc 255; stderr `Illegal "dst port"`; `bad action parsing`; `parse_action: bad value (12:tunnel_key)!` (tc fails it; no kernel refusal) + - ng-052: `tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 index 0x1` → rc 255; stderr `tunnel_key: Illegal "index"`; `bad action parsing`; `parse_action: bad value (10:tunnel_key)!` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W257** (m_tunnel_key.c:303-305): tos and ttl are tried in base 10, then base 16: `tos 1a` is 26, but `ttl 010` is 10 + - **Trigger and outcome:** + - ec-127: `tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 tos 1a ttl 010 index 1` → rc 0; stderr empty (sent and accepted) + - **gotc:** copies (23W). + - **Status:** confirmed (request bytes held by the 23W replay). +- **W258** (m_tunnel_key.c:150-190): geneve's strtok_r merges empty fields, so `0102::01020304` shifts DATA into TYPE and fails; a missing DATA is refused by the kernel (`Missing tunnel key geneve option class, type or data`) + - **Trigger and outcome:** + - ng-053: `tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts 0102::01020304 index 1` → rc 255; stderr `Illegal "geneve_opts"`; `bad action parsing`; `parse_action: bad value (12:tunnel_key)!` (tc fails it; no kernel refusal) + - ng-054: `tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts 0102:80 index 1` → rc 255; stderr `Error: Missing tunnel key geneve option class, type or data.`; `We have an error talking to the kernel` (sent; the kernel refuses) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W259** (m_tunnel_key.c:170-180; utils.c:1216): geneve DATA is len/2 bytes: an odd last nibble is dropped unchecked and 1 char gives 0 bytes; the kernel refuses under 4 bytes (`less than 4 bytes long`, ERANGE) for both + - **Trigger and outcome:** + - ec-128: `tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts 0102:80:00112233 index 1` → rc 0; stderr empty (sent and accepted) + - ng-055: `tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts 0102:80:0 index 1` → rc 255; stderr `Error: Tunnel key geneve option data is less than 4 bytes long.`; `We have an error talking to the kernel` (sent; the kernel refuses) + - ng-056: `tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts 0102:80:0011223 index 1` → rc 255; stderr `Error: Tunnel key geneve option data is less than 4 bytes long.`; `We have an error talking to the kernel` (sent; the kernel refuses) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W260** (m_tunnel_key.c:204-213): `geneve_opts ''` sends an empty ENC_OPTS: `Empty list of tunnel options` + - **Trigger and outcome:** + - ng-058: `tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts '' index 1` → rc 255; stderr `Error: Empty list of tunnel options.`; `We have an error talking to the kernel` (sent; the kernel refuses) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W261** (m_tunnel_key.c:252-289): erspan's fields shift the same way: `2::1:16` is ver 2, index 1, dir 16, no hwid: `Missing tunnel key erspan option dir or hwid` + - **Trigger and outcome:** + - ng-057: `tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 erspan_opts 2::1:16 index 1` → rc 255; stderr `Error: Missing tunnel key erspan option dir or hwid.`; `We have an error talking to the kernel` (sent; the kernel refuses) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W262** (m_tunnel_key.c:391-405): two option kinds send two ENC_OPTS nests; the kernel accepts it and keeps the last + - **Trigger and outcome:** + - ec-129: `tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts 0102:80:00880022 vxlan_opts 4660 index 1` → rc 0; stderr empty (sent and accepted) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W263** (m_tunnel_key.c:439): NO_CSUM is always sent, even for unset; unset also sends the addresses, which the kernel accepts + - **Trigger and outcome:** + - ec-130: `tc actions add action tunnel_key unset src_ip 10.0.0.1 dst_ip 10.0.0.2 nocsum index 1` → rc 0; stderr empty (sent and accepted) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W264** (m_tunnel_key.c:444-457): index then control: `unset index 5 pipe` adds a second (gact) action + - **Trigger and outcome:** + - ec-131: `tc actions add action tunnel_key unset index 5 pipe` → rc 0; stderr empty (sent and accepted) + - **gotc:** copies (23W). + - **Status:** confirmed (request bytes held by the 23W replay). +- **W265** (m_tunnel_key.c:150-288): strtok_r writes NULs into argv, which persist in a batch line: line 2's simple shows `e_opts\0` `0102\080\000880022\00103\0` + - **Trigger and outcome:** + - ec-256: `tc -batch b.txt with b.txt: actions add action tunnel_key geneve_opts 0102:80:00880022,0103:81:00a000b0 set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 1 index 1 / actions add action simple sdata x` → rc 0; stderr empty (sent and accepted) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W266** (m_tunnel_key.c:18-31,321-339): the usage omits tos, ttl, index and CONTROL; a second set/unset prints `unexpected "set" - action already specified` + - **Trigger and outcome:** + - ng-059: `tc actions add action tunnel_key set set src_ip 10.0.0.1 dst_ip 10.0.0.2 index 1` → rc 255; stderr `unexpected "set" - action already specified`; `Usage: tunnel_key unset`; ` tunnel_key set ` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. + +#### ife: W267–W275 + +- **W267** (m_ife.c:150-163): `ife index 5` counts as ok and sends flags 0 (decode) with no METALST; accepted while a meta module is loaded, EINVAL with no extack otherwise (K79). *Corrected:* the sweep predicted EINVAL + - **Trigger and outcome:** + - ec-138: `tc actions add action ife index 5` → rc 0; stderr empty (sent and accepted) + - **gotc:** copies (23W). + - **Status:** confirmed, corrected. +- **W268** (m_ife.c:163-166): `ife pipe` prints `IFE requires decode/encode specified`, the usage, exit(-1), which ends a `-force` batch; every invarg exits too + - **Trigger and outcome:** + - ng-066: `tc actions add action ife pipe` → rc 255; stderr `IFE requires decode/encode specified`; `Usage:... ife {decode|encode} [{ALLOW|USE} ATTR] [dst DMAC] [src SMAC] [type TYPE] [CONTROL] [index INDEX]`; `\tALLOW := Encode direction. Allows encoding specified metadata` (tc fails it; no kernel refusal) + - ng-158: `tc -force -batch b.txt with b.txt: actions add action ife pipe / actions add action gact pass index 2` → rc 255; stderr `IFE requires decode/encode specified`; `Usage:... ife {decode|encode} [{ALLOW|USE} ATTR] [dst DMAC] [src SMAC] [type TYPE] [CONTROL] [index INDEX]`; `\tALLOW := Encode direction. Allows encoding specified metadata` (ack-then-fail) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W269** (m_ife.c:73-75): the kind-word loop eats `ife` and `i`; at the end of the line, NEXT_ARG + - **Trigger and outcome:** + - ec-139: `tc actions add action ife ife i decode index 1` → rc 0; stderr empty (sent and accepted) + - ng-067: `tc actions add action ife decode ife` → rc 255; stderr `Command line is not complete. Try option "help"` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W270** (m_ife.c:76-80,119,129): `d` is decode (so dst needs `ds`), `e` encode, `a` allow, `t` type; the last of decode/encode wins + - **Trigger and outcome:** + - ec-140: `tc actions add action ife e a mark ds 02:00:00:00:00:01 t 0x1234 index 1` → rc 0; stderr `dst MAC address <02:00:00:00:00:01>`; `IFE type 0x1234` (sent and accepted) + - ec-141: `tc actions add action ife encode decode index 1` → rc 0; stderr empty (sent and accepted) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W271** (m_ife.c:184-202): `use mark 0` sends nothing for mark; use overrides allow; METALST is always mark, prio, tcindex in that order + - **Trigger and outcome:** + - ec-142: `tc actions add action ife encode use mark 0 index 1` → rc 0; stderr `IFE type 0xED3E` (sent and accepted) + - ec-143: `tc actions add action ife encode use tcindex 1 use mark 2 allow prio index 1` → rc 0; stderr `IFE type 0xED3E` (sent and accepted) + - ec-144: `tc actions add action ife encode allow mark use mark 9 index 1` → rc 0; stderr `IFE type 0xED3E` (sent and accepted) + - **gotc:** copies (23W). + - **Status:** confirmed (request bytes held by the 23W replay). +- **W272** (m_ife.c:97-153): mark, prio, tcindex, type and index are base 0 (`use mark 010` is 8; `index 0x5` is 5) + - **Trigger and outcome:** + - ec-145: `tc actions add action ife encode use mark 010 index 0x5` → rc 0; stderr `IFE type 0xED3E` (sent and accepted) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W273** (m_ife.c:171-172): decode silently drops dst, src, type and allow/use (but still prints `dst MAC address <…>` and `IFE type`) + - **Trigger and outcome:** + - ec-146: `tc actions add action ife decode dst 02:00:00:00:00:01 type 0x1234 allow mark index 1` → rc 0; stderr `dst MAC address <02:00:00:00:00:01>`; `IFE type 0x1234` (sent and accepted) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W274** (m_ife.c:168,177): the nest opens after parsing; TYPE is a host-order u16 (0xED3E is sent 3e ed); encode always sends METALST + - **Trigger and outcome:** + - ec-132: `tc actions add action ife encode type 0xED3E dst 02:00:00:00:00:01 src 02:00:00:00:00:02 use mark 7 index 1` → rc 0; stderr `IFE type 0xED3E`; `dst MAC address <02:00:00:00:00:01>`; `src MAC address <02:00:00:00:00:02>` (sent and accepted) + - **gotc:** copies (23W). + - **Status:** confirmed (request bytes held by the 23W replay). +- **W275** (m_ife.c:53): tc_ife's 2 bytes of tail padding are zeroed by `= { 0 }`; gotc pins zeros + - **Trigger and outcome:** + - ec-133: `tc actions add action ife encode allow mark allow prio allow tcindex index 1` → rc 0; stderr `IFE type 0xED3E` (sent and accepted) + - **gotc:** copies (23W). + - **Status:** confirmed (request bytes held by the 23W replay). + +#### ct: W276–W292 + +- **W276** (m_ct.c:274): `ct commit nat src addr 1.1.1.1` as the last words ends in NEXT_ARG: something must follow the range + - **Trigger and outcome:** + - ng-077: `tc actions add action ct commit nat src addr 1.1.1.1` → rc 255; stderr `Command line is not complete. Try option "help"` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W277** (m_ct.c:255): `ct nat` as the last word ends in NEXT_ARG, though the usage shows `[nat]` + - **Trigger and outcome:** + - ng-078: `tc actions add action ct nat` → rc 255; stderr `Command line is not complete. Try option "help"` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W278** (m_ct.c:263-265): `nat src foo` prints the usage and exits + - **Trigger and outcome:** + - ng-079: `tc actions add action ct commit nat src foo index 1` → rc 255; stderr `Usage: ct clear`; `\tct commit [force] [zone ZONE] [mark MASKED_MARK] [label MASKED_LABEL] [nat NAT_SPEC] [helper HELPER]`; `\tct [nat] [zone ZONE]` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W279** (m_ct.c:50,58): a bad nat address is get_addr's message and exit(1); the second address takes the first's family (`inet address is expected rather than "2001:db8::1"`); `Illegal nat address range` can't be reached + - **Trigger and outcome:** + - ng-080: `tc actions add action ct commit nat src addr bogus index 1` → rc 1; stderr `Error: any valid address is expected rather than "bogus".` (tc fails it; no kernel refusal) + - ng-081: `tc actions add action ct commit nat src addr 10.0.0.1-2001:db8::1 index 1` → rc 1; stderr `Error: inet address is expected rather than "2001:db8::1".` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W280** (m_ct.c:37-76): SPRINT_BUF(64) with strncpy 63: a 63-byte range is left unterminated and parsed past buffer[63]. On the workbench the next stack byte was NUL in every run, so the full range was sent; gotc refuses it by name + - **Trigger and outcome:** + - ec-167: `tc actions add action ct commit nat src addr 2001:0db8:0000:0000:0000:0000:0000:0001-2001:0db8:0000:0000::9 index 1` → rc 0; stderr empty (sent and accepted) + - ec-168: `tc actions add action ct commit nat src addr 2001:0db8:0000:0000:0000:0000:0000:0001-2001:0db8:0000:0000::09 index 1` → rc 0; stderr empty (sent and accepted) + - **gotc:** refuses by name (23W): `ct nat argument of N bytes: tc reads past its unterminated 63-byte copy (W280)`. + - **Status:** confirmed (stack byte NUL in 3 runs). +- **W281** (m_ct.c:53-64): `addr any` sends a 0-byte IPV6_MIN/MAX: ERANGE `binary attribute size out of range` (K82); with no second address, MAX repeats MIN + - **Trigger and outcome:** + - ec-169: `tc actions add action ct commit nat src addr 10.0.0.1 index 1` → rc 0; stderr empty (sent and accepted) + - ng-082: `tc actions add action ct commit nat src addr any index 1` → rc 255; stderr `Error: binary attribute size out of range.`; `We have an error talking to the kernel` (sent; the kernel refuses) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W282** (m_ct.c:85-95): ports are base 10; `80-` prints `ct: Illegal nat port range`; min ≤ max is unchecked (2000-1000 is accepted) + - **Trigger and outcome:** + - ec-170: `tc actions add action ct commit nat src addr 10.0.0.1 port 2000-1000 index 1` → rc 0; stderr empty (sent and accepted) + - ng-083: `tc actions add action ct commit nat src addr 10.0.0.1 port 80- index 1` → rc 255; stderr `ct: Illegal nat port range`; `bad action parsing`; `parse_action: bad value (10:ct)!` (tc fails it; no kernel refusal) + - ng-084: `tc actions add action ct commit nat src addr 10.0.0.1 port 0x50 index 1` → rc 255; stderr `ct: Illegal nat port range`; `bad action parsing`; `parse_action: bad value (10:ct)!` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W283** (m_ct.c:167-183): helper `%[^-]` keeps 3 fields: `ipv4-udp-netbios-ns` sends `netbios`, which the kernel can't find (`act_ct: Failed to add helper`); a 22-byte name passes tc's 32 and fails the kernel's 16 (ERANGE, K83) + - **Trigger and outcome:** + - ng-085: `tc actions add action ct commit helper ipv4-udp-netbios-ns index 1` → rc 255; stderr `Error: act_ct: Failed to add helper.`; `We have an error talking to the kernel` (sent; the kernel refuses) + - ng-086: `tc actions add action ct commit helper ipv4-tcp-abcdefghijklmnopqrstuv index 1` → rc 255; stderr `Error: Attribute failed policy validation.`; `We have an error talking to the kernel` (sent; the kernel refuses) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W284** (m_ct.c:177; inet_proto.c:42): proto is base 10, then getprotobyname: `6` works, `0x6` is `ct: Illegal "helper"` + - **Trigger and outcome:** + - ec-171: `tc actions add action ct commit helper ipv4-6-ftp index 1` → rc 0; stderr `Warning: act_api: Failed to setup tc actions for offload.` (sent and accepted) + - ng-087: `tc actions add action ct commit helper ipv4-0x6-ftp index 1` → rc 255; stderr `ct: Illegal "helper"`; `bad action parsing`; `parse_action: bad value (6:ct)!` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W285** (m_ct.c:201-212): the too-long message names the label even when the mask is too long (`argument "01" is wrong: 2 Max allowed size 32`) + - **Trigger and outcome:** + - ec-166: `tc actions add action ct commit label 0123456789abcdef0123456789abcdef index 1` → rc 0; stderr empty (sent and accepted) + - ng-088: `tc actions add action ct commit label 0123456789abcdef0123456789abcdef01 index 1` → rc 255; stderr `Error: argument "0123456789abcdef0123456789abcdef01" is wrong: 34 Max allowed size 32` (tc fails it; no kernel refusal) + - ng-089: `tc actions add action ct commit label 01/0123456789abcdef0123456789abcdef01 index 1` → rc 255; stderr `Error: argument "01" is wrong: 2 Max allowed size 32` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W286** (m_ct.c:211-217): the hex invarg messages embed `\n`, so they end with a blank line + - **Trigger and outcome:** + - ng-090: `tc actions add action ct commit label zz index 1` → rc 255; stderr `Error: argument "zz" is wrong: ct: labels must be a hex string` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W287** (m_ct.c:211-222): odd lengths aren't refused: `00g` sends 1 byte, `0` sends 0 bytes, and the default mask is 16 bytes of 0xff + - **Trigger and outcome:** + - ec-172: `tc actions add action ct commit label 00g index 1` → rc 0; stderr empty (sent and accepted) + - ec-173: `tc actions add action ct commit label 0 index 1` → rc 0; stderr empty (sent and accepted) + - **gotc:** copies (23W). + - **Status:** confirmed (request bytes held by the 23W replay). +- **W288** (m_ct.c:290-295,353): index is parsed only inside the loop: in `ct commit pipe index 5` the word `index` becomes a second action kind, sent, and refused `Failed to load TC action module` (ENOENT). *Corrected:* the sweep said tc refuses it + - **Trigger and outcome:** + - ng-091: `tc actions add action ct commit pipe index 5` → rc 255; stderr `Error: Failed to load TC action module.`; `We have an error talking to the kernel` (sent; the kernel refuses) + - **gotc:** copies (23W). + - **Status:** confirmed, corrected. +- **W289** (m_ct.c:328-332): `ct clear zone 5 mark 1` is sent and accepted (clear returns early); `force` without commit passes + - **Trigger and outcome:** + - ec-174: `tc actions add action ct clear zone 5 mark 1 index 1` → rc 0; stderr empty (sent and accepted) + - ec-175: `tc actions add action ct force index 1` → rc 0; stderr empty (sent and accepted) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W290** (m_ct.c:107-111): zone's slash split is dead (mask_type UNSPEC): `zone 5/1` is `ct: Illegal "zone"`; zone and mark are base 0 + - **Trigger and outcome:** + - ec-176: `tc actions add action ct zone 010 index 1` → rc 0; stderr empty (sent and accepted) + - ng-092: `tc actions add action ct zone 5/1 index 1` → rc 255; stderr `ct: Illegal "zone"`; `bad action parsing`; `parse_action: bad value (5:ct)!` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W291** (m_ct.c:138,196): the NULs written at `/` for mark and label persist in a batch line: line 2's simple shows `x1\00xff\0label\001\0ff` + - **Trigger and outcome:** + - ec-257: `tc -batch b.txt with b.txt: actions add action ct commit mark 0x1/0xff label 01/ff index 1 / actions add action simple sdata x` → rc 0; stderr empty (sent and accepted) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W292** (m_ct.c:240-321): prefixes: `c` is clear, `co` commit, `z` zone, `m` mark, `h`/`hel` help (exits) + - **Trigger and outcome:** + - ec-177: `tc actions add action ct co z 5 m 1 index 1` → rc 0; stderr empty (sent and accepted) + - ec-178: `tc actions add action ct c index 1` → rc 0; stderr empty (sent and accepted) + - ng-093: `tc actions add action ct h` → rc 255; stderr `Usage: ct clear`; `\tct commit [force] [zone ZONE] [mark MASKED_MARK] [label MASKED_LABEL] [nat NAT_SPEC] [helper HELPER]`; `\tct [nat] [zone ZONE]` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. + +#### gate: W293–W306 + +- **W293** (m_gate.c:110): each entry nest is bounded by 1024 against the whole message: the 31st open entry gets `addattr_l ERROR: … bound of 1024`, its header is dropped and addattr_nest_end rewrites the first child's length to cover the entry; the kernel warns `Attribute isn't type 'entry'`, skips it and returns 0 with a shorter schedule (K80) + - **Trigger and outcome:** + - ec-196: `tc actions add action gate sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open … (874 bytes)` → rc 0; stderr empty (sent and accepted) + - ec-197: `tc actions add action gate sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open … (902 bytes)` → rc 0; stderr `addattr_l ERROR: message exceeded bound of 1024`; `Warning: Attribute isn't type 'entry'.` (sent and accepted) + - ec-198: `tc actions add action gate sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open … (1154 bytes)` → rc 0; stderr `addattr_l ERROR: message exceeded bound of 1024`; `addattr_l ERROR: message exceeded bound of 1024`; `addattr_l ERROR: message exceeded bound of 1024` (sent and accepted) + - ec-199: `tc actions add action gate sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched- … (862 bytes)` → rc 0; stderr `addattr_l ERROR: message exceeded bound of 1024`; `addattr_l ERROR: message exceeded bound of 1024`; `Warning: Attribute isn't type 'entry'.` (sent and accepted) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W294** (m_gate.c:280-290; utils_math.c:145-160): a numeric ipv followed by a word that isn't a size reads get_size's uninitialised sz64 into maxoctets_uint. The value is a stack fragment that changes per run: three runs of `sched-entry open 1ms 1 index 1` sent maxoctets 0x33874a91, 0x4c352a91 and 0x7fec5a91 (low byte fixed, as of an address), and `… 1 sched-entry close 1ms` was twice refused as `"maxoctets" is too large`, once sent as 0x365b8a7b. It sends an ASLR-derived value to the kernel, readable back with `tc actions ls`. No corpus row (not reproducible); gotc refuses it by name + - **Trigger and outcome:** no corpus row. In 23C's trial runs `tc actions add action gate sched-entry open 1ms 1 index 1` sent the maxoctets values above with rc 0, and `… 1 sched-entry close 1ms` was refused twice and sent once; gotc's refusal is pinned by TestGotcGateWrite. + - **gotc:** refuses by name (23W, unit test): `gate maxoctets "X": get_size stores an uninitialised value (W294)`. + - **Status:** confirmed (trial batches; not in the corpus). +- **W295** (m_gate.c:280-290): a fractional or suffixed maxoctets goes through get_size: `1.5` is 1 and `0kb` leaves -1. *Corrected:* the sweep said `1.5` is passed on as a kind; it is consumed, because get_size stored 1 and floor(1.5) is 1. The partial value is kept and the word read again only past 32 bits: `5G` stores the low 32 bits of 5 GiB (1 GiB) and then `Bad action type 5G` (23W unit test, TestGotcGateWrite) + - **Trigger and outcome:** + - ec-200: `tc actions add action gate sched-entry open 1ms 1 1.5 index 1` → rc 0; stderr empty (sent and accepted) + - ec-201: `tc actions add action gate sched-entry open 1ms 1 0kb index 1` → rc 0; stderr empty (sent and accepted) + - ng-103: `tc actions add action gate sched-entry open 1ms 1 2147483648 index 1` → rc 255; stderr `"maxoctets" is too large`; `bad action parsing`; `parse_action: bad value (8:gate)!` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed, corrected. +- **W296** (m_gate.c:169-280): bases: interval and the times try base 0/10 then strtod (`0x10` is 16 ns via strtod's hex); priority, flags, ipv and maxoctets are base 0; index is base 10 (`argument "0x1" is wrong: index`) + - **Trigger and outcome:** + - ec-202: `tc actions add action gate priority 0x2 sched-entry open 0x10 0x3 0x10 index 1` → rc 0; stderr empty (sent and accepted) + - ec-203: `tc actions add action gate base-time 0x10 cycle-time 1.5 sched-entry open 1000000 -1 -1 index 1` → rc 0; stderr empty (sent and accepted) + - ng-104: `tc actions add action gate sched-entry open 1000000 -1 -1 index 0x1` → rc 255; stderr `Error: argument "0x1" is wrong: index` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W297** (utils.c:1695-1730): strtod times: inf, nan and 1e30 reach `*time = nsec`, a UB cast, and are sent (x86 gives 2^63) and accepted; fractions truncate (`1.9ns` is 1); interval 0.5 is 0, refused `Invalid interval for schedule entry`. gotc refuses the UB casts by name + - **Trigger and outcome:** + - ec-204: `tc actions add action gate base-time inf sched-entry open 1000000 -1 -1 index 1` → rc 0; stderr empty (sent and accepted) + - ec-205: `tc actions add action gate base-time nan sched-entry open 1000000 -1 -1 index 1` → rc 0; stderr empty (sent and accepted) + - ec-206: `tc actions add action gate cycle-time 1e30 sched-entry open 1000000 -1 -1 index 1` → rc 0; stderr empty (sent and accepted) + - ec-207: `tc actions add action gate base-time 1.9ns sched-entry open 1000000 -1 -1 index 1` → rc 0; stderr empty (sent and accepted) + - also ng-105 + - **gotc:** refuses by name (23W): `gate time "X": tc casts V to __s64, undefined behavior (W297)`. + - **Status:** confirmed. +- **W298** (m_gate.c:181-197): `base-time -1` is get_s64 and sent as u64 max; `-1ms` fails get_time64 (negative) and invarg exits + - **Trigger and outcome:** + - ec-208: `tc actions add action gate base-time -1 sched-entry open 1000000 -1 -1 index 1` → rc 0; stderr empty (sent and accepted) + - ng-106: `tc actions add action gate base-time -1ms sched-entry open 1000000 -1 -1 index 1` → rc 255; stderr `Error: argument "-1ms" is wrong: base-time` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W299** (m_gate.c:327-347): 0 means unset: priority -1 and zero flags, base-time and cycle-time aren't sent, so a replace can't reset them + - **Trigger and outcome:** + - ec-209: `tc actions add action gate priority -1 flags 0 base-time 0 cycle-time 0 sched-entry open 1000000 -1 -1 index 1` → rc 0; stderr empty (sent and accepted) + - **gotc:** copies (23W). + - **Status:** confirmed (request bytes held by the 23W replay). +- **W300** (m_gate.c:41-57,161,230-255): a bad state, a missing interval or a bad interval prints the entry usage and `"sched-entry" is incomplete`; `pas` typo in the usage; `index` missing from the usage + - **Trigger and outcome:** + - ng-107: `tc actions add action gate sched-entry opn 1ms index 1` → rc 255; stderr `Usage: sched-entry [ ]`; `"sched-entry" is incomplete`; `bad action parsing` (tc fails it; no kernel refusal) + - ng-108: `tc actions add action gate sched-entry` → rc 255; stderr `Usage: sched-entry [ ]`; `"sched-entry" is incomplete`; `bad action parsing` (tc fails it; no kernel refusal) + - ng-109: `tc actions add action gate sched-entry open` → rc 255; stderr `Usage: sched-entry [ ]`; `"sched-entry" is incomplete`; `bad action parsing` (tc fails it; no kernel refusal) + - ng-110: `tc actions add action gate sched-entry open zz index 1` → rc 255; stderr `Usage: sched-entry [ ]`; `"sched-entry" is incomplete`; `bad action parsing` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W301** (m_gate.c:51,365): invarg and `help` exit(-1); sched-entry errors return -1 + - **Trigger and outcome:** + - ng-111: `tc actions add action gate help` → rc 255; stderr `Usage: gate [ priority PRIO-SPEC ] [ base-time BASE-TIME ]`; ` [ cycle-time CYCLE-TIME ]`; ` [ cycle-time-ext CYCLE-TIME-EXT ]` (tc fails it; no kernel refusal) + - ng-112: `tc actions add action gate priority zz sched-entry open 1ms index 1` → rc 255; stderr `Error: argument "zz" is wrong: priority` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W302** (m_gate.c:167-212): `c` is cycle-time, `p` priority, `h` help (exits) + - **Trigger and outcome:** + - ec-210: `tc actions add action gate p 2 c 2000000 sched-entry open 1000000 -1 -1 index 1` → rc 0; stderr empty (sent and accepted) + - ng-113: `tc actions add action gate h` → rc 255; stderr `Usage: gate [ priority PRIO-SPEC ] [ base-time BASE-TIME ]`; ` [ cycle-time CYCLE-TIME ]`; ` [ cycle-time-ext CYCLE-TIME-EXT ]` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W303** (m_gate.c:308-317): a control word ends the options: in `… pipe index 5` the word `index` becomes a second action kind, refused `Failed to load TC action module`; a bad `goto chain` is reported twice. *Corrected:* the sweep said tc refuses it + - **Trigger and outcome:** + - ng-114: `tc actions add action gate sched-entry open 1000000 -1 -1 pipe index 5` → rc 255; stderr `Error: Failed to load TC action module.`; `We have an error talking to the kernel` (sent; the kernel refuses) + - ng-115: `tc actions add action gate sched-entry open 1000000 -1 -1 goto chain x` → rc 255; stderr `Illegal "chain index"`; `Illegal "chain index"`; `Usage: ... gact [RAND] [INDEX]` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed, corrected. +- **W304** (m_gate.c:272,292): a closed entry's ipv and maxoctets are forced to -1 silently + - **Trigger and outcome:** + - ec-211: `tc actions add action gate sched-entry close 1000000 3 8000 index 1` → rc 0; stderr empty (sent and accepted) + - **gotc:** copies (23W). + - **Status:** confirmed (request bytes held by the 23W replay). +- **W305** (m_gate.c:319,349): `gate index 5` sends an empty ENTRY_LIST: `The entry list is empty` on create, accepted on bind + - **Trigger and outcome:** + - ec-236: `tc filter add dev d0 egress pref 1 protocol all handle 1 matchall action gate index 1` → rc 0; stderr empty (sent and accepted) + - ng-116: `tc actions add action gate index 5` → rc 255; stderr `Error: The entry list is empty.`; `We have an error talking to the kernel` (sent; the kernel refuses) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W306** (m_gate.c loop): no check of the entry count, cycle-time against the intervals, or repeats: `cycle-time 1000` with two 1 ms entries is accepted + - **Trigger and outcome:** + - ec-212: `tc actions add action gate cycle-time 1000 sched-entry open 1000000 -1 -1 sched-entry open 1000000 -1 -1 index 1` → rc 0; stderr empty (sent and accepted) + - **gotc:** copies (23W). + - **Status:** confirmed. + +#### bpf action and filter: W307–W320 + +- **W307** (m_bpf.c:56; f_bpf.c:58): the 16384 bound: 2038 instructions fit; from 2039 PARMS no longer fits and from 2042 OPS no longer fits, each with `addattr_l ERROR` and EINVAL with no extack (K84); past 4096 is refused with no message. *Corrected:* the sweep put the edge at 2040/2041 + - **Trigger and outcome:** + - ec-222: `tc actions add action bpf bytecode-file bpf.txt index 1` → rc 0; stderr empty (sent and accepted) + - ng-120: `tc actions add action bpf bytecode-file bpf.txt index 1` → rc 255; stderr `addattr_l ERROR: message exceeded bound of 16384`; `RTNETLINK answers: Invalid argument`; `We have an error talking to the kernel` (sent; the kernel refuses) + - ng-121: `tc actions add action bpf bytecode-file bpf.txt index 1` → rc 255; stderr `addattr_l ERROR: message exceeded bound of 16384`; `RTNETLINK answers: Invalid argument`; `We have an error talking to the kernel` (sent; the kernel refuses) + - ng-122: `tc actions add action bpf bytecode-file bpf.txt index 1` → rc 255; stderr `addattr_l ERROR: message exceeded bound of 16384`; `RTNETLINK answers: Invalid argument`; `We have an error talking to the kernel` (sent; the kernel refuses) + - also ng-123 + - **gotc:** copies (23W). + - **Status:** confirmed, corrected. +- **W308** (bpf_legacy.c:284-310): the header is `%hu%c`: `65537,` wraps to 1; `4 ,` and `0,` fail with no message of their own + - **Trigger and outcome:** + - ec-223: `tc actions add action bpf bytecode '65537,6 0 0 0' index 1` → rc 0; stderr empty (sent and accepted) + - ng-124: `tc actions add action bpf bytecode '4 ,6 0 0 0' index 1` → rc 255; stderr `bad action parsing`; `parse_action: bad value (5:bpf)!`; `Illegal "action"` (tc fails it; no kernel refusal) + - ng-125: `tc actions add action bpf bytecode '0,6 0 0 0' index 1` → rc 255; stderr `bad action parsing`; `parse_action: bad value (5:bpf)!`; `Illegal "action"` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W309** (bpf_legacy.c:320-322): instruction fields are scanf'd: `0xffff` reads k 0 (text after k is ignored), code 65542 wraps to 6 and jt 256 to 0; a hex code is `Error at instruction 0!` + - **Trigger and outcome:** + - ec-224: `tc actions add action bpf bytecode '1,6 0 0 0xffff' index 1` → rc 0; stderr empty (sent and accepted) + - ec-225: `tc actions add action bpf bytecode '1,65542 256 0 4294967296' index 1` → rc 0; stderr empty (sent and accepted) + - ng-126: `tc actions add action bpf bytecode '1,0x6 0 0 0' index 1` → rc 255; stderr `Error at instruction 0!`; `bad action parsing`; `parse_action: bad value (5:bpf)!` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W310** (bpf_legacy.c:313-335): a trailing `, ` is `Real program length exceeds encoded length parameter!`; too few instructions is `Parsed program length is less than encoded length parameter!`; a trailing `,` alone is accepted + - **Trigger and outcome:** + - ng-127: `tc actions add action bpf bytecode '1,6 0 0 0, ' index 1` → rc 255; stderr `Real program length exceeds encoded length parameter!`; `bad action parsing`; `parse_action: bad value (5:bpf)!` (tc fails it; no kernel refusal) + - ng-128: `tc actions add action bpf bytecode '2,6 0 0 0' index 1` → rc 255; stderr `Parsed program length is less than encoded length parameter!`; `bad action parsing`; `parse_action: bad value (5:bpf)!` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W311** (bpf_legacy.c:229-278): bytecode-file: newlines become `,`, runs of blanks one blank; a leading blank line, CRLF or a directory fail with no message; a missing file is `Cannot fopen: No such file or directory`; `-` is a file name, not stdin + - **Trigger and outcome:** + - ec-221: `tc actions add action bpf bytecode-file - index 1` → rc 0; stderr empty (sent and accepted) + - ng-129: `tc actions add action bpf bytecode-file bpf.txt index 1` → rc 255; stderr `bad action parsing`; `parse_action: bad value (5:bpf)!`; `Illegal "action"` (tc fails it; no kernel refusal) + - ng-130: `tc actions add action bpf bytecode-file bpf.txt index 1` → rc 255; stderr `bad action parsing`; `parse_action: bad value (5:bpf)!`; `Illegal "action"` (tc fails it; no kernel refusal) + - ng-131: `tc actions add action bpf bytecode-file . index 1` → rc 255; stderr `bad action parsing`; `parse_action: bad value (5:bpf)!`; `Illegal "action"` (tc fails it; no kernel refusal) + - also ng-132 + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W312** (m_bpf.c:93-140): `index` ends the loop: `bpf index 5` sends PARMS only (EINVAL with no extack on create, a bind works); a second program word is the next kind (`Bad action type bytecode`); `bpf drop` is `What mode is "drop"?` + - **Trigger and outcome:** + - ec-237: `tc filter add dev d0 egress pref 1 protocol all handle 1 matchall action bpf index 1` → rc 0; stderr empty (sent and accepted) + - ng-133: `tc actions add action bpf bytecode '1,6 0 0 0' bytecode '1,6 0 0 1' index 1` → rc 255; stderr `Bad action type bytecode`; `Usage: ... gact [RAND] [INDEX]`; `Where: \tACTION := reclassify | drop | continue | pass | pipe |` (tc fails it; no kernel refusal) + - ng-134: `tc actions add action bpf drop` → rc 255; stderr `What mode is "drop"?`; `bad action parsing`; `parse_action: bad value (2:bpf)!` (tc fails it; no kernel refusal) + - ng-135: `tc actions add action bpf index 5` → rc 255; stderr `RTNETLINK answers: Invalid argument`; `We have an error talking to the kernel` (sent; the kernel refuses) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W313** (m_bpf.c:89,113-135): bare `bpf` ends in NEXT_ARG; `help` prints the usage and returns -1 (bad action parsing); a bad index is `bpf: Illegal "index"` + - **Trigger and outcome:** + - ng-136: `tc actions add action bpf` → rc 255; stderr `Command line is not complete. Try option "help"` (tc fails it; no kernel refusal) + - ng-137: `tc actions add action bpf help` → rc 255; stderr `Usage: ... bpf ... [ index INDEX ]`; `BPF use case:`; ` bytecode BPF_BYTECODE` (tc fails it; no kernel refusal) + - ng-138: `tc actions add action bpf bytecode '1,6 0 0 0' index zz` → rc 255; stderr `bpf: Illegal "index"`; `bad action parsing`; `parse_action: bad value (5:bpf)!` (tc fails it; no kernel refusal) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W314** (bpf_legacy.c:838-858): mode prefixes: `b` is bytecode; `o` object-file (an ELF load: `Error opening object nosuch.o`), `p` pinned and `f` fd (both bpf(2): `Couldn't retrieve pinned program`) + - **Trigger and outcome:** + - ec-226: `tc actions add action bpf b '1,6 0 0 0' index 1` → rc 0; stderr empty (sent and accepted) + - ng-139: `tc actions add action bpf o nosuch.o index 1` → rc 255; stderr `Error opening object nosuch.o: No such file or directory`; `Cannot initialize ELF context!`; `bad action parsing` (tc fails it; no kernel refusal) + - ng-140: `tc actions add action bpf p /sys/fs/bpf/nosuch index 1` → rc 255; stderr `Couldn't retrieve pinned program '/sys/fs/bpf/nosuch': No such file or directory`; `bad action parsing`; `parse_action: bad value (5:bpf)!` (tc fails it; no kernel refusal) + - ng-141: `tc actions add action bpf f 3 index 1` → rc 255; stderr `Couldn't retrieve pinned program '3': No such file or directory`; `bad action parsing`; `parse_action: bad value (5:bpf)!` (tc fails it; no kernel refusal) + - **gotc:** copies (23W); the eBPF modes are refused by name, `eBPF program via bpf(2)`. + - **Status:** confirmed. +- **W315** (f_bpf.c:81,172): options with no program word leave cfg.mode 0 (CBPF_BYTECODE), so OPS_LEN 0 and an empty OPS are sent: EINVAL with no extack + - **Trigger and outcome:** + - ng-145: `tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf classid 1:1` → rc 2; stderr `RTNETLINK answers: Invalid argument`; `We have an error talking to the kernel` (sent; the kernel refuses) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W316** (f_bpf.c:94-95): `… bpf` with no words sends no OPTIONS: EINVAL with no extack + - **Trigger and outcome:** + - ng-146: `tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf` → rc 2; stderr `RTNETLINK answers: Invalid argument`; `We have an error talking to the kernel` (sent; the kernel refuses) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W317** (f_bpf.c:132-180): CLASSID, ACT and POLICE go out in command order, then OPS_LEN, OPS, FLAGS_GEN, FLAGS; a repeated classid is sent twice and the kernel keeps the last + - **Trigger and outcome:** + - ec-253: `tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf classid 1:1 bytecode '1,6 0 0 0' classid 1:2 da action gact pass` → rc 0; stderr empty (sent and accepted) + - **gotc:** copies (23W). + - **Status:** confirmed (request bytes held by the 23W replay). +- **W318** (f_bpf.c:101-158): `s` is skip_hw, `f` flowid (not fd as in the action's mode words) + - **Trigger and outcome:** + - ec-254: `tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' s f 1:1` → rc 0; stderr empty (sent and accepted) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W319** (f_bpf.c:112-164): `What is "bogus"?` and the usage, rc 1; flowid's error says `Illegal "classid"`; a parse failure adds `Unable to parse bpf command line` + - **Trigger and outcome:** + - ng-147: `tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' bogus` → rc 1; stderr `What is "bogus"?`; `Usage: ... bpf ...`; `BPF use case:` (ack-then-fail) + - ng-148: `tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' flowid zz` → rc 1; stderr `Illegal "classid"` (ack-then-fail) + - ng-149: `tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0'` → rc 1; stderr `Error at instruction 0!`; `Unable to parse bpf command line` (ack-then-fail) + - **gotc:** copies (23W). + - **Status:** confirmed. +- **W320** (f_bpf.c:136-140): `skip_hw skip_sw` is EINVAL with no extack; skip_sw on a dummy is EOPNOTSUPP with no extack (K85) + - **Trigger and outcome:** + - ng-150: `tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' skip_hw skip_sw` → rc 2; stderr `RTNETLINK answers: Invalid argument`; `We have an error talking to the kernel` (sent; the kernel refuses) + - ng-151: `tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' skip_sw` → rc 2; stderr `RTNETLINK answers: Operation not supported`; `We have an error talking to the kernel` (sent; the kernel refuses) + - **gotc:** copies (23W). + - **Status:** confirmed. + +### K77–K89. Kernel notes + +Each note is cited to linux v7.4-rc4 and observed on 7.3.1. + +| note | where | what | pinned by | +|---|---|---|---| +| K77 | act_pedit.c:604-622; include/net/tc_act/tc_pedit.h:65-77 | every legacy pedit add (no KEYS_EX) warns `act_pedit: Unsupported pedit command offload`: tcf_pedit_cmd returns __PEDIT_CMD_MAX without keys_ex, so the offload translation tried for a software-only action fails on its first key. An ex pedit whose keys mix set and add warns the same way | ec-001 and 45 other legacy rows | +| K78 | act_ct.c:1654-1662; act_api.c:269-273 | a ct with a helper warns `act_api: Failed to setup tc actions for offload.`: the helper makes offload setup return -EOPNOTSUPP, and the generic message is the one shown (K66's pattern) | ec-162, ec-163, ec-171 | +| K79 | act_ife.c:348-366,600-612 | an ife with no METALST (decode, or `ife index N`) uses every meta kind loaded; with none loaded it is EINVAL with no extack | first trial batch (scratch): `ife decode index 1` refused, then accepted once act_meta_* were loaded | +| K80 | act_gate.c:275-290 | an ENTRY_LIST member that isn't TCA_GATE_ONE_ENTRY gets the warning `Attribute isn't type 'entry'` and is skipped; the action is created (rc 0) with the shorter schedule | ec-197, ec-198, ec-199 | +| K81 | act_tunnel_key.c:386-393 | a 0-byte address attribute fails the policy (ERANGE), and the specific message is replaced by `Failed to parse nested tunnel key attributes` | ng-046 | +| K82 | act_ct.c:1190,1230-1245 | NAT_IPV4/IPV6 MIN and MAX are EXACT_LEN: a 0-byte address is ERANGE `binary attribute size out of range` | ng-082 | +| K83 | act_ct.c:1194,1356-1372 | HELPER_NAME is limited to NF_CT_HELPER_NAME_LEN (16): longer is ERANGE `Attribute failed policy validation`; an unknown helper is EINVAL `act_ct: Failed to add helper` | ng-085, ng-086 | +| K84 | act_bpf.c:330-339; cls_bpf.c:348 | act_bpf with neither OPS (with OPS_LEN) nor FD is EINVAL with no extack, so PARMS alone (`bpf index 5`) and OPS_LEN without OPS (W307) look the same; OPS_LEN 0 or past 4096 is EINVAL in both act_bpf and cls_bpf | ng-120–ng-122, ng-135, ng-145 | +| K85 | cls_bpf.c:30,516-520; cls_api.c tc_flags_valid | SKIP_HW with SKIP_SW is EINVAL with no extack; SKIP_SW on a device that can't offload is EOPNOTSUPP with no extack; no OPTIONS at all is EINVAL | ng-146, ng-150, ng-151 | +| K86 | act_pedit.c:95-110,190-222 | the keys check comes after the idr lookup: a bind of an existing index with nkeys 0 succeeds; a create is refused `Pedit requires keys to be passed`; a KEYS_EX shorter than nkeys is `Not enough extended keys to parse` | ec-235, ng-031, ng-032, ng-157 | +| K87 | act_gate.c:195-200,445-452 | a create with an empty ENTRY_LIST is `The entry list is empty` (a bind works); an interval of 0 is `Invalid interval for schedule entry` | ng-116, ec-236, ng-105 | +| K88 | act_tunnel_key.c:95-112,185-195,270-280,465-503 | geneve: class, type and data are all required, and data under 4 bytes is ERANGE; an empty ENC_OPTS, a v4/v6 mix and t_action 0 are refused with their own messages; erspan needs dir or hwid | ng-047, ng-048, ng-054–ng-058 | +| K89 | act_gate.c:181-182,484-491 | base-time and cycle-time take any u64: x86's 2^63 from W297's UB casts, and W298's u64 max, are accepted | ec-204–ec-206, ec-208 | + +### Bug-class candidates (increment 23) + +These are for the user's review. [bug-classes.md](bug-classes.md) is unchanged. + +- **A helper that exits inside a parser, so the parser's own error is unreachable** (W250, W279): get_addr's exit(1) + makes `Illegal "src_ip"` and `Illegal nat address range` dead, and ends a `-force` batch. +- **strtok-style splitting that merges empty fields and shifts positional fields** (W258, W261): `a::b` silently + becomes `a:b`, so a field lands in the next slot. +- **A per-nest bound smaller than the message bound** (W293): addattr_nest(n, 1024, …) inside a 16384-byte message + drops the nest header and leaves its children with a rewritten length. +- **An out-parameter written from an uninitialised local on an early return** (W294): get_size stores sz64 even when + get_size64 failed before setting it, and the stack value reaches the kernel. +- **A word that ends one action's options and becomes the next action's kind** (W243, W264, W288, W303, W312): when + index is parsed only before (or only inside) the loop, `… pipe index 5` sends an action of kind `index`. diff --git a/docs/netlink/upstream/iproute2-tc-action.md b/docs/netlink/upstream/iproute2-tc-action.md index df7954b52..ba23229de 100644 --- a/docs/netlink/upstream/iproute2-tc-action.md +++ b/docs/netlink/upstream/iproute2-tc-action.md @@ -1,10 +1,12 @@ # iproute2 `tc actions` and action printers: totals that aren't totals, JSON that drops or doubles keys, spacing by kind, and reads tc never checked -**Status (2026-11-24, increment 12; extended 2026-11-25, increment 13; extended 2026-11-30, increment 22):** +**Status (2026-11-24, increment 12; extended 2026-11-25, increment 13; extended 2026-11-30, increments 22 and 23):** - **The write side** of these twelve kinds and m_action.c is [iproute2-tc-action-write.md](iproute2-tc-action-write.md) (W156–W215, K63–K76). Increment 22 extends AC6, AC7, AC33, AC34 (a correction) and AC70 and K8 below, each marked "Extended in increment 22". + Increment 23 (W216–W320, the same file's "Increment 23" part) extends AC38 and AC70, each marked "Extended in + increment 23". - **Not submitted to netdev.** These are drafts for the user's review, recorded here only, like the other write-ups in this directory. No patch, no PR, no sign-off. - **Source:** @@ -212,6 +214,7 @@ actions (K8) and exits 0. - **gotc:** it refuses a get whose request would pass `MAX_MSG`, naming its length, rather than send a truncated request. + - **Extended in increment 23:** the write side ignores addattr's result the same way: pedit's 16 KiB echo (W248, tcact2write ng-157), gate's 1024 entry nest (W293) and bpf past 16384 (W307). See [increment 23](iproute2-tc-action-write.md#increment-23-pedit-tunnel_key-ife-ct-gate-bpf-and-the-bpf-filter-w216w320-k77k89). ## AC4, AC5, AC11. The writes' messages @@ -353,6 +356,7 @@ no NUL, a skbmod MAC of length 0 or over 21, and a tab of more than 1024 orders. [iproute2-tc-action-write.md](iproute2-tc-action-write.md)): every `set` writes `dst MAC address <…>`, `src MAC address <…>` or `skbmod etype 0x…` to stderr (tcactwrite/ec-202–ec-204, ng-062). gotc copies skbmod's lines (22W); ife stays refused until increment 23. + - **Extended in increment 23:** ife's decode prints the same stderr lines for dst, type and allow, though it drops them (W273, tcact2write ec-146). See [increment 23](iproute2-tc-action-write.md#increment-23-pedit-tunnel_key-ife-ct-gate-bpf-and-the-bpf-filter-w216w320-k77k89). ## AC54–AC58. ct diff --git a/docs/netlink/upstream/iproute2-tc-filter-write.md b/docs/netlink/upstream/iproute2-tc-filter-write.md index 4559c5c1a..54cbb5a98 100644 --- a/docs/netlink/upstream/iproute2-tc-filter-write.md +++ b/docs/netlink/upstream/iproute2-tc-filter-write.md @@ -1,9 +1,11 @@ # iproute2 tc filter writes: narrowed selectors, a renamed check, sticky cookies and a realm cache that answers with the wrong number -**Status (2026-11-29, increment 20; extended 2026-11-30, increment 22):** +**Status (2026-11-29, increment 20; extended 2026-11-30, increments 22 and 23):** - **Increment 22** extends W65, W68, W74, W75, W85, W113, W114, W117 and W121 below, each marked "Extended in increment 22", from the action write-up [iproute2-tc-action-write.md](iproute2-tc-action-write.md). +- **Increment 23** extends W70, W95, W97, W114 and W117, each marked "Extended in increment 23", from the same file's + "Increment 23" part (W216–W320). - **Not submitted to netdev.** These are drafts for the user's review, recorded here only, like the other write-ups in this directory. No patch, no PR, no sign-off. - **Scope:** the write path of `tc filter` and `tc chain` (`tc/tc_filter.c` tc_filter_modify, which `chain add` and @@ -140,6 +142,7 @@ reports only `Cannot find device "nosuch"`, rc 1 (ng-005), and the parser's error is never seen. Exit codes by path: a missing device and every parse_fopt failure (its `help` too) 1; modify's own checks, invarg, duparg and NEXT_ARG 255; a kernel error 2; top-level `help` 0. + - **Extended in increment 23:** the bpf filter's parse failures (`What is "X"?`, `Illegal "classid"`, `Unable to parse bpf command line`) take rc 1 by the same path (W319; tcact2write ng-147–ng-149, ng-152). See [increment 23](iproute2-tc-action-write.md#increment-23-pedit-tunnel_key-ife-ct-gate-bpf-and-the-bpf-filter-w216w320-k77k89). - **W72.** m_estimator.c calls `invarg("invalid estimator interval", *argv)` with the arguments in the wrong order for `invarg(msg, arg)`, so `estimator zz 1s` prints `Error: argument "invalid estimator interval" is wrong: estimator`, rc 255 (ng-007). The same line serves qdisc and class writes; W7 looked only at the argv step. @@ -209,6 +212,7 @@ 1:2` installs 1:2 (ec-097). u32's `ht`, `order` and flags take the last value locally. - **Increment 21:** basic and cgroup don't check either. A second classid or `match` wins (tcematch ec-136), and with both police and action the kernel keeps the police alone (K59, ec-139) ([iproute2-tc-ematch-write.md](iproute2-tc-ematch-write.md)). + - **Extended in increment 23:** cls_bpf has no repeat check either: a second classid is sent as a second TCA_BPF_CLASSID (W317, tcact2write ec-245). See [increment 23](iproute2-tc-action-write.md#increment-23-pedit-tunnel_key-ife-ct-gate-bpf-and-the-bpf-filter-w216w320-k77k89). ## W96–W109. fw, route, matchall and flow @@ -220,6 +224,7 @@ the -1 and the request goes out without that attribute. gotc refuses a request tc would truncate (W6's rule). - **Increment 21:** a large flow `match` hits the same bound: tcematch ec-137's two 300-rule canids send a 4900-byte request without MODE, DIVISOR and BASECLASS, and its readback ends in EMSGSIZE (K62, [iproute2-tc-ematch-write.md](iproute2-tc-ematch-write.md)). + - **Extended in increment 23:** increment 23 meets the same ignored bound in actions: gate's per-entry nest is held to 1024 of the whole message (W293, tcact2write ec-196–ec-199), and a bpf program past 16384 drops PARMS or OPS (W307, tcact2write ng-120–ng-122). Since 23W gotc copies each addattr_l error and drop and sends what fits, here too. See [increment 23](iproute2-tc-action-write.md#increment-23-pedit-tunnel_key-ife-ct-gate-bpf-and-the-bpf-filter-w216w320-k77k89). - **W98.** route's `order` is shifted and masked into the handle's 0x7F00 without a check: `order 200` is 72 in the handle, 0xffff4804 (ec-098). - **W99, W100.** route's explain says `fromif TAG` (a device name) and omits order, police and flowid (ng-023). @@ -269,6 +274,7 @@ - **Extended in increment 22:** the kinds' own parsers hand words on as kinds too: mirred's `dev d1 blockid 5` reads blockid as a kind (W161, ng-028), and ctinfo's unconsumed statemask `0x1junk` is `Bad action type 0x1junk` (W208, ng-056), both in [iproute2-tc-action-write.md](iproute2-tc-action-write.md). + - **Extended in increment 23:** bpf takes `drop` as a mode word, not a gact control (W312, tcact2write ng-134). See [increment 23](iproute2-tc-action-write.md#increment-23-pedit-tunnel_key-ife-ct-gate-bpf-and-the-bpf-filter-w216w320-k77k89). - **W115.** parse_action_control checks a jump count only against TC_ACT_EXT_VAL_MASK: `jump 0` and `jump 512` are sent (ec-104, ec-105) and fail only at run time. A gact `random … goto chain 5` is built and sent; the workbench kernel has no CONFIG_GACT_PROB (ng-038, EOPNOTSUPP). @@ -283,6 +289,7 @@ order is another action: mirred redirect takes no control (W158), `skbedit mark 1 index 5 pipe` is skbedit then a gact pipe (W175), and `simple sdata x index 5 drop` is two actions (W190), all in [iproute2-tc-action-write.md](iproute2-tc-action-write.md). + - **Extended in increment 23:** gate's maxoctets keeps get_size's partial value past 32 bits and leaves the word, which starts the next action: `5G` becomes `Bad action type 5G` (W295). See [increment 23](iproute2-tc-action-write.md#increment-23-pedit-tunnel_key-ife-ct-gate-bpf-and-the-bpf-filter-w216w320-k77k89). - **W118.** gact takes control, then random, then index: `action drop index 5 random determ pass 10` makes `random` a new action (ng-041). After the control word, `h` is gact's help, rc 255 (ng-042), where parse_action would read `h` as `hw_stats`. diff --git a/internal/gotc/act2_corpus_test.go b/internal/gotc/act2_corpus_test.go new file mode 100644 index 000000000..28c082188 --- /dev/null +++ b/internal/gotc/act2_corpus_test.go @@ -0,0 +1,11 @@ +//go:build gotc_write + +package gotc + +// tcact2writeDir is increment 23's capture space (23C). TestGotcCorpus +// replays it since 23W, with the rows refused by name in corpusRefused. +const tcact2writeDir = "../../pkg/xtcpnl/testdata/7_3_1/ws/tcact2write" + +// act2Row is a tcact2write row id as awCase.row names it: a space/row id +// awReplayRow resolves. +func act2Row(id string) string { return "tcact2write/" + id } diff --git a/internal/gotc/act_parse.go b/internal/gotc/act_parse.go index 159673ce3..77c7a0c02 100644 --- a/internal/gotc/act_parse.go +++ b/internal/gotc/act_parse.go @@ -15,10 +15,10 @@ import ( // m_action.c parse_action (each action's prio nest, kind, options, cookie, // hw_stats and flags), tc_util.c action_a2n and parse_action_control, and // each kind's parse_aopt by name (actParsers: m_gact.c here, the 12 kinds -// of increment 22 in aw_*.go). pedit, tunnel_key, ife, ct, gate and bpf -// are refused by name until increment 23; an unknown name is -// get_action_kind's fallback to gact's parser, with the name kept as -// TCA_ACT_KIND (W114). +// of increment 22 and increment 23's six in aw_*.go). linkedActKinds' +// refusal by name stays for a kind tc links that gotc does not parse; an +// unknown name is get_action_kind's fallback to gact's parser, with the +// name kept as TCA_ACT_KIND (W114). // actParser is an action_util's parse_aopt(a, &argc, &argv, tca_id, n): // args starts at the kind word (for gact, possibly a control word); it @@ -27,22 +27,39 @@ import ( // action parsing"; a non-nil error is an exit, or a refusal. type actParser func(r *runner, ops *fops, args []string, tcaID uint16) (rest []string, ok bool, err error) -// actParsers are the parse_aopts gotc clones, by action_util id. -var actParsers = map[string]actParser{ - xtcpnl.TcActKindGact: (*runner).parseGact, - xtcpnl.TcActKindPolice: (*runner).parsePoliceAct, - xtcpnl.TcActKindMirred: (*runner).parseMirred, - xtcpnl.TcActKindSkbedit: (*runner).parseSkbedit, - xtcpnl.TcActKindVlan: (*runner).parseVlan, - xtcpnl.TcActKindCsum: (*runner).parseCsum, - xtcpnl.TcActKindNat: (*runner).parseNat, - xtcpnl.TcActKindConnmark: (*runner).parseConnmark, - xtcpnl.TcActKindCtinfo: (*runner).parseCtinfo, - xtcpnl.TcActKindSample: (*runner).parseSample, - xtcpnl.TcActKindSkbmod: (*runner).parseSkbmod, - xtcpnl.TcActKindMpls: (*runner).parseMpls, - xtcpnl.TcActKindSimple: (*runner).parseSimple, -} +// actParsers are the parse_aopts gotc clones, by action_util id, built +// from a kind and parser list as action_util is. +var actParsers = func() map[string]actParser { + kinds := []struct { + kind string + parse actParser + }{ + {xtcpnl.TcActKindGact, (*runner).parseGact}, + {xtcpnl.TcActKindPolice, (*runner).parsePoliceAct}, + {xtcpnl.TcActKindMirred, (*runner).parseMirred}, + {xtcpnl.TcActKindSkbedit, (*runner).parseSkbedit}, + {xtcpnl.TcActKindVlan, (*runner).parseVlan}, + {xtcpnl.TcActKindCsum, (*runner).parseCsum}, + {xtcpnl.TcActKindNat, (*runner).parseNat}, + {xtcpnl.TcActKindConnmark, (*runner).parseConnmark}, + {xtcpnl.TcActKindCtinfo, (*runner).parseCtinfo}, + {xtcpnl.TcActKindSample, (*runner).parseSample}, + {xtcpnl.TcActKindSkbmod, (*runner).parseSkbmod}, + {xtcpnl.TcActKindMpls, (*runner).parseMpls}, + {xtcpnl.TcActKindSimple, (*runner).parseSimple}, + {xtcpnl.TcActKindTunnelKey, (*runner).parseTunnelKey}, + {xtcpnl.TcActKindIfe, (*runner).parseIfe}, + {xtcpnl.TcActKindBpf, (*runner).parseBpf}, + {xtcpnl.TcActKindPedit, (*runner).parsePedit}, + {xtcpnl.TcActKindCt, (*runner).parseCt}, + {xtcpnl.TcActKindGate, (*runner).parseGate}, + } + m := make(map[string]actParser, len(kinds)) + for _, k := range kinds { + m[k.kind] = k.parse + } + return m +}() // tcCookieMax is TC_COOKIE_MAX_SIZE. const tcCookieMax = 16 diff --git a/internal/gotc/action.go b/internal/gotc/action.go index f2ab24890..fad80c70a 100644 --- a/internal/gotc/action.go +++ b/internal/gotc/action.go @@ -343,7 +343,7 @@ func (r *runner) printActionControl(prefix string, a int32, suffix string) { o.fp(prefix) o.openObject("control_action") t := actionN2A(a) - o.str(printAny, colorNone, "type", t, t) + o.str(printAny, colorNone, wordType, t, t) v := cint.Bits(a) & tcActExtValMask if a&^tcActExtValMask == tcActGotoChain { o.uint(printAny, "chain", " chain "+u32s(v), v) diff --git a/internal/gotc/aw_bpf.go b/internal/gotc/aw_bpf.go new file mode 100644 index 000000000..923926ba4 --- /dev/null +++ b/internal/gotc/aw_bpf.go @@ -0,0 +1,105 @@ +//go:build gotc_write + +package gotc + +import ( + "github.com/randomizedcoder/xtcp2/pkg/xtcpnl" +) + +// tc/m_bpf.c bpf_parse_opt at iproute2 v7.2.0. + +// bpfActExplain is m_bpf.c explain, with bpf_prog_to_default_section of +// BPF_PROG_TYPE_SCHED_ACT. +func (r *runner) bpfActExplain() { + r.errf("%s", "Usage: ... bpf ... [ index INDEX ]\n"+ + "\n"+ + "BPF use case:\n"+ + " bytecode BPF_BYTECODE\n"+ + " bytecode-file FILE\n"+ + "\n"+ + "eBPF use case:\n"+ + " object-file FILE [ section ACT_NAME ] [ export UDS_FILE ] [ verbose ]\n"+ + " object-pinned FILE\n"+ + "\n"+ + "Where BPF_BYTECODE := 's,c t f k,c t f k,c t f k,...'\n"+ + "c,t,f,k and s are decimals; s denotes number of 4-tuples\n"+ + "\n"+ + "Where FILE points to a file containing the BPF_BYTECODE string,\n"+ + "an ELF file containing eBPF map definitions and bytecode, or a\n"+ + "pinned eBPF program.\n"+ + "\n"+ + "Where ACT_NAME refers to the section name containing the\n"+ + "action (default 'action').\n"+ + "\n"+ + "Where UDS_FILE points to a unix domain socket file in order\n"+ + "to hand off control of all created eBPF maps to an agent.\n"+ + "\n"+ + "Where optionally INDEX points to an existing action, or\n"+ + "explicitly specifies an action index upon creation.\n") +} + +// parseBpf is bpf_parse_opt: the nest opens before the loop, which a +// bare kind never reaches (W313); `index` ends the loop, so `bpf index 5` +// sends PARMS alone (W312), and the first word that is no run, help or +// index is the program's mode word (`bpf drop` is "What mode is", W312). +// After the program, any word ends the loop: a second program word is +// left for parse_action (a control, or the next kind). Each program is +// loaded as parsed, its OPS_LEN and OPS written at once. +func (r *runner) parseBpf(ops *fops, args []string, tcaID uint16) ([]string, bool, error) { + args, err := r.nextArg(args) + if err != nil { + return nil, false, err + } + nest := ops.begin(maxMsg, tcaID) + seenRun := false +loop: + for len(args) > 0 { + switch { + case matches(args[0], "run"): + if args, err = r.nextArg(args); err != nil { + return nil, false, err + } + if seenRun { + return nil, false, r.duparg("run", args[0]) + } + case matches(args[0], helpWord): + r.bpfActExplain() + return nil, false, nil + case matches(args[0], "index"): + break loop + case seenRun: + break loop + } + seenRun = true // opt_bpf + var cfg bpfCfg + rest, ok, err := r.bpfDoParse(args, &cfg) + if err != nil || !ok { + return nil, false, err + } + if err := cfg.load(); err != nil { + return nil, false, err + } + ops.put(maxMsg, xtcpnl.TcaActBpfOpsLen, cfg.opsLen()) + ops.put(maxMsg, xtcpnl.TcaActBpfOps, cfg.opsBytes()) + args = rest[1:] // NEXT_ARG_FWD + } + var parm xtcpnl.TcGen + if args, parm.Action, err = r.parseActionControlDflt(args, tcActPipe); err != nil { + return nil, false, err + } + if len(args) > 0 && matches(args[0], "index") { + if args, err = r.nextArg(args); err != nil { + return nil, false, err + } + i, good := getU32(args[0], 10) + if !good { + r.errf("bpf: Illegal \"index\"\n") + return nil, false, nil + } + parm.Index = i + args = args[1:] + } + ops.put(maxMsg, xtcpnl.TcaActBpfParms, parm.Append(nil)) + ops.end(nest) + return args, true, nil +} diff --git a/internal/gotc/aw_bpf_test.go b/internal/gotc/aw_bpf_test.go new file mode 100644 index 000000000..9d00ea3d6 --- /dev/null +++ b/internal/gotc/aw_bpf_test.go @@ -0,0 +1,404 @@ +//go:build gotc_write + +package gotc + +import ( + "bytes" + "encoding/binary" + "os" + "path/filepath" + "strconv" + "strings" + "testing" + + "github.com/randomizedcoder/xtcp2/pkg/xtcpnl" +) + +// The bpf action and filter write tests (23W). A row names a tcact2write +// capture: gotc runs its cmd against the capture's ip.pcap, every request +// is held to tc's byte for byte, and stdout, stderr and rc must be tc's, +// which the row's expected also pins. A row with no capture runs its words +// against a fake kernel (d0 at ifindex 2, then ACKs) and checks the first +// request's bpf attributes. + +// bwExpected is a row's outcome. +type bwExpected struct { + rc int + stderr string // exact, unless has is set + has string // a substring stderr holds + reqs int // fake rows: the requests sent + // check reads the last request sent (fake rows); nil skips. + check func(t *testing.T, req []byte) +} + +// bwCase is one row of a bpf write table. +type bwCase struct { + description string + row string // a tcact2write capture + args []string // else: the words after `tc` + file string // fake rows: bpf.txt in the working directory + expected bwExpected +} + +// runBwCases runs a table. +func runBwCases(t *testing.T, cases []bwCase) { + t.Helper() + for i := range cases { + tc := &cases[i] + t.Run(tc.description, func(t *testing.T) { + var got result + var reqs [][]byte + if tc.row != "" { + got = bwReplayRow(t, tc.row) + } else { + if tc.file != "" { + t.Chdir(t.TempDir()) + if err := os.WriteFile("bpf.txt", []byte(tc.file), 0o600); err != nil { + t.Fatal(err) + } + } + src := &fakeSource{replies: []Reply{rep(linkMsg(2, "d0")), rep(ack()), rep(ack())}} + if tc.args[0] == "actions" { + src.replies = src.replies[1:] + } + var out, errb bytes.Buffer + rc := run(config{src: src, stdin: strings.NewReader(""), sys: emptySys(t)}, tc.args, &out, &errb) + got = result{stdout: out.String(), stderr: errb.String(), rc: rc} + reqs = src.reqs + if len(reqs) != tc.expected.reqs { + t.Errorf("%d requests sent, want %d", len(reqs), tc.expected.reqs) + } + } + e := tc.expected + if got.rc != e.rc { + t.Errorf("rc %d, want %d (stderr %q)", got.rc, e.rc, got.stderr) + } + switch { + case e.has != "" && !strings.Contains(got.stderr, e.has): + t.Errorf("stderr %q, want it to hold %q", got.stderr, e.has) + case e.has == "" && got.stderr != e.stderr: + t.Errorf("stderr\n got %q\n want %q", got.stderr, e.stderr) + } + if e.check != nil && len(reqs) > 0 { + e.check(t, reqs[len(reqs)-1]) + } + }) + } +} + +// bwReplayRow runs a tcact2write row's cmd against its capture and holds +// all of its outcome to tc's. +func bwReplayRow(t *testing.T, id string) result { + t.Helper() + dir, err := filepath.Abs(filepath.Join(tcact2writeDir, id)) + if err != nil { + t.Fatal(err) + } + c := readCmdJSON(t, dir) + pschedContent = readFile(t, pschedRow) + got, want := corpusRow(t, dir, c) + if got != want { + t.Errorf("%s\n got %#v\n want %#v", c.Cmd, got, want) + } + return got +} + +// bpfFilterOpts is a filter request's TCA_OPTIONS attributes. +func bpfFilterOpts(t *testing.T, req []byte) map[uint16][]byte { + t.Helper() + o, ok := rtAttrs(req[nlHeaderLen+xtcpnl.TcMsgSizeCst:])[xtcpnl.TcaOptions] + if !ok { + t.Fatalf("no TCA_OPTIONS in % x", req) + } + return rtAttrs(o) +} + +// bpfOpsCheck checks a request's OPS_LEN and OPS (absent when ops is +// nil), from the action's options or the filter's. +func bpfOpsCheck(filter bool, n uint16, ops []byte) func(*testing.T, []byte) { + return func(t *testing.T, req []byte) { + t.Helper() + lenT, opsT := xtcpnl.TcaActBpfOpsLen, xtcpnl.TcaActBpfOps + var m map[uint16][]byte + if filter { + lenT, opsT = xtcpnl.TcaBpfOpsLen, xtcpnl.TcaBpfOps + m = bpfFilterOpts(t, req) + } else { + m = firstActOpts(t, req) + } + if got := m[lenT]; !bytes.Equal(got, le16b(n)) { + t.Errorf("OPS_LEN % x, want % x", got, le16b(n)) + } + got, has := m[opsT] + switch { + case ops == nil && has: + t.Errorf("OPS sent (%d bytes), want none", len(got)) + case ops != nil && !bytes.Equal(got, ops): + t.Errorf("OPS % x, want % x", got, ops) + } + } +} + +// all2 runs each request check. +func all2(checks ...func(*testing.T, []byte)) func(*testing.T, []byte) { + return func(t *testing.T, req []byte) { + t.Helper() + for _, c := range checks { + c(t, req) + } + } +} + +// insns is n struct sock_filter. +func insns(xs ...xtcpnl.TcBpfInsn) []byte { + b := []byte{} + for _, x := range xs { + b = x.Append(b) + } + return b +} + +// bpfProgText is "n,6 0 0 0,…" with n return-0 instructions. +func bpfProgText(n int) string { + var b strings.Builder + b.WriteString(strconv.Itoa(n)) + for range n { + b.WriteString(",6 0 0 0") + } + return b.String() +} + +const bpfActParse = "bad action parsing\nparse_action: bad value (5:bpf)!\nIllegal \"action\"\n" + +// TestGotcBpfWrite is aw_bpf.go and fw_bpf.go. +// +// go test -tags gotc_write ./internal/gotc/ -run TestGotcBpfWrite +func TestGotcBpfWrite(t *testing.T) { + ret0 := xtcpnl.TcBpfInsn{Code: 6} + act := func(words ...string) []string { + return append([]string{"actions", "add", "action", "bpf"}, words...) + } + flt := func(words ...string) []string { + return append([]string{"filter", "add", "dev", "d0", "ingress", "pref", "1", "protocol", "ip", "handle", "1", "bpf"}, words...) + } + runBwCases(t, []bwCase{ + {"positive: bytecode sends OPS_LEN, OPS and PARMS (ec-213)", "ec-213", nil, "", bwExpected{}}, + {"positive: bytecode's OPS is each sock_filter in host order", "", act("bytecode", "4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0", "index", "1"), "", + bwExpected{reqs: 1, check: bpfOpsCheck(false, 4, insns( + xtcpnl.TcBpfInsn{Code: 40, K: 12}, xtcpnl.TcBpfInsn{Code: 21, Jf: 1, K: 2048}, + xtcpnl.TcBpfInsn{Code: 6, K: 262144}, ret0))}}, + {"positive: bytecode-file, newlines become commas (ec-218)", "ec-218", nil, "", bwExpected{}}, + {"positive: bytecode-file collapses blanks and a blank line (ec-220)", "ec-220", nil, "", bwExpected{}}, + {"positive: bytecode-file reads the working directory", "", act("bytecode-file", "bpf.txt", "index", "1"), "2,\t6 0 0 0\n\n6 0 0 1\n", + bwExpected{reqs: 1, check: bpfOpsCheck(false, 2, insns(ret0, xtcpnl.TcBpfInsn{Code: 6, K: 1}))}}, + {"positive: filter with classid, da and an action, in tc's order (ec-253, W317)", "ec-253", nil, "", bwExpected{}}, + {"positive: filter with police (ec-242)", "ec-242", nil, "", bwExpected{}}, + {"positive: filter da skip_hw sends FLAGS_GEN then FLAGS after OPS (ec-240)", "ec-240", nil, "", bwExpected{}}, + {"positive: filter's program loads after the loop: OPS follows CLASSID", "", flt("bytecode", "1,6 0 0 0", "classid", "1:1"), "", + bwExpected{reqs: 2, check: func(t *testing.T, req []byte) { + t.Helper() + o := rtAttrs(req[nlHeaderLen+xtcpnl.TcMsgSizeCst:])[xtcpnl.TcaOptions] + if len(o) < 4 || binary.LittleEndian.Uint16(o[2:4]) != xtcpnl.TcaBpfClassid { + t.Errorf("first option % x, want CLASSID", o) + } + bpfOpsCheck(true, 1, insns(ret0))(t, req) + }}}, + {"negative: an object file is refused by name", "", act("object-file", "x.o", "index", "1"), "", + bwExpected{rc: 255, stderr: "gotc: not implemented: eBPF program via bpf(2)\n"}}, + {"negative: a pinned program (`p`) is refused by name", "", act("p", "/sys/fs/bpf/x", "index", "1"), "", + bwExpected{rc: 255, stderr: "gotc: not implemented: eBPF program via bpf(2)\n"}}, + {"negative: a filter's object file is refused after the loop, so a bad classid comes first", "", flt("object-file", "x.o", "classid", "zz"), "", + bwExpected{rc: 1, reqs: 1, stderr: "Illegal \"classid\"\n"}}, + {"negative: an eBPF option that is incomplete exits before bpf(2)", "", act("obj", "x.o", "section"), "", + bwExpected{rc: 255, stderr: "Command line is not complete. Try option \"help\"\n"}}, + {"negative: every eBPF option word is read before the refusal", "", act("object-file", "x.o", "section", "s", "program", "p", "export", "u", "verbose", "index", "1"), "", + bwExpected{rc: 255, stderr: "gotc: not implemented: eBPF program via bpf(2)\n"}}, + {"negative: a pinned program's incomplete program word exits before bpf(2)", "", act("pinned", "x", "program"), "", + bwExpected{rc: 255, stderr: "Command line is not complete. Try option \"help\"\n"}}, + {"negative: a blank before the header's comma fails with no message (ng-124, W308)", "ng-124", nil, "", + bwExpected{rc: 255, stderr: bpfActParse}}, + {"negative: a trailing comma and blank is one instruction too many (ng-127, W310)", "ng-127", nil, "", + bwExpected{rc: 255, stderr: "Real program length exceeds encoded length parameter!\n" + bpfActParse}}, + {"negative: a hex code is no %hu (ng-126, W309)", "ng-126", nil, "", + bwExpected{rc: 255, stderr: "Error at instruction 0!\n" + bpfActParse}}, + {"negative: a missing file is fopen's perror", "", act("bytecode-file", "nosuch.txt", "index", "1"), "", + bwExpected{rc: 255, stderr: "Cannot fopen: No such file or directory\n" + bpfActParse}}, + {"negative: a directory reads as E2BIG, with no message (ng-131, W311)", "ng-131", nil, "", + bwExpected{rc: 255, stderr: bpfActParse}}, + {"negative: a filter's bad text is Unable to parse", "", flt("bytecode", "1,6 0 0"), "", + bwExpected{rc: 1, reqs: 1, stderr: "Error at instruction 0!\nUnable to parse bpf command line\n"}}, + {"negative: a filter's second program word is What is", "", flt("bc", "1,6 0 0 0", "bc", "1,6 0 0 0"), "", + bwExpected{rc: 1, reqs: 1, has: "What is \"bc\"?\nUsage: ... bpf ...\n"}}, + {"negative: a second run is duparg", "", act("run", "bc", "1,6 0 0 0", "run", "bc", "x"), "", + bwExpected{rc: 255, stderr: "Error: duplicate \"run\": \"bc\" is the second value.\n"}}, + {"boundary: 2038 instructions fit a standalone action (ec-222)", "ec-222", nil, "", bwExpected{}}, + {"boundary: at 2039 PARMS is past 16384 and dropped (ng-120, W307)", "ng-120", nil, "", + bwExpected{rc: 255, has: "addattr_l ERROR: message exceeded bound of 16384\nRTNETLINK answers: Invalid argument\n"}}, + {"boundary: 2041 still sends OPS and drops PARMS (ng-121)", "ng-121", nil, "", + bwExpected{rc: 255, has: "addattr_l ERROR: message exceeded bound of 16384\n"}}, + {"boundary: at 2042 OPS is dropped: OPS_LEN without OPS (ng-122, W307)", "ng-122", nil, "", + bwExpected{rc: 255, has: "addattr_l ERROR: message exceeded bound of 16384\n"}}, + {"boundary: 2039 instructions send OPS whole and no PARMS", "", act("bytecode", bpfProgText(2039), "index", "1"), "", + bwExpected{reqs: 1, stderr: "addattr_l ERROR: message exceeded bound of 16384\n", check: all2( + bpfOpsCheck(false, 2039, bytes.Repeat(insns(xtcpnl.TcBpfInsn{Code: 6}), 2039)), + func(t *testing.T, req []byte) { + t.Helper() + if _, has := firstActOpts(t, req)[xtcpnl.TcaActBpfParms]; has { + t.Error("PARMS sent, want none") + } + })}}, + {"boundary: 2042 instructions send OPS_LEN 2042 and no OPS", "", act("bytecode", bpfProgText(2042), "index", "1"), "", + bwExpected{reqs: 1, stderr: "addattr_l ERROR: message exceeded bound of 16384\n", check: bpfOpsCheck(false, 2042, nil)}}, + {"boundary: 4097 instructions pass BPF_MAXINSNS, with no message (ng-123)", "ng-123", nil, "", + bwExpected{rc: 255, stderr: bpfActParse}}, + {"boundary: 65537 in the header wraps to 1 (ec-223, W308)", "ec-223", nil, "", bwExpected{}}, + {"boundary: 65537 sends a one-instruction program", "", act("bytecode", "65537,6 0 0 0", "index", "1"), "", + bwExpected{reqs: 1, check: bpfOpsCheck(false, 1, insns(ret0))}}, + {"corner: junk after k is never read (ec-224, W309)", "ec-224", nil, "", bwExpected{}}, + {"corner: 0xffff after k is k 0", "", act("bytecode", "1,6 0 0 0xffff", "index", "1"), "", + bwExpected{reqs: 1, check: bpfOpsCheck(false, 1, insns(ret0))}}, + {"corner: each field wraps to its width (ec-225)", "ec-225", nil, "", bwExpected{}}, + {"corner: no program word sends OPS_LEN 0 and an empty OPS (ng-145, W315)", "ng-145", nil, "", + bwExpected{rc: 2, stderr: "RTNETLINK answers: Invalid argument\n" + talkErr}}, + {"corner: no program word, as attributes", "", flt("classid", "1:1"), "", + bwExpected{reqs: 2, check: bpfOpsCheck(true, 0, []byte{})}}, + {"corner: a bare filter kind sends no OPTIONS (ng-146, W316)", "ng-146", nil, "", + bwExpected{rc: 2, stderr: "RTNETLINK answers: Invalid argument\n" + talkErr}}, + {"corner: index first sends PARMS alone (ng-135, W312)", "ng-135", nil, "", + bwExpected{rc: 255, stderr: "RTNETLINK answers: Invalid argument\n" + talkErr}}, + {"corner: `s` is skip_hw and `f` flowid in a filter (ec-254, W318)", "ec-254", nil, "", bwExpected{}}, + {"corner: a control after the program ends the loop (ec-216)", "ec-216", nil, "", bwExpected{}}, + {"corner: `bpf drop` is a mode word (ng-134, W312)", "ng-134", nil, "", + bwExpected{rc: 255, stderr: "What mode is \"drop\"?\nbad action parsing\nparse_action: bad value (2:bpf)!\nIllegal \"action\"\n"}}, + {"corner: a bare kind is incomplete (ng-136, W313)", "ng-136", nil, "", + bwExpected{rc: 255, stderr: "Command line is not complete. Try option \"help\"\n"}}, + {"corner: a bytecode-file batch (ec-258)", "ec-258", nil, "", bwExpected{}}, + }) +} + +// TestCbpfParseOps is bpf_ops_parse and bpf_parse_string. +// +// go test -tags gotc_write ./internal/gotc/ -run TestCbpfParseOps +func TestCbpfParseOps(t *testing.T) { + type expected struct { + n int // instructions; -1 for failure + first xtcpnl.TcBpfInsn // the first, when n > 0 + last *xtcpnl.TcBpfInsn // the last, when set + stderr string + } + ret0 := xtcpnl.TcBpfInsn{Code: 6} + k1 := xtcpnl.TcBpfInsn{Code: 6, K: 1} + tests := []struct { + description string + arg string + file *string // fromFile: the file's content (nil: text) + expected expected + }{ + {"positive: one instruction", "1,6 0 0 0", nil, expected{n: 1, first: ret0}}, + {"positive: four fields each", "2,40 1 2 12,6 0 0 1", nil, expected{n: 2, first: xtcpnl.TcBpfInsn{Code: 40, Jt: 1, Jf: 2, K: 12}, last: &k1}}, + {"positive: a trailing comma ends the program", "1,6 0 0 0,", nil, expected{n: 1, first: ret0}}, + {"positive: a file's newlines and blanks", "bpf.txt", ptr("2\n6\t\t0 0 0\n\n6 0 0 1\n"), expected{n: 2, first: ret0, last: &k1}}, + {"negative: a blank before the header's comma", "4 ,6 0 0 0", nil, expected{n: -1}}, + {"negative: no header comma", "1", nil, expected{n: -1}}, + {"negative: one instruction too many", "1,6 0 0 0,6 0 0 0", nil, expected{n: -1, stderr: "Real program length exceeds encoded length parameter!\n"}}, + {"negative: a trailing comma and blank", "1,6 0 0 0, ", nil, expected{n: -1, stderr: "Real program length exceeds encoded length parameter!\n"}}, + {"negative: too few", "2,6 0 0 0", nil, expected{n: -1, stderr: "Parsed program length is less than encoded length parameter!\n"}}, + {"negative: three fields", "1,6 0 0", nil, expected{n: -1, stderr: "Error at instruction 0!\n"}}, + {"negative: a hex code", "1,0x6 0 0 0", nil, expected{n: -1, stderr: "Error at instruction 0!\n"}}, + {"negative: a missing file", "nosuch.txt", nil, expected{n: -1}}, + {"negative: a leading blank line", "bpf.txt", ptr("\n1\n6 0 0 0\n"), expected{n: -1}}, + {"negative: CRLF", "bpf.txt", ptr("1\r\n6 0 0 0\r\n"), expected{n: -1}}, + {"boundary: a zero length", "0,6 0 0 0", nil, expected{n: -1}}, + {"boundary: BPF_MAXINSNS", bpfProgText(4096), nil, expected{n: 4096, first: ret0}}, + {"boundary: past BPF_MAXINSNS", bpfProgText(4097), nil, expected{n: -1}}, + {"boundary: 65536 wraps to 0", "65536,6 0 0 0", nil, expected{n: -1}}, + {"boundary: 65537 wraps to 1", "65537,6 0 0 0", nil, expected{n: 1, first: ret0}}, + {"corner: junk after k", "1,6 0 0 0xffff", nil, expected{n: 1, first: ret0}}, + {"corner: each field wraps", "1,65542 256 257 4294967297", nil, expected{n: 1, first: xtcpnl.TcBpfInsn{Code: 6, Jf: 1, K: 1}}}, + {"corner: a minus negates modulo the width", "1,-1 -1 0 -1", nil, expected{n: 1, first: xtcpnl.TcBpfInsn{Code: 0xffff, Jt: 0xff, K: 0xffffffff}}}, + {"corner: a NUL in a file ends the text", "bpf.txt", ptr("1,6 0 0 0\x00,6 0 0 0\n"), expected{n: 1, first: ret0}}, + {"corner: a file that fills the buffer is E2BIG", "bpf.txt", ptr(strings.Repeat("x", bpfFileBuf)), expected{n: -1}}, + } + for i := range tests { + tc := &tests[i] + t.Run(tc.description, func(t *testing.T) { + fromFile := tc.file != nil || tc.arg == "nosuch.txt" + if fromFile { + t.Chdir(t.TempDir()) + } + if tc.file != nil { + if err := os.WriteFile(tc.arg, []byte(*tc.file), 0o600); err != nil { + t.Fatal(err) + } + } + var errb bytes.Buffer + r := &runner{stderr: &errb} + got, ok := r.bpfOpsParse(tc.arg, fromFile) + e := tc.expected + stderr := e.stderr + if tc.arg == "nosuch.txt" { + stderr = "Cannot fopen: No such file or directory\n" + } + n := len(got) + if !ok { + n = -1 + } + if n != e.n || errb.String() != stderr { + t.Fatalf("got %d insns, stderr %q; want %d, %q", n, errb.String(), e.n, stderr) + } + if n > 0 && got[0] != e.first { + t.Errorf("first %+v, want %+v", got[0], e.first) + } + if e.last != nil && got[n-1] != *e.last { + t.Errorf("last %+v, want %+v", got[n-1], *e.last) + } + }) + } +} + +// FuzzCbpfParseOps drives bpf_ops_parse with text, or (fromFile) a file of +// it. A parse must not panic, a program must hold 1 to BPF_MAXINSNS +// instructions, its own message is at most one line, and a file's text +// reduced without a newline or blank run parses as the text does. +// +// go test -tags gotc_write ./internal/gotc/ -run '^$' -fuzz FuzzCbpfParseOps -fuzztime 60s +func FuzzCbpfParseOps(f *testing.F) { + for _, s := range []string{ + "1,6 0 0 0", "4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0", "1,6 0 0 0,", "1,6 0 0 0, ", + "65537,6 0 0 0", "1,6 0 0 0xffff", "4 ,6 0 0 0", "2,6 0 0 0", "1,0x6 0 0 0", "0,", "1,-1 +2 3 4", + "2\n6 0 0 0\n6 0 0 1\n", "\n1\n6 0 0 0", "1\r\n6 0 0 0\r\n", "1,6\t0 0 0", + } { + f.Add(s, false) + f.Add(s, true) + } + dir := f.TempDir() + f.Fuzz(func(t *testing.T, s string, fromFile bool) { + if len(s) > 2*bpfFileBuf { + t.Skip() + } + arg := s + if fromFile { + arg = filepath.Join(dir, "bpf.txt") + if err := os.WriteFile(arg, []byte(s), 0o600); err != nil { + t.Fatal(err) + } + } + var errb bytes.Buffer + r := &runner{stderr: &errb} + got, ok := r.bpfOpsParse(arg, fromFile) + if ok && (len(got) == 0 || len(got) > bpfMaxInsns) { + t.Fatalf("%q: %d instructions", s, len(got)) + } + if strings.Count(errb.String(), "\n") > 1 { + t.Fatalf("%q: stderr %q", s, errb.String()) + } + if fromFile && !strings.ContainsAny(s, "\n\x00") && !strings.Contains(s, " ") && !strings.ContainsAny(s, "\t") { + var e2 bytes.Buffer + r2 := &runner{stderr: &e2} + want, wok := r2.bpfOpsParse(s, false) + if len(s) < bpfFileBuf && (wok != ok || len(want) != len(got) || e2.String() != errb.String()) { + t.Fatalf("%q: file %v %d %q, text %v %d %q", s, ok, len(got), errb.String(), wok, len(want), e2.String()) + } + } + }) +} diff --git a/internal/gotc/aw_ct.go b/internal/gotc/aw_ct.go new file mode 100644 index 000000000..4165dc01b --- /dev/null +++ b/internal/gotc/aw_ct.go @@ -0,0 +1,391 @@ +//go:build gotc_write + +package gotc + +import ( + "encoding/binary" + "fmt" + "strconv" + "strings" + + "github.com/randomizedcoder/xtcp2/internal/goip/render" + "github.com/randomizedcoder/xtcp2/pkg/xtcpnl" + "golang.org/x/sys/unix" +) + +// tc/m_ct.c parse_ct at iproute2 v7.2.0, with lib/inet_proto.c +// inet_proto_a2n for the helper's protocol. + +// ctSprintBuf is SPRINT_BUF's size: the nat range parsers strncpy their +// argument into one of these, uninitialised, keeping 63 bytes. +const ctSprintBuf = 64 + +// ctLabelsSize is m_ct.c LABELS_SIZE. +const ctLabelsSize = 16 + +// ctHelperBuf is ct_parse_helper's `char f[32], p[32], name[32]`. +const ctHelperBuf = 32 + +// ctUsage is m_ct.c usage: its text, then exit(-1). +func (r *runner) ctUsage() error { + r.errf("%s", "Usage: ct clear\n"+ + "\tct commit [force] [zone ZONE] [mark MASKED_MARK] [label MASKED_LABEL] [nat NAT_SPEC] [helper HELPER]\n"+ + "\tct [nat] [zone ZONE]\n"+ + "Where: ZONE is the conntrack zone table number\n"+ + "\tNAT_SPEC is {src|dst} addr addr1[-addr2] [port port1[-port2]]\n"+ + "\tHELPER is family-proto-name such as ipv4-tcp-ftp\n"+ + "\n") + return exitCode(-1) +} + +// parseCt is parse_ct: the options nest is opened first and each option's +// attributes are added as it is read; a word that is no option ends the +// loop, and only then the control word, so `index` after it is the next +// action's kind (W288). nat's words each need one after them (W276, +// W277). TCA_CT_ACTION and TCA_CT_PARMS close the nest. +func (r *runner) parseCt(ops *fops, args []string, tcaID uint16) ([]string, bool, error) { + var sel xtcpnl.TcGen + var act uint16 + var err error + nest := ops.begin(maxMsg, tcaID) + if len(args) > 0 && matches(args[0], xtcpnl.TcActKindCt) { + args = args[1:] + } +loop: + for len(args) > 0 { + switch { + case matches(args[0], "zone"): + if args, err = r.nextArg(args); err != nil { + return nil, false, err + } + v, good := getU16(args[0], 0) // ct_parse_u16 with no mask: no '/' split (W290) + if !good { + r.errf("ct: Illegal \"zone\"\n") + return nil, false, nil + } + ops.put(maxMsg, xtcpnl.TcaCtZone, binary.LittleEndian.AppendUint16(nil, v)) + case matches(args[0], "nat"): + var again, ok bool + if args, again, ok, err = r.ctNat(ops, args, &act); err != nil || !ok { + return nil, false, err + } + if again { + continue // the word after nat, or after its address, is read again + } + case matches(args[0], "clear"): + act |= xtcpnl.TcaCtActClear + case matches(args[0], "commit"): + act |= xtcpnl.TcaCtActCommit + case matches(args[0], "force"): + act |= xtcpnl.TcaCtActForce + case matches(args[0], "index"): + if args, err = r.nextArg(args); err != nil { + return nil, false, err + } + i, good := getU32(args[0], 10) + if !good { + r.errf("ct: Illegal \"index\"\n") + return nil, false, nil + } + sel.Index = i + case matches(args[0], "mark"): + if args, err = r.nextArg(args); err != nil { + return nil, false, err + } + if !r.ctMark(ops, args) { + r.errf("ct: Illegal \"mark\"\n") + return nil, false, nil + } + case matches(args[0], "label"): + if args, err = r.nextArg(args); err != nil { + return nil, false, err + } + if err = r.ctLabels(ops, args); err != nil { + return nil, false, err + } + case matches(args[0], helpWord): + return nil, false, r.ctUsage() + case matches(args[0], "helper"): + if args, err = r.nextArg(args); err != nil { + return nil, false, err + } + if !ctHelper(ops, args[0]) { + r.errf("ct: Illegal \"helper\"\n") + return nil, false, nil + } + default: + break loop + } + args = args[1:] // NEXT_ARG_FWD + } + if msg := ctCheck(act); msg != "" { + r.errf("%s", msg) + return nil, false, nil + } + if args, sel.Action, err = r.parseActionControlDflt(args, tcActPipe); err != nil { + return nil, false, err + } + ops.put(maxMsg, xtcpnl.TcaCtAction, binary.LittleEndian.AppendUint16(nil, act)) + ops.put(maxMsg, xtcpnl.TcaCtParms, sel.Append(nil)) + ops.end(nest) + return args, true, nil +} + +// ctCheck is parse_ct's checks of the action bits after the loop, in +// tc's order: the message of the first that fails, or "". +func ctCheck(act uint16) string { + const natDir = xtcpnl.TcaCtActNatSrc | xtcpnl.TcaCtActNatDst + switch { + case act&xtcpnl.TcaCtActClear != 0 && act&^xtcpnl.TcaCtActClear != 0: + return "ct: clear can only be used alone\n" + case act&xtcpnl.TcaCtActNatSrc != 0 && act&xtcpnl.TcaCtActNatDst != 0: + return "ct: src and dst nat can't be used together\n" + case act&xtcpnl.TcaCtActCommit != 0 && act&xtcpnl.TcaCtActNat != 0 && act&natDir == 0: + return "ct: commit and nat must set src or dst\n" + case act&xtcpnl.TcaCtActCommit == 0 && act&natDir != 0: + return "ct: src or dst is only valid if commit is set\n" + } + return "" +} + +// ctNat is parse_ct's nat arm, args at "nat": src or dst, else the word +// is read again (again); "addr" or usage's exit; the range; then a word +// must follow (W276), port's range if it is "port", else that word is +// read again. ok false is a -1, after its message. +func (r *runner) ctNat(ops *fops, args []string, act *uint16) (rest []string, again, ok bool, err error) { + *act |= xtcpnl.TcaCtActNat + if args, err = r.nextArg(args); err != nil { + return nil, false, false, err + } + switch { + case matches(args[0], wordSrc): + *act |= xtcpnl.TcaCtActNatSrc + case matches(args[0], wordDst): + *act |= xtcpnl.TcaCtActNatDst + default: + return args, true, true, nil + } + if args, err = r.nextArg(args); err != nil { + return nil, false, false, err + } + if !matches(args[0], "addr") { + return nil, false, false, r.ctUsage() // W278 + } + if args, err = r.nextArg(args); err != nil { + return nil, false, false, err + } + if err = r.ctNatAddr(ops, args[0]); err != nil { + return nil, false, false, err + } + if args, err = r.nextArg(args); err != nil { + return nil, false, false, err + } + if !matches(args[0], "port") { + return args, true, true, nil + } + if args, err = r.nextArg(args); err != nil { + return nil, false, false, err + } + good, err := ctNatPort(ops, args[0]) + if err != nil { + return nil, false, false, err + } + if !good { + r.errf("ct: Illegal nat port range\n") // W282 + return nil, false, false, nil + } + return args, false, true, nil +} + +// ctSprintCopy is the nat range parsers' strncpy(buffer, str, 63) into an +// uninitialised SPRINT_BUF: an argument of 63 bytes or more leaves the +// copy unterminated, and tc reads the stack past it (W280). +func ctSprintCopy(s string) error { + if len(s) >= ctSprintBuf-1 { + return fmt.Errorf("%w: ct nat argument of %d bytes: tc reads past its unterminated %d-byte copy (W280)", + errNotImplemented, len(s), ctSprintBuf-1) + } + return nil +} + +// ctNatAddr is ct_parse_nat_addr_range: addr1[-addr2], each by get_addr, +// whose exit(1) makes "ct: Illegal nat address range" unreachable; the +// second takes the first's family (W279). The family picks IPV4 or IPV6 +// attributes, and any, all and default are 0 bytes of IPV6 (W281); with +// no addr2, MAX repeats MIN. +func (r *runner) ctNatAddr(ops *fops, s string) error { + if err := ctSprintCopy(s); err != nil { + return err + } + a1, a2, two := strings.Cut(s, "-") + addr, err := r.getAddr(a1, unix.AF_UNSPEC) + if err != nil { + return err + } + minT, maxT := xtcpnl.TcaCtNatIPv6Min, xtcpnl.TcaCtNatIPv6Max + if addr.family == unix.AF_INET { + minT = xtcpnl.TcaCtNatIPv4Min + } + ops.put(maxMsg, minT, append([]byte(nil), addr.data[:addr.byteLen()]...)) + if two { + if addr, err = r.getAddr(a2, addr.family); err != nil { + return err + } + } + if addr.family == unix.AF_INET { + maxT = xtcpnl.TcaCtNatIPv4Max + } + ops.put(maxMsg, maxT, append([]byte(nil), addr.data[:addr.byteLen()]...)) + return nil +} + +// ctNatPort is ct_parse_nat_port_range: port1[-port2], each get_be16 base +// 10, and MAX repeats MIN with no port2. Neither order nor emptiness is +// checked beyond get_u16's (W282). +func ctNatPort(ops *fops, s string) (bool, error) { + if err := ctSprintCopy(s); err != nil { + return false, err + } + p1, p2, two := strings.Cut(s, "-") + port, good := getU16(p1, 10) + if !good { + return false, nil + } + ops.put(maxMsg, xtcpnl.TcaCtNatPortMin, binary.BigEndian.AppendUint16(nil, port)) + if two { + if port, good = getU16(p2, 10); !good { + return false, nil + } + } + ops.put(maxMsg, xtcpnl.TcaCtNatPortMax, binary.BigEndian.AppendUint16(nil, port)) + return true, nil +} + +// ctMark is ct_parse_mark (ct_parse_u32): VALUE[/MASK], each get_u32 base +// 0, the mask all ones without one. The NUL written at the '/' is never +// put back (W291). +func (r *runner) ctMark(ops *fops, args []string) bool { + s := args[0] + v, m, slash := strings.Cut(s, "/") + if slash { + r.mem.nul(args, len(v)) + } + val, good := getU32(v, 0) + if !good { + return false + } + mask := ^uint32(0) + if slash { + if mask, good = getU32(m, 0); !good { + return false + } + } + ops.u32(maxMsg, xtcpnl.TcaCtMark, val) + ops.u32(maxMsg, xtcpnl.TcaCtMarkMask, mask) + return true +} + +// ctLabels is ct_parse_labels: LABEL[/MASK] in hex. Either longer than 32 +// is invarg naming the label and its length (W285); each sends its length +// halved, so an odd last digit is dropped and "0" sends nothing (W287); +// a bad digit is invarg with a doubled newline (W286). The mask is 16 +// bytes of 0xff without one. The NUL written at the '/' is never put back +// (W291). +func (r *runner) ctLabels(ops *fops, args []string) error { + s, mask, slash := strings.Cut(args[0], "/") + if slash { + r.mem.nul(args, len(s)) + } + if len(s) > ctLabelsSize*2 || len(mask) > ctLabelsSize*2 { + return r.invarg(strconv.Itoa(len(s))+" Max allowed size "+strconv.Itoa(ctLabelsSize*2), s) + } + labels := make([]byte, len(s)/2) + if !hex2mem(s, labels) { + return r.invarg("ct: labels must be a hex string\n", s) + } + ops.put(maxMsg, xtcpnl.TcaCtLabels, labels) + lmask := make([]byte, ctLabelsSize) + if slash { + lmask = lmask[:len(mask)/2] + if !hex2mem(mask, lmask) { + return r.invarg("ct: labels mask must be a hex string\n", mask) + } + } else { + for i := range lmask { + lmask[i] = 0xff + } + } + ops.put(maxMsg, xtcpnl.TcaCtLabelsMask, lmask) + return nil +} + +// ctHelper is ct_parse_helper: under 32 bytes, sscanf's +// "%[^-]-%[^-]-%[^-]" keeping three non-empty fields, so a fourth is +// dropped (W283); the family ipv4 or ipv6; the protocol by +// inet_proto_a2n. FAMILY, PROTO and NAME are added in that order. +func ctHelper(ops *fops, s string) bool { + if len(s) >= ctHelperBuf { + return false + } + f, p, name, good := scanDash3(s) + if !good { + return false + } + var family uint8 + switch f { + case "ipv4": + family = unix.AF_INET + case "ipv6": + family = unix.AF_INET6 + default: + return false + } + proto, good := inetProtoA2N(p) + if !good { + return false + } + ops.put(maxMsg, xtcpnl.TcaCtHelperFamily, []byte{family}) + ops.put(maxMsg, xtcpnl.TcaCtHelperProto, []byte{proto}) + ops.str(maxMsg, xtcpnl.TcaCtHelperName, name) + return true +} + +// scanDash3 is sscanf(s, "%[^-]-%[^-]-%[^-]", f, p, name) == 3: each +// %[^-] needs at least one byte. +func scanDash3(s string) (f, p, name string, ok bool) { + field := func() (string, bool) { + i := strings.IndexByte(s, '-') + if i < 0 { + i = len(s) + } + w := s[:i] + s = s[i:] + return w, w != "" + } + sep := func() bool { + if s == "" || s[0] != '-' { + return false + } + s = s[1:] + return true + } + if f, ok = field(); !ok || !sep() { + return "", "", "", false + } + if p, ok = field(); !ok || !sep() { + return "", "", "", false + } + name, ok = field() + return f, p, name, ok +} + +// inetProtoA2N is inet_proto_a2n: get_u8 base 10 (so 0x6 is no number, +// W284), else getprotobyname of the workbench's /etc/protocols +// (render.ProtoByName). Its static cache holds the canonical name, which +// maps to the number it cached, so it changes no answer. +func inetProtoA2N(s string) (uint8, bool) { + if v, ok := getU8(s, 10); ok { + return v, true + } + return render.ProtoByName(s) +} diff --git a/internal/gotc/aw_ct_test.go b/internal/gotc/aw_ct_test.go new file mode 100644 index 000000000..6c91f369a --- /dev/null +++ b/internal/gotc/aw_ct_test.go @@ -0,0 +1,172 @@ +//go:build gotc_write + +package gotc + +import ( + "bytes" + "strings" + "testing" + + "github.com/randomizedcoder/xtcp2/pkg/xtcpnl" +) + +// ctUsageText is m_ct.c usage's text. +const ctUsageText = "Usage: ct clear\n" + + "\tct commit [force] [zone ZONE] [mark MASKED_MARK] [label MASKED_LABEL] [nat NAT_SPEC] [helper HELPER]\n" + + "\tct [nat] [zone ZONE]\n" + + "Where: ZONE is the conntrack zone table number\n" + + "\tNAT_SPEC is {src|dst} addr addr1[-addr2] [port port1[-port2]]\n" + + "\tHELPER is family-proto-name such as ipv4-tcp-ftp\n" + + "\n" + +// TestGotcCtWrite is aw_ct.go: tcact2write rows are held to tc's bytes, +// the rest are fake rows checked attribute by attribute. +// +// go test -tags gotc_write ./internal/gotc/ -run TestGotcCtWrite +func TestGotcCtWrite(t *testing.T) { + nat63 := "2001:0db8:0000:0000:0000:0000:0000:0001-2001:0db8:0000:0000::09" + cases := []awCase{ + {"positive: commit with zone, mark and label: each sent as read, both masks always", "", strings.Fields("ct commit zone 3 mark 1/0xff label 01/ff pipe"), + awExpected{reqs: 1, opts: all( + optBytes(xtcpnl.TcaCtZone, le16b(3)), optBytes(xtcpnl.TcaCtMark, le32b(1)), + optBytes(xtcpnl.TcaCtMarkMask, le32b(0xff)), optBytes(xtcpnl.TcaCtLabels, []byte{1}), + optBytes(xtcpnl.TcaCtLabelsMask, []byte{0xff}), optBytes(xtcpnl.TcaCtAction, le16b(xtcpnl.TcaCtActCommit)), + parmsU32At(xtcpnl.TcaCtParms, 8, tcActPipe))}}, + {"positive: commit, zone, masked mark and label as tc sends them", act2Row("ec-153"), nil, awExpected{}}, + {"positive: mark alone has the all-ones mask, label alone 16 bytes of 0xff", "", strings.Fields("ct commit mark 5 label 0102"), + awExpected{reqs: 1, opts: all(optBytes(xtcpnl.TcaCtMarkMask, le32b(0xffffffff)), + optBytes(xtcpnl.TcaCtLabelsMask, bytes.Repeat([]byte{0xff}, 16)))}}, + {"positive: a v4 nat range with ports", act2Row("ec-156"), nil, awExpected{}}, + {"positive: a v6 nat range with ports", act2Row("ec-159"), nil, awExpected{}}, + {"positive: a single address and port: MAX repeats MIN", "", strings.Fields("ct commit nat dst addr 10.0.0.1 port 80"), + awExpected{reqs: 1, opts: all(optBytes(xtcpnl.TcaCtNatIPv4Min, []byte{10, 0, 0, 1}), optBytes(xtcpnl.TcaCtNatIPv4Max, []byte{10, 0, 0, 1}), + optBytes(xtcpnl.TcaCtNatPortMin, []byte{0, 80}), optBytes(xtcpnl.TcaCtNatPortMax, []byte{0, 80}))}}, + {"positive: helper ipv4-tcp-ftp sends FAMILY, PROTO and NAME", act2Row("ec-162"), nil, awExpected{stderr: actAPIWarn}}, + {"positive: helper's protocol by number and by name agree", "", strings.Fields("ct commit helper ipv6-6-ftp"), + awExpected{reqs: 1, opts: all(optBytes(xtcpnl.TcaCtHelperFamily, u8b(10)), optBytes(xtcpnl.TcaCtHelperProto, u8b(6)), + optBytes(xtcpnl.TcaCtHelperName, []byte("ftp\x00")))}}, + {"negative: nat's address as the last words is incomplete (W276)", act2Row("ng-077"), nil, awExpected{rc: 255, stderr: "Command line is not complete. Try option \"help\"\n"}}, + {"negative: a bare nat is incomplete, though the usage shows [nat] (W277)", act2Row("ng-078"), nil, awExpected{rc: 255, stderr: "Command line is not complete. Try option \"help\"\n"}}, + {"negative: nat src without addr is usage's exit (W278)", act2Row("ng-079"), nil, awExpected{rc: 255, stderr: ctUsageText}}, + {"negative: a bad nat address is get_addr's exit(1) (W279)", act2Row("ng-080"), nil, + awExpected{rc: 1, stderr: "Error: any valid address is expected rather than \"bogus\".\n"}}, + {"negative: the second address takes the first's family (W279)", act2Row("ng-081"), nil, + awExpected{rc: 1, stderr: "Error: inet address is expected rather than \"2001:db8::1\".\n"}}, + {"negative: a hex port is no base-10 number (W282)", act2Row("ng-084"), nil, awExpected{rc: 255, stderr: "ct: Illegal nat port range\n" + parseTail(10, "ct")}}, + {"negative: a hex protocol is no base-10 number and no name (W284)", act2Row("ng-087"), nil, awExpected{rc: 255, stderr: "ct: Illegal \"helper\"\n" + parseTail(6, "ct")}}, + {"negative: clear with commit", act2Row("ng-094"), nil, awExpected{rc: 255, stderr: "ct: clear can only be used alone\n" + parseTail(5, "ct")}}, + {"negative: help is usage's exit", act2Row("ng-101"), nil, awExpected{rc: 255, stderr: ctUsageText}}, + {"negative: zone's slash is no mask (W290)", act2Row("ng-092"), nil, awExpected{rc: 255, stderr: "ct: Illegal \"zone\"\n" + parseTail(5, "ct")}}, + {"boundary: a 32-digit label is sent", act2Row("ec-166"), nil, awExpected{}}, + {"boundary: a 34-digit label is invarg naming it and its length (W285)", act2Row("ng-088"), nil, + awExpected{rc: 255, stderr: "Error: argument \"0123456789abcdef0123456789abcdef01\" is wrong: 34 Max allowed size 32\n"}}, + {"boundary: a too-long mask is reported against the label (W285)", act2Row("ng-089"), nil, + awExpected{rc: 255, stderr: "Error: argument \"01\" is wrong: 2 Max allowed size 32\n"}}, + {"boundary: a 62-byte nat range is parsed", act2Row("ec-167"), nil, awExpected{}}, + {"boundary: a 63-byte nat range is refused by name: tc reads past its copy (W280)", "", []string{"ct", "commit", "nat", "src", "addr", nat63}, + awExpected{rc: 255, has: "(W280)"}}, + {"boundary: a 63-byte port range is refused by name too (W280)", "", []string{"ct", "commit", "nat", "src", "addr", "10.0.0.1", "port", strings.Repeat("1", 63)}, + awExpected{rc: 255, has: "(W280)"}}, + {"corner: index after the control word is the next action's kind (W288)", act2Row("ng-091"), nil, + awExpected{rc: 255, stderr: "Error: Failed to load TC action module.\n" + talkErr}}, + {"corner: a 4-field helper sends its third field (W283)", act2Row("ng-085"), nil, + awExpected{rc: 255, stderr: "Error: act_ct: Failed to add helper.\n" + talkErr}}, + {"corner: addr any is a 0-byte IPV6_MIN and MAX (W281)", act2Row("ng-082"), nil, + awExpected{rc: 255, stderr: "Error: binary attribute size out of range.\n" + talkErr}}, + {"corner: an odd label drops its last digit (W287)", act2Row("ec-172"), nil, awExpected{}}, + {"corner: label 0 sends no bytes (W287)", act2Row("ec-173"), nil, awExpected{}}, + {"corner: a bad label digit is invarg with a doubled newline (W286)", act2Row("ng-090"), nil, + awExpected{rc: 255, stderr: "Error: argument \"zz\" is wrong: ct: labels must be a hex string\n\n"}}, + {"corner: prefixes: co is commit, z zone, m mark (W292)", act2Row("ec-177"), nil, awExpected{}}, + {"corner: h is help, not helper (W292)", act2Row("ng-093"), nil, awExpected{rc: 255, stderr: ctUsageText}}, + {"corner: nat with no src or dst reads its word again", act2Row("ec-161"), nil, awExpected{}}, + {"corner: the mark's and label's '/' NULs carry into a later simple sdata (W291)", act2Row("ec-257"), nil, awExpected{}}, + {"corner: the -force batch goes on after a -1", act2Row("ng-160"), nil, + awExpected{rc: 1, stderr: "ct: clear can only be used alone\n" + parseTail(5, "ct") + "Command failed b.txt:1\n"}}, + } + runAwCases(t, cases) +} + +// TestCtHelpers is aw_ct.go's pure helpers. +// +// go test -tags gotc_write ./internal/gotc/ -run TestCtHelpers +func TestCtHelpers(t *testing.T) { + t.Run("scanDash3", func(t *testing.T) { + for _, tc := range []struct { + description, in string + expected string // f|p|name, or "" for a count short of 3 + }{ + {"positive: three fields", "ipv4-tcp-ftp", "ipv4|tcp|ftp"}, + {"corner: a fourth field is dropped (W283)", "ipv4-udp-netbios-ns", "ipv4|udp|netbios"}, + {"negative: an empty name", "ipv4-tcp-", ""}, + {"negative: an empty first field", "-tcp-ftp", ""}, + {"negative: two fields", "ipv4-tcp", ""}, + {"boundary: one byte each", "a-b-c", "a|b|c"}, + {"corner: a doubled dash is an empty field", "ipv4--ftp", ""}, + } { + t.Run(tc.description, func(t *testing.T) { + f, p, n, ok := scanDash3(tc.in) + got := "" + if ok { + got = f + "|" + p + "|" + n + } + if got != tc.expected { + t.Errorf("scanDash3(%q) = %q, want %q", tc.in, got, tc.expected) + } + }) + } + }) + t.Run("inetProtoA2N", func(t *testing.T) { + for _, tc := range []struct { + description, in string + expected int // -1 for none + }{ + {"positive: a name", "tcp", 6}, + {"positive: an alias", "UDP", 17}, + {"positive: a number", "6", 6}, + {"boundary: 255", "255", 255}, + {"negative: 256 is no u8 and no name", "256", -1}, + {"negative: hex is no base-10 number (W284)", "0x6", -1}, + {"corner: getprotobyname is case-sensitive", "Tcp", -1}, + } { + t.Run(tc.description, func(t *testing.T) { + v, ok := inetProtoA2N(tc.in) + got := -1 + if ok { + got = int(v) + } + if got != tc.expected { + t.Errorf("inetProtoA2N(%q) = %d, want %d", tc.in, got, tc.expected) + } + }) + } + }) + t.Run("ctCheck", func(t *testing.T) { + const ( + c = xtcpnl.TcaCtActCommit + n = xtcpnl.TcaCtActNat + src = xtcpnl.TcaCtActNatSrc + dst = xtcpnl.TcaCtActNatDst + ) + for _, tc := range []struct { + description string + act uint16 + expected string + }{ + {"positive: commit with nat src", c | n | src, ""}, + {"positive: nat alone (restore)", n, ""}, + {"negative: clear and force", xtcpnl.TcaCtActClear | xtcpnl.TcaCtActForce, "ct: clear can only be used alone\n"}, + {"negative: src and dst", c | n | src | dst, "ct: src and dst nat can't be used together\n"}, + {"negative: commit and nat without a direction", c | n, "ct: commit and nat must set src or dst\n"}, + {"negative: a direction without commit", n | dst, "ct: src or dst is only valid if commit is set\n"}, + {"boundary: nothing", 0, ""}, + {"corner: clear alone", xtcpnl.TcaCtActClear, ""}, + } { + t.Run(tc.description, func(t *testing.T) { + if got := ctCheck(tc.act); got != tc.expected { + t.Errorf("ctCheck(%#x) = %q, want %q", tc.act, got, tc.expected) + } + }) + } + }) +} diff --git a/internal/gotc/aw_gate.go b/internal/gotc/aw_gate.go new file mode 100644 index 000000000..370c1ca32 --- /dev/null +++ b/internal/gotc/aw_gate.go @@ -0,0 +1,348 @@ +//go:build gotc_write + +package gotc + +import ( + "encoding/binary" + "fmt" + "math" + "strings" + + "github.com/randomizedcoder/xtcp2/pkg/cint" + "github.com/randomizedcoder/xtcp2/pkg/xtcpnl" + "golang.org/x/sys/unix" +) + +// tc/m_gate.c parse_gate at iproute2 v7.2.0, with tc_util.c get_clockid +// (getClockid) and lib/utils_math.c get_size. + +// gateEntryMax is add_gate_list's addattr_nest(n, 1024, …): each entry's +// nest is held to 1024 bytes of the whole message, so from about the 31st +// entry its header is refused and its end patches the first attribute +// after it (W293). +const gateEntryMax = 1024 + +// gateEntry is m_gate.c struct gate_entry. +type gateEntry struct { + open bool + interval uint32 + ipv int32 + maxoctets int32 +} + +// gateExplain is m_gate.c explain, "pas" and all (W300). +func (r *runner) gateExplain() { + r.errf("%s", "Usage: gate [ priority PRIO-SPEC ] [ base-time BASE-TIME ]\n"+ + " [ cycle-time CYCLE-TIME ]\n"+ + " [ cycle-time-ext CYCLE-TIME-EXT ]\n"+ + " [ clockid CLOCKID ] [flags FLAGS]\n"+ + " [ sched-entry GATE0 INTERVAL [ INTERNAL-PRIO-VALUE MAX-OCTETS ] ]\n"+ + " [ sched-entry GATE1 INTERVAL [ INTERNAL-PRIO-VALUE MAX-OCTETS ] ]\n"+ + " ......\n"+ + " [ sched-entry GATEn INTERVAL [ INTERNAL-PRIO-VALUE MAX-OCTETS ] ]\n"+ + " [ CONTROL ]\n"+ + " GATEn := open | close\n"+ + " INTERVAL : nanoseconds period of gate slot\n"+ + " INTERNAL-PRIO-VALUE : internal priority decide which\n"+ + " rx queue number direct to.\n"+ + " default to be -1 which means wildcard.\n"+ + " MAX-OCTETS : maximum number of MSDU octets that are\n"+ + " permitted to pas the gate during the\n"+ + " specified TimeInterval.\n"+ + " default to be -1 which means wildcard.\n"+ + " CONTROL := pipe | drop | continue | pass |\n"+ + " goto chain \n") +} + +// gateIncomplete is a sched-entry's failure: explain_entry_format, then +// "\"sched-entry\" is incomplete", a -1 (W300). +func (r *runner) gateIncomplete() { + r.errf("Usage: sched-entry [ ]\n") + r.errf("\"sched-entry\" is incomplete\n") +} + +// gateArgs is parse_gate's locals. +type gateArgs struct { + parm xtcpnl.TcGen + clockid int32 + base, cycle, cycleExt int64 + flags uint32 + prio int32 + entries []gateEntry +} + +// parseGate is parse_gate: the options in any order and any number of +// times, the last winning (W306), until a word that is none; then the +// control word, so `index` after it is the next action's kind (W303). +// A zero value is not sent, nor priority -1 (W299). A bad option value is +// invarg's exit(-1) (W301). +func (r *runner) parseGate(ops *fops, args []string, tcaID uint16) ([]string, bool, error) { + a := gateArgs{parm: xtcpnl.TcGen{Action: tcActPipe}, clockid: clockidInvalid, prio: -1} + args, err := r.nextArg(args) // past "gate": a bare gate is incomplete + if err != nil { + return nil, false, err + } +loop: + for len(args) > 0 { + var good bool + switch { + case matches(args[0], "index"): + if args, err = r.nextArg(args); err != nil { + return nil, false, err + } + if a.parm.Index, good = getU32(args[0], 10); !good { + return nil, false, r.invarg("index", args[0]) + } + case matches(args[0], "priority"): + if args, err = r.nextArg(args); err != nil { + return nil, false, err + } + if a.prio, good = getS32(args[0], 0); !good { + return nil, false, r.invarg("priority", args[0]) + } + case matches(args[0], "base-time"): + if args, err = r.gateS64Time(args, &a.base, "base-time"); err != nil { + return nil, false, err + } + case matches(args[0], "cycle-time"): + if args, err = r.gateS64Time(args, &a.cycle, "cycle-time"); err != nil { + return nil, false, err + } + case matches(args[0], "cycle-time-ext"): + if args, err = r.gateS64Time(args, &a.cycleExt, "cycle-time-ext"); err != nil { + return nil, false, err + } + case matches(args[0], "clockid"): + if args, err = r.nextArg(args); err != nil { + return nil, false, err + } + if a.clockid, good = getClockid(args[0]); !good { + return nil, false, r.invarg("clockid", args[0]) + } + case matches(args[0], wordFlags): + if args, err = r.nextArg(args); err != nil { + return nil, false, err + } + if a.flags, good = getU32(args[0], 0); !good { + return nil, false, r.invarg(wordFlags, args[0]) + } + case matches(args[0], "sched-entry"): + var e gateEntry + if args, e, good, err = r.gateSchedEntry(args); err != nil || !good { + return nil, false, err + } + a.entries = append(a.entries, e) + case matches(args[0], helpWord): + r.gateExplain() + return nil, false, exitCode(-1) + default: + break loop + } + args = args[1:] + } + if args, a.parm.Action, err = r.parseActionControlDflt(args, tcActPipe); err != nil { + return nil, false, err + } + if len(a.entries) == 0 && a.parm.Index == 0 { + r.errf("gate: must add at least one entry\n") + return nil, false, nil + } + a.put(ops, tcaID) + return args, true, nil +} + +// put is parse_gate's attributes: PARMS, then each nonzero option, then +// ENTRY_LIST, empty for `gate index N` (W305), each entry's nest held to +// 1024 (W293). A closed entry always carries ipv and maxoctets -1 (W304). +func (a *gateArgs) put(ops *fops, tcaID uint16) { + le32 := func(v uint32) []byte { return binary.LittleEndian.AppendUint32(nil, v) } + le64 := func(v int64) []byte { return binary.LittleEndian.AppendUint64(nil, cint.U64Bits(v)) } + nest := ops.begin(maxMsg, tcaID) + ops.put(maxMsg, xtcpnl.TcaGateParms, a.parm.Append(nil)) + if a.prio != -1 { + ops.put(maxMsg, xtcpnl.TcaGatePriority, le32(cint.Bits(a.prio))) + } + if a.flags != 0 { + ops.put(maxMsg, xtcpnl.TcaGateFlags, le32(a.flags)) + } + if a.base != 0 { + ops.put(maxMsg, xtcpnl.TcaGateBaseTime, le64(a.base)) + } + if a.cycle != 0 { + ops.put(maxMsg, xtcpnl.TcaGateCycleTime, le64(a.cycle)) + } + if a.cycleExt != 0 { + ops.put(maxMsg, xtcpnl.TcaGateCycleTimeExt, le64(a.cycleExt)) + } + if a.clockid != clockidInvalid { + ops.put(maxMsg, xtcpnl.TcaGateClockid, le32(cint.Bits(a.clockid))) + } + list := ops.begin(maxMsg, xtcpnl.TcaGateEntryList|unix.NLA_F_NESTED) + for _, e := range a.entries { + en := ops.begin(gateEntryMax, xtcpnl.TcaGateOneEntry|unix.NLA_F_NESTED) + if e.open { + ops.put(maxMsg, xtcpnl.TcaGateEntryGate, nil) + } + ops.put(maxMsg, xtcpnl.TcaGateEntryInterval, le32(e.interval)) + ops.put(maxMsg, xtcpnl.TcaGateEntryIpv, le32(cint.Bits(e.ipv))) + ops.put(maxMsg, xtcpnl.TcaGateEntryMaxOctets, le32(cint.Bits(e.maxoctets))) + ops.end(en) + } + ops.end(list) + ops.end(nest) +} + +// gateS64Time is the base-time, cycle-time and cycle-time-ext arms: +// get_s64 base 10, else get_time64 (so -1 is u64 max and -1ms is invarg, +// W298), else invarg naming the option. +func (r *runner) gateS64Time(args []string, v *int64, name string) ([]string, error) { + args, err := r.nextArg(args) + if err != nil { + return nil, err + } + if n, ok := getS64(args[0], 10); ok { + *v = n + return args, nil + } + n, ok, err := gateTime64(args[0]) + if err != nil { + return nil, err + } + if !ok { + return nil, r.invarg(name, args[0]) + } + *v = n + return args, nil +} + +// gateTime64 is get_time64, refusing by name the strtod results tc casts +// to __s64 out of range, inf and nan among them: undefined behavior +// (W297). Fractions truncate. +func gateTime64(s string) (int64, bool, error) { + ns, p, erange := cStrtod(s) + if p == s || ns < 0 || (math.IsInf(ns, 1) && erange) { + return 0, false, nil + } + k, ok := time64Scale(p) + if !ok { + return 0, false, nil + } + ns *= k + if math.IsNaN(ns) || ns >= 1<<63 { + return 0, false, fmt.Errorf("%w: gate time %q: tc casts %g to __s64, undefined behavior (W297)", + errNotImplemented, s, ns) + } + return cDoubleToI64(ns), true, nil +} + +// gateState is get_gate_state: OPEN or CLOSE by strcasecmp. +func gateState(s string) (open, ok bool) { + switch { + case strings.EqualFold(s, "OPEN"): + return true, true + case strings.EqualFold(s, "CLOSE"): + return false, true + } + return false, false +} + +// gateSchedEntry is parse_gate's sched-entry arm, args at "sched-entry": +// the state, the interval (get_u32 base 0, else get_time64 within a u32), +// then an optional ipv (get_s32 base 0; a word that is none is read again +// as an option) and, after an ipv, an optional maxoctets (get_s32 base 0, +// else get_size, whose failure still keeps what it wrote and reads the +// word again, W295). rest is at the entry's last word. ok false is a -1. +func (r *runner) gateSchedEntry(args []string) (rest []string, e gateEntry, ok bool, err error) { + e = gateEntry{ipv: -1, maxoctets: -1} + if len(args) < 2 { + r.gateIncomplete() + return nil, e, false, nil + } + args = args[1:] + if e.open, ok = gateState(args[0]); !ok { + r.gateIncomplete() + return nil, e, false, nil + } + if len(args) < 2 { + r.gateIncomplete() + return nil, e, false, nil + } + args = args[1:] + var iv64 int64 + if e.interval, ok = getU32(args[0], 0); !ok { + if iv64, ok, err = gateTime64(args[0]); err != nil { + return nil, e, false, err + } + if !ok { + r.gateIncomplete() + return nil, e, false, nil + } + } + if iv64 > math.MaxUint32 { + r.errf("\"interval\" is too large\n") + return nil, e, false, nil + } + if iv64 != 0 { + e.interval = cint.LongBits(iv64) + } + if len(args) < 2 { + return args, e, true, nil + } + ipv, good := getS32(args[1], 0) + if !good { + return args, e, true, nil // PREV_ARG + } + args = args[1:] + e.ipv = ipv + if !e.open { + e.ipv = -1 + } + if len(args) < 2 { + return args, e, true, nil + } + ipvAt := args + args = args[1:] + var mu uint32 + if mo, good := getS32(args[0], 0); good { + e.maxoctets = mo + } else { + var wrote bool + mu, wrote, good = gateGetSize(args[0]) + if !wrote { + return nil, e, false, fmt.Errorf("%w: gate maxoctets %q: get_size stores an uninitialised value (W294)", + errNotImplemented, args[0]) + } + if !good { + args = ipvAt // PREV_ARG + } + } + if mu > math.MaxInt32 { + r.errf("\"maxoctets\" is too large\n") + return nil, e, false, nil + } + if mu != 0 { + e.maxoctets = cint.Int(mu) + } + if !e.open { + e.maxoctets = -1 + } + return args, e, true, nil +} + +// gateGetSize is get_size as maxoctets meets it: wrote false is a +// get_size64 that returned before storing, whose caller then stores the +// uninitialised sz64 (W294); with wrote true, v is the low 32 bits of +// what it stored, also when ok is false (past floor or 32 bits, W295). +func gateGetSize(s string) (v uint32, wrote, ok bool) { + sz, p, erange := cStrtod(s) + if p == s || sz < 0 || (math.IsInf(sz, 1) && erange) { + return 0, false, false + } + k, ok := size64Scale(p) + if !ok { + return 0, false, false + } + sz *= k + v64 := cDoubleToU64(sz) + return cint.Low32(v64), true, float64(v64) == math.Floor(sz) && v64 <= math.MaxUint32 +} diff --git a/internal/gotc/aw_gate_test.go b/internal/gotc/aw_gate_test.go new file mode 100644 index 000000000..37c17c411 --- /dev/null +++ b/internal/gotc/aw_gate_test.go @@ -0,0 +1,210 @@ +//go:build gotc_write + +package gotc + +import ( + "encoding/binary" + "math" + "strings" + "testing" + + "github.com/randomizedcoder/xtcp2/pkg/cint" + "github.com/randomizedcoder/xtcp2/pkg/xtcpnl" +) + +// gateEntryFmt is a sched-entry's -1: explain_entry_format and the +// incomplete message. +const gateEntryFmt = "Usage: sched-entry [ ]\n" + + "\"sched-entry\" is incomplete\n" + +// gateEntryAttrs is each ONE_ENTRY's attributes in ENTRY_LIST. +func gateEntryAttrs(t *testing.T, opts map[uint16][]byte) []map[uint16][]byte { + t.Helper() + b, ok := opts[xtcpnl.TcaGateEntryList] + if !ok { + t.Fatal("no ENTRY_LIST") + } + var out []map[uint16][]byte + for len(b) >= 4 { + l := int(binary.LittleEndian.Uint16(b)) + if l < 4 || l > len(b) { + break + } + out = append(out, rtAttrs(b[4:l])) + b = b[min((l+3)&^3, len(b)):] + } + return out +} + +// gateEntriesAre checks each entry's open flag, interval, ipv and +// maxoctets. +func gateEntriesAre(want ...gateEntry) func(*testing.T, map[uint16][]byte) { + return func(t *testing.T, opts map[uint16][]byte) { + t.Helper() + got := gateEntryAttrs(t, opts) + if len(got) != len(want) { + t.Fatalf("%d entries, want %d", len(got), len(want)) + } + for i, w := range want { + _, open := got[i][xtcpnl.TcaGateEntryGate] + e := gateEntry{open: open, + interval: binary.LittleEndian.Uint32(got[i][xtcpnl.TcaGateEntryInterval]), + ipv: cint.Int(binary.LittleEndian.Uint32(got[i][xtcpnl.TcaGateEntryIpv])), + maxoctets: cint.Int(binary.LittleEndian.Uint32(got[i][xtcpnl.TcaGateEntryMaxOctets]))} + if e != w { + t.Errorf("entry %d = %+v, want %+v", i, e, w) + } + } + } +} + +func le64b(v uint64) []byte { return binary.LittleEndian.AppendUint64(nil, v) } + +// TestGotcGateWrite is aw_gate.go: tcact2write rows are held to tc's +// bytes, the rest are fake rows checked attribute by attribute. +// +// go test -tags gotc_write ./internal/gotc/ -run TestGotcGateWrite +func TestGotcGateWrite(t *testing.T) { + entries := func(n int, state string) []string { + w := []string{"gate"} + for range n { + w = append(w, "sched-entry", state, "1000") + } + return append(w, "index", "1") + } + cases := []awCase{ + {"positive: entries and times as the plan's example", "", + strings.Fields("gate base-time 1 cycle-time 2ms clockid CLOCK_TAI sched-entry open 1ms 2 1000 sched-entry close 1ms"), + awExpected{reqs: 1, opts: all( + optBytes(xtcpnl.TcaGateBaseTime, le64b(1)), optBytes(xtcpnl.TcaGateCycleTime, le64b(2000000)), + optBytes(xtcpnl.TcaGateClockid, le32b(11)), optAbsent(xtcpnl.TcaGatePriority), optAbsent(xtcpnl.TcaGateFlags), + parmsU32At(xtcpnl.TcaGateParms, 8, tcActPipe), + gateEntriesAre(gateEntry{true, 1000000, 2, 1000}, gateEntry{false, 1000000, -1, -1}))}}, + {"positive: every option and three entries as tc sends them", act2Row("ec-179"), nil, awExpected{}}, + {"positive: two entries with base-time and cycle-time", act2Row("ec-190"), nil, awExpected{}}, + {"positive: each clockid name, with or without CLOCK_ and case", act2Row("ec-189"), nil, awExpected{}}, + {"negative: a bad state is the entry usage and incomplete (W300)", act2Row("ng-107"), nil, awExpected{rc: 255, stderr: gateEntryFmt + parseTail(6, "gate")}}, + {"negative: help is explain's exit(-1) (W301)", "", []string{"gate", "help"}, awExpected{rc: 255, has: "permitted to pas the gate"}}, + {"negative: a bare gate is incomplete", act2Row("ng-102"), nil, awExpected{rc: 255, stderr: "Command line is not complete. Try option \"help\"\n"}}, + {"negative: index is base 10, invarg's exit (W296, W301)", act2Row("ng-104"), nil, awExpected{rc: 255, stderr: "Error: argument \"0x1\" is wrong: index\n"}}, + {"negative: an unknown clockid", act2Row("ng-118"), nil, awExpected{rc: 255, stderr: "Error: argument \"FOO\" is wrong: clockid\n"}}, + {"negative: no entry and no index", act2Row("ng-119"), nil, awExpected{rc: 255, stderr: "gate: must add at least one entry\n" + parseTail(3, "gate")}}, + {"boundary: 30 open entries fit their 1024 bound", "", entries(30, "open"), awExpected{reqs: 1}}, + {"boundary: 31 open entries: the 31st's header is refused and its end patches its first attribute (W293)", "", entries(31, "open"), + awExpected{reqs: 1, stderr: "addattr_l ERROR: message exceeded bound of 1024\n"}}, + {"boundary: 40 open entries: ten refused headers (W293)", "", entries(40, "open"), + awExpected{reqs: 1, stderr: strings.Repeat("addattr_l ERROR: message exceeded bound of 1024\n", 10)}}, + {"boundary: the captured 31-entry row byte for byte (W293)", act2Row("ec-197"), nil, + awExpected{stderr: "addattr_l ERROR: message exceeded bound of 1024\nWarning: Attribute isn't type 'entry'.\n"}}, + {"boundary: interval 4294967295ns is sent", act2Row("ec-194"), nil, awExpected{}}, + {"boundary: interval 4294967296 is too large", act2Row("ng-117"), nil, awExpected{rc: 255, stderr: "\"interval\" is too large\n" + parseTail(8, "gate")}}, + {"boundary: maxoctets 2147483648 is too large", act2Row("ng-103"), nil, awExpected{rc: 255, stderr: "\"maxoctets\" is too large\n" + parseTail(8, "gate")}}, + {"corner: maxoctets 1.5 is get_size's 1, and the word is used (W295)", act2Row("ec-200"), nil, awExpected{}}, + {"corner: maxoctets 5G keeps get_size's low 32 bits and is read again (W295)", "", strings.Fields("gate sched-entry open 1ms 1 5G"), + awExpected{rc: 255, has: "Bad action type 5G"}}, + {"corner: maxoctets 0kb is 0, so -1 stays (W295)", act2Row("ec-201"), nil, awExpected{}}, + {"corner: a word after a numeric ipv meets get_size's uninitialised store, refused by name (W294)", "", + strings.Fields("gate sched-entry open 100 1 sched-entry close 50"), awExpected{rc: 255, has: "(W294)"}}, + {"corner: inf base-time is a UB cast, refused by name (W297)", "", strings.Fields("gate base-time inf sched-entry open 1000000 -1 -1 index 1"), + awExpected{rc: 255, has: "(W297)"}}, + {"corner: nan and 1e30 are refused by name too (W297)", "", strings.Fields("gate cycle-time 1e30 base-time nan sched-entry open 1000000"), + awExpected{rc: 255, has: "(W297)"}}, + {"corner: an interval past 2^63 is refused by name (W297)", "", strings.Fields("gate sched-entry open 1e19"), + awExpected{rc: 255, has: "(W297)"}}, + {"corner: 0 means unset: priority -1 and zero flags and times are not sent (W299)", act2Row("ec-209"), nil, awExpected{}}, + {"corner: priority -1 alone is not sent (W299)", "", strings.Fields("gate priority -1 flags 0 sched-entry open 1000000"), + awExpected{reqs: 1, opts: all(optAbsent(xtcpnl.TcaGatePriority), optAbsent(xtcpnl.TcaGateFlags))}}, + {"corner: base-time -1 is u64 max (W298)", act2Row("ec-208"), nil, awExpected{}}, + {"corner: base-time -1ms is invarg (W298)", act2Row("ng-106"), nil, awExpected{rc: 255, stderr: "Error: argument \"-1ms\" is wrong: base-time\n"}}, + {"corner: a closed entry's ipv and maxoctets are -1 (W304)", "", strings.Fields("gate sched-entry close 1000000 3 8000"), + awExpected{reqs: 1, opts: gateEntriesAre(gateEntry{false, 1000000, -1, -1})}}, + {"corner: p is priority and c cycle-time (W302)", act2Row("ec-210"), nil, awExpected{}}, + {"corner: index after the control word is a kind (W303)", act2Row("ng-114"), nil, + awExpected{rc: 255, stderr: "Error: Failed to load TC action module.\n" + talkErr}}, + {"corner: gate index 5 sends an empty ENTRY_LIST (W305)", act2Row("ng-116"), nil, + awExpected{rc: 255, stderr: "Error: The entry list is empty.\n" + talkErr}}, + {"corner: fractions truncate and hex goes through strtod (W296)", act2Row("ec-203"), nil, awExpected{}}, + } + runAwCases(t, cases) +} + +// TestGateHelpers is aw_gate.go's pure helpers. +// +// go test -tags gotc_write ./internal/gotc/ -run TestGateHelpers +func TestGateHelpers(t *testing.T) { + t.Run("gateTime64", func(t *testing.T) { + for _, tc := range []struct { + description, in string + expected int64 + ok, refused bool + }{ + {"positive: nanoseconds", "100ns", 100, true, false}, + {"positive: milliseconds", "2ms", 2000000, true, false}, + {"negative: a negative time", "-1ms", 0, false, false}, + {"negative: an unknown suffix", "1h", 0, false, false}, + {"negative: ERANGE", "1e400", 0, false, false}, + {"boundary: the largest double below 2^63", "9223372036854774784", 9223372036854774784, true, false}, + {"boundary: 2^63 is a UB cast", "9223372036854775808", 0, false, true}, + {"corner: inf", "inf", 0, false, true}, + {"corner: nan", "nan", 0, false, true}, + {"corner: a fraction truncates", "1.9ns", 1, true, false}, + {"corner: hex through strtod", "0x10", 16, true, false}, + } { + t.Run(tc.description, func(t *testing.T) { + v, ok, err := gateTime64(tc.in) + if (err != nil) != tc.refused || ok != tc.ok || v != tc.expected { + t.Errorf("gateTime64(%q) = %d, %v, %v; want %d, %v, refused %v", tc.in, v, ok, err, tc.expected, tc.ok, tc.refused) + } + }) + } + }) + t.Run("gateGetSize", func(t *testing.T) { + for _, tc := range []struct { + description, in string + expected uint32 + wrote, ok bool + }{ + {"positive: kilobytes", "8k", 8192, true, true}, + {"positive: a fraction is its floor", "1.5", 1, true, true}, + {"negative: a word stores nothing (W294)", "index", 0, false, false}, + {"negative: an unknown suffix stores nothing (W294)", "1h", 0, false, false}, + {"boundary: u32 max", "4294967295", math.MaxUint32, true, true}, + {"boundary: 2^32 stores its low 32 bits and fails (W295)", "4294967296", 0, true, false}, + {"corner: 5G stores 1 GiB and fails (W295)", "5G", 1 << 30, true, false}, + {"corner: zero", "0kb", 0, true, true}, + } { + t.Run(tc.description, func(t *testing.T) { + v, wrote, ok := gateGetSize(tc.in) + if v != tc.expected || wrote != tc.wrote || ok != tc.ok { + t.Errorf("gateGetSize(%q) = %d, %v, %v; want %d, %v, %v", tc.in, v, wrote, ok, tc.expected, tc.wrote, tc.ok) + } + }) + } + }) + t.Run("gateState", func(t *testing.T) { + for _, tc := range []struct { + description, in string + expected string + }{ + {"positive: open", "open", "open"}, + {"positive: close", "close", "close"}, + {"negative: a typo", "opn", "bad"}, + {"boundary: a prefix is not enough", "o", "bad"}, + {"corner: strcasecmp", "OpEn", "open"}, + } { + t.Run(tc.description, func(t *testing.T) { + open, ok := gateState(tc.in) + got := "bad" + switch { + case ok && open: + got = "open" + case ok: + got = "close" + } + if got != tc.expected { + t.Errorf("gateState(%q) = %s, want %s", tc.in, got, tc.expected) + } + }) + } + }) +} diff --git a/internal/gotc/aw_ife.go b/internal/gotc/aw_ife.go new file mode 100644 index 000000000..d1eb0ef36 --- /dev/null +++ b/internal/gotc/aw_ife.go @@ -0,0 +1,257 @@ +//go:build gotc_write + +package gotc + +import ( + "encoding/binary" + + "github.com/randomizedcoder/xtcp2/pkg/xtcpnl" +) + +// tc/m_ife.c parse_ife at iproute2 v7.2.0. + +// ethPIfe is ETH_P_IFE, the type ife prints when none is given. +const ethPIfe = 0xED3E + +// ifeExplain is m_ife.c ife_explain. +func (r *runner) ifeExplain() { + r.errf("%s", "Usage:... ife {decode|encode} [{ALLOW|USE} ATTR] [dst DMAC] [src SMAC] [type TYPE] [CONTROL] [index INDEX]\n"+ + "\tALLOW := Encode direction. Allows encoding specified metadata\n"+ + "\t\t e.g \"allow mark\"\n"+ + "\tUSE := Encode direction. Enforce Static encoding of specified metadata\n"+ + "\t\t e.g \"use mark 0x12\"\n"+ + "\tATTR := mark (32-bit), prio (32-bit), tcindex (16-bit)\n"+ + "\tDMAC := 6 byte Destination MAC address to encode\n"+ + "\tSMAC := optional 6 byte Source MAC address to encode\n"+ + "\tTYPE := optional 16 bit ethertype to encode\n"+ + "\tCONTROL := reclassify|pipe|drop|continue|ok\n"+ + "\tINDEX := optional IFE table index value used\n"+ + "encode is used for sending IFE packets\n"+ + "decode is used for receiving IFE packets\n") +} + +// ifeUsage is ife_usage: exit(-1), which ends a -force batch (W268). +func (r *runner) ifeUsage() error { + r.ifeExplain() + return exitCode(-1) +} + +// ifeArgs is parse_ife's locals. +type ifeArgs struct { + p xtcpnl.TcIfe + ok int + dbuf, sbuf [ethAlenCst]byte + daddr, saddr bool + ifeType uint16 + userType bool + mark, prio, tcindex bool // allow + markV, prioV uint32 + tcindexV uint16 +} + +// parseIfe is parse_ife: the keyword loop, then the control word, then +// the index in base 0, which counts as a mode, so `ife index 5` is a +// decode (W267, W272); with neither mode nor index it is a usage exit +// (W268). The nest opens only now (W274); decode sends PARMS alone, +// dropping dst, src, type, allow and use (W273); encode always sends +// METALST, in the order mark, prio, tcindex, with use's value over allow +// and a value of 0 sending nothing (W271), TYPE in host order (W274), and +// the default type printed (AC70). +func (r *runner) parseIfe(ops *fops, args []string, tcaID uint16) ([]string, bool, error) { + var a ifeArgs + args, err := r.ifeLoop(&a, args) + if err != nil { + return nil, false, err + } + if args, a.p.Action, err = r.parseActionControlDflt(args, tcActPipe); err != nil { + return nil, false, err + } + if len(args) > 0 && matches(args[0], "index") { + if args, err = r.nextArg(args); err != nil { + return nil, false, err + } + i, good := getU32(args[0], 0) + if !good { + r.errf("ife: Illegal \"index\"\n") + return nil, false, nil + } + a.p.Index = i + a.ok++ + args = args[1:] + } + if a.ok == 0 { + r.errf("IFE requires decode/encode specified\n") + return nil, false, r.ifeUsage() + } + tail := ops.begin(maxMsg, tcaID) + ops.put(maxMsg, xtcpnl.TcaIfeParms, a.p.Append(nil)) + if a.p.Flags&xtcpnl.IfeEncode != 0 { + r.ifeEncode(ops, &a) + } + ops.end(tail) + return args, true, nil +} + +// ifeEncode is parse_ife's encode attributes, between PARMS and the end of +// the options nest. +func (r *runner) ifeEncode(ops *fops, a *ifeArgs) { + if a.daddr { + ops.put(maxMsg, xtcpnl.TcaIfeDmac, append([]byte(nil), a.dbuf[:]...)) + } + if a.userType { + ops.put(maxMsg, xtcpnl.TcaIfeType, binary.LittleEndian.AppendUint16(nil, a.ifeType)) + } else { + r.errf("IFE type 0x%04X\n", ethPIfe) + } + if a.saddr { + ops.put(maxMsg, xtcpnl.TcaIfeSmac, append([]byte(nil), a.sbuf[:]...)) + } + lst := ops.begin(maxMsg, xtcpnl.TcaIfeMetalst) + switch { + case a.markV != 0: + ops.u32(maxMsg, xtcpnl.IfeMetaSkbmark, a.markV) + case a.mark: + ops.put(maxMsg, xtcpnl.IfeMetaSkbmark, nil) + } + switch { + case a.prioV != 0: + ops.u32(maxMsg, xtcpnl.IfeMetaPrio, a.prioV) + case a.prio: + ops.put(maxMsg, xtcpnl.IfeMetaPrio, nil) + } + switch { + case a.tcindexV != 0: + ops.put(maxMsg, xtcpnl.IfeMetaTcindex, binary.LittleEndian.AppendUint16(nil, a.tcindexV)) + case a.tcindex: + ops.put(maxMsg, xtcpnl.IfeMetaTcindex, nil) + } + ops.end(lst) +} + +// ifeLoop is parse_ife's keyword loop, in tc's order: a word `ife` is a +// prefix of is skipped by NEXT_ARG, so it is incomplete at the end of the +// line (W269); `d` is decode and dst needs `ds`, the last of decode and +// encode wins (W270); every bad value is invarg's exit (W268). +func (r *runner) ifeLoop(a *ifeArgs, args []string) ([]string, error) { + var err error + for len(args) > 0 { + w := args[0] + switch { + case matches(w, xtcpnl.TcActKindIfe): + if args, err = r.nextArg(args); err != nil { + return nil, err + } + continue + case matches(w, "decode"): + a.p.Flags = 0 // IFE_DECODE + a.ok++ + case matches(w, "encode"): + a.p.Flags = xtcpnl.IfeEncode + a.ok++ + case matches(w, "allow"): + if args, err = r.nextArg(args); err != nil { + return nil, err + } + if err = r.ifeAllow(a, args[0]); err != nil { + return nil, err + } + case matches(w, "use"): + if args, err = r.ifeUse(a, args); err != nil { + return nil, err + } + case matches(w, wordType): + if args, err = r.nextArg(args); err != nil { + return nil, err + } + t, good := getU16(args[0], 0) + if !good { + return nil, r.invarg("ife type is invalid", args[0]) + } + a.ifeType, a.userType = t, true + r.errf("IFE type 0x%04X\n", t) + case matches(w, wordDst), matches(w, wordSrc): + if args, err = r.nextArg(args); err != nil { + return nil, err + } + if err = r.ifeMac(a, matches(w, wordDst), args[0]); err != nil { + return nil, err + } + case matches(w, helpWord): + return nil, r.ifeUsage() + default: + return args, nil + } + args = args[1:] + } + return args, nil +} + +// ifeAllow is the allow arm's attribute. +func (r *runner) ifeAllow(a *ifeArgs, v string) error { + switch { + case matches(v, "mark"): + a.mark = true + case matches(v, wordPrio): + a.prio = true + case matches(v, "tcindex"): + a.tcindex = true + default: + return r.invarg("Illegal meta define", v) + } + return nil +} + +// ifeUse is the use arm: the attribute and its value, base 0; args is +// left at the value. +func (r *runner) ifeUse(a *ifeArgs, args []string) ([]string, error) { + args, err := r.nextArg(args) + if err != nil { + return nil, err + } + attr := args[0] + var name string + switch { + case matches(attr, "mark"): + name = "mark" + case matches(attr, wordPrio): + name = wordPrio + case matches(attr, "tcindex"): + name = "tcindex" + default: + return nil, r.invarg("Illegal meta use type", attr) + } + if args, err = r.nextArg(args); err != nil { + return nil, err + } + v := args[0] + var good bool + switch name { + case "mark": + a.markV, good = getU32(v, 0) + case wordPrio: + a.prioV, good = getU32(v, 0) + default: + a.tcindexV, good = getU16(v, 0) + } + if !good { + return nil, r.invarg("ife "+name+" val is invalid", v) + } + return args, nil +} + +// ifeMac is the dst and src arms: sscanf "%hhx:..." (W196), invarg's exit +// on fewer than six, then the address echoed to stderr. +func (r *runner) ifeMac(a *ifeArgs, dst bool, v string) error { + buf, n := sscanfMac(v) + if n != ethAlenCst { + return r.invarg("Invalid mac address", v) + } + if dst { + a.dbuf, a.daddr = buf, true + r.errf("dst MAC address <%s>\n", v) + } else { + a.sbuf, a.saddr = buf, true + r.errf("src MAC address <%s>\n", v) + } + return nil +} diff --git a/internal/gotc/aw_ife_test.go b/internal/gotc/aw_ife_test.go new file mode 100644 index 000000000..237bb3c05 --- /dev/null +++ b/internal/gotc/aw_ife_test.go @@ -0,0 +1,113 @@ +//go:build gotc_write + +package gotc + +import ( + "strings" + "testing" + + "github.com/randomizedcoder/xtcp2/pkg/xtcpnl" +) + +// ifeUsageHead is the first line of m_ife.c ife_explain. +const ifeUsageHead = "Usage:... ife {decode|encode} [{ALLOW|USE} ATTR] [dst DMAC] [src SMAC] [type TYPE] [CONTROL] [index INDEX]\n" + +// ifeDefaultType is the line encode prints with no type given (AC70). +const ifeDefaultType = "IFE type 0xED3E\n" + +// TestGotcIfeWrite is m_ife.c parse_ife (aw_ife.go). Rows named +// tcact2write/... are held to tc's capture byte for byte. +// +// go test -tags gotc_write ./internal/gotc/ -run TestGotcIfeWrite +func TestGotcIfeWrite(t *testing.T) { + const incomplete = "Command line is not complete. Try option \"help\"\n" + metalst := func(want []byte) func(*testing.T, map[uint16][]byte) { + return optBytes(xtcpnl.TcaIfeMetalst, want) + } + runAwCases(t, []awCase{ + {"positive: encode with type, dst, src and use, with the stderr chatter (AC70)", "tcact2write/ec-132", nil, + awExpected{stderr: "IFE type 0xED3E\ndst MAC address <02:00:00:00:00:01>\nsrc MAC address <02:00:00:00:00:02>\n"}}, + {"positive: allow all three", "tcact2write/ec-133", nil, awExpected{stderr: ifeDefaultType}}, + {"positive: use prio and tcindex", "tcact2write/ec-134", nil, awExpected{stderr: ifeDefaultType}}, + {"positive: decode", "tcact2write/ec-013", nil, awExpected{}}, + {"positive: decode sends PARMS alone (W273)", "", []string{"ife", "decode"}, + awExpected{reqs: 1, opts: all(parmsU32At(xtcpnl.TcaIfeParms, 20, 0), optAbsent(xtcpnl.TcaIfeMetalst), + optAbsent(xtcpnl.TcaIfeType))}}, + {"positive: change", "tcact2write/ec-014", nil, awExpected{stderr: ifeDefaultType}}, + {"positive: replace", "tcact2write/ec-016", nil, awExpected{stderr: ifeDefaultType}}, + {"positive: delete", "tcact2write/ec-017", nil, awExpected{}}, + {"positive: flush", "tcact2write/ec-018", nil, awExpected{}}, + {"positive: inside matchall", "tcact2write/ec-229", nil, awExpected{}}, + {"negative: no mode is the usage's exit(-1) (W268)", "tcact2write/ng-066", nil, + awExpected{rc: 255, has: "IFE requires decode/encode specified\n" + ifeUsageHead}}, + {"negative: that exit ends a -force batch (W268)", "tcact2write/ng-158", nil, + awExpected{rc: 255, has: "IFE requires decode/encode specified\n" + ifeUsageHead}}, + {"negative: a bare ife is incomplete (W269)", "tcact2write/ng-068", nil, awExpected{rc: 255, stderr: incomplete}}, + {"negative: ife as the last word is incomplete (W269)", "tcact2write/ng-067", nil, awExpected{rc: 255, stderr: incomplete}}, + {"negative: allow of an unknown attribute is invarg", "tcact2write/ng-069", nil, + awExpected{rc: 255, stderr: "Error: argument \"foo\" is wrong: Illegal meta define\n"}}, + {"negative: a bad use mark", "tcact2write/ng-070", nil, + awExpected{rc: 255, stderr: "Error: argument \"zz\" is wrong: ife mark val is invalid\n"}}, + {"negative: use of an unknown attribute", "tcact2write/ng-071", nil, + awExpected{rc: 255, stderr: "Error: argument \"foo\" is wrong: Illegal meta use type\n"}}, + {"negative: a bad type", "tcact2write/ng-073", nil, + awExpected{rc: 255, stderr: "Error: argument \"zz\" is wrong: ife type is invalid\n"}}, + {"negative: a bad MAC", "tcact2write/ng-074", nil, + awExpected{rc: 255, stderr: "Error: argument \"zz\" is wrong: Invalid mac address\n"}}, + {"negative: a bad index", "tcact2write/ng-075", nil, + awExpected{rc: 255, stderr: "ife: Illegal \"index\"\n" + parseTail(6, "ife")}}, + {"negative: help is exit(-1)", "tcact2write/ng-076", nil, awExpected{rc: 255, has: ifeUsageHead}}, + {"boundary: use mark 0 sends nothing, an empty METALST (W271)", "tcact2write/ec-142", nil, awExpected{stderr: ifeDefaultType}}, + {"boundary: use mark 0's METALST", "", []string{"ife", "encode", "use", "mark", "0"}, + awExpected{reqs: 1, stderr: ifeDefaultType, opts: metalst([]byte{})}}, + {"boundary: mark 4294967295 and tcindex 65535 are sent", "tcact2write/ec-137", nil, awExpected{stderr: ifeDefaultType}}, + {"boundary: tcindex 65536 is invarg", "tcact2write/ng-072", nil, + awExpected{rc: 255, stderr: "Error: argument \"65536\" is wrong: ife tcindex val is invalid\n"}}, + {"corner: index alone counts as a mode, a decode with no METALST (W267)", "tcact2write/ec-138", nil, awExpected{}}, + {"corner: trailing junk after six groups is accepted (W196)", "tcact2write/ec-147", nil, + awExpected{stderr: "dst MAC address <02:00:00:00:00:01junk>\n" + ifeDefaultType}}, + {"corner: 0x and over-long groups are sscanf's (W196)", "tcact2write/ec-148", nil, + awExpected{stderr: "dst MAC address <0x2:1aa:00:00:00:01>\n" + ifeDefaultType}}, + {"corner: METALST is mark then tcindex, whatever the order given (W271)", "tcact2write/ec-143", nil, + awExpected{stderr: ifeDefaultType}}, + {"corner: that METALST's bytes", "", []string{"ife", "encode", "use", "tcindex", "1", "use", "mark", "2"}, + awExpected{reqs: 1, stderr: ifeDefaultType, opts: metalst([]byte{8, 0, 1, 0, 2, 0, 0, 0, 6, 0, 5, 0, 1, 0, 0, 0})}}, + {"corner: use's value overrides allow", "tcact2write/ec-144", nil, awExpected{stderr: ifeDefaultType}}, + {"corner: words ife is a prefix of are skipped (W269)", "tcact2write/ec-139", nil, awExpected{}}, + {"corner: e, a, ds and t are encode, allow, dst and type (W270)", "tcact2write/ec-140", nil, + awExpected{stderr: "dst MAC address <02:00:00:00:00:01>\nIFE type 0x1234\n"}}, + {"corner: the last of encode and decode wins (W270)", "tcact2write/ec-141", nil, awExpected{}}, + {"corner: mark and index are base 0 (W272)", "tcact2write/ec-145", nil, awExpected{stderr: ifeDefaultType}}, + {"corner: decode drops dst, type and allow, after their chatter (W273)", "tcact2write/ec-146", nil, + awExpected{stderr: "dst MAC address <02:00:00:00:00:01>\nIFE type 0x1234\n"}}, + {"corner: TYPE is host order (W274)", "", []string{"ife", "encode", "type", "0x1234", "allow", "mark"}, + awExpected{reqs: 1, stderr: "IFE type 0x1234\n", opts: all(optBytes(xtcpnl.TcaIfeType, le16b(0x1234)), + metalst([]byte{4, 0, 1, 0}))}}, + {"corner: a control word", "tcact2write/ec-136", nil, awExpected{stderr: ifeDefaultType}}, + }) +} + +// TestGotcIfeUsage holds ife_explain to m_ife.c's text. +func TestGotcIfeUsage(t *testing.T) { + tests := []struct { + description string + line int + expected string + }{ + {"positive: the first line", 0, strings.TrimSuffix(ifeUsageHead, "\n")}, + {"boundary: the last line", 12, "decode is used for receiving IFE packets"}, + {"corner: ATTR names the widths", 5, "\tATTR := mark (32-bit), prio (32-bit), tcindex (16-bit)"}, + {"negative: nothing after the last newline", 13, ""}, + } + var b strings.Builder + r := &runner{stderr: &b} + r.ifeExplain() + lines := strings.Split(b.String(), "\n") + for _, tc := range tests { + t.Run(tc.description, func(t *testing.T) { + if tc.line >= len(lines) || lines[tc.line] != tc.expected { + t.Errorf("line %d of %q, want %q", tc.line, b.String(), tc.expected) + } + }) + } +} diff --git a/internal/gotc/aw_mpls.go b/internal/gotc/aw_mpls.go index e4ecd8604..290dc009b 100644 --- a/internal/gotc/aw_mpls.go +++ b/internal/gotc/aw_mpls.go @@ -158,7 +158,7 @@ func (r *runner) mplsLoop(a *mplsArgs, args []string) (rest []string, done bool, continue } switch { - case matches(w, "label"), matches(w, "tc"), matches(w, "ttl"), matches(w, "bos"): + case matches(w, "label"), matches(w, "tc"), matches(w, wordTTL), matches(w, "bos"): if args, err = r.mplsField(a, args); err != nil { return nil, false, err } @@ -210,7 +210,7 @@ func (r *runner) mplsField(a *mplsArgs, args []string) ([]string, error) { return nil, r.invarg("tc field is 3 bits max", v) } a.tc = t - case matches(w, "ttl"): + case matches(w, wordTTL): t, ok := getU8(v, 0) if !ok || t == 0 { return nil, r.invarg("ttl must be >0 and <=255", v) diff --git a/internal/gotc/aw_pedit.go b/internal/gotc/aw_pedit.go new file mode 100644 index 000000000..be1956e34 --- /dev/null +++ b/internal/gotc/aw_pedit.go @@ -0,0 +1,498 @@ +//go:build gotc_write + +package gotc + +import ( + "encoding/binary" + "math/bits" + "strings" + + "github.com/randomizedcoder/xtcp2/pkg/cint" + "github.com/randomizedcoder/xtcp2/pkg/xtcpnl" + "golang.org/x/sys/unix" +) + +// tc/m_pedit.c parse_pedit and its helpers at iproute2 v7.2.0, with +// m_pedit.h; the layered kinds are in aw_pedit_hdr.go. Values are kept as +// tc's x86 host holds them: pack_key32 and its kin store htonl'd words, +// which TcPeditKey.Append writes back in host order. + +// peditMaxOffs is MAX_OFFS: pack_key's silent key limit (W220; the kernel +// takes 255). +const peditMaxOffs = 128 + +// htonl is htonl on a little-endian host. +func htonl(v uint32) uint32 { return bits.ReverseBytes32(v) } + +// peditExplain is m_pedit.c explain, which contradicts the parser (W228). +func (r *runner) peditExplain() { + r.errf("%s", "Usage: ... pedit munge [ex] [CONTROL]\n"+ + "Where: MUNGE := |\n"+ + "\t:= [ATC]\n \t\tOFFSETC:= offset \n"+ + "\t\tATC:= at offmask shift \n"+ + "\t\tNOTE: offval is byte offset, must be multiple of 4\n"+ + "\t\tNOTE: maskval is a 32 bit hex number\n \t\tNOTE: shiftval is a shift value\n"+ + "\t\tCMD:= clear | invert | set | add | decrement | retain\n"+ + "\t:= ip | ip6 \n"+ + " \t\t| udp | tcp | icmp \n"+ + "\tCONTROL:= reclassify | pipe | drop | continue | pass |\n"+ + "\t goto chain \n"+ + "\tNOTE: if 'ex' is set, extended functionality will be supported (kernel >= 4.11)\n"+ + "For Example usage look at the examples directory\n") +} + +// peditKey is struct m_pedit_key, parse_munge's tkey: zero for each munge. +type peditKey struct { + mask, val, off, at, offmask, shift uint32 + htype, cmd uint16 +} + +// peditKeyEx is struct m_pedit_key_ex. +type peditKeyEx struct{ htype, cmd uint16 } + +// peditSel is struct m_pedit_sel: the tc_pedit_sel's action and index, +// the keys packed so far, their key_ex and extended. +type peditSel struct { + action int32 + index uint32 + keys []xtcpnl.TcPeditKey + keysEx []peditKeyEx + extended bool +} + +// parsePedit is parse_pedit: `pedit` words (each counted, so `pedit pedit +// ex` is "'ex' must be before first 'munge'", W241, and a bare `p` after a +// key is pedit, W226), munge sections, then the control (dflt pass, before +// index, W243) and the index in base 10 (W247). Any other word ends the +// options and is left for parse_action (W245). Nothing checks for a key: +// `pedit pipe` sends nkeys 0 (W242). +func (r *runner) parsePedit(ops *fops, args []string, tcaID uint16) ([]string, bool, error) { + var s peditSel + ok := 0 +loop: + for len(args) > 0 { + w := args[0] + var err error + switch { + case matches(w, xtcpnl.TcActKindPedit): + if args, err = r.nextArg(args); err != nil { + return nil, false, err + } + ok++ + if matches(args[0], "ex") { + if ok > 1 { + r.errf("'ex' must be before first 'munge'\n") + r.peditExplain() + return nil, false, nil + } + s.extended = true + if args, err = r.nextArg(args); err != nil { + return nil, false, err + } + } + case matches(w, helpWord): + r.peditExplain() + return nil, false, exitCode(-1) // usage (W246) + case matches(w, "munge"): + if ok == 0 { + r.errf("Bad pedit construct (%s)\n", w) + r.peditExplain() + return nil, false, nil + } + if args, err = r.nextArg(args); err != nil { + return nil, false, err + } + var good bool + args, good, err = r.peditMunge(&s, args) + if err != nil { + return nil, false, err + } + if !good { + r.errf("Bad pedit construct (%s)\n", argOrNull(args)) // W218 + r.peditExplain() + return nil, false, nil + } + ok++ + default: + break loop + } + } + if ok == 0 { + r.peditExplain() + return nil, false, nil + } + args, action, err := r.parseActionControlDflt(args, tcActOK) + if err != nil { + return nil, false, err + } + s.action = action + if len(args) > 0 && matches(args[0], "index") { + if args, err = r.nextArg(args); err != nil { + return nil, false, err + } + i, good := getU32(args[0], 10) + if !good { + r.errf("Pedit: Illegal \"index\"\n") + return nil, false, nil + } + s.index = i + args = args[1:] + } + r.peditAddattr(ops, &s, tcaID) + return args, true, nil +} + +// argOrNull is *argv as glibc's printf %s prints it: "(null)" past argv's +// end. +func argOrNull(args []string) string { + if len(args) == 0 { + return wordNull + } + return args[0] +} + +// peditAddattr is parse_pedit's attributes: PARMS, or PARMS_EX and +// pedit_keys_ex_addattr, each addattr's result ignored (W248). +func (r *runner) peditAddattr(ops *fops, s *peditSel, tcaID uint16) { + nkeys, _ := cint.U8(len(s.keys)) // at most MAX_OFFS + sel := xtcpnl.TcPeditSel{TcGen: xtcpnl.TcGen{Index: s.index, Action: s.action}, Nkeys: nkeys, Keys: s.keys} + nest := ops.begin(maxMsg, tcaID) + if !s.extended { + ops.put(maxMsg, xtcpnl.TcaPeditParms, sel.Append(nil)) + } else { + ops.put(maxMsg, xtcpnl.TcaPeditParmsEx, sel.Append(nil)) + peditKeysExAddattr(ops, s) + } + ops.end(nest) +} + +// peditKeysExAddattr is pedit_keys_ex_addattr: a KEY_EX nest per key, and +// a failed addattr16 returns -1 there, with that nest and KEYS_EX left +// open, as tc leaves them. +func peditKeysExAddattr(ops *fops, s *peditSel) { + put16 := func(t, v uint16) bool { + n := len(ops.ops) + ops.put(maxMsg, t, binary.LittleEndian.AppendUint16(nil, v)) + return len(ops.ops) > n + } + keys := ops.begin(maxMsg, xtcpnl.TcaPeditKeysEx|unix.NLA_F_NESTED) + for _, k := range s.keysEx { + key := ops.begin(maxMsg, xtcpnl.TcaPeditKeyEx|unix.NLA_F_NESTED) + if !put16(xtcpnl.TcaPeditKeyExHtype, k.htype) || !put16(xtcpnl.TcaPeditKeyExCmd, k.cmd) { + return + } + ops.end(key) + } + ops.end(keys) +} + +// peditMunge is parse_munge: args starts at the word after munge. rest is +// parse_pedit's argv after it: on the offset path parse_offset's write-back +// whether or not it failed, on a layered failure the kind word, so tc's +// "Bad pedit construct" names a word that depends on where it failed +// (W218), and every layered failure first prints "bad pedit parsing" +// (W219). +func (r *runner) peditMunge(s *peditSel, args []string) (rest []string, ok bool, err error) { + var k peditKey + if matches(args[0], "offset") { + if args, err = r.nextArg(args); err != nil { + return nil, false, err + } + return r.peditOffset(s, &k, args) + } + h := peditHdrs[args[0]] + at := args + if args, err = r.nextArg(args); err != nil { + return nil, false, err // a kind as the last word (W230) + } + if h == nil { + // pedit_parse_nopopt: two spaces, and it names the next word (W230). + r.errf("Unknown action hence option \"%s\" is unparsable\n", args[0]) + r.errf("bad pedit parsing\n") + return at, false, nil + } + rest, ok, err = r.peditLayer(h, s, &k, args) + if err != nil { + return nil, false, err + } + if !ok { + r.errf("bad pedit parsing\n") + return at, false, nil + } + return rest, true, nil +} + +// peditOffset is parse_offset: args starts at the offset, get_integer in +// base 0, so -4 is 0xfffffffc (W235); then u32, u16 or u8 by prefix (`u` +// is u32, `u1` u16, W227) and the positional `at A M S` (the man page's +// keywords are refused, W216; `a` is at, W227), offmask in base 16 and the +// others base 0 (W217). An early failure keeps parse_munge's argv at the +// offset. +func (r *runner) peditOffset(s *peditSel, k *peditKey, args []string) (rest []string, ok bool, err error) { + at := args + off, good := getInteger(args[0], 0) + if !good { + return at, false, nil + } + k.off = cint.Bits(off) + args = args[1:] + if len(args) == 0 { + return at, false, nil + } + var ln, retain uint32 + switch { + case matches(args[0], "u32"): + ln, retain = 4, ru32 + case matches(args[0], "u16"): + ln, retain = 2, ru16 + case matches(args[0], "u8"): + ln, retain = 1, ru8 + default: + return at, false, nil + } + if args, err = r.nextArg(args); err != nil { + return nil, false, err + } + if matches(args[0], "at") { + dst := [...]*uint32{&k.at, &k.offmask, &k.shift} + for i, base := range [...]uint64{0, 16, 0} { + if args, err = r.nextArg(args); err != nil { + return nil, false, err + } + v, good := getU32(args[0], base) + if !good { + return at, false, nil + } + *dst[i] = v + } + if args, err = r.nextArg(args); err != nil { + return nil, false, err + } + } + return r.peditCmd(s, k, args, ln, peditTU32, retain, 0) +} + +// peditCmd is parse_cmd: args starts at the command word, by prefix in +// tc's order (invert, set, add, decrement, preserve, clear), then an +// optional retain (`r`, W225). rest is its write-back: args unmoved on an +// early -1, past the command once it reaches the pack, whose result is ok. +func (r *runner) peditCmd(s *peditSel, k *peditKey, args []string, ln uint32, typ int, retain uint32, flags int) (rest []string, ok bool, err error) { + at := args + var val, mask [4]uint32 + o := uint32(0xFF) + switch ln { + case 2: + o = 0xFFFF + case 4: + o = 0xFFFFFFFF + } + w := args[0] + switch { + case matches(w, "invert"): + val[0], mask[0] = o, o // 0xff for eth and ip6, not an inversion (W223) + case matches(w, "set"), matches(w, "add"): + if matches(w, "add") { + k.cmd = xtcpnl.PeditCmdAdd + } + if !s.extended && k.cmd != 0 { + r.errf("Non extended mode. only 'set' command is supported\n") + return at, false, nil + } + if args, err = r.nextArg(args); err != nil { + return nil, false, err + } + if !r.peditVal(args, &val, typ) { + return at, false, nil + } + case matches(w, "decrement"): + if flags&peditAllowDec == 0 { + r.errf("decrement command is not supported for this field\n") + return at, false, nil + } + if !s.extended { + r.errf("Non extended mode. only 'set' command is supported\n") + return at, false, nil + } + k.cmd = xtcpnl.PeditCmdAdd + val[0] = retain // decrement by overflow + case matches(w, "preserve"): + retain = 0 + case !matches(w, "clear"): + return at, false, nil + } + args = args[1:] + if len(args) > 0 && matches(args[0], "retain") { + if args, err = r.nextArg(args); err != nil { + return nil, false, err + } + v, good := getU32(args[0], 0) + if !good { + return at, false, nil + } + retain = v + args = args[1:] + } + if ln > 4 && retain != ru32 { + r.errf("retain is not supported for fields longer the 32 bits\n") // sic (W222) + return at, false, nil + } + switch typ { + case peditTMAC: + var mac [16]byte + for i, v := range val { + binary.LittleEndian.PutUint32(mac[4*i:], v) + } + return args, r.peditPackMac(s, k, mac[:6]), nil + case peditTIPv6: + return args, r.peditPackIPv6(s, k, val), nil + } + k.val, k.mask = val[0], mask[0] + if typ == peditTIPv4 { + k.val = htonl(k.val) + } + switch ln { + case 1: + return args, r.peditPack8(retain, s, k), nil + case 2: + return args, r.peditPack16(retain, s, k), nil + } + return args, r.peditPack32(retain, s, k), nil +} + +// peditVal is parse_val: a u32 in base 0; an IPv4 prefix whose length is +// dropped (W233); an IPv6 prefix, any being bytelen 0 and so :: (W234); a +// MAC that ll_addr_a2n must read as exactly six groups, its colons written +// to NUL in argv, which a batch keeps (W232). +func (r *runner) peditVal(args []string, val *[4]uint32, typ int) bool { + switch typ { + case peditTU32: + v, good := getU32(args[0], 0) + val[0] = v + return good + case peditTIPv4: + p, good := getPrefix1(args[0], unix.AF_INET) + val[0] = binary.LittleEndian.Uint32(p.data[:4]) + return good + case peditTIPv6: + p, good := getPrefix1(args[0], unix.AF_INET6) + for i := range val { + val[i] = binary.LittleEndian.Uint32(p.data[4*i:]) + } + return good + } + var mac [16]byte + _, cut, good := r.llAddrA2N(mac[:6], args[0]) + r.mem.nulEach(args, ':', cut) + n := cut + 1 + if strings.Contains(args[0], ".") { + n = 4 + } + for i := range val { + val[i] = binary.LittleEndian.Uint32(mac[4*i:]) + } + return good && n == 6 +} + +// peditPackKey is pack_key: the silent MAX_OFFS limit (W220), and a dead +// non-ex check (W229). +func (r *runner) peditPackKey(s *peditSel, k *peditKey) bool { + if len(s.keys) >= peditMaxOffs { + return false + } + if k.off%4 != 0 { + r.errf("offsets MUST be in 32 bit boundaries\n") + return false + } + if !s.extended && (k.htype != xtcpnl.PeditHtypeNetwork || k.cmd != xtcpnl.PeditCmdSet) { + r.errf("Munge parameters not supported. Use 'pedit ex munge ...'.\n") + return false + } + s.keys = append(s.keys, xtcpnl.TcPeditKey{Mask: k.mask, Val: k.val, Off: k.off, At: k.at, Offmask: k.offmask, Shift: k.shift}) + if s.extended { + s.keysEx = append(s.keysEx, peditKeyEx{htype: k.htype, cmd: k.cmd}) + } + return true +} + +// peditPack32 is pack_key32. +func (r *runner) peditPack32(retain uint32, s *peditSel, k *peditKey) bool { + if k.off&3 != 0 { + r.errf("pack_key32: 32 bit offsets must begin in 32bit boundaries\n") + return false + } + k.val = htonl(k.val & retain) + k.mask = htonl(k.mask | ^retain) + return r.peditPackKey(s, k) +} + +// peditPack16 is pack_key16. +func (r *runner) peditPack16(retain uint32, s *peditSel, k *peditKey) bool { + m := [...]uint32{0x0000FFFF, 0xFF0000FF, 0xFFFF0000} + if k.val > 0xFFFF || k.mask > 0xFFFF { + r.errf("pack_key16 bad value\n") + return false + } + ind := k.off & 3 + if ind == 3 { + r.errf("pack_key16 bad index value %d\n", ind) + return false + } + stride := 8 * (2 - ind) + k.val = htonl((k.val & retain) << stride) + k.mask = htonl(((k.mask | ^retain) << stride) | m[ind]) + k.off &^= 3 + return r.peditPackKey(s, k) +} + +// peditPack8 is pack_key8, whose message has no closing parenthesis +// (W221). +func (r *runner) peditPack8(retain uint32, s *peditSel, k *peditKey) bool { + m := [...]uint32{0x00FFFFFF, 0xFF00FFFF, 0xFFFF00FF, 0xFFFFFF00} + if k.val > 0xFF || k.mask > 0xFF { + r.errf("pack_key8 bad value (val %x mask %x\n", k.val, k.mask) + return false + } + ind := k.off & 3 + stride := 8 * (3 - ind) + k.val = htonl((k.val & retain) << stride) + k.mask = htonl(((k.mask | ^retain) << stride) | m[ind]) + k.off &^= 3 + return r.peditPackKey(s, k) +} + +// peditPackMac is pack_mac: two keys, each packed even when the first +// failed (ret |=). +func (r *runner) peditPackMac(s *peditSel, k *peditKey, mac []byte) bool { + switch { + case k.off&3 == 0: + k.mask, k.val = 0, binary.BigEndian.Uint32(mac) + ok := r.peditPack32(ru32, s, k) + k.off += 4 + k.mask, k.val = 0, uint32(binary.BigEndian.Uint16(mac[4:])) + return r.peditPack16(ru32, s, k) && ok + case k.off&1 == 0: + k.mask, k.val = 0, uint32(binary.BigEndian.Uint16(mac)) + ok := r.peditPack16(ru32, s, k) + k.off += 4 + k.mask, k.val = 0, binary.BigEndian.Uint32(mac[2:]) + return r.peditPack32(ru32, s, k) && ok + } + r.errf("pack_mac: mac offsets must begin in 32bit or 16bit boundaries\n") + return false +} + +// peditPackIPv6 is pack_ipv6: four keys, stopping at the first failure. +func (r *runner) peditPackIPv6(s *peditSel, k *peditKey, ipv6 [4]uint32) bool { + if k.off&3 != 0 { + r.errf("pack_ipv6: IPv6 offsets must begin in 32bit boundaries\n") + return false + } + for _, w := range ipv6 { + k.mask, k.val = 0, htonl(w) + if !r.peditPack32(ru32, s, k) { + return false + } + k.off += 4 + } + return true +} diff --git a/internal/gotc/aw_pedit_hdr.go b/internal/gotc/aw_pedit_hdr.go new file mode 100644 index 000000000..6134e8639 --- /dev/null +++ b/internal/gotc/aw_pedit_hdr.go @@ -0,0 +1,139 @@ +//go:build gotc_write + +package gotc + +import "github.com/randomizedcoder/xtcp2/pkg/xtcpnl" + +// tc/p_ip.c, p_ip6.c, p_icmp.c, p_tcp.c, p_udp.c and p_eth.c at iproute2 +// v7.2.0: the layered kinds get_pedit_kind finds by dlsym in tc itself, +// p_pedit_. Any other name is its noexist arm, pedit_parse_nopopt +// (W230), and so is a name of 15 bytes or more, whose strncpy leaves k +// unterminated (W231): no symbol can match it. + +// The parse_val types (m_pedit.h). +const ( + peditTIPv4 = 1 + peditTIPv6 = 2 + peditTU32 = 4 + peditTMAC = 5 +) + +// peditAllowDec is PEDIT_ALLOW_DEC. +const peditAllowDec = 1 << 0 + +// peditField is one field arm of a layered parser: the word (strcmp, or +// matches when prefix), the offset and parse_cmd's len, type, retain and +// flags. tcShift is ip6 traffic_class's 4-bit shift of the key it packed. +type peditField struct { + name string + prefix bool + off uint32 + len uint32 + typ int + retain uint32 + flags int + tcShift bool +} + +// is the field's test of word w. +func (f peditField) is(w string) bool { + if f.prefix { + return matches(w, f.name) + } + return w == f.name +} + +// peditHdr is one p_pedit_: needEx is its `if (!sel->extended) +// return -1` before any field (W240); exCut is the index of ip's first +// field past `if (sel->extended) return -1` (sport, dport and icmp_*), +// -1 for none. ip's htype is NETWORK without ex. +type peditHdr struct { + needEx bool + htype uint16 + exCut int + fields []peditField +} + +const ( + ru32 = 0xFFFFFFFF + ru16 = 0xFFFF + ru8 = 0xFF +) + +// peditHdrs are the six layered kinds, by id. icmp has no field: parse_icmp +// always returns -1 (W239). +var peditHdrs = map[string]*peditHdr{ + "ip": {htype: xtcpnl.PeditHtypeIP4, exCut: 13, fields: []peditField{ + {name: wordSrc, off: 12, len: 4, typ: peditTIPv4, retain: ru32}, + {name: wordDst, off: 16, len: 4, typ: peditTIPv4, retain: ru32}, + {name: wordTos, off: 1, len: 1, typ: peditTU32, retain: ru8}, + {name: "dsfield", prefix: true, off: 1, len: 1, typ: peditTU32, retain: ru8}, + {name: "ihl", off: 0, len: 1, typ: peditTU32, retain: 0x0f}, + {name: wordTTL, off: 8, len: 1, typ: peditTU32, retain: ru8, flags: peditAllowDec}, + {name: "protocol", off: 9, len: 1, typ: peditTU32, retain: ru8}, + {name: "precedence", prefix: true, off: 1, len: 1, typ: peditTU32, retain: ru8}, + {name: wordNofrag, off: 6, len: 1, typ: peditTU32, retain: 0x3F}, + {name: wordFirstfrag, off: 6, len: 1, typ: peditTU32, retain: 0x1F}, + {name: "ce", off: 6, len: 1, typ: peditTU32, retain: 0x80}, + {name: "df", off: 6, len: 1, typ: peditTU32, retain: 0x40}, + {name: "mf", off: 6, len: 1, typ: peditTU32, retain: 0x20}, + // exCut: the rest assume a 20-byte IP header (W237). + {name: wordDport, off: 22, len: 2, typ: peditTU32, retain: ru16}, + {name: wordSport, off: 20, len: 2, typ: peditTU32, retain: ru16}, + {name: wordIcmpType, off: 20, len: 1, typ: peditTU32, retain: ru8}, + {name: wordIcmpCode, off: 20, len: 1, typ: peditTU32, retain: ru8}, // the type byte (W236) + }}, + "ip6": {needEx: true, htype: xtcpnl.PeditHtypeIP6, exCut: -1, fields: []peditField{ + {name: wordSrc, off: 8, len: 16, typ: peditTIPv6, retain: ru32}, + {name: wordDst, off: 24, len: 16, typ: peditTIPv6, retain: ru32}, + {name: "flow_lbl", off: 0, len: 4, typ: peditTU32, retain: 0x0007ffff}, // 19 bits (W238) + {name: "payload_len", off: 4, len: 2, typ: peditTU32, retain: ru16}, + {name: "nexthdr", off: 6, len: 1, typ: peditTU32, retain: ru8}, + {name: "hoplimit", off: 7, len: 1, typ: peditTU32, retain: ru8, flags: peditAllowDec}, + {name: "traffic_class", off: 1, len: 1, typ: peditTU32, retain: ru8, tcShift: true}, + }}, + "icmp": {exCut: -1}, + "tcp": {needEx: true, htype: xtcpnl.PeditHtypeTCP, exCut: -1, fields: []peditField{ + {name: wordSport, off: 0, len: 2, typ: peditTU32, retain: ru16}, + {name: wordDport, off: 2, len: 2, typ: peditTU32, retain: ru16}, + {name: wordFlags, off: 13, len: 1, typ: peditTU32, retain: ru8}, + }}, + "udp": {needEx: true, htype: xtcpnl.PeditHtypeUDP, exCut: -1, fields: []peditField{ + {name: wordSport, off: 0, len: 2, typ: peditTU32, retain: ru16}, + {name: wordDport, off: 2, len: 2, typ: peditTU32, retain: ru16}, + }}, + "eth": {needEx: true, htype: xtcpnl.PeditHtypeEth, exCut: -1, fields: []peditField{ + {name: wordType, off: 12, len: 2, typ: peditTU32, retain: ru16}, + {name: wordDst, off: 0, len: 6, typ: peditTMAC, retain: ru32}, + {name: wordSrc, off: 6, len: 6, typ: peditTMAC, retain: ru32}, + }}, +} + +// peditLayer is a p_pedit_'s parse_peopt: args starts at the field +// word. rest is what it writes back, which parse_munge keeps only when ok. +func (r *runner) peditLayer(h *peditHdr, s *peditSel, k *peditKey, args []string) (rest []string, ok bool, err error) { + if len(args) < 2 || h.fields == nil || (h.needEx && !s.extended) { + return args, false, nil + } + k.htype = h.htype + if !s.extended { + k.htype = xtcpnl.PeditHtypeNetwork // ip only: the rest need ex + } + for i, f := range h.fields { + if i == h.exCut && s.extended { + return args, false, nil + } + if !f.is(args[0]) { + continue + } + k.off = f.off + rest, ok, err = r.peditCmd(s, k, args[1:], f.len, f.typ, f.retain, f.flags) + if ok && f.tcShift { + key := &s.keys[len(s.keys)-1] + key.Mask = htonl(htonl(key.Mask)<<4 | 0xf) + key.Val = htonl(htonl(key.Val) << 4) + } + return rest, ok, err + } + return args, false, nil +} diff --git a/internal/gotc/aw_pedit_test.go b/internal/gotc/aw_pedit_test.go new file mode 100644 index 000000000..c4d5d22c0 --- /dev/null +++ b/internal/gotc/aw_pedit_test.go @@ -0,0 +1,127 @@ +//go:build gotc_write + +package gotc + +import ( + "testing" + + "github.com/randomizedcoder/xtcp2/pkg/xtcpnl" +) + +// TestGotcPeditWrite is aw_pedit.go and aw_pedit_hdr.go (23W). A row with +// a capture replays a tcact2write row, its requests held to tc's byte for +// byte, and checks tc's rc and stderr; a row without one runs `tc actions +// add action` against one ACK and checks the options it sent. +// +// go test -tags gotc_write ./internal/gotc/ -run TestGotcPeditWrite +func TestGotcPeditWrite(t *testing.T) { + row := func(id string) string { return "tcact2write/" + id } + const ( + badParse = "bad pedit parsing\n" + // A standalone add of non-ex keys: no KEYS_EX, so tcf_pedit_cmd is + // __PEDIT_CMD_MAX and the kernel's offload setup warns. + offload = "Warning: act_pedit: Unsupported pedit command offload.\n" + ) + construct := func(w string) string { return "Bad pedit construct (" + w + ")\nUsage: ... pedit munge [ex]" } + // eth dst invert: pack_mac's two SET keys of ff:00:00:00:00:00 (W223). + ethInvert := xtcpnl.TcPeditSel{Nkeys: 2, Keys: []xtcpnl.TcPeditKey{ + {Val: 0x000000ff}, + {Mask: htonl(0x0000ffff), Off: 4}, + }}.Append(nil) + // ip ttl set 1: pack_key8 at byte 8 of word 8. + ttl1 := xtcpnl.TcPeditSel{Nkeys: 1, Keys: []xtcpnl.TcPeditKey{ + {Val: htonl(1 << 24), Mask: htonl(0x00ffffff), Off: 8}, + }}.Append(nil) + cases := []awCase{ + // positive + {"positive: raw offset u32 set", row("ec-001"), nil, awExpected{stderr: offload}}, + {"positive: raw offset u16 at byte 2", row("ec-040"), nil, awExpected{stderr: offload}}, + {"positive: raw offset u8 at byte 1", row("ec-038"), nil, awExpected{stderr: offload}}, + {"positive: two munges and a control", row("ec-047"), nil, awExpected{stderr: offload}}, + {"positive: ex ip ttl add sends PARMS_EX and KEYS_EX (IP4, ADD)", row("ec-067"), nil, awExpected{}}, + {"positive: ex ip6 src packs four words", row("ec-069"), nil, awExpected{}}, + {"positive: ex tcp dport", row("ec-078"), nil, awExpected{}}, + {"positive: ex udp sport", row("ec-080"), nil, awExpected{}}, + {"positive: ex eth dst packs a u32 and a u16 key", row("ec-082"), nil, awExpected{}}, + {"positive: ex eth src starts on a 16-bit boundary", row("ec-083"), nil, awExpected{}}, + {"positive: four layered kinds in one action", row("ec-085"), nil, awExpected{}}, + {"positive: tos set with retain masks the value", row("ec-068"), nil, awExpected{}}, + {"positive: clear", row("ec-043"), nil, awExpected{stderr: offload}}, + {"positive: preserve", row("ec-045"), nil, awExpected{stderr: offload}}, + {"positive: ip6 traffic_class is shifted by 4 bits", row("ec-076"), nil, awExpected{}}, + {"positive: matchall carries pedit", row("ec-227"), nil, awExpected{}}, + {"positive: the batch carries eth dst's colon NULs into simple's sdata (W232)", row("ec-255"), nil, awExpected{}}, + {"positive: ip ttl set 1 with no capture", "", []string{"pedit", "munge", "ip", "ttl", "set", "1"}, + awExpected{reqs: 1, opts: optBytes(xtcpnl.TcaPeditParms, ttl1)}}, + // negative + {"negative: ip6 without ex fails silently (W240)", row("ng-024"), nil, + awExpected{rc: 255, has: badParse + construct("ip6")}}, + {"negative: tcp without ex fails silently (W240)", row("ng-025"), nil, + awExpected{rc: 255, has: badParse + construct("tcp")}}, + {"negative: ex ip sport fails silently (W240)", row("ng-028"), nil, + awExpected{rc: 255, has: badParse + construct("ip")}}, + {"negative: an unknown kind names the next word, two spaces (W230)", row("ng-016"), nil, + awExpected{rc: 255, has: "Unknown action hence option \"bar\" is unparsable\n" + badParse + construct("foo")}}, + {"negative: an unknown kind as the last word is incomplete (W230)", row("ng-017"), nil, + awExpected{rc: 255, stderr: "Command line is not complete. Try option \"help\"\n"}}, + {"negative: icmp always fails (W239)", row("ng-023"), nil, awExpected{rc: 255, has: badParse + construct("icmp")}}, + {"negative: the man page's at/offmask/shift words are refused (W216)", row("ng-002"), nil, + awExpected{rc: 255, has: construct("12")}}, + {"negative: add without ex", row("ng-014"), nil, + awExpected{rc: 255, has: "Non extended mode. only 'set' command is supported\n" + badParse}}, + {"negative: decrement on tos", row("ng-042"), nil, + awExpected{rc: 255, has: "decrement command is not supported for this field\n" + badParse}}, + {"negative: eth dst preserve is a retain past 32 bits, sic (W222)", row("ng-009"), nil, + awExpected{rc: 255, has: "retain is not supported for fields longer the 32 bits\n" + badParse + construct("eth")}}, + {"negative: a bad MAC group is cut at its colon (W232)", row("ng-022"), nil, + awExpected{rc: 255, has: "\"zz\" is invalid lladdr.\n" + badParse}}, + {"negative: a 7-group MAC fails with no message (W232)", row("ng-021"), nil, + awExpected{rc: 255, has: badParse + construct("eth")}}, + {"negative: index is base 10 (W247)", row("ng-037"), nil, awExpected{rc: 255, has: "Pedit: Illegal \"index\"\nbad action parsing\n"}}, + {"negative: pedit pedit ex counts the second pedit (W241)", row("ng-030"), nil, + awExpected{rc: 255, has: "'ex' must be before first 'munge'\n"}}, + {"negative: no key is sent as nkeys 0 and the kernel refuses (W242)", row("ng-031"), nil, + awExpected{rc: 255, stderr: "Error: act_pedit: Pedit requires keys to be passed.\nWe have an error talking to the kernel\n"}}, + {"negative: help is usage and exit (W246)", row("ng-013"), nil, awExpected{rc: 255, has: "Usage: ... pedit munge [ex] [CONTROL]\n"}}, + // boundary + {"boundary: 128 keys are sent", row("ec-088"), nil, awExpected{stderr: offload}}, + {"boundary: the 129th key fails silently, naming the word after it (W220)", row("ng-006"), nil, + awExpected{rc: 255, has: construct("index")}}, + {"boundary: ttl 255 is sent", row("ec-086"), nil, awExpected{stderr: offload}}, + {"boundary: ttl 256 is pack_key8's message with no closing parenthesis (W221)", row("ng-007"), nil, + awExpected{rc: 255, has: "pack_key8 bad value (val 100 mask 0\n" + badParse}}, + {"boundary: dport 65535 is sent", row("ec-087"), nil, awExpected{stderr: offload}}, + {"boundary: dport 65536 is pack_key16's message", row("ng-008"), nil, awExpected{rc: 255, has: "pack_key16 bad value\n"}}, + {"boundary: 128-key ex actions past 16384 drop PARMS_EX and send KEYS_EX (W248)", row("ng-157"), nil, + awExpected{rc: 255, has: "addattr_l ERROR: message exceeded bound of 16384\n"}}, + // corner + {"corner: a pack failure at the end of the line names (null) (W218)", row("ng-003"), nil, + awExpected{rc: 255, has: "pack_key32: 32 bit offsets must begin in 32bit boundaries\n" + construct("(null)")}}, + {"corner: eth dst invert sets ff:00:... (W223)", row("ec-091"), nil, awExpected{}}, + {"corner: eth dst invert's keys", "", []string{"pedit", "ex", "munge", "eth", "dst", "invert"}, + awExpected{reqs: 1, opts: optBytes(xtcpnl.TcaPeditParmsEx, ethInvert)}}, + {"corner: ip6 dst invert sets ff00:: (W223)", row("ec-092"), nil, awExpected{}}, + {"corner: a bare p after a key is pedit, so incomplete (W226)", row("ng-012"), nil, + awExpected{rc: 255, stderr: "Command line is not complete. Try option \"help\"\n"}}, + {"corner: r after a command is retain, so incomplete (W225)", row("ng-011"), nil, + awExpected{rc: 255, stderr: "Command line is not complete. Try option \"help\"\n"}}, + {"corner: a is at and u is u32 (W227)", row("ec-095"), nil, awExpected{stderr: offload}}, + {"corner: u1 is u16 (W227)", row("ec-097"), nil, awExpected{stderr: offload}}, + {"corner: offset -4 is 0xfffffffc (W235)", row("ec-104"), nil, awExpected{stderr: offload}}, + {"corner: the positional at form, offmask in base 16 (W217)", row("ec-089"), nil, awExpected{stderr: offload}}, + {"corner: trailing junk after a MAC's sixth group is accepted (W232)", row("ec-098"), nil, awExpected{}}, + {"corner: ip src drops the prefix length (W233)", row("ec-099"), nil, awExpected{stderr: offload}}, + {"corner: ip6 src any is :: (W234)", row("ec-102"), nil, awExpected{}}, + {"corner: icmp_code edits the type byte (W236)", row("ec-105"), nil, awExpected{stderr: offload}}, + {"corner: d is dsfield and p precedence (W237)", row("ec-106"), nil, awExpected{stderr: offload}}, + {"corner: flow_lbl's retain is 19 bits (W238)", row("ec-108"), nil, awExpected{}}, + {"corner: index before a control leaves it for a second gact (W243)", row("ec-109"), nil, awExpected{stderr: offload}}, + {"corner: a bad goto chain is reported twice (W244)", row("ng-033"), nil, + awExpected{rc: 255, has: "Illegal \"chain index\"\nIllegal \"chain index\"\n"}}, + {"corner: an unknown word after a key is the next action kind (W245)", row("ng-034"), nil, + awExpected{rc: 255, has: "Bad action type foo\n"}}, + {"corner: a 15+ byte kind is an unknown kind (W231)", row("ng-018"), nil, + awExpected{rc: 255, has: construct("abcdefghijklmnopq")}}, + } + runAwCases(t, cases) +} diff --git a/internal/gotc/aw_test.go b/internal/gotc/aw_test.go index 7fe412209..f4651c199 100644 --- a/internal/gotc/aw_test.go +++ b/internal/gotc/aw_test.go @@ -85,10 +85,15 @@ func runAwCases(t *testing.T, cases []awCase) { } } -// awReplayRow runs a tcactwrite row's cmd against its capture. +// awReplayRow runs a tcactwrite row's cmd against its capture; an id with +// a space's name, as tcact2write/ec-112, is that space's row. func awReplayRow(t *testing.T, id string) result { t.Helper() - dir, err := filepath.Abs(filepath.Join(tcactwriteDir, id)) + rel := filepath.Join(tcactwriteDir, id) + if strings.Contains(id, "/") { + rel = filepath.Join(tcactwriteDir, "..", id) + } + dir, err := filepath.Abs(rel) if err != nil { t.Fatal(err) } @@ -236,15 +241,15 @@ func TestGotcActParsers(t *testing.T) { {"police", "ec-244"}, {"mirred", "ec-245"}, {"skbedit", "ec-246"}, {"vlan", "ec-247"}, {"csum", "ec-248"}, {"nat", "ec-249"}, {"simple", "ec-250"}, {"connmark", "ec-251"}, {"ctinfo", "ec-252"}, {"sample", "ec-253"}, {"skbmod", "ec-254"}, {"mpls", "ec-255"}, + {"pedit", "ec-217"}, {"ct", "ec-220"}, {"gate", "ec-221"}, } { cases = append(cases, awCase{"positive: matchall carries " + r.kind, r.row, nil, awExpected{}}) } - for _, r := range []struct{ kind, row string }{ - {"pedit", "ec-217"}, {"tunnel_key", "ec-218"}, {"ife", "ec-219"}, {"ct", "ec-220"}, {"gate", "ec-221"}, {"bpf", "ec-222"}, - } { - cases = append(cases, awCase{"negative: increment 23's " + r.kind + " is refused by name", "", []string{r.kind, "index", "1"}, - awExpected{rc: 255, stderr: "gotc: not implemented: tc actions action kind " + r.kind + "\n"}}) - } + cases = append(cases, + awCase{"positive: increment 23's tunnel_key is parsed and sent", "ec-218", nil, awExpected{}}, + awCase{"positive: increment 23's ife is parsed and sent", "ec-219", nil, awExpected{stderr: "IFE type 0xED3E\n"}}, + ) + cases = append(cases, awCase{"positive: increment 23's bpf is sent as tc sends it", "ec-222", nil, awExpected{}}) cases = append(cases, awCase{"boundary: an unlinked name falls back to gact, which reads it as a control (W114)", "", []string{"nosuchkind", "drop"}, awExpected{rc: 255, stderr: "Bad action type nosuchkind\n" + gactExplainText}}, diff --git a/internal/gotc/aw_tunnel_key.go b/internal/gotc/aw_tunnel_key.go new file mode 100644 index 000000000..a66c3624b --- /dev/null +++ b/internal/gotc/aw_tunnel_key.go @@ -0,0 +1,376 @@ +//go:build gotc_write + +package gotc + +import ( + "encoding/binary" + "strings" + + "github.com/randomizedcoder/xtcp2/pkg/xtcpnl" + "golang.org/x/sys/unix" +) + +// tc/m_tunnel_key.c parse_tunnel_key at iproute2 v7.2.0. + +// tunnelKeyExplain is m_tunnel_key.c explain: it omits tos, ttl, index and +// CONTROL (W266). +func (r *runner) tunnelKeyExplain() { + r.errf("%s", "Usage: tunnel_key unset\n"+ + " tunnel_key set \n"+ + "Where TUNNEL_KEY is a combination of:\n"+ + "id \n"+ + "src_ip (mandatory)\n"+ + "dst_ip (mandatory)\n"+ + "dst_port \n"+ + "geneve_opts | vxlan_opts | erspan_opts \n"+ + "csum | nocsum (default is \"csum\")\n"+ + "nofrag\n") +} + +// tunnelKeyArgs is parse_tunnel_key's locals. +type tunnelKeyArgs struct { + parm xtcpnl.TcTunnelKey + action int32 + hasSrc, hasDst bool + csum, nofrag bool +} + +// parseTunnelKey is parse_tunnel_key. The options nest opens before the +// first NEXT_ARG, so a bare `tunnel_key` is incomplete (W254); the keyword +// loop takes words by prefix in tc's order (`s` set, `d` dst_ip, `t` tos, +// `n` nocsum, `e` erspan_opts; nofrag by strcmp, W255) and each option is +// written as it is read. NO_CSUM is always sent, unset too (W263); no set +// or unset sends t_action 0 (W253); the control word comes before the +// index (W264), which is base 10 (W256). +func (r *runner) parseTunnelKey(ops *fops, args []string, tcaID uint16) ([]string, bool, error) { + if !matches(args[0], xtcpnl.TcActKindTunnelKey) { + return nil, false, nil + } + a := tunnelKeyArgs{csum: true} + tail := ops.begin(maxMsg, tcaID) + args, err := r.nextArg(args) + if err != nil { + return nil, false, err + } + args, ok, err := r.tunnelKeyLoop(ops, &a, args) + if err != nil || !ok { + return nil, false, err + } + var noCsum byte + if !a.csum { + noCsum = 1 + } + ops.put(maxMsg, xtcpnl.TcaTunnelKeyNoCsum, []byte{noCsum}) + if a.nofrag { + ops.put(maxMsg, xtcpnl.TcaTunnelKeyNoFrag, nil) + } + if args, a.parm.Action, err = r.parseActionControlDflt(args, tcActPipe); err != nil { + return nil, false, err + } + if len(args) > 0 && matches(args[0], "index") { + if args, err = r.nextArg(args); err != nil { + return nil, false, err + } + i, good := getU32(args[0], 10) + if !good { + r.errf("tunnel_key: Illegal \"index\"\n") + return nil, false, nil + } + a.parm.Index = i + args = args[1:] + } + if a.action == xtcpnl.TcaTunnelKeyActSet && (!a.hasSrc || !a.hasDst) { + r.errf("set needs tunnel_key parameters\n") + r.tunnelKeyExplain() + return nil, false, nil + } + a.parm.TAction = a.action + ops.put(maxMsg, xtcpnl.TcaTunnelKeyParms, a.parm.Append(nil)) + ops.end(tail) + return args, true, nil +} + +// tunnelKeyLoop is parse_tunnel_key's keyword loop: rest starts at the +// first word it does not know. ok false is a return -1. +func (r *runner) tunnelKeyLoop(ops *fops, a *tunnelKeyArgs, args []string) (rest []string, ok bool, err error) { + for len(args) > 0 { + w := args[0] + switch { + case matches(w, "unset"), matches(w, "set"): + if a.action != 0 { + r.errf("unexpected \"%s\" - action already specified\n", w) + r.tunnelKeyExplain() + return nil, false, nil + } + a.action = xtcpnl.TcaTunnelKeyActSet + if matches(w, "unset") { + a.action = xtcpnl.TcaTunnelKeyActRelease + } + case matches(w, "src_ip"), matches(w, "dst_ip"): + if args, err = r.nextArg(args); err != nil { + return nil, false, err + } + src := matches(w, "src_ip") + if err = r.tunnelKeyAddr(ops, args[0], src); err != nil { + return nil, false, err + } + if src { + a.hasSrc = true + } else { + a.hasDst = true + } + case matches(w, "help"): + r.tunnelKeyExplain() + return nil, false, exitCode(-1) + case w == wordNofrag: + a.nofrag = true + default: + var known bool + if args, known, ok, err = r.tunnelKeyOpt(ops, a, args); err != nil || !ok { + return nil, false, err + } + if !known { + return args, true, nil + } + } + args = args[1:] + } + return args, true, nil +} + +// tunnelKeyOpt is the loop's arms from id on, in tc's order: known false +// is the loop's break, ok false a return -1 after its message. +func (r *runner) tunnelKeyOpt(ops *fops, a *tunnelKeyArgs, args []string) (rest []string, known, ok bool, err error) { + w := args[0] + var parse func(*fops, []string) bool + var name string + switch { + case matches(w, "id"): + name, parse = "id", func(o *fops, v []string) bool { return putBe32(o, v[0], 10, xtcpnl.TcaTunnelKeyEncKeyID) } + case matches(w, "dst_port"): + name, parse = "dst port", func(o *fops, v []string) bool { return putBe16(o, v[0], 10, xtcpnl.TcaTunnelKeyEncDstPort) } + case matches(w, "geneve_opts"): + name, parse = "geneve_opts", r.tunnelKeyGeneveOpts + case matches(w, "vxlan_opts"): + name, parse = "vxlan_opts", tunnelKeyVxlanOpt + case matches(w, "erspan_opts"): + name, parse = "erspan_opts", r.tunnelKeyErspanOpt + case matches(w, wordTos): + name, parse = wordTos, func(o *fops, v []string) bool { return putTosTTL(o, v[0], xtcpnl.TcaTunnelKeyEncTos) } + case matches(w, wordTTL): + name, parse = wordTTL, func(o *fops, v []string) bool { return putTosTTL(o, v[0], xtcpnl.TcaTunnelKeyEncTTL) } + case matches(w, "csum"): + a.csum = true + return args, true, true, nil + case matches(w, "nocsum"): + a.csum = false + return args, true, true, nil + default: + return args, false, true, nil + } + if args, err = r.nextArg(args); err != nil { + return nil, false, false, err + } + if !parse(ops, args) { + r.errf("Illegal \"%s\"\n", name) + return nil, true, false, nil + } + return args, true, true, nil +} + +// tunnelKeyAddr is tunnel_key_parse_ip_addr: get_addr's exit(1) for a bad +// address, so "Illegal \"src_ip\"" can never print (W250), and the family +// picks the type: any, all and default are AF_UNSPEC's, 0 bytes of +// IPV6_* (W251); a v4 and a v6 address are both sent (W252). +func (r *runner) tunnelKeyAddr(ops *fops, arg string, src bool) error { + p, err := r.getAddr(arg, unix.AF_UNSPEC) + if err != nil { + return err + } + t4, t6 := xtcpnl.TcaTunnelKeyEncIPv4Dst, xtcpnl.TcaTunnelKeyEncIPv6Dst + if src { + t4, t6 = xtcpnl.TcaTunnelKeyEncIPv4Src, xtcpnl.TcaTunnelKeyEncIPv6Src + } + t := t6 + if p.family == unix.AF_INET { + t = t4 + } + ops.put(maxMsg, t, append([]byte(nil), p.data[:p.byteLen()]...)) + return nil +} + +// putBe16 is get_be16 then addattr16: false is get_be16's failure. +func putBe16(ops *fops, s string, base uint64, t uint16) bool { + v, ok := getU16(s, base) + if ok { + ops.put(maxMsg, t, binary.BigEndian.AppendUint16(nil, v)) + } + return ok +} + +// putBe32 is get_be32 then addattr32. +func putBe32(ops *fops, s string, base uint64, t uint16) bool { + v, ok := getU32(s, base) + if ok { + ops.put(maxMsg, t, binary.BigEndian.AppendUint32(nil, v)) + } + return ok +} + +// putU8 is get_u8 then addattr8. +func putU8(ops *fops, s string, base uint64, t uint16) bool { + v, ok := getU8(s, base) + if ok { + ops.put(maxMsg, t, []byte{v}) + } + return ok +} + +// putTosTTL is tunnel_key_parse_tos_ttl: base 10, and on failure base 16, +// so `1a` is 26 and `010` is 10 (W257). +func putTosTTL(ops *fops, s string, t uint16) bool { + v, ok := getU8(s, 10) + if !ok { + v, ok = getU8(s, 16) + } + if ok { + ops.put(maxMsg, t, []byte{v}) + } + return ok +} + +// strtok is glibc strtok_r over one argv word: each token, the offset of +// the delimiter strtok_r writes a NUL over (-1 at the word's end), and +// where the next call starts. Leading delimiters are skipped, so empty +// fields merge and the fields after them shift (W258, W261). +func strtok(w string, from int, delim string) (tok string, at, nul, next int, ok bool) { + s := from + for s < len(w) && strings.IndexByte(delim, w[s]) >= 0 { + s++ + } + if s >= len(w) { + return "", 0, -1, len(w), false + } + e := s + for e < len(w) && strings.IndexByte(delim, w[e]) < 0 { + e++ + } + if e == len(w) { + return w[s:e], s, -1, e, true + } + return w[s:e], s, e, e + 1, true +} + +// tokNul is strtok_r's NUL at byte k of words[0], which tc never puts back +// and a later batch line can read (W265). +func (r *runner) tokNul(words []string, k int) { + if k >= 0 { + r.mem.nul(words, k) + } +} + +// tunnelKeyGeneveOpts is tunnel_key_parse_geneve_opts: ENC_OPTS, without +// NLA_F_NESTED, then a GENEVE nest per ','-token. An empty word sends an +// empty ENC_OPTS (W260). +func (r *runner) tunnelKeyGeneveOpts(ops *fops, words []string) bool { + nest := ops.begin(maxMsg, xtcpnl.TcaTunnelKeyEncOpts) + w := words[0] + for i := 0; ; { + tok, at, nul, next, ok := strtok(w, i, ",") + if !ok { + break + } + r.tokNul(words, nul) + if !r.tunnelKeyGeneveOpt(ops, words, tok, at) { + return false + } + i = next + } + ops.end(nest) + return true +} + +// tunnelKeyGeneveOpt is tunnel_key_parse_geneve_opt over the token at byte +// base of words[0]: CLASS (be16, base 16), TYPE (u8, base 16) and DATA, +// each a ':'-token. DATA is len/2 bytes of hex2mem (pairs from the +// start, whatever follows), so an odd last nibble +// is dropped unread and one character is 0 bytes (W259); a fourth field +// fails. +func (r *runner) tunnelKeyGeneveOpt(ops *fops, words []string, opt string, base int) bool { + nest := ops.begin(maxMsg, xtcpnl.TcaTunnelKeyEncOptsGeneve) + n := uint16(1) + for i := 0; ; n++ { + tok, _, nul, next, ok := strtok(opt, i, ":") + if !ok { + break + } + if nul >= 0 { + r.tokNul(words, base+nul) + } + switch n { + case xtcpnl.TcaTunnelKeyEncOptGeneveClass: + ok = putBe16(ops, tok, 16, n) + case xtcpnl.TcaTunnelKeyEncOptGeneveType: + ok = putU8(ops, tok, 16, n) + case xtcpnl.TcaTunnelKeyEncOptGeneveData: + b := make([]byte, len(tok)/2) + if ok = hex2mem(tok, b); ok { + ops.put(maxMsg, n, b) + } + default: + ok = false + } + if !ok { + return false + } + i = next + } + ops.end(nest) + return true +} + +// tunnelKeyVxlanOpt is tunnel_key_parse_vxlan_opt: ENC_OPTS and VXLAN, +// both with NLA_F_NESTED, and GBP in base 0. +func tunnelKeyVxlanOpt(ops *fops, words []string) bool { + encap := ops.begin(maxMsg, xtcpnl.TcaTunnelKeyEncOpts|unix.NLA_F_NESTED) + nest := ops.begin(maxMsg, xtcpnl.TcaTunnelKeyEncOptsVxlan|unix.NLA_F_NESTED) + v, ok := getU32(words[0], 0) + if !ok { + return false + } + ops.u32(maxMsg, xtcpnl.TcaTunnelKeyEncOptVxlanGbp, v) + ops.end(nest) + ops.end(encap) + return true +} + +// tunnelKeyErspanOpt is tunnel_key_parse_erspan_opt: VER, INDEX (be32), +// DIR and HWID, each a ':'-token in base 0 (W261); a fifth field fails. +func (r *runner) tunnelKeyErspanOpt(ops *fops, words []string) bool { + encap := ops.begin(maxMsg, xtcpnl.TcaTunnelKeyEncOpts|unix.NLA_F_NESTED) + nest := ops.begin(maxMsg, xtcpnl.TcaTunnelKeyEncOptsErspan|unix.NLA_F_NESTED) + w := words[0] + n := uint16(1) + for i := 0; ; n++ { + tok, _, nul, next, ok := strtok(w, i, ":") + if !ok { + break + } + r.tokNul(words, nul) + switch n { + case xtcpnl.TcaTunnelKeyEncOptErspanVer, xtcpnl.TcaTunnelKeyEncOptErspanDir, xtcpnl.TcaTunnelKeyEncOptErspanHwid: + ok = putU8(ops, tok, 0, n) + case xtcpnl.TcaTunnelKeyEncOptErspanIndex: + ok = putBe32(ops, tok, 0, n) + default: + ok = false + } + if !ok { + return false + } + i = next + } + ops.end(nest) + ops.end(encap) + return true +} diff --git a/internal/gotc/aw_tunnel_key_test.go b/internal/gotc/aw_tunnel_key_test.go new file mode 100644 index 000000000..a13931ac3 --- /dev/null +++ b/internal/gotc/aw_tunnel_key_test.go @@ -0,0 +1,159 @@ +//go:build gotc_write + +package gotc + +import ( + "testing" + + "github.com/randomizedcoder/xtcp2/pkg/xtcpnl" +) + +// tunnelKeyUsage is m_tunnel_key.c explain's text. +const tunnelKeyUsage = "Usage: tunnel_key unset\n" + + " tunnel_key set \n" + + "Where TUNNEL_KEY is a combination of:\n" + + "id \n" + + "src_ip (mandatory)\n" + + "dst_ip (mandatory)\n" + + "dst_port \n" + + "geneve_opts | vxlan_opts | erspan_opts \n" + + "csum | nocsum (default is \"csum\")\n" + + "nofrag\n" + +// geneveDataLen checks the first geneve option's DATA is n bytes. +func geneveDataLen(n int) func(*testing.T, map[uint16][]byte) { + return func(t *testing.T, opts map[uint16][]byte) { + t.Helper() + enc, ok := opts[xtcpnl.TcaTunnelKeyEncOpts] + if !ok { + t.Fatal("no ENC_OPTS") + } + data, ok := rtAttrs(rtAttrs(enc)[xtcpnl.TcaTunnelKeyEncOptsGeneve])[xtcpnl.TcaTunnelKeyEncOptGeneveData] + if !ok || len(data) != n { + t.Errorf("geneve DATA % x (present %v), want %d bytes", data, ok, n) + } + } +} + +// TestGotcTunnelKeyWrite is m_tunnel_key.c parse_tunnel_key (aw_tunnel_key.go). +// Rows named tcact2write/... are held to tc's capture byte for byte. +// +// go test -tags gotc_write ./internal/gotc/ -run TestGotcTunnelKeyWrite +func TestGotcTunnelKeyWrite(t *testing.T) { + const kerr = "We have an error talking to the kernel\n" + runAwCases(t, []awCase{ + {"positive: set v4 with id, dst_port, tos 0x10 (base 16 after base 10) and ttl", "tcact2write/ec-112", nil, awExpected{}}, + {"positive: set v6 with dst_port", "tcact2write/ec-113", nil, awExpected{}}, + {"positive: geneve, its ENC_OPTS without NLA_F_NESTED", "tcact2write/ec-117", nil, awExpected{}}, + {"positive: three geneve options on v6", "tcact2write/ec-118", nil, awExpected{}}, + {"positive: vxlan, both nests with NLA_F_NESTED", "tcact2write/ec-119", nil, awExpected{}}, + {"positive: erspan v1 and v2", "tcact2write/ec-120", nil, awExpected{}}, + {"positive: erspan v2", "tcact2write/ec-121", nil, awExpected{}}, + {"positive: unset sends PARMS and NO_CSUM (W263)", "tcact2write/ec-007", nil, awExpected{}}, + {"positive: unset's attributes", "", []string{"tunnel_key", "unset"}, + awExpected{reqs: 1, opts: all(optBytes(xtcpnl.TcaTunnelKeyNoCsum, u8b(0)), + parmsU32At(xtcpnl.TcaTunnelKeyParms, 20, xtcpnl.TcaTunnelKeyActRelease), + parmsU32At(xtcpnl.TcaTunnelKeyParms, 8, tcActPipe))}}, + {"positive: change, replace, delete and flush", "tcact2write/ec-008", nil, awExpected{}}, + {"positive: replace", "tcact2write/ec-009", nil, awExpected{}}, + {"positive: delete", "tcact2write/ec-011", nil, awExpected{}}, + {"positive: flush", "tcact2write/ec-012", nil, awExpected{}}, + {"positive: inside matchall", "tcact2write/ec-228", nil, awExpected{}}, + {"positive: nocsum and nofrag", "tcact2write/ec-114", nil, awExpected{}}, + {"negative: a bad address is get_addr's exit(1); Illegal \"src_ip\" never prints (W250)", "tcact2write/ng-045", nil, + awExpected{rc: 1, stderr: "Error: any valid address is expected rather than \"bogus\".\n"}}, + {"negative: get_addr's exit(1) ends a -force batch (W250)", "tcact2write/ng-159", nil, + awExpected{rc: 1, stderr: "Error: any valid address is expected rather than \"bogus\".\n"}}, + {"negative: no set or unset sends t_action 0, which the kernel refuses (W253)", "tcact2write/ng-048", nil, + awExpected{rc: 255, stderr: "Error: Unknown tunnel key action.\n" + kerr}}, + {"negative: a bare tunnel_key is incomplete (W254)", "tcact2write/ng-049", nil, + awExpected{rc: 255, stderr: "Command line is not complete. Try option \"help\"\n"}}, + {"negative: id with no value is incomplete", "tcact2write/ng-065", nil, + awExpected{rc: 255, stderr: "Command line is not complete. Try option \"help\"\n"}}, + {"negative: id is base 10 (W256)", "tcact2write/ng-050", nil, + awExpected{rc: 255, stderr: "Illegal \"id\"\n" + parseTail(10, "tunnel_key")}}, + {"negative: dst_port is base 10 and its message has a space (W256)", "tcact2write/ng-051", nil, + awExpected{rc: 255, stderr: "Illegal \"dst port\"\n" + parseTail(12, "tunnel_key")}}, + {"negative: index is base 10 (W256)", "tcact2write/ng-052", nil, + awExpected{rc: 255, stderr: "tunnel_key: Illegal \"index\"\n" + parseTail(10, "tunnel_key")}}, + {"negative: a second set (W266)", "tcact2write/ng-059", nil, + awExpected{rc: 255, stderr: "unexpected \"set\" - action already specified\n" + tunnelKeyUsage + parseTail(9, "tunnel_key")}}, + {"negative: set with no addresses", "tcact2write/ng-060", nil, + awExpected{rc: 255, stderr: "set needs tunnel_key parameters\n" + tunnelKeyUsage + parseTail(6, "tunnel_key")}}, + {"negative: help is exit(-1)", "tcact2write/ng-064", nil, awExpected{rc: 255, stderr: tunnelKeyUsage}}, + {"negative: a bad vxlan GBP", "tcact2write/ng-062", nil, + awExpected{rc: 255, stderr: "Illegal \"vxlan_opts\"\n" + parseTail(12, "tunnel_key")}}, + {"negative: a fifth erspan field", "tcact2write/ng-063", nil, + awExpected{rc: 255, stderr: "Illegal \"erspan_opts\"\n" + parseTail(12, "tunnel_key")}}, + {"boundary: tos and ttl 255", "tcact2write/ec-124", nil, awExpected{}}, + {"boundary: tos 256 fails in both bases", "tcact2write/ng-061", nil, + awExpected{rc: 255, stderr: "Illegal \"tos\"\n" + parseTail(12, "tunnel_key")}}, + {"boundary: id and dst_port at their limits", "tcact2write/ec-125", nil, awExpected{}}, + {"boundary: one DATA character is 0 bytes (W259)", "tcact2write/ng-055", nil, + awExpected{rc: 255, stderr: "Error: Tunnel key geneve option data is less than 4 bytes long.\n" + kerr}}, + {"boundary: seven DATA characters are 3 bytes, the last nibble unread (W259)", "tcact2write/ng-056", nil, + awExpected{rc: 255, stderr: "Error: Tunnel key geneve option data is less than 4 bytes long.\n" + kerr}}, + {"boundary: eight DATA characters are 4 bytes", "tcact2write/ec-128", nil, awExpected{}}, + {"boundary: DATA lengths 1, 7 and 8 give 0, 3 and 4 bytes (W259)", "", + []string{"tunnel_key", "unset", "geneve_opts", "0102:80:0"}, awExpected{reqs: 1, opts: geneveDataLen(0)}}, + {"boundary: DATA of 7 characters", "", []string{"tunnel_key", "unset", "geneve_opts", "0102:80:0011223"}, + awExpected{reqs: 1, opts: geneveDataLen(3)}}, + {"boundary: DATA of 8 characters", "", []string{"tunnel_key", "unset", "geneve_opts", "0102:80:00112233"}, + awExpected{reqs: 1, opts: geneveDataLen(4)}}, + {"corner: an empty geneve field merges and shifts the rest (W258)", "tcact2write/ng-053", nil, + awExpected{rc: 255, stderr: "Illegal \"geneve_opts\"\n" + parseTail(12, "tunnel_key")}}, + {"corner: geneve with no DATA is sent; the kernel refuses", "tcact2write/ng-054", nil, + awExpected{rc: 255, stderr: "Error: Missing tunnel key geneve option class, type or data.\n" + kerr}}, + {"corner: an empty erspan field shifts dir into index's place (W261)", "tcact2write/ng-057", nil, + awExpected{rc: 255, stderr: "Error: Missing tunnel key erspan option dir or hwid.\n" + kerr}}, + {"corner: an empty geneve_opts sends an empty ENC_OPTS (W260)", "tcact2write/ng-058", nil, + awExpected{rc: 255, stderr: "Error: Empty list of tunnel options.\n" + kerr}}, + {"corner: src_ip any sends 0 bytes of IPV6_SRC (W251)", "tcact2write/ng-046", nil, + awExpected{rc: 255, stderr: "Error: Failed to parse nested tunnel key attributes.\n" + kerr}}, + {"corner: src_ip any's attribute", "", []string{"tunnel_key", "unset", "src_ip", "any"}, + awExpected{reqs: 1, opts: all(optBytes(xtcpnl.TcaTunnelKeyEncIPv6Src, []byte{}), optAbsent(xtcpnl.TcaTunnelKeyEncIPv4Src))}}, + {"corner: a v4 src and a v6 dst are both sent (W252)", "tcact2write/ng-047", nil, + awExpected{rc: 255, stderr: "Error: Missing either ipv4 or ipv6 src and dst.\n" + kerr}}, + {"corner: strtok_r's NULs stay in the batch buffer for simple's sdata (W265)", "tcact2write/ec-256", nil, awExpected{}}, + {"corner: geneve and vxlan send two ENC_OPTS (W262)", "tcact2write/ec-129", nil, awExpected{}}, + {"corner: unset sends the addresses and NO_CSUM 1 (W263)", "tcact2write/ec-130", nil, awExpected{}}, + {"corner: control before index, so a later pipe is a second action (W264)", "tcact2write/ec-131", nil, awExpected{}}, + {"corner: a control word", "tcact2write/ec-122", nil, awExpected{}}, + {"corner: tos 1a is 26 and ttl 010 is 10 (W257)", "tcact2write/ec-127", nil, awExpected{}}, + {"corner: s, d, i, t and n are set, dst_ip, id, tos and nocsum (W255)", "tcact2write/ec-126", nil, awExpected{}}, + {"corner: nofrag is a strcmp, so nof is the next action's kind", "", []string{"tunnel_key", "unset", "nof"}, + awExpected{rc: 255, stderr: "Bad action type nof\n" + gactExplainText}}, + }) +} + +// TestStrtok is glibc strtok_r over one word. +func TestStrtok(t *testing.T) { + type tok struct { + tok string + at, nul, nxt int + ok bool + } + tests := []struct { + description string + w string + from int + expected tok + }{ + {"positive: the first field, a NUL over its delimiter", "ab:cd", 0, tok{"ab", 0, 2, 3, true}}, + {"positive: the last field, no NUL", "ab:cd", 3, tok{"cd", 3, -1, 5, true}}, + {"negative: an empty word has no token", "", 0, tok{"", 0, -1, 0, false}}, + {"negative: only delimiters", ":::", 0, tok{"", 0, -1, 3, false}}, + {"boundary: past the end", "ab", 2, tok{"", 0, -1, 2, false}}, + {"corner: leading and doubled delimiters merge (W258)", "::ab::cd", 0, tok{"ab", 2, 4, 5, true}}, + {"corner: a trailing delimiter gets its NUL", "ab:", 0, tok{"ab", 0, 2, 3, true}}, + } + for _, tc := range tests { + t.Run(tc.description, func(t *testing.T) { + var g tok + g.tok, g.at, g.nul, g.nxt, g.ok = strtok(tc.w, tc.from, ":") + if g != tc.expected { + t.Errorf("strtok(%q, %d) = %+v, want %+v", tc.w, tc.from, g, tc.expected) + } + }) + } +} diff --git a/internal/gotc/awrite.go b/internal/gotc/awrite.go index 662f3d0f2..423196222 100644 --- a/internal/gotc/awrite.go +++ b/internal/gotc/awrite.go @@ -23,7 +23,7 @@ import ( // do_action then reads as a command (W176). func (r *runner) actionModify(flags int, args []string) (rest []string, err error) { m := &fmod{standalone: true} - m.ops.hdr = tcaReqHdr + m.ops.hdr, m.ops.errf = tcaReqHdr, r.errf rest, ok, err := r.parseAction(m, args[1:], xtcpnl.TcaRootTab) if err != nil { return nil, err diff --git a/internal/gotc/awrite_fuzz_test.go b/internal/gotc/awrite_fuzz_test.go index ada6acc9d..660d6f9e0 100644 --- a/internal/gotc/awrite_fuzz_test.go +++ b/internal/gotc/awrite_fuzz_test.go @@ -36,6 +36,29 @@ var awFuzzSeeds = []string{ "actions add action get", "actions add action drop flowid 1:1", "actions add action gact pass index 1 skip_sw skip_hw no_percpu hw_stats d", + "actions add action bpf bytecode 1,6\t0\t0\t0 index 1", + "actions replace action bpf run bc 4,40\t0\t0\t12,21\t0\t1\t2048,6\t0\t0\t262144,6\t0\t0\t0 drop index 2", + "actions add action bpf index 5 action bpf drop", + "actions add action pedit munge offset 12 u32 set 0x1 pipe index 14", + "actions add action pedit ex munge ip ttl add 1 munge ip6 src set ::1 munge tcp dport set 80 munge eth dst invert pipe", + "actions replace action pedit munge ip tos set 0x10 retain 0xf0 munge offset -4 u8 at 0 offmask f shift 0 set 1", + "actions add action tunnel_key set src_ip 1.1.1.1 dst_ip 2.2.2.2 id 1 dst_port 4789 tos 1a ttl 64 geneve_opts 0102:80:00880022 index 15", + "actions change action tunnel_key set src_ip ::1 dst_ip ::2 erspan_opts 2:0:1:16 nocsum nofrag index 15", + "actions add action tunnel_key unset vxlan_opts 1 pipe", + "actions add action ife encode use mark 5 allow prio dst 01:02:03:04:05:06junk type 0xed3e index 16", + "actions add action ife decode use tcindex 1 use mark 0 pipe", + "actions add action ct commit zone 3 mark 1/0xff label 01/ff nat src addr 10.0.0.1-10.0.0.9 port 1000-2000 pipe index 17", + "actions add action ct commit helper ipv4-udp-netbios-ns force pipe index 5", + "actions add action ct clear zone 5/1", + "actions add action gate base-time 1 cycle-time 2ms clockid CLOCK_TAI sched-entry open 1ms 2 1000 sched-entry close 1ms index 18", + "actions add action gate priority -1 flags 0 cycle-time-ext 1.5 sched-entry open 4294967295ns -1 5G pipe index 5", +} + +// bpfFuzzDevice is an input whose bytecode-file could name a device or a +// FIFO (bpf_parse_string reads it to EOF, as tc would, and stdin or a tty +// never ends): such inputs are skipped, as the fuzzer cannot finish them. +func bpfFuzzDevice(s string) bool { + return strings.Contains(s, "dev/") || strings.Contains(s, "proc/") || strings.Contains(s, "sys/") } // FuzzGotcActionWrite runs `tc ` through do_action's write verbs @@ -50,7 +73,7 @@ func FuzzGotcActionWrite(f *testing.F) { } sys := shareSys(f) f.Fuzz(func(t *testing.T, s string) { - if len(s) > fuzzFilterMaxIn { + if len(s) > fuzzFilterMaxIn || bpfFuzzDevice(s) { t.Skip() } src := &fakeSource{replies: []Reply{rep(linkMsg(2, "d0")), rep(ack()), rep(ack()), rep(ack())}} @@ -71,12 +94,16 @@ func FuzzGotcActionBatch(f *testing.F) { {"actions add action police rate 1mbit burst 10x index 1", "actions add action gact pass index 1"}, {"actions add action mpls push index 1", "actions flush action mpls"}, {"actions add action nat sideways 1.1.1.1 2.2.2.2", "actions add action simple sdata x # tail"}, + {"actions add action pedit ex munge eth dst set aa:bb:cc:dd:ee:ff", "actions add action simple sdata LLLLLLLLLLLLLLLLLLLLLLLLLL"}, + {"actions add action tunnel_key set src_ip 1.1.1.1 dst_ip 2.2.2.2 id 1 geneve_opts 0102:80:00880022", "actions add action simple sdata LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL"}, + {"actions add action ct mark 1/0xff label 01/ff", "actions add action simple sdata LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL"}, + {"actions add action tunnel_key set src_ip bogus", "actions add action gate sched-entry opn 1ms"}, } { f.Add(s[0], s[1]) } sys := shareSys(f) f.Fuzz(func(t *testing.T, a, b string) { - if len(a)+len(b) > fuzzFilterMaxIn || strings.ContainsAny(a+b, "\n") { + if len(a)+len(b) > fuzzFilterMaxIn || strings.ContainsAny(a+b, "\n") || bpfFuzzDevice(a+b) { t.Skip() } stdin := a + "\n" + b + "\n" diff --git a/internal/gotc/awrite_tdc_test.go b/internal/gotc/awrite_tdc_test.go index 1751d9021..ed504af20 100644 --- a/internal/gotc/awrite_tdc_test.go +++ b/internal/gotc/awrite_tdc_test.go @@ -17,17 +17,16 @@ import ( ) // tdcActionSkips pins the tdc `tc actions` writes gotc refuses, by the -// action kind named: increment 23's six. -var tdcActionSkips = map[string]int{ - "bpf": 7, "ct": 17, "gate": 8, "ife": 48, "pedit": 69, "tunnel_key": 35, -} +// action kind named: none since 23W ported increment 23's six. +var tdcActionSkips = map[string]int{} // tdcActionKnown are the `tc actions` rows gotc cannot match, each with why. var tdcActionKnown = map[string]string{} // tdcActionWritesSent pins how many tdc `tc actions` writes gotc matches -// exactly (22W: gact and the 12 kinds of increment 12). -const tdcActionWritesSent = 332 +// exactly (22W: gact and the 12 kinds of increment 12; 23W: bpf 7, pedit 69, ife 48, tunnel_key 35, ct 17, +// gate 8). +const tdcActionWritesSent = 516 var actionWriteRefused = regexp.MustCompile(`not implemented: tc actions action kind (\S+)`) diff --git a/internal/gotc/cbpf.go b/internal/gotc/cbpf.go new file mode 100644 index 000000000..225b49575 --- /dev/null +++ b/internal/gotc/cbpf.go @@ -0,0 +1,287 @@ +//go:build gotc_write + +package gotc + +import ( + "bufio" + "encoding/binary" + "errors" + "fmt" + "io" + "math" + "os" + "strings" + + "github.com/randomizedcoder/xtcp2/pkg/cint" + "github.com/randomizedcoder/xtcp2/pkg/xtcpnl" +) + +// lib/bpf_legacy.c's parse side at iproute2 v7.2.0, shared by m_bpf.c and +// f_bpf.c: bpf_do_parse's mode words, bpf_ops_parse and bpf_parse_string +// (the bytecode text and the bytecode-file reader). cBPF only: an eBPF +// program reaches bpf(2), libbpf or the ELF loader, and gotc refuses it by +// name where tc would first touch them. + +// bpfMode is enum bpf_mode; a zeroed bpf_cfg_in is cbpfBytecode. +type bpfMode int + +// The bpf_mode values. +const ( + cbpfBytecode bpfMode = iota + cbpfFile + ebpfObject + ebpfPinned +) + +// bpfMaxInsns is BPF_MAXINSNS. +const bpfMaxInsns = 4096 + +// bpfFileBuf is bpf_parse_string's buffer, sizeof("4096,") + BPF_MAXINSNS +// * sizeof("65535 255 255 4294967295,"): a file whose reduced text fills it +// is -E2BIG. +const bpfFileBuf = len("4096,") + 1 + bpfMaxInsns*(len("65535 255 255 4294967295,")+1) + +// errEbpf is gotc's refusal of an eBPF program. +var errEbpf = fmt.Errorf("%w: eBPF program via bpf(2)", errNotImplemented) + +// bpfCfg is what bpf_cfg_in carries from the parse to the load. +type bpfCfg struct { + mode bpfMode + insns []xtcpnl.TcBpfInsn // opcodes[:n_opcodes] +} + +// opsLen is n_opcodes, a u16 attribute (at most BPF_MAXINSNS). +func (c *bpfCfg) opsLen() []byte { + n, _ := cint.U16(len(c.insns)) + return binary.LittleEndian.AppendUint16(nil, n) +} + +// opsBytes is the opcodes, struct sock_filter each. +func (c *bpfCfg) opsBytes() []byte { + b := make([]byte, 0, len(c.insns)*xtcpnl.TcBpfInsnSizeCst) + for _, x := range c.insns { + b = x.Append(b) + } + return b +} + +// load is bpf_load_common's bpf_do_load: an object file is the ELF loader +// and bpf(2), refused; a cBPF program is then cbpf_cb, which the caller +// writes. +func (c *bpfCfg) load() error { + if c.mode == ebpfObject { + return errEbpf + } + return nil +} + +// bpfDoParse is bpf_do_parse with both callers' opt_tbl (cbpf_cb and +// ebpf_cb set) and a prog type that is not BPF_PROG_TYPE_UNSPEC, so no +// `type` word is read; both types may export to a UDS. args starts at the +// mode word. rest is cfg->argv, the last word it took; ok false is its +// negative return, after any message of its own. A pinned program is +// bpf_obj_pinned's bpf(2), refused. +func (r *runner) bpfDoParse(args []string, cfg *bpfCfg) (rest []string, ok bool, err error) { + w := args[0] + switch { + case matches(w, "bytecode") || w == "bc": + cfg.mode = cbpfBytecode + case matches(w, "bytecode-file") || w == "bcf": + cfg.mode = cbpfFile + case matches(w, "object-file") || w == "obj": + cfg.mode = ebpfObject + case matches(w, "object-pinned") || matches(w, "pinned") || matches(w, "fd"): + cfg.mode = ebpfPinned + default: + r.errf("What mode is \"%s\"?\n", w) + return nil, false, nil + } + if args, err = r.nextArg(args); err != nil { + return nil, false, err + } + if cfg.mode == ebpfObject || cfg.mode == ebpfPinned { + if args, err = r.bpfEbpfWords(args); err != nil { + return nil, false, err + } + if cfg.mode == ebpfPinned { + return nil, false, errEbpf + } + return args, true, nil + } + insns, good := r.bpfOpsParse(args[0], cfg.mode == cbpfFile) + if !good { + return nil, false, nil + } + cfg.insns = insns + return args, true, nil +} + +// bpfEbpfWords is bpf_do_parse's eBPF arm after NEXT_ARG: FILE, then +// section, program, export (unless $TC_BPF_UDS is set) and verbose, each +// optional and in that order, then PREV_ARG. args starts at FILE; the +// result is the last word taken. +func (r *runner) bpfEbpfWords(args []string) ([]string, error) { + i := 1 // NEXT_ARG_FWD past FILE + var err error + opt := func(match bool) error { + if !match { + return nil + } + if _, err = r.nextArg(args[i:]); err != nil { + return err + } + i += 2 + return nil + } + if err = opt(i < len(args) && matches(args[i], "section")); err != nil { + return nil, err + } + if err = opt(i < len(args) && args[i] == "program"); err != nil { + return nil, err + } + _, uds := os.LookupEnv("TC_BPF_UDS") + if err = opt(i < len(args) && !uds && matches(args[i], "export")); err != nil { + return nil, err + } + if i < len(args) && matches(args[i], "verbose") { + i++ + } + return args[i-1:], nil // PREV_ARG +} + +// bpfOpsParse is bpf_ops_parse on arg, the text or (fromFile) its file: +// the program, or false after any message of its own (bpf_len 0 or past +// BPF_MAXINSNS and a bad header are silent, W308). +func (r *runner) bpfOpsParse(arg string, fromFile bool) ([]xtcpnl.TcBpfInsn, bool) { + s := cstr(arg) + if fromFile { + var ok bool + if s, ok = r.bpfReadFile(s); !ok { + return nil, false + } + } + n, rest, ok := scanfU16(s) // "%hu%c" + if !ok || rest == "" || rest[0] != ',' { + return nil, false + } + if n == 0 || n > bpfMaxInsns { + return nil, false + } + insns := make([]xtcpnl.TcBpfInsn, 0, n) + tok := s + for { + c := strings.IndexByte(tok, ',') + if c < 0 || c+1 == len(tok) { + break + } + tok = tok[c+1:] + if len(insns) >= int(n) { + r.errf("Real program length exceeds encoded length parameter!\n") + return nil, false + } + x, good := scanfInsn(tok) + if !good { + r.errf("Error at instruction %d!\n", len(insns)) + return nil, false + } + insns = append(insns, x) + } + if len(insns) != int(n) { + r.errf("Parsed program length is less than encoded length parameter!\n") + return nil, false + } + return insns, true +} + +// scanfInsn is sscanf(tok, "%hu %hhu %hhu %u,") == 4: what follows k is +// never looked at (W309), and each field wraps to its width. +func scanfInsn(tok string) (xtcpnl.TcBpfInsn, bool) { + var x xtcpnl.TcBpfInsn + var ok bool + if x.Code, tok, ok = scanfU16(tok); !ok { + return x, false + } + if x.Jt, tok, ok = scanfU8(tok); !ok { + return x, false + } + if x.Jf, tok, ok = scanfU8(tok); !ok { + return x, false + } + x.K, _, ok = scanfU32(tok) + return x, ok +} + +// scanfU32 is one glibc scanf %u conversion: leading space, a sign, then +// decimal digits as strtoul reads them (a minus negates, overflow is +// ULONG_MAX), cut to 32 bits; ok is false when no digit was read. +func scanfU32(s string) (uint32, string, bool) { + v, rest, ok := strtoul(s, 10) + return cint.Low32(v), rest, ok +} + +// scanfU16 is scanfU32 for %hu: the low 16 bits. +func scanfU16(s string) (uint16, string, bool) { + v, rest, ok := strtoul(s, 10) + n, _ := cint.U16From64(v & math.MaxUint16) + return n, rest, ok +} + +// scanfU8 is scanfU32 for %hhu: the low 8 bits. +func scanfU8(s string) (uint8, string, bool) { + v, rest, ok := strtoul(s, 10) + n, _ := cint.U8From64(v & math.MaxUint8) + return n, rest, ok +} + +// bpfReadFile is bpf_parse_string's from_file arm: fopen and its perror, +// then the text with each newline a comma (one after a comma is dropped) +// and each run of blanks its first, up to the first NUL as sscanf sees it. +// A read error (a directory) or a reduced text that fills the buffer is +// -E2BIG, with no message (W311). +func (r *runner) bpfReadFile(name string) (string, bool) { + f, err := os.Open(name) + if err != nil { + r.errf("Cannot fopen: %s\n", strerror(errnoOf(err))) + return "", false + } + defer func() { + if cerr := f.Close(); cerr != nil && r.errOut == nil { + r.errOut = cerr + } + }() + return bpfReduce(bufio.NewReader(f)) +} + +// bpfReduce is bpf_parse_string's fgetc loop over br. +func bpfReduce(br io.ByteReader) (string, bool) { + var b strings.Builder + prev := byte(' ') + for { + c, err := br.ReadByte() + if errors.Is(err, io.EOF) { + break + } + if err != nil { + return "", false // !feof: the read failed + } + switch c { + case '\n': + if prev != ',' { + b.WriteByte(',') + } + prev = ',' + case ' ', '\t': + if prev != ' ' { + b.WriteByte(c) + } + prev = ' ' + default: + b.WriteByte(c) + prev = c + } + if b.Len() == bpfFileBuf { + return "", false // the loop breaks before EOF: !feof + } + } + return cstr(b.String()), true +} diff --git a/internal/gotc/corpus_test.go b/internal/gotc/corpus_test.go index f6addb810..428a8fc43 100644 --- a/internal/gotc/corpus_test.go +++ b/internal/gotc/corpus_test.go @@ -42,12 +42,11 @@ var corpusRefused = map[string]string{ // basic, cgroup, flower, bpf and flow's ematch), and W110, where tc // prints a tc_gact_p nothing set. "tcfwrite/ec-116": "not implemented: tc filter write of kind flower", - "tcfwrite/ec-117": "not implemented: tc filter write of kind bpf", "tcfwrite/ng-033": "uninitialised tc_gact_p (W110)", - // 21W: where tc writes or reads memory it does not own, the two - // ematch kinds refused by name (police went live in 22W), and trees - // past their bound, which - // tc truncates and sends (W97, W151). + // 21W: where tc writes or reads memory it does not own, and the two + // ematch kinds refused by name (police went live in 22W). Trees past + // their bound, which tc truncates and sends (W97, W151), are sent as + // tc sends them since 23W. "tcematch/ec-104": "quoted run past strbuf (W123)", "tcematch/ng-100": "quoted run past strbuf (W123)", "tcematch/ng-101": "quoted run past strbuf (W123)", @@ -57,15 +56,16 @@ var corpusRefused = map[string]string{ "tcematch/ng-108": "not implemented: tc filter write of ematch kind ipt", "tcematch/ng-109": "not implemented: tc filter write of ematch kind ipset", "tcematch/ng-110": "not implemented: tc filter write of ematch kind ipset", - "tcematch/ec-137": "addattr_l exceeded its bound of 4096", - "tcematch/ng-095": "addraw_l exceeded its bound of 16384", - // 22W: the kinds increment 23 ports, refused by name. - "tcactwrite/ec-217": "not implemented: tc actions action kind pedit", - "tcactwrite/ec-218": "not implemented: tc actions action kind tunnel_key", - "tcactwrite/ec-219": "not implemented: tc actions action kind ife", - "tcactwrite/ec-220": "not implemented: tc actions action kind ct", - "tcactwrite/ec-221": "not implemented: tc actions action kind gate", - "tcactwrite/ec-222": "not implemented: tc actions action kind bpf", + // 23W: tc reaches bpf(2), libbpf or the ELF loader (eBPF), which gotc + // never does (W314); ct reads past its 63-byte nat copy (W280); gate + // casts inf, nan and out-of-range times with undefined behavior (W297). + "tcact2write/ng-139": "eBPF program via bpf(2)", "tcact2write/ng-140": "eBPF program via bpf(2)", + "tcact2write/ng-141": "eBPF program via bpf(2)", "tcact2write/ng-142": "eBPF program via bpf(2)", + "tcact2write/ng-143": "eBPF program via bpf(2)", "tcact2write/ng-144": "eBPF program via bpf(2)", + "tcact2write/ng-153": "eBPF program via bpf(2)", "tcact2write/ng-154": "eBPF program via bpf(2)", + "tcact2write/ec-168": "reads past its unterminated 63-byte copy (W280)", + "tcact2write/ec-204": "undefined behavior (W297)", "tcact2write/ec-205": "undefined behavior (W297)", + "tcact2write/ec-206": "undefined behavior (W297)", } // qwriteSent are the corpusWrites rows the gotc_write build sends and @@ -331,6 +331,8 @@ func TestGotcCorpus(t *testing.T) { corpusRows["tcematch"] = 257 spaces = append(spaces, "tcactwrite") corpusRows["tcactwrite"] = 363 + spaces = append(spaces, "tcact2write") + corpusRows["tcact2write"] = 418 } for _, sp := range spaces { more, err := filepath.Glob("../../pkg/xtcpnl/testdata/*/ws/" + sp) diff --git a/internal/gotc/f_bpf.go b/internal/gotc/f_bpf.go index 939f8cdaa..eeec1dd9b 100644 --- a/internal/gotc/f_bpf.go +++ b/internal/gotc/f_bpf.go @@ -23,7 +23,7 @@ func printBpfOpt(r *runner, opt []byte, handle uint32) error { for _, c := range []struct { t uint16 what string - }{{xtcpnl.TcaBpfClassid, wordClassid}, {xtcpnl.TcaBpfFlags, "flags"}, {xtcpnl.TcaBpfFlagsGen, "gen flags"}} { + }{{xtcpnl.TcaBpfClassid, wordClassid}, {xtcpnl.TcaBpfFlags, wordFlags}, {xtcpnl.TcaBpfFlagsGen, "gen flags"}} { if err := attrNeed(kind, c.what, tb.Bytes(c.t), 4); err != nil { return err } diff --git a/internal/gotc/f_flower.go b/internal/gotc/f_flower.go index 303a024e8..129591f62 100644 --- a/internal/gotc/f_flower.go +++ b/internal/gotc/f_flower.go @@ -55,7 +55,7 @@ type flowerFlag struct { // flowerFlagsStr is f_flower.c flags_str. var flowerFlagsStr = []flowerFlag{ {xtcpnl.TcaFlowerKeyFlagsIsFragment, false, "frag"}, - {xtcpnl.TcaFlowerKeyFlagsFragIsFirst, false, "firstfrag"}, + {xtcpnl.TcaFlowerKeyFlagsFragIsFirst, false, wordFirstfrag}, {xtcpnl.TcaFlowerKeyFlagsTunnelCsum, true, "tuncsum"}, {xtcpnl.TcaFlowerKeyFlagsTunnelDontFragment, true, "tundf"}, {xtcpnl.TcaFlowerKeyFlagsTunnelOam, true, "tunoam"}, @@ -215,10 +215,10 @@ func (r *runner) flowerL3Keys(tb xtcpnl.AttrTable, ethType uint16, ipProto uint8 } if t, m, ok := flowerICMPAttrs(ethType, ipProto, false); ok { - r.flowerMaskedU8("icmp_type", tb, t, m, nil) + r.flowerMaskedU8(wordIcmpType, tb, t, m, nil) } if t, m, ok := flowerICMPAttrs(ethType, ipProto, true); ok { - r.flowerMaskedU8("icmp_code", tb, t, m, nil) + r.flowerMaskedU8(wordIcmpCode, tb, t, m, nil) } if tb.Has(xtcpnl.TcaFlowerKeyL2tpv3Sid) { @@ -575,7 +575,7 @@ func (r *runner) flowerMplsOpts(b []byte) { } u8(xtcpnl.TcaFlowerKeyMplsOptLseTc, "tc") u8(xtcpnl.TcaFlowerKeyMplsOptLseBos, "bos") - u8(xtcpnl.TcaFlowerKeyMplsOptLseTTL, "ttl") + u8(xtcpnl.TcaFlowerKeyMplsOptLseTTL, wordTTL) o.closeObject() } r.deficit(m.Deficit) @@ -762,7 +762,7 @@ func (r *runner) flowerGeneveOpts(name string, b []byte) (string, error) { for _, opt := range g.Opts { o.openObject("") o.uint(printJSON, "class", "", uint32(opt.Class)) - o.uint(printJSON, "type", "", uint32(opt.Type)) + o.uint(printJSON, wordType, "", uint32(opt.Type)) o.openArray(printJSON, "data") for _, c := range opt.Data { o.uint(printJSON, "", "", uint32(c)) @@ -832,7 +832,7 @@ func (r *runner) flowerPfcpOpts(name string, b []byte) (string, error) { o := r.o o.openArray(printJSON, name) o.openObject("") - o.uint(printJSON, "type", "", uint32(p.Type)) + o.uint(printJSON, wordType, "", uint32(p.Type)) o.uint(printJSON, "seid", "", uint32(p.Seid&0xffffffff)) o.closeObject() o.closeArray(printJSON, name) @@ -854,7 +854,7 @@ var flowerKeywords = []struct { {"mpls_bos", false}, {"mpls_ttl", false}, {"dst_mac", false}, {"src_mac", false}, {"ip_proto", false}, {"ip_tos", false}, {"ip_ttl", false}, {wordDstIP, false}, {wordSrcIP, false}, {wordDstPort, false}, {"src_port", false}, {"tcp_flags", false}, - {"type", false}, {"code", false}, {"l2tpv3_sid", true}, {"spi", true}, + {wordType, false}, {"code", false}, {"l2tpv3_sid", true}, {"spi", true}, {"arp_tip", false}, {"arp_sip", false}, {"arp_op", false}, {"arp_tha", false}, {"arp_sha", false}, {"pppoe_sid", true}, {"ppp_proto", true}, {"enc_dst_ip", false}, {"enc_src_ip", false}, {"enc_key_id", false}, {"enc_dst_port", false}, diff --git a/internal/gotc/fkind.go b/internal/gotc/fkind.go index 2db899847..ab8011315 100644 --- a/internal/gotc/fkind.go +++ b/internal/gotc/fkind.go @@ -348,23 +348,23 @@ func (r *runner) printU32IP(k xtcpnl.TcU32Key, v6 bool) { lo, hi := k.Val&0xffff, k.Val>>16 switch { case k.Mask == 0x0000ffff && !v6: - o.uint(printAny, "dport", "match dport "+u32s(lo), lo) + o.uint(printAny, wordDport, "match dport "+u32s(lo), lo) case k.Mask == 0x0000ffff: o.nl() - o.uint(printAny, "sport", " match sport "+u32s(lo), lo) + o.uint(printAny, wordSport, " match sport "+u32s(lo), lo) case k.Mask == 0xffff0000 && !v6: o.nl() - o.uint(printAny, "sport", " match sport "+u32s(hi), hi) + o.uint(printAny, wordSport, " match sport "+u32s(hi), hi) case k.Mask == 0xffff0000: - o.uint(printAny, "dport", "match dport "+u32s(hi), hi) + o.uint(printAny, wordDport, "match dport "+u32s(hi), hi) case k.Mask == 0xffffffff && !v6: o.nl() - o.uint(printAny, "dport", " match dport "+u32s(lo)+", ", lo) - o.uint(printAny, "sport", "match sport "+u32s(hi), hi) + o.uint(printAny, wordDport, " match dport "+u32s(lo)+", ", lo) + o.uint(printAny, wordSport, "match sport "+u32s(hi), hi) case k.Mask == 0xffffffff: o.nl() - o.uint(printAny, "sport", " match sport "+u32s(lo)+", ", lo) - o.uint(printAny, "dport", "match dport "+u32s(hi), hi) + o.uint(printAny, wordSport, " match sport "+u32s(lo)+", ", lo) + o.uint(printAny, wordDport, "match dport "+u32s(hi), hi) } } o.closeObject() diff --git a/internal/gotc/fw_bpf.go b/internal/gotc/fw_bpf.go new file mode 100644 index 000000000..4503e0905 --- /dev/null +++ b/internal/gotc/fw_bpf.go @@ -0,0 +1,185 @@ +//go:build gotc_write + +package gotc + +import ( + "github.com/randomizedcoder/xtcp2/pkg/xtcpnl" +) + +// tc/f_bpf.c bpf_parse_opt at iproute2 v7.2.0. + +// bpfFoptExplain is f_bpf.c explain, with bpf_prog_to_default_section of +// BPF_PROG_TYPE_SCHED_CLS. +func (r *runner) bpfFoptExplain() { + r.errf("%s", "Usage: ... bpf ...\n"+ + "\n"+ + "BPF use case:\n"+ + " bytecode BPF_BYTECODE\n"+ + " bytecode-file FILE\n"+ + "\n"+ + "eBPF use case:\n"+ + " object-file FILE [ section CLS_NAME ] [ export UDS_FILE ] [ verbose ] [ direct-action ] [ skip_hw | skip_sw ]\n"+ + " object-pinned FILE [ direct-action ] [ skip_hw | skip_sw ]\n"+ + "\n"+ + "Common remaining options:\n"+ + " [ action ACTION_SPEC ]\n"+ + " [ classid CLASSID ]\n"+ + "\n"+ + "Where BPF_BYTECODE := 's,c t f k,c t f k,c t f k,...'\n"+ + "c,t,f,k and s are decimals; s denotes number of 4-tuples\n"+ + "\n"+ + "Where FILE points to a file containing the BPF_BYTECODE string,\n"+ + "an ELF file containing eBPF map definitions and bytecode, or a\n"+ + "pinned eBPF program.\n"+ + "\n"+ + "Where CLS_NAME refers to the section name containing the\n"+ + "classifier (default 'classifier').\n"+ + "\n"+ + "Where UDS_FILE points to a unix domain socket file in order\n"+ + "to hand off control of all created eBPF maps to an agent.\n"+ + "\n"+ + "ACTION_SPEC := ... look at individual actions\n"+ + "NOTE: CLASSID is parsed as hexadecimal input.\n") +} + +// parseBpfFopt is f_bpf.c bpf_parse_opt. No words send no TCA_OPTIONS +// (W316); the program is parsed in the loop but loaded after it, so +// OPS_LEN and OPS follow CLASSID, ACT and POLICE in command order, then +// FLAGS_GEN and FLAGS (W317), and with no program word the zeroed cfg is +// an empty bytecode: OPS_LEN 0 and an empty OPS (W315). The prefixes are +// the loop's order: `s` is skip_hw, `f` flowid, `p` police (W318). An +// object file is refused after the whole loop, where tc loads it. +func parseBpfFopt(r *runner, m *fmod) error { + if err := r.bpfFoptHandle(m); err != nil { + return err + } + args := m.rest + if len(args) == 0 { + return nil + } + tail := m.ops.begin(maxMsg, xtcpnl.TcaOptions) + var cfg bpfCfg + var genFlags, flags uint32 + seenRun := false + for len(args) > 0 { + a := args[0] + var err error + prog := false + switch { + case matches(a, "run"): + if args, err = r.nextArg(args); err != nil { + return err + } + if seenRun { + return r.duparg("run", args[0]) + } + prog = true + case matches(a, wordClassid) || matches(a, wordFlowid): + if args, err = r.bpfFoptClassid(m, args); err != nil { + return err + } + case matches(a, "direct-action") || matches(a, "da"): + flags |= xtcpnl.TcaBpfFlagActDirect + case matches(a, wordSkipHw): + genFlags |= xtcpnl.TcaClsFlagsSkipHw + case matches(a, wordSkipSw): + genFlags |= xtcpnl.TcaClsFlagsSkipSw + case matches(a, wordAction): + if args, err = r.bpfFoptAction(m, args); err != nil { + return err + } + continue + case matches(a, "police"): + rest, err := r.policeArm(m, args, xtcpnl.TcaBpfPolice) + if err != nil { + return err + } + args = rest + continue + case matches(a, helpWord): + r.bpfFoptExplain() + return errKindParse + default: + if seenRun { + r.errf("What is \"%s\"?\n", a) + r.bpfFoptExplain() + return errKindParse + } + prog = true + } + if prog { // opt_bpf + seenRun = true + rest, ok, err := r.bpfDoParse(args, &cfg) + if err != nil { + return err + } + if !ok { + r.errf("Unable to parse bpf command line\n") + return errKindParse + } + args = rest + } + args = args[1:] // NEXT_ARG_FWD + } + if err := cfg.load(); err != nil { + return err + } + m.ops.put(maxMsg, xtcpnl.TcaBpfOpsLen, cfg.opsLen()) + m.ops.put(maxMsg, xtcpnl.TcaBpfOps, cfg.opsBytes()) + if genFlags != 0 { + m.ops.u32(maxMsg, xtcpnl.TcaBpfFlagsGen, genFlags) + } + if flags != 0 { + m.ops.u32(maxMsg, xtcpnl.TcaBpfFlags, flags) + } + m.ops.end(tail) + return nil +} + +// bpfFoptHandle is bpf_parse_opt's handle: get_u32 base 0. +func (r *runner) bpfFoptHandle(m *fmod) error { + if !m.a.hasHandle { + return nil + } + v, ok := getU32(m.handle, 0) + if !ok { + r.errf("Illegal \"handle\"\n") + return errKindParse + } + m.w.Handle = v + return nil +} + +// bpfFoptClassid is the classid and flowid arm: NEXT_ARG, then get_tc_classid +// and TCA_BPF_CLASSID, sent each time the word comes (W317). +func (r *runner) bpfFoptClassid(m *fmod, args []string) ([]string, error) { + args, err := r.nextArg(args) + if err != nil { + return nil, err + } + c, ok := tcClassid(args[0]) + if !ok { + r.errf("Illegal \"classid\"\n") + return nil, errKindParse + } + m.ops.u32(maxMsg, xtcpnl.TcaBpfClassid, c) + return args, nil +} + +// bpfFoptAction is the action arm: NEXT_ARG, then parse_action into +// TCA_BPF_ACT; it returns the words after the actions, already advanced. +func (r *runner) bpfFoptAction(m *fmod, args []string) ([]string, error) { + v, err := r.nextArg(args) + if err != nil { + return nil, err + } + rest, ok, err := r.parseAction(m, v, xtcpnl.TcaBpfAct) + if err != nil { + return nil, err + } + if !ok { + r.errf("Illegal \"action\"\n") + return nil, errKindParse + } + return rest, nil +} diff --git a/internal/gotc/fw_ematch_test.go b/internal/gotc/fw_ematch_test.go index 3a4f29306..771262528 100644 --- a/internal/gotc/fw_ematch_test.go +++ b/internal/gotc/fw_ematch_test.go @@ -213,8 +213,8 @@ func TestGotcEmatchWrite(t *testing.T) { {"boundary: a quoted run of 513 bytes writes past strbuf: refused (W123)", basic("match", `nbyte("`+xs(513)+`" at 0)`, "classid", "1:1"), "", d0, "gotc: not implemented: tc ematch quoted run past strbuf (W123)\n", false, 255, 1, nil}, - {"boundary: 4995 nested parens fit bison's 10000 states: parsed, then past the 16384 bound (W151)", - nest(4995), "", d0, "addraw_l exceeded its bound of 16384", true, 255, 1, nil}, + {"boundary: 4995 nested parens fit bison's 10000 states: parsed, then past the 16384 bound: tc's errors, and what fit is sent (W151)", + nest(4995), "", d0, "addraw_l ERROR: message exceeded bound of 16384\naddattr_l ERROR: message exceeded bound of 16384\n", true, 0, 2, nil}, {"boundary: 4996 nested parens exhaust YYMAXDEPTH: tc 7.2.0's stderr, byte for byte", nest(4996), "", d0, "Parse error: memory exhausted\n... " + strings.Repeat("( ", 4996) + ">>cmp(u8 at 0 eq 1)<< ...\n" + emExprUsage + "Illegal \"ematch\"\n", false, 1, 1, nil}, diff --git a/internal/gotc/fw_flow.go b/internal/gotc/fw_flow.go index 1996d034a..33336c7a4 100644 --- a/internal/gotc/fw_flow.go +++ b/internal/gotc/fw_flow.go @@ -81,10 +81,9 @@ func (r *runner) flowAddend(arg string, keys uint32) (uint32, bool, error) { if keys&(flowKeySrc|flowKeyDst|flowKeyNfctSrc|flowKeyNfctDst) == 0 { return 0, false, nil } - a, good := getAddr1(arg, unix.AF_UNSPEC) - if !good { - r.errf("Error: any valid address is expected rather than \"%s\".\n", arg) - return 0, false, exitCode(1) + a, err := r.getAddr(arg, unix.AF_UNSPEC) + if err != nil { + return 0, false, err } switch a.family { case unix.AF_INET: diff --git a/internal/gotc/fw_u32.go b/internal/gotc/fw_u32.go index 73356838b..572307499 100644 --- a/internal/gotc/fw_u32.go +++ b/internal/gotc/fw_u32.go @@ -296,26 +296,26 @@ type u32Field struct { var ( u32IPFields = []u32Field{ {name: wordSrc, addr: unix.AF_INET, off: 12}, {name: wordDst, addr: unix.AF_INET, off: 16}, - {name: "tos", width: 8, off: 1}, {name: "dsfield", prefix: true, width: 8, off: 1}, + {name: wordTos, width: 8, off: 1}, {name: "dsfield", prefix: true, width: 8, off: 1}, {name: wordPrecedence, prefix: true, width: 8, off: 1}, {name: "ihl", width: 8}, {name: wordProtocol, width: 8, off: 9}, - {name: "nofrag", flag: [2]uint32{0, 0x3FFF}}, {name: "firstfrag", flag: [2]uint32{0x2000, 0x3FFF}}, + {name: wordNofrag, flag: [2]uint32{0, 0x3FFF}}, {name: wordFirstfrag, flag: [2]uint32{0x2000, 0x3FFF}}, {name: "df", flag: [2]uint32{0x4000, 0x4000}}, {name: "mf", flag: [2]uint32{0x2000, 0x2000}}, - {name: "dport", width: 16, off: 22}, {name: "sport", width: 16, off: 20}, - {name: "icmp_type", width: 8, off: 20}, {name: "icmp_code", width: 8, off: 21}, + {name: wordDport, width: 16, off: 22}, {name: wordSport, width: 16, off: 20}, + {name: wordIcmpType, width: 8, off: 20}, {name: wordIcmpCode, width: 8, off: 21}, } u32IP6Fields = []u32Field{ {name: wordSrc, addr: unix.AF_INET6, off: 8}, {name: wordDst, addr: unix.AF_INET6, off: 24}, {name: "priority", class: true}, {name: wordProtocol, width: 8, off: 6}, - {name: "flowlabel", width: 32}, {name: "dport", width: 16, off: 42}, {name: "sport", width: 16, off: 40}, - {name: "icmp_type", width: 8, off: 40}, - {name: "icmp_code", width: 8, off: 41, offmask: 1}, // offmask 1, every other field 0 (W80) + {name: "flowlabel", width: 32}, {name: wordDport, width: 16, off: 42}, {name: wordSport, width: 16, off: 40}, + {name: wordIcmpType, width: 8, off: 40}, + {name: wordIcmpCode, width: 8, off: 41, offmask: 1}, // offmask 1, every other field 0 (W80) } u32UDPFields = []u32Field{ {name: wordSrc, width: 16, offmask: -1}, {name: wordDst, width: 16, off: 2, offmask: -1}, } u32ICMPFields = []u32Field{ - {name: "type", width: 8, offmask: -1}, {name: "code", width: 8, off: 1, offmask: -1}, + {name: wordType, width: 8, offmask: -1}, {name: "code", width: 8, off: 1, offmask: -1}, } ) diff --git a/internal/gotc/fwrite.go b/internal/gotc/fwrite.go index fc21db257..c115bab0f 100644 --- a/internal/gotc/fwrite.go +++ b/internal/gotc/fwrite.go @@ -38,13 +38,13 @@ const tcaReqHdr = xtcpnl.NlMsgHdrSizeCst + xtcpnl.TcaMsgSizeCst // none is given. var ethPAllBE = bits.ReverseBytes16(unix.ETH_P_ALL) -// errAddattrBound is an addattr_l past its maxlen: tc prints "addattr_l -// ERROR: message exceeded bound of N", ignores the -1 and sends the request -// without the attribute (W97); gotc refuses it. +// errAddattrBound is an addattr_l past its maxlen found only at replay, +// where fops' running length (tracked as each call is recorded, which +// prints tc's message and drops the attribute, W97, W248, W293, W307) and +// the request disagree; gotc refuses it rather than send what tc would not. var errAddattrBound = errors.New("addattr_l exceeded its bound") -// errAddrawBound is addraw_l past its maxlen, which tc ignores as it does -// addattr_l's (W151); gotc refuses it. +// errAddrawBound is errAddattrBound for addraw_l (W151). var errAddrawBound = errors.New("addraw_l exceeded its bound") // filterWrite is do_filter's write verbs. @@ -120,6 +120,8 @@ func (r *runner) filterModify(cmd uint16, flags int, args []string) error { } } if m.named { + m.ops.errf = r.errf + m.ops.n = filterFrameLen(&m.w) if err := r.parseFoptWrite(m); err != nil { return err } @@ -183,6 +185,7 @@ var foptParsers = map[string]foptParser{ xtcpnl.TcFKindRoute: parseRouteFopt, xtcpnl.TcFKindFlow: parseFlowFopt, xtcpnl.TcFKindMatchall: parseMatchallFopt, + xtcpnl.TcFKindBpf: parseBpfFopt, } // parseFoptWrite is q->parse_fopt(q, fhandle, argc, argv, &req.n): a kind @@ -240,17 +243,29 @@ type fop struct { b []byte maxlen int begin int // fopEnd: the index of its fopBegin + // failed is a fopBegin past its maxlen: addattr_nest's addattr_l + // printed its error and wrote no header, and the nest it returns is the + // tail, which its end patches (W293). + failed bool } // fops records a parse_fopt's addattr calls in the order it makes them, // replayed into the request after TCA_CHAIN and TCA_KIND. A nest never // ended keeps addattr_nest's rta_len of 4, as tc leaves it. +// +// n is the attributes' length so far, as tc's nlmsg_len less hdr: each +// call is held to its maxlen when it is recorded, as tc's addattr_l is +// when it is made, so a call past it prints tc's "addattr_l ERROR" at that +// point and is dropped, and tc's ignored -1 is copied (W97, W248, W307). type fops struct { ops []fop // hdr is what addattr_l's maxlen counts before the attributes: 0 is a // filter's nlmsghdr and tcmsg (tcReqHdr), and a standalone action's is // nlmsghdr and tcamsg (tcaReqHdr). hdr int + n int + // errf prints a bound's message; nil prints nothing. + errf func(format string, a ...any) } // reqHdr is f.hdr, or tcReqHdr when unset. @@ -261,9 +276,26 @@ func (f *fops) reqHdr() int { return f.hdr } +// fits is addattr_l's test for an attribute of alen payload bytes: +// NLMSG_ALIGN(nlmsg_len) + RTA_ALIGN(RTA_LENGTH(alen)) > maxlen fails, +// after "addattr_l ERROR: message exceeded bound of maxlen". +func (f *fops) fits(maxlen, alen int) bool { + l := xtcpnl.RTAttrSizeCst + alen + if f.reqHdr()+f.n+l+xtcpnl.FourByteAlignPadding(l) > maxlen { + if f.errf != nil { + f.errf("addattr_l ERROR: message exceeded bound of %d\n", maxlen) + } + return false + } + f.n += l + xtcpnl.FourByteAlignPadding(l) + return true +} + // put is addattr_l(n, maxlen, t, b, len(b)). func (f *fops) put(maxlen int, t uint16, b []byte) { - f.ops = append(f.ops, fop{kind: fopPut, t: t, b: b, maxlen: maxlen}) + if f.fits(maxlen, len(b)) { + f.ops = append(f.ops, fop{kind: fopPut, t: t, b: b, maxlen: maxlen}) + } } // u32 is addattr32, or addattr_l of four bytes. @@ -276,14 +308,25 @@ func (f *fops) str(maxlen int, t uint16, s string) { f.put(maxlen, t, append([]byte(s), 0)) } -// raw is addraw_l(n, maxlen, b, len(b)). +// raw is addraw_l(n, maxlen, b, len(b)): NLMSG_ALIGN(nlmsg_len) + +// NLMSG_ALIGN(len) past maxlen fails, after "addraw_l ERROR: message +// exceeded bound of maxlen". func (f *fops) raw(maxlen int, b []byte) { + l := len(b) + xtcpnl.FourByteAlignPadding(len(b)) + if f.reqHdr()+f.n+l > maxlen { + if f.errf != nil { + f.errf("addraw_l ERROR: message exceeded bound of %d\n", maxlen) + } + return + } + f.n += l f.ops = append(f.ops, fop{kind: fopRaw, b: b, maxlen: maxlen}) } // begin is addattr_nest; end takes what it returns. func (f *fops) begin(maxlen int, t uint16) int { - f.ops = append(f.ops, fop{kind: fopBegin, t: t, maxlen: maxlen}) + ok := f.fits(maxlen, 0) + f.ops = append(f.ops, fop{kind: fopBegin, t: t, maxlen: maxlen, failed: !ok}) return len(f.ops) - 1 } @@ -293,13 +336,18 @@ func (f *fops) end(begin int) { } // replay writes the recorded calls into ab, which already holds what came -// before them; an addattr past its maxlen is errAddattrBound. +// before them; an addattr past its maxlen here is errAddattrBound, which +// only a running length that disagrees with the request can give. func (f *fops) replay(ab *xtcpnl.AttrBuilder) error { marks := make(map[int]xtcpnl.NestMark) for i, o := range f.ops { switch o.kind { case fopEnd: - if err := ab.EndNest(marks[o.begin]); err != nil { + err := ab.EndNest(marks[o.begin]) + if f.ops[o.begin].failed && errors.Is(err, xtcpnl.ErrNestNotOpen) { + continue // nothing was written at the tail: tc's write lands past nlmsg_len + } + if err != nil { return err } continue @@ -312,7 +360,12 @@ func (f *fops) replay(ab *xtcpnl.AttrBuilder) error { return err } continue - case fopPut, fopBegin: + case fopBegin: + if o.failed { + marks[i] = ab.Mark() + continue + } + case fopPut: } alen := xtcpnl.RTAttrSizeCst + len(o.b) if f.reqHdr()+ab.Len()+alen+xtcpnl.FourByteAlignPadding(alen) > o.maxlen { @@ -332,3 +385,18 @@ func (f *fops) replay(ab *xtcpnl.AttrBuilder) error { } return nil } + +// filterFrameLen is what tc_filter_modify adds before parse_fopt: TCA_CHAIN +// when a chain was given and TCA_KIND when the kind word was not empty, as +// putFilterFrame lays them out. +func filterFrameLen(w *xtcpnl.TcWrite) int { + n := 0 + if w.ChainSet { + n += xtcpnl.RTAttrSizeCst + 4 + } + if w.Kind != "" { + l := xtcpnl.RTAttrSizeCst + len(w.Kind) + 1 + n += l + xtcpnl.FourByteAlignPadding(l) + } + return n +} diff --git a/internal/gotc/fwrite_fuzz_test.go b/internal/gotc/fwrite_fuzz_test.go index d8557669e..79915fd7a 100644 --- a/internal/gotc/fwrite_fuzz_test.go +++ b/internal/gotc/fwrite_fuzz_test.go @@ -65,12 +65,19 @@ func FuzzGotcFilterWrite(f *testing.F) { "filter add dev d0 parent 1: basic police rate 1mbit burst 10k mtu 255 conform-exceed drop/pipe classid 1:1", "filter add dev d0 parent 1: handle 1 fw police pkts_rate 1000 pkts_burst 100 action drop", "filter add dev d0 parent 1: route to 5 police rate 1mbit burst 10k/x", + "filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode 1,6\t0\t0\t0 classid 1:1 da skip_hw action gact pass", + "filter add dev d0 ingress bpf run bc 65537,6\t0\t0\t0xffff s f 1:2 police rate 1mbit burst 10k drop", + "filter replace dev d0 ingress bpf classid 1:1", + "filter add dev d0 ingress matchall action bpf bytecode 2,6\t0\t0\t0,6\t0\t0\t1 drop index 1", + "filter add dev d0 ingress matchall action pedit munge ip ttl set 5 p action tunnel_key unset", + "filter add dev d0 ingress matchall action ife encode allow mark action ct commit pipe index 5", + "filter add dev d0 ingress matchall action gate sched-entry open 1ms -1 -1 sched-entry close 1ms action drop", } { f.Add(s) } sys := shareSys(f) f.Fuzz(func(t *testing.T, s string) { - if len(s) > fuzzFilterMaxIn { + if len(s) > fuzzFilterMaxIn || bpfFuzzDevice(s) { t.Skip() } src := &fakeSource{replies: []Reply{rep(linkMsg(2, "d0")), rep(ack()), rep(ack()), rep(ack()), rep(ack())}} @@ -112,7 +119,7 @@ func FuzzGotcEmatchBatch(f *testing.F) { } sys := shareSys(f) f.Fuzz(func(t *testing.T, a, b string) { - if len(a)+len(b) > fuzzFilterMaxIn || strings.ContainsAny(a+b, "\n\\#") { + if len(a)+len(b) > fuzzFilterMaxIn || strings.ContainsAny(a+b, "\n\\#") || bpfFuzzDevice(a+b) { t.Skip() } const pre = "filter add dev d0 ingress pref 1 protocol all handle 1 " diff --git a/internal/gotc/fwrite_test.go b/internal/gotc/fwrite_test.go index 54abedec2..0e199a006 100644 --- a/internal/gotc/fwrite_test.go +++ b/internal/gotc/fwrite_test.go @@ -124,8 +124,8 @@ func TestGotcFilterWrite(t *testing.T) { {"negative: fw police rate with no burst is W156's inverted message, after the device", with("pref", "1", "handle", "5", "fw", "police", "rate", "1mbit"), d0[:1], "'burst' requires 'rate'.\nIllegal \"police\"\n", 1, 1, nil}, - {"negative: an increment-23 action is refused by name", m("action", "pedit", "ex", "munge", "ip", "ttl", "set", "10"), - d0[:1], notImpl + "tc filter action kind pedit\n", 255, 1, nil}, + {"positive: pedit, ported in increment 23, is sent in a filter", m("action", "pedit", "ex", "munge", "ip", "ttl", "set", "10"), + d0, "", 0, 2, nil}, {"negative: flower on a missing device is nodev first", []string{"filter", "add", "dev", "nosuch", "ingress", "flower"}, []Reply{rep(nlErr(unix.ENODEV))}, "Cannot find device \"nosuch\"\n", 1, 1, nil}, {"negative: flow addend foo is get_addr's exit 1 (W104)", @@ -199,14 +199,14 @@ func TestGotcFilterWrite(t *testing.T) { with("pref", "1", "protocol", "ip", "u32", "police"), d0[:1], "Command line is not complete. Try option \"help\"\n", 255, 1, nil}, {"negative: flow's trailing police is NEXT_ARG's exit", []string{"filter", "add", "dev", "d0", "parent", "1:", "handle", "5", "flow", "police"}, d0[:1], "Command line is not complete. Try option \"help\"\n", 255, 1, nil}, - {"boundary: fw past its 4096 bound is refused, not truncated (W97)", func() []string { + {"boundary: fw past its 4096 bound: tc's error per classid that does not fit, and the 506 that do are sent (W97)", func() []string { a := make([]string, 0, 9+2*520) a = append(a, "filter", "add", "dev", "d0", "parent", "1:", "handle", "5", "fw") for range 520 { a = append(a, "classid", "1:1") } return a - }(), d0[:1], notImpl + "a request tc would truncate or cannot be laid out: addattr_l exceeded its bound of 4096\n", 255, 1, nil}, + }(), d0, strings.Repeat("addattr_l ERROR: message exceeded bound of 4096\n", 520-506), 0, 2, nil}, {"corner: block 5 overwrites parent 1: (W67)", []string{"filter", "add", "block", "5", "parent", "1:", "pref", "2", "handle", "2", "matchall", "action", "pass"}, []Reply{rep(done()), rep(ack())}, "", 0, 2, diff --git a/internal/gotc/imports_test.go b/internal/gotc/imports_test.go index 1dcbe573e..8b0dd2bc5 100644 --- a/internal/gotc/imports_test.go +++ b/internal/gotc/imports_test.go @@ -23,12 +23,13 @@ var gotcPackages = []string{modulePath + "/cmd/gotc", modulePath + "/internal/go // each other, and why: the same hermetic rule internal/gordma's imports_test.go // explains, so `go test ./internal/gotc/` runs without nix, root or a VM. var gotcMayImport = map[string]string{ - "golang.org/x/sys/unix": "the NLM_F_*/NLMSG_*/IFLA_* constants, the errno names and the live socket", - modulePath + "/pkg/xtcpnl": "the subject under test: the request builders, the pcap reader and the tcmsg decoders", - modulePath + "/pkg/cint": "the C integer conversions tc's scans and prints make (int of a u32, s64 of a u64)", - modulePath + "/internal/wsreplay": "the ws pcap replay core shared with the other read-only clones; xtcpnl only", - modulePath + "/internal/jsonw": "json_writer.c's string escaping, shared with gobridge; stdlib only", - modulePath + "/internal/nlmon": "the monitor core shared with goip: rtnl_listen, rtnl_from_file, the stamp; xtcpnl only", + "golang.org/x/sys/unix": "the NLM_F_*/NLMSG_*/IFLA_* constants, the errno names and the live socket", + modulePath + "/pkg/xtcpnl": "the subject under test: the request builders, the pcap reader and the tcmsg decoders", + modulePath + "/pkg/cint": "the C integer conversions tc's scans and prints make (int of a u32, s64 of a u64)", + modulePath + "/internal/wsreplay": "the ws pcap replay core shared with the other read-only clones; xtcpnl only", + modulePath + "/internal/jsonw": "json_writer.c's string escaping, shared with gobridge; stdlib only", + modulePath + "/internal/nlmon": "the monitor core shared with goip: rtnl_listen, rtnl_from_file, the stamp; xtcpnl only", + modulePath + "/internal/goip/render": "getprotobyname of the workbench's /etc/protocols, compiled in, for ct's helper (inet_proto_a2n); xtcpnl, jsonw and cint only", } // gotcClosure is the first-party closure of gotc's non-test files. @@ -36,7 +37,7 @@ var gotcClosure = []string{ modulePath + "/cmd/gotc", modulePath + "/internal/gotc", modulePath + "/pkg/xtcpnl", modulePath + "/internal/wsreplay", modulePath + "/pkg/cint", modulePath + "/internal/jsonw", - modulePath + "/internal/nlmon", + modulePath + "/internal/nlmon", modulePath + "/internal/goip/render", // Reached through xtcpnl's congestion-name decoder; stdlib only. modulePath + "/pkg/strpolicy", // Reached through xtcpnl's inet_diag decoders; see internal/gordma. diff --git a/internal/gotc/inet.go b/internal/gotc/inet.go index 0a4ada5a9..82c5557e5 100644 --- a/internal/gotc/inet.go +++ b/internal/gotc/inet.go @@ -12,7 +12,7 @@ import ( // lib/utils.c's address parsers at iproute2 v7.2.0, as far as the filter // writes reach them: get_prefix_1 (u32's ip and ip6 selectors), get_addr -// (flow's addend) and get_netmask with mask2bits. goip has its own port +// (flow's addend, tunnel_key, ct, pedit) and get_netmask with mask2bits. goip has its own port // (internal/goip/inet_prefix.go), tied to goip's types; gotc may not // import goip. @@ -65,6 +65,43 @@ func getAddr1(name string, family uint8) (inetPrefix, bool) { return p, true } +// familyNameVerbose is utils.c family_name_verbose: "any valid" for +// AF_UNSPEC, else family_name. +func familyNameVerbose(family uint8) string { + switch family { + case unix.AF_UNSPEC: + return "any valid" + case unix.AF_INET: + return "inet" + case unix.AF_INET6: + return "inet6" + case unix.AF_PACKET: + return "link" + case unix.AF_MPLS: + return "mpls" + case unix.AF_BRIDGE: + return "bridge" + } + return "???" +} + +// getAddr is get_addr (utils.c:738): getAddr1, or its message and exit(1), +// which ends a -force batch too. A parser's own message for a bad address +// after it can never print (flow's addend W104, tunnel_key W250, ct W279). +func (r *runner) getAddr(arg string, family uint8) (inetPrefix, error) { + a, ok := getAddr1(arg, family) + if !ok { + r.errf("Error: %s address is expected rather than \"%s\".\n", familyNameVerbose(family), arg) + return inetPrefix{}, exitCode(1) + } + return a, nil +} + +// byteLen is inet_prefix's bytelen as __get_addr_1 sets it: 4 or 16 for +// an address, and af_byte_len(family) for default, all and any, which is 0 +// for AF_UNSPEC (tunnel_key's and ct's 0-byte addresses, W251, W281). +func (p inetPrefix) byteLen() int { return afBitLen(p.family) / 8 } + // getAddrIPv4 is get_addr_ipv4: up to four parts split on '.', each // strtoul base 0 and at most 255 ("010" is 8, "10.8" is 10.8.0.0). func getAddrIPv4(ap []byte, cp string) bool { diff --git a/internal/gotc/m_gate.go b/internal/gotc/m_gate.go index 4c95f8f67..9a9c953b1 100644 --- a/internal/gotc/m_gate.go +++ b/internal/gotc/m_gate.go @@ -38,7 +38,7 @@ var gateChecks = []struct { }{ {xtcpnl.TcaGatePriority, wordPriority, 4}, {xtcpnl.TcaGateClockid, "clockid", 4}, - {xtcpnl.TcaGateFlags, "flags", 4}, + {xtcpnl.TcaGateFlags, wordFlags, 4}, {xtcpnl.TcaGateBaseTime, "base-time", 8}, {xtcpnl.TcaGateCycleTime, "cycle-time", 8}, {xtcpnl.TcaGateCycleTimeExt, "cycle-time-ext", 8}, @@ -97,7 +97,7 @@ func (r *runner) printGate(opt []byte, has bool) (int, error) { o.str(printAny, colorNone, "clockid", "\tclockid "+cn, cn) if b := tb.Bytes(xtcpnl.TcaGateFlags); b != nil { f := rtaU32(b) - o.hex0x(printAny, "flags", "\tflags "+cHashX(uint64(f)), uint64(f)) + o.hex0x(printAny, wordFlags, "\tflags "+cHashX(uint64(f)), uint64(f)) } o.fp("\n") for _, t := range []struct { diff --git a/internal/gotc/m_ife.go b/internal/gotc/m_ife.go index 58e768447..bc2ba3fb4 100644 --- a/internal/gotc/m_ife.go +++ b/internal/gotc/m_ife.go @@ -28,7 +28,7 @@ var ifeMetas = []struct { }{ {xtcpnl.IfeMetaSkbmark, wordMark, 4}, {xtcpnl.IfeMetaTcindex, "tcindex", 2}, - {xtcpnl.IfeMetaPrio, "prio", 4}, + {xtcpnl.IfeMetaPrio, wordPrio, 4}, } // printIfe is print_ife: type prints "%#llX" (AC51); the break after it is @@ -54,7 +54,7 @@ func (r *runner) printIfe(opt []byte, has bool) (int, error) { return 0, actShort(kind, f.ParmsLen) } tb := f.Tb - if err := attrNeed(kind, "type", tb.Bytes(xtcpnl.TcaIfeType), 2); err != nil { + if err := attrNeed(kind, wordType, tb.Bytes(xtcpnl.TcaIfeType), 2); err != nil { return 0, err } if f.HasMeta { @@ -85,7 +85,7 @@ func (r *runner) printIfe(opt []byte, has bool) (int, error) { if b := tb.Bytes(xtcpnl.TcaIfeType); b != nil { v := uint64(rtaU16(b)) hasOptional = true - o.hex0x(printAny, "type", "type "+cHashXUpper(v)+" ", v) + o.hex0x(printAny, wordType, "type "+cHashXUpper(v)+" ", v) } if hasOptional { o.fp(o.sl + "\t") diff --git a/internal/gotc/m_mpls.go b/internal/gotc/m_mpls.go index 5a923f0f4..a0d310dde 100644 --- a/internal/gotc/m_mpls.go +++ b/internal/gotc/m_mpls.go @@ -62,7 +62,7 @@ func (r *runner) printMpls(opt []byte, has bool) (int, error) { for _, f := range []struct { t uint16 key string - }{{xtcpnl.TcaMplsTC, "tc"}, {xtcpnl.TcaMplsBos, "bos"}, {xtcpnl.TcaMplsTTL, "ttl"}} { + }{{xtcpnl.TcaMplsTC, "tc"}, {xtcpnl.TcaMplsBos, "bos"}, {xtcpnl.TcaMplsTTL, wordTTL}} { if tb.Has(f.t) { v := uint32(rtaU8(tb.Bytes(f.t))) o.uint(printAny, f.key, " "+f.key+" "+u32s(v), v) diff --git a/internal/gotc/m_nat.go b/internal/gotc/m_nat.go index e4ad0766d..8f9f298e8 100644 --- a/internal/gotc/m_nat.go +++ b/internal/gotc/m_nat.go @@ -15,7 +15,7 @@ import ( // 33 - ffs(mask), wrong for a mask that is not contiguous (AC23). func (r *runner) printNat(opt []byte, has bool) (int, error) { o := r.o - o.str(printAny, colorNone, "type", " nat ", xtcpnl.TcActKindNat) + o.str(printAny, colorNone, wordType, " nat ", xtcpnl.TcActKindNat) if !has { return 0, nil } diff --git a/internal/gotc/m_tunnel_key.go b/internal/gotc/m_tunnel_key.go index c6bb0a1ef..feac23667 100644 --- a/internal/gotc/m_tunnel_key.go +++ b/internal/gotc/m_tunnel_key.go @@ -58,8 +58,8 @@ var tunnelKeyChecks = []struct { {xtcpnl.TcaTunnelKeyEncKeyID, "key_id", 4}, {xtcpnl.TcaTunnelKeyEncDstPort, wordDstPort, 2}, {xtcpnl.TcaTunnelKeyNoCsum, "no_csum", 1}, - {xtcpnl.TcaTunnelKeyEncTos, "tos", 1}, - {xtcpnl.TcaTunnelKeyEncTTL, "ttl", 1}, + {xtcpnl.TcaTunnelKeyEncTos, wordTos, 1}, + {xtcpnl.TcaTunnelKeyEncTTL, wordTTL, 1}, } // tunnelKeySet is the TCA_TUNNEL_KEY_ACT_SET branch. @@ -114,15 +114,15 @@ func (r *runner) tunnelKeySet(t xtcpnl.TcTunnelKeyOpt) error { if tb.Has(xtcpnl.TcaTunnelKeyNoFrag) { o.fp("\tnofrag") } - o.boolean(printJSON, "nofrag", "", tb.Has(xtcpnl.TcaTunnelKeyNoFrag)) + o.boolean(printJSON, wordNofrag, "", tb.Has(xtcpnl.TcaTunnelKeyNoFrag)) // tunnel_key_print_tos_ttl. if b := tb.Bytes(xtcpnl.TcaTunnelKeyEncTos); b != nil && b[0] != 0 { o.nl() - o.uint(printAny, "tos", fmt.Sprintf("\ttos 0x%x", b[0]), uint32(b[0])) + o.uint(printAny, wordTos, fmt.Sprintf("\ttos 0x%x", b[0]), uint32(b[0])) } if b := tb.Bytes(xtcpnl.TcaTunnelKeyEncTTL); b != nil && b[0] != 0 { o.nl() - o.uint(printAny, "ttl", "\tttl "+u32s(uint32(b[0])), uint32(b[0])) + o.uint(printAny, wordTTL, "\tttl "+u32s(uint32(b[0])), uint32(b[0])) } return nil } @@ -168,7 +168,7 @@ func (r *runner) tunnelKeyOpts(e xtcpnl.TcTunnelKeyEncOpts) { for _, g := range e.Geneve { o.openObject("") o.uint(printJSON, "class", "", uint32(g.Class)) - o.uint(printJSON, "type", "", uint32(g.Type)) + o.uint(printJSON, wordType, "", uint32(g.Type)) o.openArray(printJSON, "data") for _, c := range g.Data { o.uint(printJSON, "", "", uint32(c)) diff --git a/internal/gotc/q_gred.go b/internal/gotc/q_gred.go index 1f91df7f1..0d77a619e 100644 --- a/internal/gotc/q_gred.go +++ b/internal/gotc/q_gred.go @@ -61,7 +61,7 @@ func printGredOpt(r *runner, _ *qdiscUtil, opt []byte, has bool) { } o.openObject("") o.uint(printAny, "vq", "\n vq "+u32s(qo.DP)+" ", qo.DP) - o.hhu(printAny, "prio", "prio "+u32s(uint32(qo.Prio))+" ", qo.Prio) + o.hhu(printAny, wordPrio, "prio "+u32s(uint32(qo.Prio))+" ", qo.Prio) o.size(printAny, "limit", "limit ", " ", uint64(qo.Limit)) o.size(printAny, "min", "min ", " ", uint64(qo.QthMin)) o.size(printAny, "max", "max ", " ", uint64(qo.QthMax)) diff --git a/internal/gotc/q_shape.go b/internal/gotc/q_shape.go index e8bf315a4..028085c1e 100644 --- a/internal/gotc/q_shape.go +++ b/internal/gotc/q_shape.go @@ -61,7 +61,7 @@ func (r *runner) htbParms(tb xtcpnl.AttrTable, h *xtcpnl.TcHtbOpt) { o := r.o if h.Level == 0 { prio := cint.Int(h.Prio) - o.int(printAny, "prio", "prio "+strconv.Itoa(int(prio))+" ", prio) + o.int(printAny, wordPrio, "prio "+strconv.Itoa(int(prio))+" ", prio) if r.details > 0 { q := cint.Int(h.Quantum) o.int(printAny, "quantum", "quantum "+strconv.Itoa(int(q))+" ", q) diff --git a/internal/gotc/q_taprio.go b/internal/gotc/q_taprio.go index f9616bbd8..138967139 100644 --- a/internal/gotc/q_taprio.go +++ b/internal/gotc/q_taprio.go @@ -98,11 +98,11 @@ func (r *runner) taprioTop(tb xtcpnl.AttrTable) bool { o.str(printAny, colorNone, "clockid", "clockid "+c, c) } if b := tb.Bytes(xtcpnl.TcaTaprioAttrFlags); tb.Has(xtcpnl.TcaTaprioAttrFlags) { - if !r.kindNeed(k, "flags", b, 4) { + if !r.kindNeed(k, wordFlags, b, 4) { return false } v, _ := tb.U32(xtcpnl.TcaTaprioAttrFlags) - o.hex0x(printAny, "flags", " flags "+cHashX(uint64(v)), uint64(v)) + o.hex0x(printAny, wordFlags, " flags "+cHashX(uint64(v)), uint64(v)) } if b := tb.Bytes(xtcpnl.TcaTaprioAttrTxtimeDelay); tb.Has(xtcpnl.TcaTaprioAttrTxtimeDelay) { if !r.kindNeed(k, "txtime delay", b, 4) { diff --git a/internal/gotc/qw_taprio.go b/internal/gotc/qw_taprio.go index cd22bccf9..9d5389bc7 100644 --- a/internal/gotc/qw_taprio.go +++ b/internal/gotc/qw_taprio.go @@ -77,7 +77,6 @@ const ( wordBaseTime = "base-time" wordCycleTime = "cycle-time" wordCycleTimeExt = "cycle-time-extension" - wordFlags = "flags" wordTxtimeDelay = "txtime-delay" ) diff --git a/internal/gotc/qwrite.go b/internal/gotc/qwrite.go index f16e3a2af..de078c26e 100644 --- a/internal/gotc/qwrite.go +++ b/internal/gotc/qwrite.go @@ -109,7 +109,6 @@ const ( wordMtu = "mtu" wordOverhead = "overhead" wordPeakrate = "peakrate" - wordPrio = "prio" wordRate = "rate" ) diff --git a/internal/gotc/qwrite_tdc_test.go b/internal/gotc/qwrite_tdc_test.go index 7540b3060..52fba45c4 100644 --- a/internal/gotc/qwrite_tdc_test.go +++ b/internal/gotc/qwrite_tdc_test.go @@ -129,14 +129,12 @@ func TestGotcTdcWrites(t *testing.T) { } // tdcFilterSkips pins the tdc filter writes gotc refuses, by what it -// names: a filter kind (flower, bpf), police, an action kind, an ematch -// kind, or an ematch lead. basic, cgroup and flow's match are sent since -// 21W; police and the other 11 increment-12 action kinds since 22W, which -// leaves increment 23's six. +// names: a filter kind, police, an action kind, an ematch kind, or an +// ematch lead. basic, cgroup and flow's match are sent since 21W; police +// and the other 11 increment-12 action kinds since 22W; increment 23's six +// and the bpf filter since 23W, which leaves flower (increment 24). var tdcFilterSkips = map[string]int{ - "kind bpf": 4, "kind flower": 2, - "action bpf": 1, "action ct": 7, "action gate": 1, "action ife": 2, "action pedit": 1, - "action tunnel_key": 1, + "kind flower": 2, } // tdcFilterKnown are the filter rows gotc cannot match, each with why. @@ -144,8 +142,10 @@ var tdcFilterKnown = map[string]string{} // tdcFilterWritesSent pins how many tdc filter and chain writes gotc // matches exactly (20W 134, 21W's basic, cgroup and flow match 111 more, -// 22W's police and the other 11 action kinds 31 more). -const tdcFilterWritesSent = 276 +// 22W's police and the other 11 action kinds 31 more, 23W's bpf filter +// and action 5 more, pedit 1, ife 2, tunnel_key 1, +// ct 7 and gate 1). +const tdcFilterWritesSent = 293 var filterWriteRefused = regexp.MustCompile(`not implemented: (?:tc filter (?:write of kind (\S+)|(\S+) police|action kind (\S+)|write of ematch kind (\S+))|tc ematch .*\((W\d+)\))`) diff --git a/internal/gotc/units.go b/internal/gotc/units.go index f23ffe512..83966d183 100644 --- a/internal/gotc/units.go +++ b/internal/gotc/units.go @@ -215,6 +215,44 @@ func getRate64(s string) (uint64, bool) { return cDoubleToU64(bps), true } +// time64Scale is get_time64's suffix, case-insensitive, as nanoseconds +// per unit: none is nanoseconds. +func time64Scale(p string) (float64, bool) { + switch strings.ToLower(p) { + case "", "ns", "nsec", "nsecs": + return 1, true + case "s", "sec", "secs": + return nsecPerSec, true + case "ms", "msec", "msecs": + return nsecPerMsec, true + case "us", "usec", "usecs": + return nsecPerUsec, true + } + return 0, false +} + +// size64Scale is get_size64's suffix, case-insensitive, as bytes per +// unit: k, m and g and their bit forms are powers of 1024. +func size64Scale(p string) (float64, bool) { + switch strings.ToLower(p) { + case "", "b": + return 1, true + case "kb", "k": + return 1024, true + case "gb", "g": + return 1024 * 1024 * 1024, true + case "gbit": + return 1024 * 1024 * 1024 / 8, true + case "mb", "m": + return 1024 * 1024, true + case "mbit": + return 1024 * 1024 / 8, true + case "kbit": + return 1024 / 8, true + } + return 0, false +} + // getSize64 is get_size64: the k, m, g and their bit forms are powers of // 1024; the result must equal floor(sz). func getSize64(s string) (uint64, bool) { @@ -222,25 +260,11 @@ func getSize64(s string) (uint64, bool) { if p == s || sz < 0 || (math.IsInf(sz, 1) && erange) { return 0, false } - if p != "" { - switch strings.ToLower(p) { - case "kb", "k": - sz *= 1024 - case "gb", "g": - sz *= 1024 * 1024 * 1024 - case "gbit": - sz *= 1024 * 1024 * 1024 / 8 - case "mb", "m": - sz *= 1024 * 1024 - case "mbit": - sz *= 1024 * 1024 / 8 - case "kbit": - sz *= 1024 / 8 - case "b": - default: - return 0, false - } + k, ok := size64Scale(p) + if !ok { + return 0, false } + sz *= k v := cDoubleToU64(sz) if float64(v) != math.Floor(sz) { return 0, false @@ -285,19 +309,11 @@ func getTime64(s string) (int64, bool) { if p == s || ns < 0 || (math.IsInf(ns, 1) && erange) { return 0, false } - if p != "" { - switch strings.ToLower(p) { - case "s", "sec", "secs": - ns *= nsecPerSec - case "ms", "msec", "msecs": - ns *= nsecPerMsec - case "us", "usec", "usecs": - ns *= nsecPerUsec - case "ns", "nsec", "nsecs": - default: - return 0, false - } + k, ok := time64Scale(p) + if !ok { + return 0, false } + ns *= k return cDoubleToI64(ns), true } diff --git a/internal/gotc/util.go b/internal/gotc/util.go index d6063c694..4d1a27bd8 100644 --- a/internal/gotc/util.go +++ b/internal/gotc/util.go @@ -54,6 +54,18 @@ const ( wordPrecedence = "precedence" wordRandom = "random" wordFwmark = "fwmark" + wordPrio = "prio" + wordFlags = "flags" + wordType = "type" + // Header fields the u32, flower and pedit selectors and tunnel_key share. + wordTos = "tos" + wordTTL = "ttl" + wordNofrag = "nofrag" + wordFirstfrag = "firstfrag" + wordSport = "sport" + wordDport = "dport" + wordIcmpType = "icmp_type" + wordIcmpCode = "icmp_code" // The ematch kinds by name, as ematch_map spells them. emNameCmp = "cmp" emNameNbyte = "nbyte" diff --git a/nix/checks/no-write-encoders.nix b/nix/checks/no-write-encoders.nix index ef23e49d6..cc2b07465 100644 --- a/nix/checks/no-write-encoders.nix +++ b/nix/checks/no-write-encoders.nix @@ -73,11 +73,11 @@ let # The files goip_write and gotc_write gate, in the packages that hold them. writePkgs = "^github.com/randomizedcoder/xtcp2/(internal/goip|internal/gotc|pkg/xtcpnl|pkg/nlparity)$"; # gotc's write files are not named *_write (qwrite.go, qw_htb.go, fwrite.go, - # fw_u32.go, awrite.go, aw_police.go, act_parse.go, inet.go, units.go), so - # they are matched by name; + # fw_u32.go, awrite.go, aw_police.go, aw_tunnel_key.go, act_parse.go, + # cbpf.go, inet.go, units.go), so they are matched by name; # the gotc control in the script fails when a gotc_write file in # internal/gotc falls outside gotcWriteFiles, or any other file inside it. - gotcWriteFiles = "^(qwrite|fwrite|awrite|qw_[a-z0-9]+|fw_[a-z0-9]+|aw_[a-z0-9]+|act_parse|inet|units)[.]go$"; + gotcWriteFiles = "^(qwrite|fwrite|awrite|qw_[a-z0-9_]+|fw_[a-z0-9_]+|aw_[a-z0-9_]+|act_parse|cbpf|inet|units)[.]go$"; writeFiles = "${gotcWriteFiles}|(_write[a-z0-9_]*|_flush|_restore|link_property|stats_set)[.]go$"; # minio-go's process credential provider (the s3parquet destination) runs diff --git a/nix/microvms/workbench/tcact2write.rows.jsonl b/nix/microvms/workbench/tcact2write.rows.jsonl new file mode 100644 index 000000000..8a29a674e --- /dev/null +++ b/nix/microvms/workbench/tcact2write.rows.jsonl @@ -0,0 +1,421 @@ +# Generated by `nlcapgen matrix -family tcact2write -seed 1 -random 0`. +# Do not edit; regenerate. tools/nlcapgen/matrix.go explains the strategies. +# 418 rows. +{"id":"tcact2write/ec-001","desc":"positive: opt=plain cmd=v-add:actions_add_action_pedit_munge_offset_12_u32_set_0x1_index_1","cmd":"tc actions add action pedit munge offset 12 u32 set 0x1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"v-add","json":"0","words":"actions add action pedit munge offset 12 u32 set 0x1 index 1"}} +{"id":"tcact2write/ec-002","desc":"positive: opt=plain cmd=v-change:actions_change_action_pedit_ex_munge_ip_ttl_add_1_index_1","cmd":"tc actions change action pedit ex munge ip ttl add 1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","tc actions add action pedit munge offset 12 u32 set 0x1 index 1"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"v-change","json":"0","words":"actions change action pedit ex munge ip ttl add 1 index 1"}} +{"id":"tcact2write/ec-003","desc":"positive: opt=plain cmd=v-replace:actions_replace_action_pedit_ex_munge_ip_ttl_add_1_index_1","cmd":"tc actions replace action pedit ex munge ip ttl add 1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","tc actions add action pedit munge offset 12 u32 set 0x1 index 1"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"v-replace","json":"0","words":"actions replace action pedit ex munge ip ttl add 1 index 1"}} +{"id":"tcact2write/ec-004","desc":"positive: opt=plain cmd=v-replace-new:actions_replace_action_pedit_ex_munge_ip_ttl_add_1_index_2","cmd":"tc actions replace action pedit ex munge ip ttl add 1 index 2","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"v-replace-new","json":"0","words":"actions replace action pedit ex munge ip ttl add 1 index 2"}} +{"id":"tcact2write/ec-005","desc":"positive: opt=plain cmd=v-delete:actions_delete_action_pedit_index_1","cmd":"tc actions delete action pedit index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","tc actions add action pedit munge offset 12 u32 set 0x1 index 1"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"v-delete","json":"0","words":"actions delete action pedit index 1"}} +{"id":"tcact2write/ec-006","desc":"positive: opt=plain cmd=v-flush:actions_flush_action_pedit","cmd":"tc actions flush action pedit","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","tc actions add action pedit munge offset 12 u32 set 0x1 index 1","tc actions add action pedit munge offset 12 u32 set 0x1 index 2"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"v-flush","json":"0","words":"actions flush action pedit"}} +{"id":"tcact2write/ec-007","desc":"positive: opt=plain cmd=v-add:actions_add_action_tunnel_key_unset_index_1","cmd":"tc actions add action tunnel_key unset index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action tunnel_key"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"v-add","json":"0","words":"actions add action tunnel_key unset index 1"}} +{"id":"tcact2write/ec-008","desc":"positive: opt=plain cmd=v-change:actions_change_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_index_1","cmd":"tc actions change action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","tc actions add action tunnel_key unset index 1"],"readback":[{"name":"dump","cmd":"tc actions ls action tunnel_key"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"v-change","json":"0","words":"actions change action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 index 1"}} +{"id":"tcact2write/ec-009","desc":"positive: opt=plain cmd=v-replace:actions_replace_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_index_1","cmd":"tc actions replace action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","tc actions add action tunnel_key unset index 1"],"readback":[{"name":"dump","cmd":"tc actions ls action tunnel_key"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"v-replace","json":"0","words":"actions replace action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 index 1"}} +{"id":"tcact2write/ec-010","desc":"positive: opt=plain cmd=v-replace-new:actions_replace_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_index_2","cmd":"tc actions replace action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 index 2","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action tunnel_key"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"v-replace-new","json":"0","words":"actions replace action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 index 2"}} +{"id":"tcact2write/ec-011","desc":"positive: opt=plain cmd=v-delete:actions_delete_action_tunnel_key_index_1","cmd":"tc actions delete action tunnel_key index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","tc actions add action tunnel_key unset index 1"],"readback":[{"name":"dump","cmd":"tc actions ls action tunnel_key"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"v-delete","json":"0","words":"actions delete action tunnel_key index 1"}} +{"id":"tcact2write/ec-012","desc":"positive: opt=plain cmd=v-flush:actions_flush_action_tunnel_key","cmd":"tc actions flush action tunnel_key","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","tc actions add action tunnel_key unset index 1","tc actions add action tunnel_key unset index 2"],"readback":[{"name":"dump","cmd":"tc actions ls action tunnel_key"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"v-flush","json":"0","words":"actions flush action tunnel_key"}} +{"id":"tcact2write/ec-013","desc":"positive: opt=plain cmd=v-add:actions_add_action_ife_decode_index_1","cmd":"tc actions add action ife decode index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ife"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"v-add","json":"0","words":"actions add action ife decode index 1"}} +{"id":"tcact2write/ec-014","desc":"positive: opt=plain cmd=v-change:actions_change_action_ife_encode_allow_mark_index_1","cmd":"tc actions change action ife encode allow mark index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","tc actions add action ife decode index 1"],"readback":[{"name":"dump","cmd":"tc actions ls action ife"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"v-change","json":"0","words":"actions change action ife encode allow mark index 1"}} +{"id":"tcact2write/ec-015","desc":"positive: opt=plain cmd=v-replace:actions_replace_action_ife_encode_allow_mark_index_1","cmd":"tc actions replace action ife encode allow mark index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","tc actions add action ife decode index 1"],"readback":[{"name":"dump","cmd":"tc actions ls action ife"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"v-replace","json":"0","words":"actions replace action ife encode allow mark index 1"}} +{"id":"tcact2write/ec-016","desc":"positive: opt=plain cmd=v-replace-new:actions_replace_action_ife_encode_allow_mark_index_2","cmd":"tc actions replace action ife encode allow mark index 2","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ife"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"v-replace-new","json":"0","words":"actions replace action ife encode allow mark index 2"}} +{"id":"tcact2write/ec-017","desc":"positive: opt=plain cmd=v-delete:actions_delete_action_ife_index_1","cmd":"tc actions delete action ife index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","tc actions add action ife decode index 1"],"readback":[{"name":"dump","cmd":"tc actions ls action ife"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"v-delete","json":"0","words":"actions delete action ife index 1"}} +{"id":"tcact2write/ec-018","desc":"positive: opt=plain cmd=v-flush:actions_flush_action_ife","cmd":"tc actions flush action ife","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","tc actions add action ife decode index 1","tc actions add action ife decode index 2"],"readback":[{"name":"dump","cmd":"tc actions ls action ife"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"v-flush","json":"0","words":"actions flush action ife"}} +{"id":"tcact2write/ec-019","desc":"positive: opt=plain cmd=v-add:actions_add_action_ct_commit_index_1","cmd":"tc actions add action ct commit index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ct"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"v-add","json":"0","words":"actions add action ct commit index 1"}} +{"id":"tcact2write/ec-020","desc":"positive: opt=plain cmd=v-change:actions_change_action_ct_commit_zone_5_index_1","cmd":"tc actions change action ct commit zone 5 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","tc actions add action ct commit index 1"],"readback":[{"name":"dump","cmd":"tc actions ls action ct"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"v-change","json":"0","words":"actions change action ct commit zone 5 index 1"}} +{"id":"tcact2write/ec-021","desc":"positive: opt=plain cmd=v-replace:actions_replace_action_ct_commit_zone_5_index_1","cmd":"tc actions replace action ct commit zone 5 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","tc actions add action ct commit index 1"],"readback":[{"name":"dump","cmd":"tc actions ls action ct"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"v-replace","json":"0","words":"actions replace action ct commit zone 5 index 1"}} +{"id":"tcact2write/ec-022","desc":"positive: opt=plain cmd=v-replace-new:actions_replace_action_ct_commit_zone_5_index_2","cmd":"tc actions replace action ct commit zone 5 index 2","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ct"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"v-replace-new","json":"0","words":"actions replace action ct commit zone 5 index 2"}} +{"id":"tcact2write/ec-023","desc":"positive: opt=plain cmd=v-delete:actions_delete_action_ct_index_1","cmd":"tc actions delete action ct index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","tc actions add action ct commit index 1"],"readback":[{"name":"dump","cmd":"tc actions ls action ct"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"v-delete","json":"0","words":"actions delete action ct index 1"}} +{"id":"tcact2write/ec-024","desc":"positive: opt=plain cmd=v-flush:actions_flush_action_ct","cmd":"tc actions flush action ct","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","tc actions add action ct commit index 1","tc actions add action ct commit index 2"],"readback":[{"name":"dump","cmd":"tc actions ls action ct"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"v-flush","json":"0","words":"actions flush action ct"}} +{"id":"tcact2write/ec-025","desc":"positive: opt=plain cmd=v-add:actions_add_action_gate_sched-entry_open_1000000_-1_-1_index_1","cmd":"tc actions add action gate sched-entry open 1000000 -1 -1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"v-add","json":"0","words":"actions add action gate sched-entry open 1000000 -1 -1 index 1"}} +{"id":"tcact2write/ec-026","desc":"positive: opt=plain cmd=v-change:actions_change_action_gate_base-time_1000_sched-entry_close_2000000_index_1","cmd":"tc actions change action gate base-time 1000 sched-entry close 2000000 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","tc actions add action gate sched-entry open 1000000 -1 -1 index 1"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"v-change","json":"0","words":"actions change action gate base-time 1000 sched-entry close 2000000 index 1"}} +{"id":"tcact2write/ec-027","desc":"positive: opt=plain cmd=v-replace:actions_replace_action_gate_base-time_1000_sched-entry_close_2000000_index_1","cmd":"tc actions replace action gate base-time 1000 sched-entry close 2000000 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","tc actions add action gate sched-entry open 1000000 -1 -1 index 1"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"v-replace","json":"0","words":"actions replace action gate base-time 1000 sched-entry close 2000000 index 1"}} +{"id":"tcact2write/ec-028","desc":"positive: opt=plain cmd=v-replace-new:actions_replace_action_gate_base-time_1000_sched-entry_close_2000000_index_2","cmd":"tc actions replace action gate base-time 1000 sched-entry close 2000000 index 2","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"v-replace-new","json":"0","words":"actions replace action gate base-time 1000 sched-entry close 2000000 index 2"}} +{"id":"tcact2write/ec-029","desc":"positive: opt=plain cmd=v-delete:actions_delete_action_gate_index_1","cmd":"tc actions delete action gate index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","tc actions add action gate sched-entry open 1000000 -1 -1 index 1"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"v-delete","json":"0","words":"actions delete action gate index 1"}} +{"id":"tcact2write/ec-030","desc":"positive: opt=plain cmd=v-flush:actions_flush_action_gate","cmd":"tc actions flush action gate","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","tc actions add action gate sched-entry open 1000000 -1 -1 index 1","tc actions add action gate sched-entry open 1000000 -1 -1 index 2"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"v-flush","json":"0","words":"actions flush action gate"}} +{"id":"tcact2write/ec-031","desc":"positive: opt=plain cmd=v-add:actions_add_action_bpf_bytecode_'1,6_0_0_0'_index_1","cmd":"tc actions add action bpf bytecode '1,6 0 0 0' index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action bpf"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"v-add","json":"0","words":"actions add action bpf bytecode '1,6 0 0 0' index 1"}} +{"id":"tcact2write/ec-032","desc":"positive: opt=plain cmd=v-change:actions_change_action_bpf_bytecode_'1,6_0_0_4294967295'_index_1","cmd":"tc actions change action bpf bytecode '1,6 0 0 4294967295' index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","tc actions add action bpf bytecode '1,6 0 0 0' index 1"],"readback":[{"name":"dump","cmd":"tc actions ls action bpf"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"v-change","json":"0","words":"actions change action bpf bytecode '1,6 0 0 4294967295' index 1"}} +{"id":"tcact2write/ec-033","desc":"positive: opt=plain cmd=v-replace:actions_replace_action_bpf_bytecode_'1,6_0_0_4294967295'_index_1","cmd":"tc actions replace action bpf bytecode '1,6 0 0 4294967295' index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","tc actions add action bpf bytecode '1,6 0 0 0' index 1"],"readback":[{"name":"dump","cmd":"tc actions ls action bpf"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"v-replace","json":"0","words":"actions replace action bpf bytecode '1,6 0 0 4294967295' index 1"}} +{"id":"tcact2write/ec-034","desc":"positive: opt=plain cmd=v-replace-new:actions_replace_action_bpf_bytecode_'1,6_0_0_4294967295'_index_2","cmd":"tc actions replace action bpf bytecode '1,6 0 0 4294967295' index 2","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action bpf"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"v-replace-new","json":"0","words":"actions replace action bpf bytecode '1,6 0 0 4294967295' index 2"}} +{"id":"tcact2write/ec-035","desc":"positive: opt=plain cmd=v-delete:actions_delete_action_bpf_index_1","cmd":"tc actions delete action bpf index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","tc actions add action bpf bytecode '1,6 0 0 0' index 1"],"readback":[{"name":"dump","cmd":"tc actions ls action bpf"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"v-delete","json":"0","words":"actions delete action bpf index 1"}} +{"id":"tcact2write/ec-036","desc":"positive: opt=plain cmd=v-flush:actions_flush_action_bpf","cmd":"tc actions flush action bpf","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","tc actions add action bpf bytecode '1,6 0 0 0' index 1","tc actions add action bpf bytecode '1,6 0 0 0' index 2"],"readback":[{"name":"dump","cmd":"tc actions ls action bpf"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"v-flush","json":"0","words":"actions flush action bpf"}} +{"id":"tcact2write/ec-037","desc":"positive: opt=plain cmd=ped:actions_add_action_pedit_munge_offset_0_u8_set_0x1_index_1","cmd":"tc actions add action pedit munge offset 0 u8 set 0x1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped","json":"0","words":"actions add action pedit munge offset 0 u8 set 0x1 index 1"}} +{"id":"tcact2write/ec-038","desc":"positive: opt=plain cmd=ped:actions_add_action_pedit_munge_offset_1_u8_set_0x1_index_1","cmd":"tc actions add action pedit munge offset 1 u8 set 0x1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped","json":"0","words":"actions add action pedit munge offset 1 u8 set 0x1 index 1"}} +{"id":"tcact2write/ec-039","desc":"positive: opt=plain cmd=ped:actions_add_action_pedit_munge_offset_3_u8_set_0x1_index_1","cmd":"tc actions add action pedit munge offset 3 u8 set 0x1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped","json":"0","words":"actions add action pedit munge offset 3 u8 set 0x1 index 1"}} +{"id":"tcact2write/ec-040","desc":"positive: opt=plain cmd=ped:actions_add_action_pedit_munge_offset_2_u16_set_0x1_index_1","cmd":"tc actions add action pedit munge offset 2 u16 set 0x1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped","json":"0","words":"actions add action pedit munge offset 2 u16 set 0x1 index 1"}} +{"id":"tcact2write/ec-041","desc":"positive: opt=plain cmd=ped:actions_add_action_pedit_munge_offset_12_u16_set_0x0800_retain_0xff00_index_1","cmd":"tc actions add action pedit munge offset 12 u16 set 0x0800 retain 0xff00 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped","json":"0","words":"actions add action pedit munge offset 12 u16 set 0x0800 retain 0xff00 index 1"}} +{"id":"tcact2write/ec-042","desc":"positive: opt=plain cmd=ped:actions_add_action_pedit_munge_offset_12_u32_at_0_f_2_set_0x1_index_1","cmd":"tc actions add action pedit munge offset 12 u32 at 0 f 2 set 0x1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped","json":"0","words":"actions add action pedit munge offset 12 u32 at 0 f 2 set 0x1 index 1"}} +{"id":"tcact2write/ec-043","desc":"positive: opt=plain cmd=ped:actions_add_action_pedit_munge_offset_12_u32_clear_index_1","cmd":"tc actions add action pedit munge offset 12 u32 clear index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped","json":"0","words":"actions add action pedit munge offset 12 u32 clear index 1"}} +{"id":"tcact2write/ec-044","desc":"positive: opt=plain cmd=ped:actions_add_action_pedit_munge_offset_12_u32_invert_index_1","cmd":"tc actions add action pedit munge offset 12 u32 invert index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped","json":"0","words":"actions add action pedit munge offset 12 u32 invert index 1"}} +{"id":"tcact2write/ec-045","desc":"positive: opt=plain cmd=ped:actions_add_action_pedit_munge_offset_12_u32_preserve_index_1","cmd":"tc actions add action pedit munge offset 12 u32 preserve index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped","json":"0","words":"actions add action pedit munge offset 12 u32 preserve index 1"}} +{"id":"tcact2write/ec-046","desc":"positive: opt=plain cmd=ped:actions_add_action_pedit_munge_offset_12_u32_set_0x1_drop_index_1","cmd":"tc actions add action pedit munge offset 12 u32 set 0x1 drop index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped","json":"0","words":"actions add action pedit munge offset 12 u32 set 0x1 drop index 1"}} +{"id":"tcact2write/ec-047","desc":"positive: opt=plain cmd=ped:actions_add_action_pedit_munge_offset_12_u32_set_0x1_munge_offset_16_u32_set_0x2_pipe_index_1","cmd":"tc actions add action pedit munge offset 12 u32 set 0x1 munge offset 16 u32 set 0x2 pipe index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped","json":"0","words":"actions add action pedit munge offset 12 u32 set 0x1 munge offset 16 u32 set 0x2 pipe index 1"}} +{"id":"tcact2write/ec-048","desc":"positive: opt=plain cmd=ped:actions_add_action_pedit_ex_munge_offset_12_u32_add_1_index_1","cmd":"tc actions add action pedit ex munge offset 12 u32 add 1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped","json":"0","words":"actions add action pedit ex munge offset 12 u32 add 1 index 1"}} +{"id":"tcact2write/ec-049","desc":"positive: opt=plain cmd=ped-ip:actions_add_action_pedit_munge_ip_src_set_10.0.0.1_index_1","cmd":"tc actions add action pedit munge ip src set 10.0.0.1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped-ip","json":"0","words":"actions add action pedit munge ip src set 10.0.0.1 index 1"}} +{"id":"tcact2write/ec-050","desc":"positive: opt=plain cmd=ped-ip:actions_add_action_pedit_munge_ip_dst_set_10.0.0.2_index_1","cmd":"tc actions add action pedit munge ip dst set 10.0.0.2 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped-ip","json":"0","words":"actions add action pedit munge ip dst set 10.0.0.2 index 1"}} +{"id":"tcact2write/ec-051","desc":"positive: opt=plain cmd=ped-ip:actions_add_action_pedit_munge_ip_tos_set_0x10_index_1","cmd":"tc actions add action pedit munge ip tos set 0x10 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped-ip","json":"0","words":"actions add action pedit munge ip tos set 0x10 index 1"}} +{"id":"tcact2write/ec-052","desc":"positive: opt=plain cmd=ped-ip:actions_add_action_pedit_munge_ip_dsfield_set_0x10_index_1","cmd":"tc actions add action pedit munge ip dsfield set 0x10 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped-ip","json":"0","words":"actions add action pedit munge ip dsfield set 0x10 index 1"}} +{"id":"tcact2write/ec-053","desc":"positive: opt=plain cmd=ped-ip:actions_add_action_pedit_munge_ip_ihl_set_5_index_1","cmd":"tc actions add action pedit munge ip ihl set 5 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped-ip","json":"0","words":"actions add action pedit munge ip ihl set 5 index 1"}} +{"id":"tcact2write/ec-054","desc":"positive: opt=plain cmd=ped-ip:actions_add_action_pedit_munge_ip_ttl_set_64_index_1","cmd":"tc actions add action pedit munge ip ttl set 64 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped-ip","json":"0","words":"actions add action pedit munge ip ttl set 64 index 1"}} +{"id":"tcact2write/ec-055","desc":"positive: opt=plain cmd=ped-ip:actions_add_action_pedit_munge_ip_protocol_set_17_index_1","cmd":"tc actions add action pedit munge ip protocol set 17 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped-ip","json":"0","words":"actions add action pedit munge ip protocol set 17 index 1"}} +{"id":"tcact2write/ec-056","desc":"positive: opt=plain cmd=ped-ip:actions_add_action_pedit_munge_ip_precedence_set_0x20_index_1","cmd":"tc actions add action pedit munge ip precedence set 0x20 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped-ip","json":"0","words":"actions add action pedit munge ip precedence set 0x20 index 1"}} +{"id":"tcact2write/ec-057","desc":"positive: opt=plain cmd=ped-ip:actions_add_action_pedit_munge_ip_nofrag_set_0_index_1","cmd":"tc actions add action pedit munge ip nofrag set 0 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped-ip","json":"0","words":"actions add action pedit munge ip nofrag set 0 index 1"}} +{"id":"tcact2write/ec-058","desc":"positive: opt=plain cmd=ped-ip:actions_add_action_pedit_munge_ip_firstfrag_set_0_index_1","cmd":"tc actions add action pedit munge ip firstfrag set 0 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped-ip","json":"0","words":"actions add action pedit munge ip firstfrag set 0 index 1"}} +{"id":"tcact2write/ec-059","desc":"positive: opt=plain cmd=ped-ip:actions_add_action_pedit_munge_ip_ce_set_0x80_index_1","cmd":"tc actions add action pedit munge ip ce set 0x80 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped-ip","json":"0","words":"actions add action pedit munge ip ce set 0x80 index 1"}} +{"id":"tcact2write/ec-060","desc":"positive: opt=plain cmd=ped-ip:actions_add_action_pedit_munge_ip_df_set_0x40_index_1","cmd":"tc actions add action pedit munge ip df set 0x40 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped-ip","json":"0","words":"actions add action pedit munge ip df set 0x40 index 1"}} +{"id":"tcact2write/ec-061","desc":"positive: opt=plain cmd=ped-ip:actions_add_action_pedit_munge_ip_mf_set_0x20_index_1","cmd":"tc actions add action pedit munge ip mf set 0x20 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped-ip","json":"0","words":"actions add action pedit munge ip mf set 0x20 index 1"}} +{"id":"tcact2write/ec-062","desc":"positive: opt=plain cmd=ped-ip:actions_add_action_pedit_munge_ip_dport_set_80_index_1","cmd":"tc actions add action pedit munge ip dport set 80 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped-ip","json":"0","words":"actions add action pedit munge ip dport set 80 index 1"}} +{"id":"tcact2write/ec-063","desc":"positive: opt=plain cmd=ped-ip:actions_add_action_pedit_munge_ip_sport_set_53_index_1","cmd":"tc actions add action pedit munge ip sport set 53 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped-ip","json":"0","words":"actions add action pedit munge ip sport set 53 index 1"}} +{"id":"tcact2write/ec-064","desc":"positive: opt=plain cmd=ped-ip:actions_add_action_pedit_munge_ip_icmp_type_set_8_index_1","cmd":"tc actions add action pedit munge ip icmp_type set 8 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped-ip","json":"0","words":"actions add action pedit munge ip icmp_type set 8 index 1"}} +{"id":"tcact2write/ec-065","desc":"positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_ip_src_set_10.0.0.1_index_1","cmd":"tc actions add action pedit ex munge ip src set 10.0.0.1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped-ex","json":"0","words":"actions add action pedit ex munge ip src set 10.0.0.1 index 1"}} +{"id":"tcact2write/ec-066","desc":"positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_ip_ttl_decrement_index_1","cmd":"tc actions add action pedit ex munge ip ttl decrement index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped-ex","json":"0","words":"actions add action pedit ex munge ip ttl decrement index 1"}} +{"id":"tcact2write/ec-067","desc":"positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_ip_ttl_add_1_index_1","cmd":"tc actions add action pedit ex munge ip ttl add 1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped-ex","json":"0","words":"actions add action pedit ex munge ip ttl add 1 index 1"}} +{"id":"tcact2write/ec-068","desc":"positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_ip_tos_set_0x10_retain_0xf0_index_1","cmd":"tc actions add action pedit ex munge ip tos set 0x10 retain 0xf0 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped-ex","json":"0","words":"actions add action pedit ex munge ip tos set 0x10 retain 0xf0 index 1"}} +{"id":"tcact2write/ec-069","desc":"positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_ip6_src_set_2001:db8::1_index_1","cmd":"tc actions add action pedit ex munge ip6 src set 2001:db8::1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped-ex","json":"0","words":"actions add action pedit ex munge ip6 src set 2001:db8::1 index 1"}} +{"id":"tcact2write/ec-070","desc":"positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_ip6_dst_set_2001:db8::2_index_1","cmd":"tc actions add action pedit ex munge ip6 dst set 2001:db8::2 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped-ex","json":"0","words":"actions add action pedit ex munge ip6 dst set 2001:db8::2 index 1"}} +{"id":"tcact2write/ec-071","desc":"positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_ip6_flow_lbl_set_0x12345_index_1","cmd":"tc actions add action pedit ex munge ip6 flow_lbl set 0x12345 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped-ex","json":"0","words":"actions add action pedit ex munge ip6 flow_lbl set 0x12345 index 1"}} +{"id":"tcact2write/ec-072","desc":"positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_ip6_payload_len_set_100_index_1","cmd":"tc actions add action pedit ex munge ip6 payload_len set 100 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped-ex","json":"0","words":"actions add action pedit ex munge ip6 payload_len set 100 index 1"}} +{"id":"tcact2write/ec-073","desc":"positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_ip6_nexthdr_set_6_index_1","cmd":"tc actions add action pedit ex munge ip6 nexthdr set 6 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped-ex","json":"0","words":"actions add action pedit ex munge ip6 nexthdr set 6 index 1"}} +{"id":"tcact2write/ec-074","desc":"positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_ip6_hoplimit_set_64_index_1","cmd":"tc actions add action pedit ex munge ip6 hoplimit set 64 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped-ex","json":"0","words":"actions add action pedit ex munge ip6 hoplimit set 64 index 1"}} +{"id":"tcact2write/ec-075","desc":"positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_ip6_hoplimit_decrement_index_1","cmd":"tc actions add action pedit ex munge ip6 hoplimit decrement index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped-ex","json":"0","words":"actions add action pedit ex munge ip6 hoplimit decrement index 1"}} +{"id":"tcact2write/ec-076","desc":"positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_ip6_traffic_class_set_0x10_index_1","cmd":"tc actions add action pedit ex munge ip6 traffic_class set 0x10 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped-ex","json":"0","words":"actions add action pedit ex munge ip6 traffic_class set 0x10 index 1"}} +{"id":"tcact2write/ec-077","desc":"positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_tcp_sport_set_80_index_1","cmd":"tc actions add action pedit ex munge tcp sport set 80 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped-ex","json":"0","words":"actions add action pedit ex munge tcp sport set 80 index 1"}} +{"id":"tcact2write/ec-078","desc":"positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_tcp_dport_set_443_index_1","cmd":"tc actions add action pedit ex munge tcp dport set 443 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped-ex","json":"0","words":"actions add action pedit ex munge tcp dport set 443 index 1"}} +{"id":"tcact2write/ec-079","desc":"positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_tcp_flags_set_0x02_index_1","cmd":"tc actions add action pedit ex munge tcp flags set 0x02 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped-ex","json":"0","words":"actions add action pedit ex munge tcp flags set 0x02 index 1"}} +{"id":"tcact2write/ec-080","desc":"positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_udp_sport_set_53_index_1","cmd":"tc actions add action pedit ex munge udp sport set 53 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped-ex","json":"0","words":"actions add action pedit ex munge udp sport set 53 index 1"}} +{"id":"tcact2write/ec-081","desc":"positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_udp_dport_set_67_index_1","cmd":"tc actions add action pedit ex munge udp dport set 67 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped-ex","json":"0","words":"actions add action pedit ex munge udp dport set 67 index 1"}} +{"id":"tcact2write/ec-082","desc":"positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_eth_dst_set_02:00:00:00:00:09_index_1","cmd":"tc actions add action pedit ex munge eth dst set 02:00:00:00:00:09 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped-ex","json":"0","words":"actions add action pedit ex munge eth dst set 02:00:00:00:00:09 index 1"}} +{"id":"tcact2write/ec-083","desc":"positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_eth_src_set_02:00:00:00:00:0a_index_1","cmd":"tc actions add action pedit ex munge eth src set 02:00:00:00:00:0a index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped-ex","json":"0","words":"actions add action pedit ex munge eth src set 02:00:00:00:00:0a index 1"}} +{"id":"tcact2write/ec-084","desc":"positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_eth_type_set_0x0800_index_1","cmd":"tc actions add action pedit ex munge eth type set 0x0800 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped-ex","json":"0","words":"actions add action pedit ex munge eth type set 0x0800 index 1"}} +{"id":"tcact2write/ec-085","desc":"positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_ip_ttl_set_10_munge_ip6_hoplimit_set_10_munge_tcp_dport_set_80_munge_eth_type_set_0x86dd_index_1","cmd":"tc actions add action pedit ex munge ip ttl set 10 munge ip6 hoplimit set 10 munge tcp dport set 80 munge eth type set 0x86dd index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped-ex","json":"0","words":"actions add action pedit ex munge ip ttl set 10 munge ip6 hoplimit set 10 munge tcp dport set 80 munge eth type set 0x86dd index 1"}} +{"id":"tcact2write/ec-086","desc":"boundary: opt=plain cmd=ped:actions_add_action_pedit_munge_ip_ttl_set_255_index_1","cmd":"tc actions add action pedit munge ip ttl set 255 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped","json":"0","words":"actions add action pedit munge ip ttl set 255 index 1"}} +{"id":"tcact2write/ec-087","desc":"boundary: opt=plain cmd=ped:actions_add_action_pedit_munge_ip_dport_set_65535_index_1","cmd":"tc actions add action pedit munge ip dport set 65535 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ped","json":"0","words":"actions add action pedit munge ip dport set 65535 index 1"}} +{"id":"tcact2write/ec-088","desc":"boundary: opt=plain cmd=w220:actions_add_action_pedit_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_index_1","cmd":"tc actions add action pedit munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w220","json":"0","words":"actions add action pedit munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 index 1"}} +{"id":"tcact2write/ec-089","desc":"corner: opt=plain cmd=w216-at:actions_add_action_pedit_munge_offset_12_u32_at_4_0xff_24_set_1_index_1","cmd":"tc actions add action pedit munge offset 12 u32 at 4 0xff 24 set 1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w216-at","json":"0","words":"actions add action pedit munge offset 12 u32 at 4 0xff 24 set 1 index 1"}} +{"id":"tcact2write/ec-090","desc":"corner: opt=plain cmd=w217:actions_add_action_pedit_munge_offset_12_u32_at_0x4_10_2_set_1_index_1","cmd":"tc actions add action pedit munge offset 12 u32 at 0x4 10 2 set 1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w217","json":"0","words":"actions add action pedit munge offset 12 u32 at 0x4 10 2 set 1 index 1"}} +{"id":"tcact2write/ec-091","desc":"corner: opt=plain cmd=w223:actions_add_action_pedit_ex_munge_eth_dst_invert_index_1","cmd":"tc actions add action pedit ex munge eth dst invert index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w223","json":"0","words":"actions add action pedit ex munge eth dst invert index 1"}} +{"id":"tcact2write/ec-092","desc":"corner: opt=plain cmd=w223-ip6:actions_add_action_pedit_ex_munge_ip6_dst_invert_index_1","cmd":"tc actions add action pedit ex munge ip6 dst invert index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w223-ip6","json":"0","words":"actions add action pedit ex munge ip6 dst invert index 1"}} +{"id":"tcact2write/ec-093","desc":"corner: opt=plain cmd=w224:actions_add_action_pedit_munge_offset_12_u32_preserve_retain_0xff_index_1","cmd":"tc actions add action pedit munge offset 12 u32 preserve retain 0xff index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w224","json":"0","words":"actions add action pedit munge offset 12 u32 preserve retain 0xff index 1"}} +{"id":"tcact2write/ec-094","desc":"corner: opt=plain cmd=w224-set:actions_add_action_pedit_munge_offset_12_u32_set_0x1234_retain_0xff_index_1","cmd":"tc actions add action pedit munge offset 12 u32 set 0x1234 retain 0xff index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w224-set","json":"0","words":"actions add action pedit munge offset 12 u32 set 0x1234 retain 0xff index 1"}} +{"id":"tcact2write/ec-095","desc":"corner: opt=plain cmd=w227:actions_add_action_pedit_munge_offset_12_u32_a_0_f_0_set_1_index_1","cmd":"tc actions add action pedit munge offset 12 u32 a 0 f 0 set 1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w227","json":"0","words":"actions add action pedit munge offset 12 u32 a 0 f 0 set 1 index 1"}} +{"id":"tcact2write/ec-096","desc":"corner: opt=plain cmd=w227-u:actions_add_action_pedit_munge_offset_12_u_set_1_index_1","cmd":"tc actions add action pedit munge offset 12 u set 1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w227-u","json":"0","words":"actions add action pedit munge offset 12 u set 1 index 1"}} +{"id":"tcact2write/ec-097","desc":"corner: opt=plain cmd=w227-u1:actions_add_action_pedit_munge_offset_12_u1_set_1_index_1","cmd":"tc actions add action pedit munge offset 12 u1 set 1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w227-u1","json":"0","words":"actions add action pedit munge offset 12 u1 set 1 index 1"}} +{"id":"tcact2write/ec-098","desc":"corner: opt=plain cmd=w232-junk:actions_add_action_pedit_ex_munge_eth_dst_set_02:00:00:00:00:01junk_index_1","cmd":"tc actions add action pedit ex munge eth dst set 02:00:00:00:00:01junk index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w232-junk","json":"0","words":"actions add action pedit ex munge eth dst set 02:00:00:00:00:01junk index 1"}} +{"id":"tcact2write/ec-099","desc":"corner: opt=plain cmd=w233:actions_add_action_pedit_munge_ip_src_set_10.0.0.1/8_index_1","cmd":"tc actions add action pedit munge ip src set 10.0.0.1/8 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w233","json":"0","words":"actions add action pedit munge ip src set 10.0.0.1/8 index 1"}} +{"id":"tcact2write/ec-100","desc":"corner: opt=plain cmd=w233-legacy:actions_add_action_pedit_munge_ip_src_set_010.1_index_1","cmd":"tc actions add action pedit munge ip src set 010.1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w233-legacy","json":"0","words":"actions add action pedit munge ip src set 010.1 index 1"}} +{"id":"tcact2write/ec-101","desc":"corner: opt=plain cmd=w233-any:actions_add_action_pedit_munge_ip_dst_set_any_index_1","cmd":"tc actions add action pedit munge ip dst set any index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w233-any","json":"0","words":"actions add action pedit munge ip dst set any index 1"}} +{"id":"tcact2write/ec-102","desc":"corner: opt=plain cmd=w234:actions_add_action_pedit_ex_munge_ip6_src_set_any_index_1","cmd":"tc actions add action pedit ex munge ip6 src set any index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w234","json":"0","words":"actions add action pedit ex munge ip6 src set any index 1"}} +{"id":"tcact2write/ec-103","desc":"corner: opt=plain cmd=w234-len:actions_add_action_pedit_ex_munge_ip6_src_set_2001:db8::1/64_index_1","cmd":"tc actions add action pedit ex munge ip6 src set 2001:db8::1/64 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w234-len","json":"0","words":"actions add action pedit ex munge ip6 src set 2001:db8::1/64 index 1"}} +{"id":"tcact2write/ec-104","desc":"corner: opt=plain cmd=w235:actions_add_action_pedit_munge_offset_-4_u32_set_1_index_1","cmd":"tc actions add action pedit munge offset -4 u32 set 1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w235","json":"0","words":"actions add action pedit munge offset -4 u32 set 1 index 1"}} +{"id":"tcact2write/ec-105","desc":"corner: opt=plain cmd=w236:actions_add_action_pedit_munge_ip_icmp_code_set_3_index_1","cmd":"tc actions add action pedit munge ip icmp_code set 3 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w236","json":"0","words":"actions add action pedit munge ip icmp_code set 3 index 1"}} +{"id":"tcact2write/ec-106","desc":"corner: opt=plain cmd=w237-d:actions_add_action_pedit_munge_ip_d_set_1_index_1","cmd":"tc actions add action pedit munge ip d set 1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w237-d","json":"0","words":"actions add action pedit munge ip d set 1 index 1"}} +{"id":"tcact2write/ec-107","desc":"corner: opt=plain cmd=w237-p:actions_add_action_pedit_munge_ip_p_set_1_index_1","cmd":"tc actions add action pedit munge ip p set 1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w237-p","json":"0","words":"actions add action pedit munge ip p set 1 index 1"}} +{"id":"tcact2write/ec-108","desc":"corner: opt=plain cmd=w238:actions_add_action_pedit_ex_munge_ip6_flow_lbl_set_0xfffff_index_1","cmd":"tc actions add action pedit ex munge ip6 flow_lbl set 0xfffff index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w238","json":"0","words":"actions add action pedit ex munge ip6 flow_lbl set 0xfffff index 1"}} +{"id":"tcact2write/ec-109","desc":"corner: opt=plain cmd=w243:actions_add_action_pedit_munge_ip_ttl_set_1_index_5_pipe","cmd":"tc actions add action pedit munge ip ttl set 1 index 5 pipe","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w243","json":"0","words":"actions add action pedit munge ip ttl set 1 index 5 pipe"}} +{"id":"tcact2write/ec-110","desc":"corner: opt=plain cmd=w249:actions_add_action_pedit_ex_munge_ip6_src_add_::1_index_1","cmd":"tc actions add action pedit ex munge ip6 src add ::1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w249","json":"0","words":"actions add action pedit ex munge ip6 src add ::1 index 1"}} +{"id":"tcact2write/ec-111","desc":"corner: opt=plain cmd=w249-eth:actions_add_action_pedit_ex_munge_eth_dst_add_00:00:00:00:00:01_index_1","cmd":"tc actions add action pedit ex munge eth dst add 00:00:00:00:00:01 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action pedit"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w249-eth","json":"0","words":"actions add action pedit ex munge eth dst add 00:00:00:00:00:01 index 1"}} +{"id":"tcact2write/ec-112","desc":"positive: opt=plain cmd=tk:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_dst_port_4789_tos_0x10_ttl_64_index_1","cmd":"tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 dst_port 4789 tos 0x10 ttl 64 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action tunnel_key"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tk","json":"0","words":"actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 dst_port 4789 tos 0x10 ttl 64 index 1"}} +{"id":"tcact2write/ec-113","desc":"positive: opt=plain cmd=tk:actions_add_action_tunnel_key_set_src_ip_2001:db8::1_dst_ip_2001:db8::2_id_8_dst_port_6081_index_1","cmd":"tc actions add action tunnel_key set src_ip 2001:db8::1 dst_ip 2001:db8::2 id 8 dst_port 6081 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action tunnel_key"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tk","json":"0","words":"actions add action tunnel_key set src_ip 2001:db8::1 dst_ip 2001:db8::2 id 8 dst_port 6081 index 1"}} +{"id":"tcact2write/ec-114","desc":"positive: opt=plain cmd=tk:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_nocsum_nofrag_index_1","cmd":"tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 nocsum nofrag index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action tunnel_key"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tk","json":"0","words":"actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 nocsum nofrag index 1"}} +{"id":"tcact2write/ec-115","desc":"positive: opt=plain cmd=tk:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_csum_index_1","cmd":"tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 csum index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action tunnel_key"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tk","json":"0","words":"actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 csum index 1"}} +{"id":"tcact2write/ec-116","desc":"positive: opt=plain cmd=tk:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_index_1","cmd":"tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action tunnel_key"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tk","json":"0","words":"actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 index 1"}} +{"id":"tcact2write/ec-117","desc":"positive: opt=plain cmd=tk:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_geneve_opts_0102:80:00880022_index_1","cmd":"tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts 0102:80:00880022 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action tunnel_key"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tk","json":"0","words":"actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts 0102:80:00880022 index 1"}} +{"id":"tcact2write/ec-118","desc":"positive: opt=plain cmd=tk:actions_add_action_tunnel_key_set_src_ip_2001:db8::1_dst_ip_2001:db8::2_id_8_geneve_opts_0102:80:00880022,0103:81:00a000b0,0104:82:0011223344556677_index_1","cmd":"tc actions add action tunnel_key set src_ip 2001:db8::1 dst_ip 2001:db8::2 id 8 geneve_opts 0102:80:00880022,0103:81:00a000b0,0104:82:0011223344556677 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action tunnel_key"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tk","json":"0","words":"actions add action tunnel_key set src_ip 2001:db8::1 dst_ip 2001:db8::2 id 8 geneve_opts 0102:80:00880022,0103:81:00a000b0,0104:82:0011223344556677 index 1"}} +{"id":"tcact2write/ec-119","desc":"positive: opt=plain cmd=tk:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_9_vxlan_opts_4660_index_1","cmd":"tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 9 vxlan_opts 4660 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action tunnel_key"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tk","json":"0","words":"actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 9 vxlan_opts 4660 index 1"}} +{"id":"tcact2write/ec-120","desc":"positive: opt=plain cmd=tk:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_10_erspan_opts_1:12:0:0_index_1","cmd":"tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 10 erspan_opts 1:12:0:0 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action tunnel_key"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tk","json":"0","words":"actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 10 erspan_opts 1:12:0:0 index 1"}} +{"id":"tcact2write/ec-121","desc":"positive: opt=plain cmd=tk:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_11_erspan_opts_2:0:1:7_index_1","cmd":"tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 11 erspan_opts 2:0:1:7 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action tunnel_key"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tk","json":"0","words":"actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 11 erspan_opts 2:0:1:7 index 1"}} +{"id":"tcact2write/ec-122","desc":"positive: opt=plain cmd=tk:actions_add_action_tunnel_key_unset_drop_index_1","cmd":"tc actions add action tunnel_key unset drop index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action tunnel_key"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tk","json":"0","words":"actions add action tunnel_key unset drop index 1"}} +{"id":"tcact2write/ec-123","desc":"positive: opt=plain cmd=tk:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_pipe_index_1","cmd":"tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 pipe index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action tunnel_key"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tk","json":"0","words":"actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 pipe index 1"}} +{"id":"tcact2write/ec-124","desc":"boundary: opt=plain cmd=tk:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_tos_255_ttl_255_index_1","cmd":"tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 tos 255 ttl 255 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action tunnel_key"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tk","json":"0","words":"actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 tos 255 ttl 255 index 1"}} +{"id":"tcact2write/ec-125","desc":"boundary: opt=plain cmd=tk:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_4294967295_dst_port_65535_index_1","cmd":"tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 4294967295 dst_port 65535 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action tunnel_key"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tk","json":"0","words":"actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 4294967295 dst_port 65535 index 1"}} +{"id":"tcact2write/ec-126","desc":"corner: opt=plain cmd=w255:actions_add_action_tunnel_key_s_src_ip_10.0.0.1_d_10.0.0.2_i_7_t_1_n_index_1","cmd":"tc actions add action tunnel_key s src_ip 10.0.0.1 d 10.0.0.2 i 7 t 1 n index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action tunnel_key"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w255","json":"0","words":"actions add action tunnel_key s src_ip 10.0.0.1 d 10.0.0.2 i 7 t 1 n index 1"}} +{"id":"tcact2write/ec-127","desc":"corner: opt=plain cmd=w257:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_tos_1a_ttl_010_index_1","cmd":"tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 tos 1a ttl 010 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action tunnel_key"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w257","json":"0","words":"actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 tos 1a ttl 010 index 1"}} +{"id":"tcact2write/ec-128","desc":"corner: opt=plain cmd=w259-8:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_geneve_opts_0102:80:00112233_index_1","cmd":"tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts 0102:80:00112233 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action tunnel_key"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w259-8","json":"0","words":"actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts 0102:80:00112233 index 1"}} +{"id":"tcact2write/ec-129","desc":"corner: opt=plain cmd=w262:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_geneve_opts_0102:80:00880022_vxlan_opts_4660_index_1","cmd":"tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts 0102:80:00880022 vxlan_opts 4660 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action tunnel_key"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w262","json":"0","words":"actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts 0102:80:00880022 vxlan_opts 4660 index 1"}} +{"id":"tcact2write/ec-130","desc":"corner: opt=plain cmd=w263:actions_add_action_tunnel_key_unset_src_ip_10.0.0.1_dst_ip_10.0.0.2_nocsum_index_1","cmd":"tc actions add action tunnel_key unset src_ip 10.0.0.1 dst_ip 10.0.0.2 nocsum index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action tunnel_key"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w263","json":"0","words":"actions add action tunnel_key unset src_ip 10.0.0.1 dst_ip 10.0.0.2 nocsum index 1"}} +{"id":"tcact2write/ec-131","desc":"corner: opt=plain cmd=w264:actions_add_action_tunnel_key_unset_index_5_pipe","cmd":"tc actions add action tunnel_key unset index 5 pipe","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action tunnel_key"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w264","json":"0","words":"actions add action tunnel_key unset index 5 pipe"}} +{"id":"tcact2write/ec-132","desc":"positive: opt=plain cmd=w274:actions_add_action_ife_encode_type_0xED3E_dst_02:00:00:00:00:01_src_02:00:00:00:00:02_use_mark_7_index_1","cmd":"tc actions add action ife encode type 0xED3E dst 02:00:00:00:00:01 src 02:00:00:00:00:02 use mark 7 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ife"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w274","json":"0","words":"actions add action ife encode type 0xED3E dst 02:00:00:00:00:01 src 02:00:00:00:00:02 use mark 7 index 1"}} +{"id":"tcact2write/ec-133","desc":"positive: opt=plain cmd=w275:actions_add_action_ife_encode_allow_mark_allow_prio_allow_tcindex_index_1","cmd":"tc actions add action ife encode allow mark allow prio allow tcindex index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ife"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w275","json":"0","words":"actions add action ife encode allow mark allow prio allow tcindex index 1"}} +{"id":"tcact2write/ec-134","desc":"positive: opt=plain cmd=ife:actions_add_action_ife_encode_use_prio_5_use_tcindex_3_index_1","cmd":"tc actions add action ife encode use prio 5 use tcindex 3 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ife"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ife","json":"0","words":"actions add action ife encode use prio 5 use tcindex 3 index 1"}} +{"id":"tcact2write/ec-135","desc":"positive: opt=plain cmd=ife:actions_add_action_ife_decode_index_1","cmd":"tc actions add action ife decode index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ife"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ife","json":"0","words":"actions add action ife decode index 1"}} +{"id":"tcact2write/ec-136","desc":"positive: opt=plain cmd=ife:actions_add_action_ife_encode_allow_mark_drop_index_1","cmd":"tc actions add action ife encode allow mark drop index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ife"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ife","json":"0","words":"actions add action ife encode allow mark drop index 1"}} +{"id":"tcact2write/ec-137","desc":"boundary: opt=plain cmd=ife:actions_add_action_ife_encode_use_mark_4294967295_use_tcindex_65535_index_1","cmd":"tc actions add action ife encode use mark 4294967295 use tcindex 65535 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ife"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ife","json":"0","words":"actions add action ife encode use mark 4294967295 use tcindex 65535 index 1"}} +{"id":"tcact2write/ec-138","desc":"corner: opt=plain cmd=w267:actions_add_action_ife_index_5","cmd":"tc actions add action ife index 5","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ife"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w267","json":"0","words":"actions add action ife index 5"}} +{"id":"tcact2write/ec-139","desc":"corner: opt=plain cmd=w269:actions_add_action_ife_ife_i_decode_index_1","cmd":"tc actions add action ife ife i decode index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ife"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w269","json":"0","words":"actions add action ife ife i decode index 1"}} +{"id":"tcact2write/ec-140","desc":"corner: opt=plain cmd=w270:actions_add_action_ife_e_a_mark_ds_02:00:00:00:00:01_t_0x1234_index_1","cmd":"tc actions add action ife e a mark ds 02:00:00:00:00:01 t 0x1234 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ife"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w270","json":"0","words":"actions add action ife e a mark ds 02:00:00:00:00:01 t 0x1234 index 1"}} +{"id":"tcact2write/ec-141","desc":"corner: opt=plain cmd=w270-last:actions_add_action_ife_encode_decode_index_1","cmd":"tc actions add action ife encode decode index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ife"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w270-last","json":"0","words":"actions add action ife encode decode index 1"}} +{"id":"tcact2write/ec-142","desc":"corner: opt=plain cmd=w271:actions_add_action_ife_encode_use_mark_0_index_1","cmd":"tc actions add action ife encode use mark 0 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ife"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w271","json":"0","words":"actions add action ife encode use mark 0 index 1"}} +{"id":"tcact2write/ec-143","desc":"corner: opt=plain cmd=w271-order:actions_add_action_ife_encode_use_tcindex_1_use_mark_2_allow_prio_index_1","cmd":"tc actions add action ife encode use tcindex 1 use mark 2 allow prio index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ife"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w271-order","json":"0","words":"actions add action ife encode use tcindex 1 use mark 2 allow prio index 1"}} +{"id":"tcact2write/ec-144","desc":"corner: opt=plain cmd=w271-over:actions_add_action_ife_encode_allow_mark_use_mark_9_index_1","cmd":"tc actions add action ife encode allow mark use mark 9 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ife"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w271-over","json":"0","words":"actions add action ife encode allow mark use mark 9 index 1"}} +{"id":"tcact2write/ec-145","desc":"corner: opt=plain cmd=w272:actions_add_action_ife_encode_use_mark_010_index_0x5","cmd":"tc actions add action ife encode use mark 010 index 0x5","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ife"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w272","json":"0","words":"actions add action ife encode use mark 010 index 0x5"}} +{"id":"tcact2write/ec-146","desc":"corner: opt=plain cmd=w273:actions_add_action_ife_decode_dst_02:00:00:00:00:01_type_0x1234_allow_mark_index_1","cmd":"tc actions add action ife decode dst 02:00:00:00:00:01 type 0x1234 allow mark index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ife"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w273","json":"0","words":"actions add action ife decode dst 02:00:00:00:00:01 type 0x1234 allow mark index 1"}} +{"id":"tcact2write/ec-147","desc":"corner: opt=plain cmd=w196-ife:actions_add_action_ife_encode_dst_02:00:00:00:00:01junk_allow_mark_index_1","cmd":"tc actions add action ife encode dst 02:00:00:00:00:01junk allow mark index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ife"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w196-ife","json":"0","words":"actions add action ife encode dst 02:00:00:00:00:01junk allow mark index 1"}} +{"id":"tcact2write/ec-148","desc":"corner: opt=plain cmd=w196-ife-x:actions_add_action_ife_encode_dst_0x2:1aa:00:00:00:01_allow_mark_index_1","cmd":"tc actions add action ife encode dst 0x2:1aa:00:00:00:01 allow mark index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ife"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w196-ife-x","json":"0","words":"actions add action ife encode dst 0x2:1aa:00:00:00:01 allow mark index 1"}} +{"id":"tcact2write/ec-149","desc":"positive: opt=plain cmd=ct:actions_add_action_ct_index_1","cmd":"tc actions add action ct index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ct"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ct","json":"0","words":"actions add action ct index 1"}} +{"id":"tcact2write/ec-150","desc":"positive: opt=plain cmd=ct:actions_add_action_ct_commit_force_index_1","cmd":"tc actions add action ct commit force index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ct"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ct","json":"0","words":"actions add action ct commit force index 1"}} +{"id":"tcact2write/ec-151","desc":"positive: opt=plain cmd=ct:actions_add_action_ct_clear_index_1","cmd":"tc actions add action ct clear index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ct"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ct","json":"0","words":"actions add action ct clear index 1"}} +{"id":"tcact2write/ec-152","desc":"positive: opt=plain cmd=ct:actions_add_action_ct_zone_5_index_1","cmd":"tc actions add action ct zone 5 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ct"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ct","json":"0","words":"actions add action ct zone 5 index 1"}} +{"id":"tcact2write/ec-153","desc":"positive: opt=plain cmd=ct:actions_add_action_ct_commit_zone_404_mark_0x42/0xf0_label_12312300000000000000000000000001/ffffffff000000000000000000000001_index_1","cmd":"tc actions add action ct commit zone 404 mark 0x42/0xf0 label 12312300000000000000000000000001/ffffffff000000000000000000000001 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ct"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ct","json":"0","words":"actions add action ct commit zone 404 mark 0x42/0xf0 label 12312300000000000000000000000001/ffffffff000000000000000000000001 index 1"}} +{"id":"tcact2write/ec-154","desc":"positive: opt=plain cmd=ct:actions_add_action_ct_commit_mark_5_index_1","cmd":"tc actions add action ct commit mark 5 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ct"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ct","json":"0","words":"actions add action ct commit mark 5 index 1"}} +{"id":"tcact2write/ec-155","desc":"positive: opt=plain cmd=ct:actions_add_action_ct_commit_label_0102_index_1","cmd":"tc actions add action ct commit label 0102 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ct"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ct","json":"0","words":"actions add action ct commit label 0102 index 1"}} +{"id":"tcact2write/ec-156","desc":"positive: opt=plain cmd=ct:actions_add_action_ct_commit_nat_src_addr_10.0.0.1-10.0.0.9_port_1000-2000_index_1","cmd":"tc actions add action ct commit nat src addr 10.0.0.1-10.0.0.9 port 1000-2000 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ct"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ct","json":"0","words":"actions add action ct commit nat src addr 10.0.0.1-10.0.0.9 port 1000-2000 index 1"}} +{"id":"tcact2write/ec-157","desc":"positive: opt=plain cmd=ct:actions_add_action_ct_commit_nat_dst_addr_10.0.0.1_port_80_index_1","cmd":"tc actions add action ct commit nat dst addr 10.0.0.1 port 80 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ct"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ct","json":"0","words":"actions add action ct commit nat dst addr 10.0.0.1 port 80 index 1"}} +{"id":"tcact2write/ec-158","desc":"positive: opt=plain cmd=ct:actions_add_action_ct_commit_nat_dst_addr_2001:db8::1_index_1","cmd":"tc actions add action ct commit nat dst addr 2001:db8::1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ct"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ct","json":"0","words":"actions add action ct commit nat dst addr 2001:db8::1 index 1"}} +{"id":"tcact2write/ec-159","desc":"positive: opt=plain cmd=ct:actions_add_action_ct_commit_nat_src_addr_2001:db8::1-2001:db8::9_port_80-90_index_1","cmd":"tc actions add action ct commit nat src addr 2001:db8::1-2001:db8::9 port 80-90 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ct"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ct","json":"0","words":"actions add action ct commit nat src addr 2001:db8::1-2001:db8::9 port 80-90 index 1"}} +{"id":"tcact2write/ec-160","desc":"positive: opt=plain cmd=ct:actions_add_action_ct_nat_index_1","cmd":"tc actions add action ct nat index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ct"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ct","json":"0","words":"actions add action ct nat index 1"}} +{"id":"tcact2write/ec-161","desc":"positive: opt=plain cmd=ct:actions_add_action_ct_nat_zone_3_index_1","cmd":"tc actions add action ct nat zone 3 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ct"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ct","json":"0","words":"actions add action ct nat zone 3 index 1"}} +{"id":"tcact2write/ec-162","desc":"positive: opt=plain cmd=ct:actions_add_action_ct_commit_helper_ipv4-tcp-ftp_index_1","cmd":"tc actions add action ct commit helper ipv4-tcp-ftp index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ct"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ct","json":"0","words":"actions add action ct commit helper ipv4-tcp-ftp index 1"}} +{"id":"tcact2write/ec-163","desc":"positive: opt=plain cmd=ct:actions_add_action_ct_commit_helper_ipv6-tcp-ftp_index_1","cmd":"tc actions add action ct commit helper ipv6-tcp-ftp index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ct"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ct","json":"0","words":"actions add action ct commit helper ipv6-tcp-ftp index 1"}} +{"id":"tcact2write/ec-164","desc":"positive: opt=plain cmd=ct:actions_add_action_ct_commit_index_1_drop","cmd":"tc actions add action ct commit index 1 drop","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ct"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ct","json":"0","words":"actions add action ct commit index 1 drop"}} +{"id":"tcact2write/ec-165","desc":"boundary: opt=plain cmd=ct:actions_add_action_ct_zone_65535_index_1","cmd":"tc actions add action ct zone 65535 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ct"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ct","json":"0","words":"actions add action ct zone 65535 index 1"}} +{"id":"tcact2write/ec-166","desc":"boundary: opt=plain cmd=w285-32:actions_add_action_ct_commit_label_0123456789abcdef0123456789abcdef_index_1","cmd":"tc actions add action ct commit label 0123456789abcdef0123456789abcdef index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ct"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w285-32","json":"0","words":"actions add action ct commit label 0123456789abcdef0123456789abcdef index 1"}} +{"id":"tcact2write/ec-167","desc":"boundary: opt=plain cmd=w280-62:actions_add_action_ct_commit_nat_src_addr_2001:0db8:0000:0000:0000:0000:0000:0001-2001:0db8:0000:0000::9_index_1","cmd":"tc actions add action ct commit nat src addr 2001:0db8:0000:0000:0000:0000:0000:0001-2001:0db8:0000:0000::9 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ct"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w280-62","json":"0","words":"actions add action ct commit nat src addr 2001:0db8:0000:0000:0000:0000:0000:0001-2001:0db8:0000:0000::9 index 1"}} +{"id":"tcact2write/ec-168","desc":"corner: opt=plain cmd=w280:actions_add_action_ct_commit_nat_src_addr_2001:0db8:0000:0000:0000:0000:0000:0001-2001:0db8:0000:0000::09_index_1","cmd":"tc actions add action ct commit nat src addr 2001:0db8:0000:0000:0000:0000:0000:0001-2001:0db8:0000:0000::09 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ct"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w280","json":"0","words":"actions add action ct commit nat src addr 2001:0db8:0000:0000:0000:0000:0000:0001-2001:0db8:0000:0000::09 index 1"}} +{"id":"tcact2write/ec-169","desc":"corner: opt=plain cmd=w281:actions_add_action_ct_commit_nat_src_addr_10.0.0.1_index_1","cmd":"tc actions add action ct commit nat src addr 10.0.0.1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ct"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w281","json":"0","words":"actions add action ct commit nat src addr 10.0.0.1 index 1"}} +{"id":"tcact2write/ec-170","desc":"corner: opt=plain cmd=w282:actions_add_action_ct_commit_nat_src_addr_10.0.0.1_port_2000-1000_index_1","cmd":"tc actions add action ct commit nat src addr 10.0.0.1 port 2000-1000 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ct"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w282","json":"0","words":"actions add action ct commit nat src addr 10.0.0.1 port 2000-1000 index 1"}} +{"id":"tcact2write/ec-171","desc":"corner: opt=plain cmd=w284:actions_add_action_ct_commit_helper_ipv4-6-ftp_index_1","cmd":"tc actions add action ct commit helper ipv4-6-ftp index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ct"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w284","json":"0","words":"actions add action ct commit helper ipv4-6-ftp index 1"}} +{"id":"tcact2write/ec-172","desc":"corner: opt=plain cmd=w287-odd:actions_add_action_ct_commit_label_00g_index_1","cmd":"tc actions add action ct commit label 00g index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ct"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w287-odd","json":"0","words":"actions add action ct commit label 00g index 1"}} +{"id":"tcact2write/ec-173","desc":"corner: opt=plain cmd=w287-0:actions_add_action_ct_commit_label_0_index_1","cmd":"tc actions add action ct commit label 0 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ct"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w287-0","json":"0","words":"actions add action ct commit label 0 index 1"}} +{"id":"tcact2write/ec-174","desc":"corner: opt=plain cmd=w289:actions_add_action_ct_clear_zone_5_mark_1_index_1","cmd":"tc actions add action ct clear zone 5 mark 1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ct"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w289","json":"0","words":"actions add action ct clear zone 5 mark 1 index 1"}} +{"id":"tcact2write/ec-175","desc":"corner: opt=plain cmd=w289-force:actions_add_action_ct_force_index_1","cmd":"tc actions add action ct force index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ct"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w289-force","json":"0","words":"actions add action ct force index 1"}} +{"id":"tcact2write/ec-176","desc":"corner: opt=plain cmd=w290:actions_add_action_ct_zone_010_index_1","cmd":"tc actions add action ct zone 010 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ct"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w290","json":"0","words":"actions add action ct zone 010 index 1"}} +{"id":"tcact2write/ec-177","desc":"corner: opt=plain cmd=w292:actions_add_action_ct_co_z_5_m_1_index_1","cmd":"tc actions add action ct co z 5 m 1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ct"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w292","json":"0","words":"actions add action ct co z 5 m 1 index 1"}} +{"id":"tcact2write/ec-178","desc":"corner: opt=plain cmd=w292-c:actions_add_action_ct_c_index_1","cmd":"tc actions add action ct c index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action ct"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w292-c","json":"0","words":"actions add action ct c index 1"}} +{"id":"tcact2write/ec-179","desc":"positive: opt=plain cmd=gate:actions_add_action_gate_priority_2_clockid_CLOCK_TAI_base-time_200000000000ns_cycle-time_300000000ns_cycle-time-ext_1000ns_sched-entry_open_100000000ns_3_8000_sched-entry_close_100000000ns_-1_-1_sched-entry_open_100000000ns_1_-1_index_1","cmd":"tc actions add action gate priority 2 clockid CLOCK_TAI base-time 200000000000ns cycle-time 300000000ns cycle-time-ext 1000ns sched-entry open 100000000ns 3 8000 sched-entry close 100000000ns -1 -1 sched-entry open 100000000ns 1 -1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"gate","json":"0","words":"actions add action gate priority 2 clockid CLOCK_TAI base-time 200000000000ns cycle-time 300000000ns cycle-time-ext 1000ns sched-entry open 100000000ns 3 8000 sched-entry close 100000000ns -1 -1 sched-entry open 100000000ns 1 -1 index 1"}} +{"id":"tcact2write/ec-180","desc":"positive: opt=plain cmd=gate:actions_add_action_gate_sched-entry_close_100000000ns_index_1","cmd":"tc actions add action gate sched-entry close 100000000ns index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"gate","json":"0","words":"actions add action gate sched-entry close 100000000ns index 1"}} +{"id":"tcact2write/ec-181","desc":"positive: opt=plain cmd=gate:actions_add_action_gate_sched-entry_open_1ms_index_1","cmd":"tc actions add action gate sched-entry open 1ms index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"gate","json":"0","words":"actions add action gate sched-entry open 1ms index 1"}} +{"id":"tcact2write/ec-182","desc":"positive: opt=plain cmd=gate:actions_add_action_gate_sched-entry_open_1us_-1_-1_index_1","cmd":"tc actions add action gate sched-entry open 1us -1 -1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"gate","json":"0","words":"actions add action gate sched-entry open 1us -1 -1 index 1"}} +{"id":"tcact2write/ec-183","desc":"positive: opt=plain cmd=gate:actions_add_action_gate_sched-entry_open_1000000_3_8k_index_1","cmd":"tc actions add action gate sched-entry open 1000000 3 8k index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"gate","json":"0","words":"actions add action gate sched-entry open 1000000 3 8k index 1"}} +{"id":"tcact2write/ec-184","desc":"positive: opt=plain cmd=gate-clk:actions_add_action_gate_clockid_CLOCK_TAI_sched-entry_open_1000000_-1_-1_index_1","cmd":"tc actions add action gate clockid CLOCK_TAI sched-entry open 1000000 -1 -1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"gate-clk","json":"0","words":"actions add action gate clockid CLOCK_TAI sched-entry open 1000000 -1 -1 index 1"}} +{"id":"tcact2write/ec-185","desc":"positive: opt=plain cmd=gate-clk:actions_add_action_gate_clockid_CLOCK_REALTIME_sched-entry_open_1000000_-1_-1_index_1","cmd":"tc actions add action gate clockid CLOCK_REALTIME sched-entry open 1000000 -1 -1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"gate-clk","json":"0","words":"actions add action gate clockid CLOCK_REALTIME sched-entry open 1000000 -1 -1 index 1"}} +{"id":"tcact2write/ec-186","desc":"positive: opt=plain cmd=gate-clk:actions_add_action_gate_clockid_CLOCK_MONOTONIC_sched-entry_open_1000000_-1_-1_index_1","cmd":"tc actions add action gate clockid CLOCK_MONOTONIC sched-entry open 1000000 -1 -1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"gate-clk","json":"0","words":"actions add action gate clockid CLOCK_MONOTONIC sched-entry open 1000000 -1 -1 index 1"}} +{"id":"tcact2write/ec-187","desc":"positive: opt=plain cmd=gate-clk:actions_add_action_gate_clockid_CLOCK_BOOTTIME_sched-entry_open_1000000_-1_-1_index_1","cmd":"tc actions add action gate clockid CLOCK_BOOTTIME sched-entry open 1000000 -1 -1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"gate-clk","json":"0","words":"actions add action gate clockid CLOCK_BOOTTIME sched-entry open 1000000 -1 -1 index 1"}} +{"id":"tcact2write/ec-188","desc":"positive: opt=plain cmd=gate-clk:actions_add_action_gate_clockid_tai_sched-entry_open_1000000_-1_-1_index_1","cmd":"tc actions add action gate clockid tai sched-entry open 1000000 -1 -1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"gate-clk","json":"0","words":"actions add action gate clockid tai sched-entry open 1000000 -1 -1 index 1"}} +{"id":"tcact2write/ec-189","desc":"positive: opt=plain cmd=gate-clk:actions_add_action_gate_clockid_clock_boottime_sched-entry_open_1000000_-1_-1_index_1","cmd":"tc actions add action gate clockid clock_boottime sched-entry open 1000000 -1 -1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"gate-clk","json":"0","words":"actions add action gate clockid clock_boottime sched-entry open 1000000 -1 -1 index 1"}} +{"id":"tcact2write/ec-190","desc":"positive: opt=plain cmd=gate:actions_add_action_gate_base-time_1_cycle-time_2000000_sched-entry_open_1000000_-1_-1_sched-entry_close_1000000_index_1","cmd":"tc actions add action gate base-time 1 cycle-time 2000000 sched-entry open 1000000 -1 -1 sched-entry close 1000000 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"gate","json":"0","words":"actions add action gate base-time 1 cycle-time 2000000 sched-entry open 1000000 -1 -1 sched-entry close 1000000 index 1"}} +{"id":"tcact2write/ec-191","desc":"positive: opt=plain cmd=gate:actions_add_action_gate_flags_1_sched-entry_open_1000000_-1_-1_index_1","cmd":"tc actions add action gate flags 1 sched-entry open 1000000 -1 -1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"gate","json":"0","words":"actions add action gate flags 1 sched-entry open 1000000 -1 -1 index 1"}} +{"id":"tcact2write/ec-192","desc":"positive: opt=plain cmd=gate:actions_add_action_gate_sched-entry_open_1000000_-1_-1_index_1_drop","cmd":"tc actions add action gate sched-entry open 1000000 -1 -1 index 1 drop","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"gate","json":"0","words":"actions add action gate sched-entry open 1000000 -1 -1 index 1 drop"}} +{"id":"tcact2write/ec-193","desc":"boundary: opt=plain cmd=gate:actions_add_action_gate_sched-entry_open_4294967295_-1_-1_index_1","cmd":"tc actions add action gate sched-entry open 4294967295 -1 -1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"gate","json":"0","words":"actions add action gate sched-entry open 4294967295 -1 -1 index 1"}} +{"id":"tcact2write/ec-194","desc":"boundary: opt=plain cmd=gate:actions_add_action_gate_sched-entry_open_4294967295ns_-1_-1_index_1","cmd":"tc actions add action gate sched-entry open 4294967295ns -1 -1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"gate","json":"0","words":"actions add action gate sched-entry open 4294967295ns -1 -1 index 1"}} +{"id":"tcact2write/ec-195","desc":"boundary: opt=plain cmd=gate:actions_add_action_gate_sched-entry_open_1000_2147483647_2147483647_index_1","cmd":"tc actions add action gate sched-entry open 1000 2147483647 2147483647 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"gate","json":"0","words":"actions add action gate sched-entry open 1000 2147483647 2147483647 index 1"}} +{"id":"tcact2write/ec-196","desc":"boundary: opt=plain cmd=w293-30:actions_add_action_gate_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_index_1","cmd":"tc actions add action gate sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w293-30","json":"0","words":"actions add action gate sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 index 1"}} +{"id":"tcact2write/ec-197","desc":"corner: opt=plain cmd=w293-31:actions_add_action_gate_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_index_1","cmd":"tc actions add action gate sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w293-31","json":"0","words":"actions add action gate sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 index 1"}} +{"id":"tcact2write/ec-198","desc":"corner: opt=plain cmd=w293-40:actions_add_action_gate_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_index_1","cmd":"tc actions add action gate sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w293-40","json":"0","words":"actions add action gate sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 index 1"}} +{"id":"tcact2write/ec-199","desc":"corner: opt=plain cmd=w293-close:actions_add_action_gate_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_index_1","cmd":"tc actions add action gate sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w293-close","json":"0","words":"actions add action gate sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 index 1"}} +{"id":"tcact2write/ec-200","desc":"corner: opt=plain cmd=w295:actions_add_action_gate_sched-entry_open_1ms_1_1.5_index_1","cmd":"tc actions add action gate sched-entry open 1ms 1 1.5 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w295","json":"0","words":"actions add action gate sched-entry open 1ms 1 1.5 index 1"}} +{"id":"tcact2write/ec-201","desc":"corner: opt=plain cmd=w295-0kb:actions_add_action_gate_sched-entry_open_1ms_1_0kb_index_1","cmd":"tc actions add action gate sched-entry open 1ms 1 0kb index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w295-0kb","json":"0","words":"actions add action gate sched-entry open 1ms 1 0kb index 1"}} +{"id":"tcact2write/ec-202","desc":"corner: opt=plain cmd=w296:actions_add_action_gate_priority_0x2_sched-entry_open_0x10_0x3_0x10_index_1","cmd":"tc actions add action gate priority 0x2 sched-entry open 0x10 0x3 0x10 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w296","json":"0","words":"actions add action gate priority 0x2 sched-entry open 0x10 0x3 0x10 index 1"}} +{"id":"tcact2write/ec-203","desc":"corner: opt=plain cmd=w296-time:actions_add_action_gate_base-time_0x10_cycle-time_1.5_sched-entry_open_1000000_-1_-1_index_1","cmd":"tc actions add action gate base-time 0x10 cycle-time 1.5 sched-entry open 1000000 -1 -1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w296-time","json":"0","words":"actions add action gate base-time 0x10 cycle-time 1.5 sched-entry open 1000000 -1 -1 index 1"}} +{"id":"tcact2write/ec-204","desc":"corner: opt=plain cmd=w297-inf:actions_add_action_gate_base-time_inf_sched-entry_open_1000000_-1_-1_index_1","cmd":"tc actions add action gate base-time inf sched-entry open 1000000 -1 -1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w297-inf","json":"0","words":"actions add action gate base-time inf sched-entry open 1000000 -1 -1 index 1"}} +{"id":"tcact2write/ec-205","desc":"corner: opt=plain cmd=w297-nan:actions_add_action_gate_base-time_nan_sched-entry_open_1000000_-1_-1_index_1","cmd":"tc actions add action gate base-time nan sched-entry open 1000000 -1 -1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w297-nan","json":"0","words":"actions add action gate base-time nan sched-entry open 1000000 -1 -1 index 1"}} +{"id":"tcact2write/ec-206","desc":"corner: opt=plain cmd=w297-big:actions_add_action_gate_cycle-time_1e30_sched-entry_open_1000000_-1_-1_index_1","cmd":"tc actions add action gate cycle-time 1e30 sched-entry open 1000000 -1 -1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w297-big","json":"0","words":"actions add action gate cycle-time 1e30 sched-entry open 1000000 -1 -1 index 1"}} +{"id":"tcact2write/ec-207","desc":"corner: opt=plain cmd=w297-frac:actions_add_action_gate_base-time_1.9ns_sched-entry_open_1000000_-1_-1_index_1","cmd":"tc actions add action gate base-time 1.9ns sched-entry open 1000000 -1 -1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w297-frac","json":"0","words":"actions add action gate base-time 1.9ns sched-entry open 1000000 -1 -1 index 1"}} +{"id":"tcact2write/ec-208","desc":"corner: opt=plain cmd=w298:actions_add_action_gate_base-time_-1_sched-entry_open_1000000_-1_-1_index_1","cmd":"tc actions add action gate base-time -1 sched-entry open 1000000 -1 -1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w298","json":"0","words":"actions add action gate base-time -1 sched-entry open 1000000 -1 -1 index 1"}} +{"id":"tcact2write/ec-209","desc":"corner: opt=plain cmd=w299:actions_add_action_gate_priority_-1_flags_0_base-time_0_cycle-time_0_sched-entry_open_1000000_-1_-1_index_1","cmd":"tc actions add action gate priority -1 flags 0 base-time 0 cycle-time 0 sched-entry open 1000000 -1 -1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w299","json":"0","words":"actions add action gate priority -1 flags 0 base-time 0 cycle-time 0 sched-entry open 1000000 -1 -1 index 1"}} +{"id":"tcact2write/ec-210","desc":"corner: opt=plain cmd=w302:actions_add_action_gate_p_2_c_2000000_sched-entry_open_1000000_-1_-1_index_1","cmd":"tc actions add action gate p 2 c 2000000 sched-entry open 1000000 -1 -1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w302","json":"0","words":"actions add action gate p 2 c 2000000 sched-entry open 1000000 -1 -1 index 1"}} +{"id":"tcact2write/ec-211","desc":"corner: opt=plain cmd=w304:actions_add_action_gate_sched-entry_close_1000000_3_8000_index_1","cmd":"tc actions add action gate sched-entry close 1000000 3 8000 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w304","json":"0","words":"actions add action gate sched-entry close 1000000 3 8000 index 1"}} +{"id":"tcact2write/ec-212","desc":"corner: opt=plain cmd=w306:actions_add_action_gate_cycle-time_1000_sched-entry_open_1000000_-1_-1_sched-entry_open_1000000_-1_-1_index_1","cmd":"tc actions add action gate cycle-time 1000 sched-entry open 1000000 -1 -1 sched-entry open 1000000 -1 -1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action gate"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w306","json":"0","words":"actions add action gate cycle-time 1000 sched-entry open 1000000 -1 -1 sched-entry open 1000000 -1 -1 index 1"}} +{"id":"tcact2write/ec-213","desc":"positive: opt=plain cmd=bpf:actions_add_action_bpf_bytecode_'4,40_0_0_12,21_0_1_2048,6_0_0_262144,6_0_0_0'_index_1","cmd":"tc actions add action bpf bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action bpf"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"bpf","json":"0","words":"actions add action bpf bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' index 1"}} +{"id":"tcact2write/ec-214","desc":"positive: opt=plain cmd=bpf:actions_add_action_bpf_bc_'1,6_0_0_0'_index_1","cmd":"tc actions add action bpf bc '1,6 0 0 0' index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action bpf"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"bpf","json":"0","words":"actions add action bpf bc '1,6 0 0 0' index 1"}} +{"id":"tcact2write/ec-215","desc":"positive: opt=plain cmd=bpf:actions_add_action_bpf_run_bytecode_'1,6_0_0_0'_index_1","cmd":"tc actions add action bpf run bytecode '1,6 0 0 0' index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action bpf"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"bpf","json":"0","words":"actions add action bpf run bytecode '1,6 0 0 0' index 1"}} +{"id":"tcact2write/ec-216","desc":"positive: opt=plain cmd=bpf:actions_add_action_bpf_bytecode_'1,6_0_0_0'_drop_index_1","cmd":"tc actions add action bpf bytecode '1,6 0 0 0' drop index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action bpf"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"bpf","json":"0","words":"actions add action bpf bytecode '1,6 0 0 0' drop index 1"}} +{"id":"tcact2write/ec-217","desc":"positive: opt=plain cmd=bpf:actions_add_action_bpf_bytecode_'1,6_0_0_0,'_index_1","cmd":"tc actions add action bpf bytecode '1,6 0 0 0,' index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action bpf"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"bpf","json":"0","words":"actions add action bpf bytecode '1,6 0 0 0,' index 1"}} +{"id":"tcact2write/ec-218","desc":"positive: opt=plain cmd=bpf-file:actions_add_action_bpf_bytecode-file_bpf.txt_index_1","cmd":"tc actions add action bpf bytecode-file bpf.txt index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","printf '%s' '4\n40 0 0 12\n21 0 1 2048\n6 0 0 262144\n6 0 0 0\n' > bpf.txt"],"readback":[{"name":"dump","cmd":"tc actions ls action bpf"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"bpf-file","json":"0","words":"actions add action bpf bytecode-file bpf.txt index 1"}} +{"id":"tcact2write/ec-219","desc":"positive: opt=plain cmd=bpf-file:actions_add_action_bpf_bcf_bpf.txt_index_1","cmd":"tc actions add action bpf bcf bpf.txt index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","printf '%s' '1,6 0 0 0' > bpf.txt"],"readback":[{"name":"dump","cmd":"tc actions ls action bpf"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"bpf-file","json":"0","words":"actions add action bpf bcf bpf.txt index 1"}} +{"id":"tcact2write/ec-220","desc":"positive: opt=plain cmd=bpf-file:actions_add_action_bpf_bytecode-file_bpf.txt_index_1","cmd":"tc actions add action bpf bytecode-file bpf.txt index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","printf '%s' '2,\t6 0 0 0\n\n6 0 0 1\n' > bpf.txt"],"readback":[{"name":"dump","cmd":"tc actions ls action bpf"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"bpf-file","json":"0","words":"actions add action bpf bytecode-file bpf.txt index 1"}} +{"id":"tcact2write/ec-221","desc":"corner: opt=plain cmd=w311-dash:actions_add_action_bpf_bytecode-file_-_index_1","cmd":"tc actions add action bpf bytecode-file - index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","printf '1,6 0 0 0' > ./-"],"readback":[{"name":"dump","cmd":"tc actions ls action bpf"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w311-dash","json":"0","words":"actions add action bpf bytecode-file - index 1"}} +{"id":"tcact2write/ec-222","desc":"boundary: opt=plain cmd=w307-2038:actions_add_action_bpf_bytecode-file_bpf.txt_index_1","cmd":"tc actions add action bpf bytecode-file bpf.txt index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","{ printf '%s\\n' 2038; i=0; while [ $i -lt 2038 ]; do printf '6 0 0 0\\n'; i=$((i+1)); done; } > bpf.txt"],"readback":[{"name":"dump","cmd":"tc actions ls action bpf"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w307-2038","json":"0","words":"actions add action bpf bytecode-file bpf.txt index 1"}} +{"id":"tcact2write/ec-223","desc":"corner: opt=plain cmd=w308:actions_add_action_bpf_bytecode_'65537,6_0_0_0'_index_1","cmd":"tc actions add action bpf bytecode '65537,6 0 0 0' index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action bpf"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w308","json":"0","words":"actions add action bpf bytecode '65537,6 0 0 0' index 1"}} +{"id":"tcact2write/ec-224","desc":"corner: opt=plain cmd=w309:actions_add_action_bpf_bytecode_'1,6_0_0_0xffff'_index_1","cmd":"tc actions add action bpf bytecode '1,6 0 0 0xffff' index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action bpf"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w309","json":"0","words":"actions add action bpf bytecode '1,6 0 0 0xffff' index 1"}} +{"id":"tcact2write/ec-225","desc":"corner: opt=plain cmd=w309-wrap:actions_add_action_bpf_bytecode_'1,65542_256_0_4294967296'_index_1","cmd":"tc actions add action bpf bytecode '1,65542 256 0 4294967296' index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action bpf"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w309-wrap","json":"0","words":"actions add action bpf bytecode '1,65542 256 0 4294967296' index 1"}} +{"id":"tcact2write/ec-226","desc":"corner: opt=plain cmd=w314:actions_add_action_bpf_b_'1,6_0_0_0'_index_1","cmd":"tc actions add action bpf b '1,6 0 0 0' index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc actions ls action bpf"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w314","json":"0","words":"actions add action bpf b '1,6 0 0 0' index 1"}} +{"id":"tcact2write/ec-227","desc":"positive: opt=plain cmd=f-pedit:filter_add_dev_d0_egress_pref_1_protocol_all_handle_1_matchall_action_pedit_munge_offset_12_u32_set_0x1","cmd":"tc filter add dev d0 egress pref 1 protocol all handle 1 matchall action pedit munge offset 12 u32 set 0x1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc -d filter show dev d0 egress"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"f-pedit","json":"0","words":"filter add dev d0 egress pref 1 protocol all handle 1 matchall action pedit munge offset 12 u32 set 0x1"}} +{"id":"tcact2write/ec-228","desc":"positive: opt=plain cmd=f-tunnel_key:filter_add_dev_d0_egress_pref_1_protocol_all_handle_1_matchall_action_tunnel_key_unset","cmd":"tc filter add dev d0 egress pref 1 protocol all handle 1 matchall action tunnel_key unset","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc -d filter show dev d0 egress"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"f-tunnel_key","json":"0","words":"filter add dev d0 egress pref 1 protocol all handle 1 matchall action tunnel_key unset"}} +{"id":"tcact2write/ec-229","desc":"positive: opt=plain cmd=f-ife:filter_add_dev_d0_egress_pref_1_protocol_all_handle_1_matchall_action_ife_decode","cmd":"tc filter add dev d0 egress pref 1 protocol all handle 1 matchall action ife decode","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc -d filter show dev d0 egress"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"f-ife","json":"0","words":"filter add dev d0 egress pref 1 protocol all handle 1 matchall action ife decode"}} +{"id":"tcact2write/ec-230","desc":"positive: opt=plain cmd=f-ct:filter_add_dev_d0_egress_pref_1_protocol_all_handle_1_matchall_action_ct_commit","cmd":"tc filter add dev d0 egress pref 1 protocol all handle 1 matchall action ct commit","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc -d filter show dev d0 egress"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"f-ct","json":"0","words":"filter add dev d0 egress pref 1 protocol all handle 1 matchall action ct commit"}} +{"id":"tcact2write/ec-231","desc":"positive: opt=plain cmd=f-gate:filter_add_dev_d0_egress_pref_1_protocol_all_handle_1_matchall_action_gate_sched-entry_open_1000000_-1_-1","cmd":"tc filter add dev d0 egress pref 1 protocol all handle 1 matchall action gate sched-entry open 1000000 -1 -1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc -d filter show dev d0 egress"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"f-gate","json":"0","words":"filter add dev d0 egress pref 1 protocol all handle 1 matchall action gate sched-entry open 1000000 -1 -1"}} +{"id":"tcact2write/ec-232","desc":"positive: opt=plain cmd=f-bpf:filter_add_dev_d0_egress_pref_1_protocol_all_handle_1_matchall_action_bpf_bytecode_'1,6_0_0_0'","cmd":"tc filter add dev d0 egress pref 1 protocol all handle 1 matchall action bpf bytecode '1,6 0 0 0'","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc -d filter show dev d0 egress"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"f-bpf","json":"0","words":"filter add dev d0 egress pref 1 protocol all handle 1 matchall action bpf bytecode '1,6 0 0 0'"}} +{"id":"tcact2write/ec-233","desc":"positive: opt=plain cmd=f-list:filter_add_dev_d0_egress_pref_1_protocol_all_handle_1_matchall_action_pedit_ex_munge_ip_ttl_add_1_action_ct_commit_zone_3_action_gate_sched-entry_open_1ms_action_tunnel_key_unset_action_ife_decode_action_bpf_bytecode_'1,6_0_0_0'","cmd":"tc filter add dev d0 egress pref 1 protocol all handle 1 matchall action pedit ex munge ip ttl add 1 action ct commit zone 3 action gate sched-entry open 1ms action tunnel_key unset action ife decode action bpf bytecode '1,6 0 0 0'","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc -d filter show dev d0 egress"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"f-list","json":"0","words":"filter add dev d0 egress pref 1 protocol all handle 1 matchall action pedit ex munge ip ttl add 1 action ct commit zone 3 action gate sched-entry open 1ms action tunnel_key unset action ife decode action bpf bytecode '1,6 0 0 0'"}} +{"id":"tcact2write/ec-234","desc":"positive: opt=plain cmd=f-bind:filter_add_dev_d0_egress_pref_1_protocol_all_handle_1_matchall_action_ct_index_1","cmd":"tc filter add dev d0 egress pref 1 protocol all handle 1 matchall action ct index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","tc actions add action ct commit index 1"],"readback":[{"name":"dump","cmd":"tc -d filter show dev d0 egress"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"f-bind","json":"0","words":"filter add dev d0 egress pref 1 protocol all handle 1 matchall action ct index 1"}} +{"id":"tcact2write/ec-235","desc":"corner: opt=plain cmd=w242-bind:filter_add_dev_d0_egress_pref_1_protocol_all_handle_1_matchall_action_pedit_index_1","cmd":"tc filter add dev d0 egress pref 1 protocol all handle 1 matchall action pedit index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","tc actions add action pedit munge offset 12 u32 set 0x1 index 1"],"readback":[{"name":"dump","cmd":"tc -d filter show dev d0 egress"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w242-bind","json":"0","words":"filter add dev d0 egress pref 1 protocol all handle 1 matchall action pedit index 1"}} +{"id":"tcact2write/ec-236","desc":"corner: opt=plain cmd=w305-bind:filter_add_dev_d0_egress_pref_1_protocol_all_handle_1_matchall_action_gate_index_1","cmd":"tc filter add dev d0 egress pref 1 protocol all handle 1 matchall action gate index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","tc actions add action gate sched-entry open 1000000 -1 -1 index 1"],"readback":[{"name":"dump","cmd":"tc -d filter show dev d0 egress"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w305-bind","json":"0","words":"filter add dev d0 egress pref 1 protocol all handle 1 matchall action gate index 1"}} +{"id":"tcact2write/ec-237","desc":"corner: opt=plain cmd=w312-bind:filter_add_dev_d0_egress_pref_1_protocol_all_handle_1_matchall_action_bpf_index_1","cmd":"tc filter add dev d0 egress pref 1 protocol all handle 1 matchall action bpf index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","tc actions add action bpf bytecode '1,6 0 0 0' index 1"],"readback":[{"name":"dump","cmd":"tc -d filter show dev d0 egress"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w312-bind","json":"0","words":"filter add dev d0 egress pref 1 protocol all handle 1 matchall action bpf index 1"}} +{"id":"tcact2write/ec-238","desc":"corner: opt=plain cmd=w248-2:filter_add_dev_d0_egress_pref_1_protocol_all_handle_1_matchall_action_pedit_ex_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_action_pedit_ex_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1","cmd":"tc filter add dev d0 egress pref 1 protocol all handle 1 matchall action pedit ex munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 action pedit ex munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc -d filter show dev d0 egress"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w248-2","json":"0","words":"filter add dev d0 egress pref 1 protocol all handle 1 matchall action pedit ex munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 action pedit ex munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1"}} +{"id":"tcact2write/ec-239","desc":"positive: opt=plain cmd=fb:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_bytecode_'4,40_0_0_12,21_0_1_2048,6_0_0_262144,6_0_0_0'_classid_1:1","cmd":"tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' classid 1:1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc -d filter show dev d0 ingress"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"fb","json":"0","words":"filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' classid 1:1"}} +{"id":"tcact2write/ec-240","desc":"positive: opt=plain cmd=fb:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_bytecode_'1,6_0_0_0'_da_skip_hw","cmd":"tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' da skip_hw","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc -d filter show dev d0 ingress"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"fb","json":"0","words":"filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' da skip_hw"}} +{"id":"tcact2write/ec-241","desc":"positive: opt=plain cmd=fb:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_bytecode_'1,6_0_0_4294967295'_action_gact_pass","cmd":"tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 4294967295' action gact pass","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc -d filter show dev d0 ingress"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"fb","json":"0","words":"filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 4294967295' action gact pass"}} +{"id":"tcact2write/ec-242","desc":"positive: opt=plain cmd=fb:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_bytecode_'1,6_0_0_4294967295'_police_rate_1mbit_burst_10k_drop","cmd":"tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 4294967295' police rate 1mbit burst 10k drop","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc -d filter show dev d0 ingress"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"fb","json":"0","words":"filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 4294967295' police rate 1mbit burst 10k drop"}} +{"id":"tcact2write/ec-243","desc":"positive: opt=plain cmd=fb:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_run_bytecode_'1,6_0_0_0'_flowid_1:2","cmd":"tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf run bytecode '1,6 0 0 0' flowid 1:2","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc -d filter show dev d0 ingress"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"fb","json":"0","words":"filter add dev d0 ingress pref 1 protocol ip handle 1 bpf run bytecode '1,6 0 0 0' flowid 1:2"}} +{"id":"tcact2write/ec-244","desc":"positive: opt=plain cmd=fb:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_bc_'1,6_0_0_0'_direct-action","cmd":"tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bc '1,6 0 0 0' direct-action","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc -d filter show dev d0 ingress"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"fb","json":"0","words":"filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bc '1,6 0 0 0' direct-action"}} +{"id":"tcact2write/ec-245","desc":"positive: opt=plain cmd=fb:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_flowid_1:1_bytecode_'1,6_0_0_0'","cmd":"tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf flowid 1:1 bytecode '1,6 0 0 0'","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc -d filter show dev d0 ingress"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"fb","json":"0","words":"filter add dev d0 ingress pref 1 protocol ip handle 1 bpf flowid 1:1 bytecode '1,6 0 0 0'"}} +{"id":"tcact2write/ec-246","desc":"positive: opt=plain cmd=fb:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_bytecode_'1,6_0_0_0'_action_pedit_ex_munge_ip_ttl_add_1_action_ct_commit","cmd":"tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' action pedit ex munge ip ttl add 1 action ct commit","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc -d filter show dev d0 ingress"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"fb","json":"0","words":"filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' action pedit ex munge ip ttl add 1 action ct commit"}} +{"id":"tcact2write/ec-247","desc":"positive: opt=plain cmd=fb-file:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_bytecode-file_bpf.txt_classid_1:1","cmd":"tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode-file bpf.txt classid 1:1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","printf '%s' '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' > bpf.txt"],"readback":[{"name":"dump","cmd":"tc -d filter show dev d0 ingress"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"fb-file","json":"0","words":"filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode-file bpf.txt classid 1:1"}} +{"id":"tcact2write/ec-248","desc":"positive: opt=plain cmd=fb-v:filter_change_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_bytecode_'1,6_0_0_1'_classid_1:2","cmd":"tc filter change dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 1' classid 1:2","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' classid 1:1"],"readback":[{"name":"dump","cmd":"tc -d filter show dev d0 ingress"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"fb-v","json":"0","words":"filter change dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 1' classid 1:2"}} +{"id":"tcact2write/ec-249","desc":"positive: opt=plain cmd=fb-v:filter_replace_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_bytecode_'1,6_0_0_1'_classid_1:2","cmd":"tc filter replace dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 1' classid 1:2","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' classid 1:1"],"readback":[{"name":"dump","cmd":"tc -d filter show dev d0 ingress"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"fb-v","json":"0","words":"filter replace dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 1' classid 1:2"}} +{"id":"tcact2write/ec-250","desc":"positive: opt=plain cmd=fb-v:filter_replace_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_bytecode_'1,6_0_0_1'","cmd":"tc filter replace dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 1'","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc -d filter show dev d0 ingress"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"fb-v","json":"0","words":"filter replace dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 1'"}} +{"id":"tcact2write/ec-251","desc":"positive: opt=plain cmd=fb-v:filter_delete_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf","cmd":"tc filter delete dev d0 ingress pref 1 protocol ip handle 1 bpf","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' classid 1:1"],"readback":[{"name":"dump","cmd":"tc -d filter show dev d0 ingress"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"fb-v","json":"0","words":"filter delete dev d0 ingress pref 1 protocol ip handle 1 bpf"}} +{"id":"tcact2write/ec-252","desc":"positive: opt=plain cmd=fb-p:filter_add_dev_d1_parent_1:_pref_1_protocol_ip_handle_7_bpf_bytecode_'1,6_0_0_0'_classid_1:2","cmd":"tc filter add dev d1 parent 1: pref 1 protocol ip handle 7 bpf bytecode '1,6 0 0 0' classid 1:2","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc -d filter show dev d1 parent 1:"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"fb-p","json":"0","words":"filter add dev d1 parent 1: pref 1 protocol ip handle 7 bpf bytecode '1,6 0 0 0' classid 1:2"}} +{"id":"tcact2write/ec-253","desc":"corner: opt=plain cmd=w317:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_classid_1:1_bytecode_'1,6_0_0_0'_classid_1:2_da_action_gact_pass","cmd":"tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf classid 1:1 bytecode '1,6 0 0 0' classid 1:2 da action gact pass","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc -d filter show dev d0 ingress"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w317","json":"0","words":"filter add dev d0 ingress pref 1 protocol ip handle 1 bpf classid 1:1 bytecode '1,6 0 0 0' classid 1:2 da action gact pass"}} +{"id":"tcact2write/ec-254","desc":"corner: opt=plain cmd=w318:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_bytecode_'1,6_0_0_0'_s_f_1:1","cmd":"tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' s f 1:1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"readback":[{"name":"dump","cmd":"tc -d filter show dev d0 ingress"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w318","json":"0","words":"filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' s f 1:1"}} +{"id":"tcact2write/ec-255","desc":"corner: opt=plain cmd=w232-batch:batch:eth-colons","cmd":"tc -batch b.txt","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","printf '%s\\n' 'actions add action pedit ex munge eth dst set 02:00:00:00:00:01 index 1' 'actions add action simple sdata x' > b.txt"],"readback":[{"name":"dump","cmd":"tc actions ls action simple"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"batch":"eth-colons","fix":"w232-batch","json":"0","words":"-batch b.txt"}} +{"id":"tcact2write/ec-256","desc":"corner: opt=plain cmd=w265-batch:batch:strtok","cmd":"tc -batch b.txt","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","printf '%s\\n' 'actions add action tunnel_key geneve_opts 0102:80:00880022,0103:81:00a000b0 set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 1 index 1' 'actions add action simple sdata x' > b.txt"],"readback":[{"name":"dump","cmd":"tc actions ls action simple"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"batch":"strtok","fix":"w265-batch","json":"0","words":"-batch b.txt"}} +{"id":"tcact2write/ec-257","desc":"corner: opt=plain cmd=w291-batch:batch:slash","cmd":"tc -batch b.txt","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","printf '%s\\n' 'actions add action ct commit mark 0x1/0xff label 01/ff index 1' 'actions add action simple sdata x' > b.txt"],"readback":[{"name":"dump","cmd":"tc actions ls action simple"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"batch":"slash","fix":"w291-batch","json":"0","words":"-batch b.txt"}} +{"id":"tcact2write/ec-258","desc":"positive: opt=plain cmd=bpf-batch:batch:file","cmd":"tc -batch b.txt","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","printf '%s' '1,6 0 0 0' > bpf.txt","printf '%s\\n' 'actions add action bpf bytecode-file bpf.txt index 1' 'filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode-file bpf.txt action bpf index 1' > b.txt"],"readback":[{"name":"dump","cmd":"tc -d filter show dev d0 ingress"}],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"batch":"file","fix":"bpf-batch","json":"0","words":"-batch b.txt"}} +{"id":"tcact2write/ng-001","desc":"negative: opt=plain cmd=ng:w191-ped:actions_add_action_pedit: a bare pedit: NEXT_ARG (W246)","cmd":"tc actions add action pedit","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w191-ped","json":"0","words":"actions add action pedit"}} +{"id":"tcact2write/ng-002","desc":"negative: opt=plain cmd=ng:w216:actions_add_action_pedit_munge_offset_12_u32_at_0_offmask_f_shift_0_set_1_index_1: the man page's at form: Bad pedit construct (12) (W216)","cmd":"tc actions add action pedit munge offset 12 u32 at 0 offmask f shift 0 set 1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w216","json":"0","words":"actions add action pedit munge offset 12 u32 at 0 offmask f shift 0 set 1 index 1"}} +{"id":"tcact2write/ng-003","desc":"negative: opt=plain cmd=ng:w218:actions_add_action_pedit_munge_offset_2_u32_set_1: a failed pack at the end of the line: Bad pedit construct ((null)) (W218)","cmd":"tc actions add action pedit munge offset 2 u32 set 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w218","json":"0","words":"actions add action pedit munge offset 2 u32 set 1"}} +{"id":"tcact2write/ng-004","desc":"negative: opt=plain cmd=ng:w218-idx:actions_add_action_pedit_munge_offset_2_u32_set_1_index_1: the same with index after: (index) (W218)","cmd":"tc actions add action pedit munge offset 2 u32 set 1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w218-idx","json":"0","words":"actions add action pedit munge offset 2 u32 set 1 index 1"}} +{"id":"tcact2write/ng-005","desc":"negative: opt=plain cmd=ng:w219:actions_add_action_pedit_munge_ip_foo_set_1_index_1: bad pedit parsing, then Bad pedit construct (ip) (W219)","cmd":"tc actions add action pedit munge ip foo set 1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w219","json":"0","words":"actions add action pedit munge ip foo set 1 index 1"}} +{"id":"tcact2write/ng-006","desc":"negative: opt=plain cmd=ng:w220-129:actions_add_action_pedit_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_index_1: key 129: pack_key returns -1 with no message of its own (W220)","cmd":"tc actions add action pedit munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w220-129","json":"0","words":"actions add action pedit munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 index 1"}} +{"id":"tcact2write/ng-007","desc":"negative: opt=plain cmd=ng:w221:actions_add_action_pedit_munge_ip_ttl_set_256_index_1: pack_key8 bad value (val 100 mask 0 (W221)","cmd":"tc actions add action pedit munge ip ttl set 256 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w221","json":"0","words":"actions add action pedit munge ip ttl set 256 index 1"}} +{"id":"tcact2write/ng-008","desc":"negative: opt=plain cmd=ng:w221-16:actions_add_action_pedit_munge_ip_dport_set_65536_index_1: pack_key16 bad value (W221)","cmd":"tc actions add action pedit munge ip dport set 65536 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w221-16","json":"0","words":"actions add action pedit munge ip dport set 65536 index 1"}} +{"id":"tcact2write/ng-009","desc":"negative: opt=plain cmd=ng:w222:actions_add_action_pedit_ex_munge_eth_dst_preserve_index_1: retain is not supported for fields longer the 32 bits (W222)","cmd":"tc actions add action pedit ex munge eth dst preserve index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w222","json":"0","words":"actions add action pedit ex munge eth dst preserve index 1"}} +{"id":"tcact2write/ng-010","desc":"negative: opt=plain cmd=ng:w222-ip6:actions_add_action_pedit_ex_munge_ip6_src_set_::1_retain_0xff_index_1: the same for ip6 (W222)","cmd":"tc actions add action pedit ex munge ip6 src set ::1 retain 0xff index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w222-ip6","json":"0","words":"actions add action pedit ex munge ip6 src set ::1 retain 0xff index 1"}} +{"id":"tcact2write/ng-011","desc":"negative: opt=plain cmd=ng:w225:actions_add_action_pedit_munge_ip_ttl_set_5_r: r is retain: NEXT_ARG (W225)","cmd":"tc actions add action pedit munge ip ttl set 5 r","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w225","json":"0","words":"actions add action pedit munge ip ttl set 5 r"}} +{"id":"tcact2write/ng-012","desc":"negative: opt=plain cmd=ng:w226:actions_add_action_pedit_munge_ip_ttl_set_5_p: p is pedit: NEXT_ARG (W226)","cmd":"tc actions add action pedit munge ip ttl set 5 p","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w226","json":"0","words":"actions add action pedit munge ip ttl set 5 p"}} +{"id":"tcact2write/ng-013","desc":"negative: opt=plain cmd=ng:w228:actions_add_action_pedit_help: the usage, exit(-1) (W228)","cmd":"tc actions add action pedit help","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w228","json":"0","words":"actions add action pedit help"}} +{"id":"tcact2write/ng-014","desc":"negative: opt=plain cmd=ng:w229:actions_add_action_pedit_munge_ip_ttl_add_1_index_1: Non extended mode. only 'set' command is supported (W229)","cmd":"tc actions add action pedit munge ip ttl add 1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w229","json":"0","words":"actions add action pedit munge ip ttl add 1 index 1"}} +{"id":"tcact2write/ng-015","desc":"negative: opt=plain cmd=ng:w229-dec:actions_add_action_pedit_munge_ip_ttl_decrement_index_1: decrement without ex (W229)","cmd":"tc actions add action pedit munge ip ttl decrement index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w229-dec","json":"0","words":"actions add action pedit munge ip ttl decrement index 1"}} +{"id":"tcact2write/ng-016","desc":"negative: opt=plain cmd=ng:w230:actions_add_action_pedit_munge_foo_bar_index_1: Unknown action hence option \"bar\" is unparsable (W230)","cmd":"tc actions add action pedit munge foo bar index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w230","json":"0","words":"actions add action pedit munge foo bar index 1"}} +{"id":"tcact2write/ng-017","desc":"negative: opt=plain cmd=ng:w230-end:actions_add_action_pedit_munge_foo: an unknown kind at the end of the line: NEXT_ARG (W230)","cmd":"tc actions add action pedit munge foo","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w230-end","json":"0","words":"actions add action pedit munge foo"}} +{"id":"tcact2write/ng-018","desc":"negative: opt=plain cmd=ng:w231:actions_add_action_pedit_munge_abcdefghijklmnopq_bar_index_1: a 17-byte kind: k[16] unterminated (W231)","cmd":"tc actions add action pedit munge abcdefghijklmnopq bar index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w231","json":"0","words":"actions add action pedit munge abcdefghijklmnopq bar index 1"}} +{"id":"tcact2write/ng-019","desc":"negative: opt=plain cmd=ng:w232:actions_add_action_pedit_ex_munge_eth_dst_set_aa_index_1: one MAC group (W232)","cmd":"tc actions add action pedit ex munge eth dst set aa index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w232","json":"0","words":"actions add action pedit ex munge eth dst set aa index 1"}} +{"id":"tcact2write/ng-020","desc":"negative: opt=plain cmd=ng:w232-p4:actions_add_action_pedit_ex_munge_eth_dst_set_1.2.3.4_index_1: a dotted MAC is 4 bytes (W232)","cmd":"tc actions add action pedit ex munge eth dst set 1.2.3.4 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w232-p4","json":"0","words":"actions add action pedit ex munge eth dst set 1.2.3.4 index 1"}} +{"id":"tcact2write/ng-021","desc":"negative: opt=plain cmd=ng:w232-long:actions_add_action_pedit_ex_munge_eth_dst_set_02:00:00:00:00:01:02_index_1: seven MAC groups (W232)","cmd":"tc actions add action pedit ex munge eth dst set 02:00:00:00:00:01:02 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w232-long","json":"0","words":"actions add action pedit ex munge eth dst set 02:00:00:00:00:01:02 index 1"}} +{"id":"tcact2write/ng-022","desc":"negative: opt=plain cmd=ng:w232-bad:actions_add_action_pedit_ex_munge_eth_dst_set_zz:00:00:00:00:01_index_1: a bad group (W232)","cmd":"tc actions add action pedit ex munge eth dst set zz:00:00:00:00:01 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w232-bad","json":"0","words":"actions add action pedit ex munge eth dst set zz:00:00:00:00:01 index 1"}} +{"id":"tcact2write/ng-023","desc":"negative: opt=plain cmd=ng:w239:actions_add_action_pedit_munge_icmp_type_set_1_index_1: icmp always fails (W239)","cmd":"tc actions add action pedit munge icmp type set 1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w239","json":"0","words":"actions add action pedit munge icmp type set 1 index 1"}} +{"id":"tcact2write/ng-024","desc":"negative: opt=plain cmd=ng:w240-ip6:actions_add_action_pedit_munge_ip6_src_set_::1_index_1: ip6 without ex (W240)","cmd":"tc actions add action pedit munge ip6 src set ::1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w240-ip6","json":"0","words":"actions add action pedit munge ip6 src set ::1 index 1"}} +{"id":"tcact2write/ng-025","desc":"negative: opt=plain cmd=ng:w240-tcp:actions_add_action_pedit_munge_tcp_dport_set_80_index_1: tcp without ex (W240)","cmd":"tc actions add action pedit munge tcp dport set 80 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w240-tcp","json":"0","words":"actions add action pedit munge tcp dport set 80 index 1"}} +{"id":"tcact2write/ng-026","desc":"negative: opt=plain cmd=ng:w240-udp:actions_add_action_pedit_munge_udp_sport_set_53_index_1: udp without ex (W240)","cmd":"tc actions add action pedit munge udp sport set 53 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w240-udp","json":"0","words":"actions add action pedit munge udp sport set 53 index 1"}} +{"id":"tcact2write/ng-027","desc":"negative: opt=plain cmd=ng:w240-eth:actions_add_action_pedit_munge_eth_type_set_0x800_index_1: eth without ex (W240)","cmd":"tc actions add action pedit munge eth type set 0x800 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w240-eth","json":"0","words":"actions add action pedit munge eth type set 0x800 index 1"}} +{"id":"tcact2write/ng-028","desc":"negative: opt=plain cmd=ng:w240-sport:actions_add_action_pedit_ex_munge_ip_sport_set_1_index_1: ip sport with ex (W240)","cmd":"tc actions add action pedit ex munge ip sport set 1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w240-sport","json":"0","words":"actions add action pedit ex munge ip sport set 1 index 1"}} +{"id":"tcact2write/ng-029","desc":"negative: opt=plain cmd=ng:w240-icmp:actions_add_action_pedit_ex_munge_ip_icmp_type_set_1_index_1: ip icmp_type with ex (W240)","cmd":"tc actions add action pedit ex munge ip icmp_type set 1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w240-icmp","json":"0","words":"actions add action pedit ex munge ip icmp_type set 1 index 1"}} +{"id":"tcact2write/ng-030","desc":"negative: opt=plain cmd=ng:w241:actions_add_action_pedit_pedit_ex_munge_ip_ttl_set_1_index_1: 'ex' must be before first 'munge' (W241)","cmd":"tc actions add action pedit pedit ex munge ip ttl set 1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w241","json":"0","words":"actions add action pedit pedit ex munge ip ttl set 1 index 1"}} +{"id":"tcact2write/ng-031","desc":"negative: opt=plain cmd=ng:w242:actions_add_action_pedit_pipe_index_1: no keys on a create (W242)","cmd":"tc actions add action pedit pipe index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"errno":"EINVAL","refused_by":"kernel"},"axes":{"fix":"w242","json":"0","words":"actions add action pedit pipe index 1"}} +{"id":"tcact2write/ng-032","desc":"negative: opt=plain cmd=ng:w242-ex:actions_add_action_pedit_ex_pipe_index_1: no keys with ex: an empty KEYS_EX (W242)","cmd":"tc actions add action pedit ex pipe index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"errno":"EINVAL","refused_by":"kernel"},"axes":{"fix":"w242-ex","json":"0","words":"actions add action pedit ex pipe index 1"}} +{"id":"tcact2write/ng-033","desc":"negative: opt=plain cmd=ng:w244:actions_add_action_pedit_munge_ip_ttl_set_1_goto_chain_x_index_1: Illegal \"chain index\" twice (W244)","cmd":"tc actions add action pedit munge ip ttl set 1 goto chain x index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w244","json":"0","words":"actions add action pedit munge ip ttl set 1 goto chain x index 1"}} +{"id":"tcact2write/ng-034","desc":"negative: opt=plain cmd=ng:w245:actions_add_action_pedit_munge_ip_ttl_set_1_foo_index_1: an unknown word becomes the next kind (W245)","cmd":"tc actions add action pedit munge ip ttl set 1 foo index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w245","json":"0","words":"actions add action pedit munge ip ttl set 1 foo index 1"}} +{"id":"tcact2write/ng-035","desc":"negative: opt=plain cmd=ng:w246:actions_add_action_pedit_munge_ip_src: a bare ip src: -1, Bad pedit construct (W246)","cmd":"tc actions add action pedit munge ip src","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w246","json":"0","words":"actions add action pedit munge ip src"}} +{"id":"tcact2write/ng-036","desc":"negative: opt=plain cmd=ng:w246-set:actions_add_action_pedit_munge_ip_src_set: set with no value: NEXT_ARG (W246)","cmd":"tc actions add action pedit munge ip src set","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w246-set","json":"0","words":"actions add action pedit munge ip src set"}} +{"id":"tcact2write/ng-037","desc":"negative: opt=plain cmd=ng:w247:actions_add_action_pedit_munge_ip_ttl_set_1_index_0x5: Pedit: Illegal \"index\" (W247)","cmd":"tc actions add action pedit munge ip ttl set 1 index 0x5","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w247","json":"0","words":"actions add action pedit munge ip ttl set 1 index 0x5"}} +{"id":"tcact2write/ng-038","desc":"negative: opt=plain cmd=ng:ped-off:actions_add_action_pedit_munge_offset_13_u32_set_1_index_1: pack_key32: 32 bit offsets must begin in 32bit boundaries","cmd":"tc actions add action pedit munge offset 13 u32 set 1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"ped-off","json":"0","words":"actions add action pedit munge offset 13 u32 set 1 index 1"}} +{"id":"tcact2write/ng-039","desc":"negative: opt=plain cmd=ng:ped-off16:actions_add_action_pedit_munge_offset_3_u16_set_1_index_1: pack_key16 bad index value 3","cmd":"tc actions add action pedit munge offset 3 u16 set 1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"ped-off16","json":"0","words":"actions add action pedit munge offset 3 u16 set 1 index 1"}} +{"id":"tcact2write/ng-040","desc":"negative: opt=plain cmd=ng:ped-offzz:actions_add_action_pedit_munge_offset_zz_u32_set_1_index_1: an unparsable offset: Bad pedit construct (zz)","cmd":"tc actions add action pedit munge offset zz u32 set 1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"ped-offzz","json":"0","words":"actions add action pedit munge offset zz u32 set 1 index 1"}} +{"id":"tcact2write/ng-041","desc":"negative: opt=plain cmd=ng:ped-u64:actions_add_action_pedit_munge_offset_12_u64_set_1_index_1: no such width","cmd":"tc actions add action pedit munge offset 12 u64 set 1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"ped-u64","json":"0","words":"actions add action pedit munge offset 12 u64 set 1 index 1"}} +{"id":"tcact2write/ng-042","desc":"negative: opt=plain cmd=ng:ped-dec:actions_add_action_pedit_ex_munge_ip_tos_decrement_index_1: decrement command is not supported for this field","cmd":"tc actions add action pedit ex munge ip tos decrement index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"ped-dec","json":"0","words":"actions add action pedit ex munge ip tos decrement index 1"}} +{"id":"tcact2write/ng-043","desc":"negative: opt=plain cmd=ng:ped-cmd:actions_add_action_pedit_munge_offset_12_u32_bogus_index_1: no such command","cmd":"tc actions add action pedit munge offset 12 u32 bogus index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"ped-cmd","json":"0","words":"actions add action pedit munge offset 12 u32 bogus index 1"}} +{"id":"tcact2write/ng-044","desc":"negative: opt=plain cmd=ng:ped-nomunge:actions_add_action_pedit_offset_12_u32_set_1_index_1: offset is the next kind after an empty pedit","cmd":"tc actions add action pedit offset 12 u32 set 1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"ped-nomunge","json":"0","words":"actions add action pedit offset 12 u32 set 1 index 1"}} +{"id":"tcact2write/ng-045","desc":"negative: opt=plain cmd=ng:w250:actions_add_action_tunnel_key_set_src_ip_bogus_dst_ip_10.0.0.2_id_1_index_1: get_addr's message and exit(1); Illegal \"src_ip\" can't be reached (W250)","cmd":"tc actions add action tunnel_key set src_ip bogus dst_ip 10.0.0.2 id 1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":1,"refused_by":"iproute2"},"axes":{"fix":"w250","json":"0","words":"actions add action tunnel_key set src_ip bogus dst_ip 10.0.0.2 id 1 index 1"}} +{"id":"tcact2write/ng-046","desc":"negative: opt=plain cmd=ng:w251:actions_add_action_tunnel_key_set_src_ip_any_dst_ip_10.0.0.2_id_1_index_1: a 0-byte IPV6_SRC (W251)","cmd":"tc actions add action tunnel_key set src_ip any dst_ip 10.0.0.2 id 1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"errno":"ERANGE","refused_by":"kernel"},"axes":{"fix":"w251","json":"0","words":"actions add action tunnel_key set src_ip any dst_ip 10.0.0.2 id 1 index 1"}} +{"id":"tcact2write/ng-047","desc":"negative: opt=plain cmd=ng:w252:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_2001:db8::2_id_1_index_1: mixed families (W252)","cmd":"tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 2001:db8::2 id 1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"errno":"EINVAL","refused_by":"kernel"},"axes":{"fix":"w252","json":"0","words":"actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 2001:db8::2 id 1 index 1"}} +{"id":"tcact2write/ng-048","desc":"negative: opt=plain cmd=ng:w253:actions_add_action_tunnel_key_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_1_index_1: t_action 0: Unknown tunnel key action (W253)","cmd":"tc actions add action tunnel_key src_ip 10.0.0.1 dst_ip 10.0.0.2 id 1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"errno":"EINVAL","refused_by":"kernel"},"axes":{"fix":"w253","json":"0","words":"actions add action tunnel_key src_ip 10.0.0.1 dst_ip 10.0.0.2 id 1 index 1"}} +{"id":"tcact2write/ng-049","desc":"negative: opt=plain cmd=ng:w254:actions_add_action_tunnel_key: a bare tunnel_key: NEXT_ARG (W254)","cmd":"tc actions add action tunnel_key","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w254","json":"0","words":"actions add action tunnel_key"}} +{"id":"tcact2write/ng-050","desc":"negative: opt=plain cmd=ng:w256-id:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_0x7_index_1: Illegal \"id\" (W256)","cmd":"tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 0x7 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w256-id","json":"0","words":"actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 0x7 index 1"}} +{"id":"tcact2write/ng-051","desc":"negative: opt=plain cmd=ng:w256-port:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_dst_port_0x12b5_index_1: Illegal \"dst port\" (W256)","cmd":"tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 dst_port 0x12b5 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w256-port","json":"0","words":"actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 dst_port 0x12b5 index 1"}} +{"id":"tcact2write/ng-052","desc":"negative: opt=plain cmd=ng:w256-index:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_index_0x1: tunnel_key: Illegal \"index\" (W256)","cmd":"tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 index 0x1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w256-index","json":"0","words":"actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 index 0x1"}} +{"id":"tcact2write/ng-053","desc":"negative: opt=plain cmd=ng:w258:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_geneve_opts_0102::01020304_index_1: strtok merges the empty field: Illegal \"geneve_opts\" (W258)","cmd":"tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts 0102::01020304 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w258","json":"0","words":"actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts 0102::01020304 index 1"}} +{"id":"tcact2write/ng-054","desc":"negative: opt=plain cmd=ng:w258-nodata:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_geneve_opts_0102:80_index_1: no DATA (W258)","cmd":"tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts 0102:80 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"errno":"EINVAL","refused_by":"kernel"},"axes":{"fix":"w258-nodata","json":"0","words":"actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts 0102:80 index 1"}} +{"id":"tcact2write/ng-055","desc":"negative: opt=plain cmd=ng:w259-1:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_geneve_opts_0102:80:0_index_1: 1 hex char is 0 bytes of DATA: less than 4 bytes long (W259)","cmd":"tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts 0102:80:0 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"errno":"ERANGE","refused_by":"kernel"},"axes":{"fix":"w259-1","json":"0","words":"actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts 0102:80:0 index 1"}} +{"id":"tcact2write/ng-056","desc":"negative: opt=plain cmd=ng:w259-7:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_geneve_opts_0102:80:0011223_index_1: 7 hex chars are 3 bytes: the odd nibble is dropped (W259)","cmd":"tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts 0102:80:0011223 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"errno":"ERANGE","refused_by":"kernel"},"axes":{"fix":"w259-7","json":"0","words":"actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts 0102:80:0011223 index 1"}} +{"id":"tcact2write/ng-057","desc":"negative: opt=plain cmd=ng:w261:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_erspan_opts_2::1:16_index_1: strtok shifts the fields: Missing tunnel key erspan option dir or hwid (W261)","cmd":"tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 erspan_opts 2::1:16 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"errno":"EINVAL","refused_by":"kernel"},"axes":{"fix":"w261","json":"0","words":"actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 erspan_opts 2::1:16 index 1"}} +{"id":"tcact2write/ng-058","desc":"negative: opt=plain cmd=ng:w260:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_geneve_opts_''_index_1: an empty ENC_OPTS (W260)","cmd":"tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts '' index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"errno":"EINVAL","refused_by":"kernel"},"axes":{"fix":"w260","json":"0","words":"actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts '' index 1"}} +{"id":"tcact2write/ng-059","desc":"negative: opt=plain cmd=ng:w266:actions_add_action_tunnel_key_set_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_index_1: unexpected \"set\" - action already specified (W266)","cmd":"tc actions add action tunnel_key set set src_ip 10.0.0.1 dst_ip 10.0.0.2 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w266","json":"0","words":"actions add action tunnel_key set set src_ip 10.0.0.1 dst_ip 10.0.0.2 index 1"}} +{"id":"tcact2write/ng-060","desc":"negative: opt=plain cmd=ng:tk-noaddr:actions_add_action_tunnel_key_set_id_1_index_1: set needs tunnel_key parameters","cmd":"tc actions add action tunnel_key set id 1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"tk-noaddr","json":"0","words":"actions add action tunnel_key set id 1 index 1"}} +{"id":"tcact2write/ng-061","desc":"negative: opt=plain cmd=ng:tk-tos:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_tos_256_index_1: Illegal \"tos\"","cmd":"tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 tos 256 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"tk-tos","json":"0","words":"actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 tos 256 index 1"}} +{"id":"tcact2write/ng-062","desc":"negative: opt=plain cmd=ng:tk-vx:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_vxlan_opts_zz_index_1: Illegal \"vxlan_opts\"","cmd":"tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 vxlan_opts zz index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"tk-vx","json":"0","words":"actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 vxlan_opts zz index 1"}} +{"id":"tcact2write/ng-063","desc":"negative: opt=plain cmd=ng:tk-er:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_erspan_opts_1:2:3:4:5_index_1: Illegal \"erspan_opts\"","cmd":"tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 erspan_opts 1:2:3:4:5 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"tk-er","json":"0","words":"actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 erspan_opts 1:2:3:4:5 index 1"}} +{"id":"tcact2write/ng-064","desc":"negative: opt=plain cmd=ng:tk-help:actions_add_action_tunnel_key_help: the usage, exit(-1)","cmd":"tc actions add action tunnel_key help","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"tk-help","json":"0","words":"actions add action tunnel_key help"}} +{"id":"tcact2write/ng-065","desc":"negative: opt=plain cmd=ng:tk-tail:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id: id with no value: NEXT_ARG","cmd":"tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"tk-tail","json":"0","words":"actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id"}} +{"id":"tcact2write/ng-066","desc":"negative: opt=plain cmd=ng:w268:actions_add_action_ife_pipe: IFE requires decode/encode specified, usage, exit(-1) (W268)","cmd":"tc actions add action ife pipe","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w268","json":"0","words":"actions add action ife pipe"}} +{"id":"tcact2write/ng-067","desc":"negative: opt=plain cmd=ng:w269-end:actions_add_action_ife_decode_ife: ife at the end of the line: NEXT_ARG (W269)","cmd":"tc actions add action ife decode ife","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w269-end","json":"0","words":"actions add action ife decode ife"}} +{"id":"tcact2write/ng-068","desc":"negative: opt=plain cmd=ng:w191-ife:actions_add_action_ife: a bare ife (W269)","cmd":"tc actions add action ife","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w191-ife","json":"0","words":"actions add action ife"}} +{"id":"tcact2write/ng-069","desc":"negative: opt=plain cmd=ng:ife-allow:actions_add_action_ife_encode_allow_foo_index_1: Illegal meta define, exit(-1)","cmd":"tc actions add action ife encode allow foo index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"ife-allow","json":"0","words":"actions add action ife encode allow foo index 1"}} +{"id":"tcact2write/ng-070","desc":"negative: opt=plain cmd=ng:ife-use:actions_add_action_ife_encode_use_mark_zz_index_1: ife mark val is invalid","cmd":"tc actions add action ife encode use mark zz index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"ife-use","json":"0","words":"actions add action ife encode use mark zz index 1"}} +{"id":"tcact2write/ng-071","desc":"negative: opt=plain cmd=ng:ife-use-kind:actions_add_action_ife_encode_use_foo_1_index_1: Illegal meta use type","cmd":"tc actions add action ife encode use foo 1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"ife-use-kind","json":"0","words":"actions add action ife encode use foo 1 index 1"}} +{"id":"tcact2write/ng-072","desc":"negative: opt=plain cmd=ng:ife-tcindex:actions_add_action_ife_encode_use_tcindex_65536_index_1: ife tcindex val is invalid","cmd":"tc actions add action ife encode use tcindex 65536 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"ife-tcindex","json":"0","words":"actions add action ife encode use tcindex 65536 index 1"}} +{"id":"tcact2write/ng-073","desc":"negative: opt=plain cmd=ng:ife-type:actions_add_action_ife_encode_type_zz_index_1: ife type is invalid","cmd":"tc actions add action ife encode type zz index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"ife-type","json":"0","words":"actions add action ife encode type zz index 1"}} +{"id":"tcact2write/ng-074","desc":"negative: opt=plain cmd=ng:ife-mac:actions_add_action_ife_encode_dst_zz_index_1: Invalid mac address","cmd":"tc actions add action ife encode dst zz index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"ife-mac","json":"0","words":"actions add action ife encode dst zz index 1"}} +{"id":"tcact2write/ng-075","desc":"negative: opt=plain cmd=ng:ife-index:actions_add_action_ife_encode_allow_mark_index_zz: ife: Illegal \"index\"","cmd":"tc actions add action ife encode allow mark index zz","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"ife-index","json":"0","words":"actions add action ife encode allow mark index zz"}} +{"id":"tcact2write/ng-076","desc":"negative: opt=plain cmd=ng:ife-help:actions_add_action_ife_help: the usage, exit(-1)","cmd":"tc actions add action ife help","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"ife-help","json":"0","words":"actions add action ife help"}} +{"id":"tcact2write/ng-077","desc":"negative: opt=plain cmd=ng:w276:actions_add_action_ct_commit_nat_src_addr_1.1.1.1: nat's range as the last words: NEXT_ARG (W276)","cmd":"tc actions add action ct commit nat src addr 1.1.1.1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w276","json":"0","words":"actions add action ct commit nat src addr 1.1.1.1"}} +{"id":"tcact2write/ng-078","desc":"negative: opt=plain cmd=ng:w277:actions_add_action_ct_nat: nat as the last word: NEXT_ARG (W277)","cmd":"tc actions add action ct nat","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w277","json":"0","words":"actions add action ct nat"}} +{"id":"tcact2write/ng-079","desc":"negative: opt=plain cmd=ng:w278:actions_add_action_ct_commit_nat_src_foo_index_1: no addr: the usage, exit(-1) (W278)","cmd":"tc actions add action ct commit nat src foo index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w278","json":"0","words":"actions add action ct commit nat src foo index 1"}} +{"id":"tcact2write/ng-080","desc":"negative: opt=plain cmd=ng:w279:actions_add_action_ct_commit_nat_src_addr_bogus_index_1: get_addr's message, exit(1) (W279)","cmd":"tc actions add action ct commit nat src addr bogus index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":1,"refused_by":"iproute2"},"axes":{"fix":"w279","json":"0","words":"actions add action ct commit nat src addr bogus index 1"}} +{"id":"tcact2write/ng-081","desc":"negative: opt=plain cmd=ng:w279-fam:actions_add_action_ct_commit_nat_src_addr_10.0.0.1-2001:db8::1_index_1: the second address takes the first's family (W279)","cmd":"tc actions add action ct commit nat src addr 10.0.0.1-2001:db8::1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":1,"refused_by":"iproute2"},"axes":{"fix":"w279-fam","json":"0","words":"actions add action ct commit nat src addr 10.0.0.1-2001:db8::1 index 1"}} +{"id":"tcact2write/ng-082","desc":"negative: opt=plain cmd=ng:w281-any:actions_add_action_ct_commit_nat_src_addr_any_index_1: a 0-byte IPV6_MIN (W281)","cmd":"tc actions add action ct commit nat src addr any index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"errno":"ERANGE","refused_by":"kernel"},"axes":{"fix":"w281-any","json":"0","words":"actions add action ct commit nat src addr any index 1"}} +{"id":"tcact2write/ng-083","desc":"negative: opt=plain cmd=ng:w282:actions_add_action_ct_commit_nat_src_addr_10.0.0.1_port_80-_index_1: ct: Illegal nat port range (W282)","cmd":"tc actions add action ct commit nat src addr 10.0.0.1 port 80- index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w282","json":"0","words":"actions add action ct commit nat src addr 10.0.0.1 port 80- index 1"}} +{"id":"tcact2write/ng-084","desc":"negative: opt=plain cmd=ng:w282-hex:actions_add_action_ct_commit_nat_src_addr_10.0.0.1_port_0x50_index_1: ports are base 10 (W282)","cmd":"tc actions add action ct commit nat src addr 10.0.0.1 port 0x50 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w282-hex","json":"0","words":"actions add action ct commit nat src addr 10.0.0.1 port 0x50 index 1"}} +{"id":"tcact2write/ng-085","desc":"negative: opt=plain cmd=ng:w283:actions_add_action_ct_commit_helper_ipv4-udp-netbios-ns_index_1: %[^-] keeps 3 fields: netbios, no such helper (W283)","cmd":"tc actions add action ct commit helper ipv4-udp-netbios-ns index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"errno":"EINVAL","refused_by":"kernel"},"axes":{"fix":"w283","json":"0","words":"actions add action ct commit helper ipv4-udp-netbios-ns index 1"}} +{"id":"tcact2write/ng-086","desc":"negative: opt=plain cmd=ng:w283-long:actions_add_action_ct_commit_helper_ipv4-tcp-abcdefghijklmnopqrstuv_index_1: a 22-byte name, past the kernel's 16 (W283)","cmd":"tc actions add action ct commit helper ipv4-tcp-abcdefghijklmnopqrstuv index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"errno":"ERANGE","refused_by":"kernel"},"axes":{"fix":"w283-long","json":"0","words":"actions add action ct commit helper ipv4-tcp-abcdefghijklmnopqrstuv index 1"}} +{"id":"tcact2write/ng-087","desc":"negative: opt=plain cmd=ng:w284-hex:actions_add_action_ct_commit_helper_ipv4-0x6-ftp_index_1: ct: Illegal \"helper\" (W284)","cmd":"tc actions add action ct commit helper ipv4-0x6-ftp index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w284-hex","json":"0","words":"actions add action ct commit helper ipv4-0x6-ftp index 1"}} +{"id":"tcact2write/ng-088","desc":"negative: opt=plain cmd=ng:w285:actions_add_action_ct_commit_label_0123456789abcdef0123456789abcdef01_index_1: label too long, exit(-1) (W285)","cmd":"tc actions add action ct commit label 0123456789abcdef0123456789abcdef01 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w285","json":"0","words":"actions add action ct commit label 0123456789abcdef0123456789abcdef01 index 1"}} +{"id":"tcact2write/ng-089","desc":"negative: opt=plain cmd=ng:w285-mask:actions_add_action_ct_commit_label_01/0123456789abcdef0123456789abcdef01_index_1: mask too long, named as the label (W285)","cmd":"tc actions add action ct commit label 01/0123456789abcdef0123456789abcdef01 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w285-mask","json":"0","words":"actions add action ct commit label 01/0123456789abcdef0123456789abcdef01 index 1"}} +{"id":"tcact2write/ng-090","desc":"negative: opt=plain cmd=ng:w286:actions_add_action_ct_commit_label_zz_index_1: ct: labels must be a hex string, then a blank line (W286)","cmd":"tc actions add action ct commit label zz index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w286","json":"0","words":"actions add action ct commit label zz index 1"}} +{"id":"tcact2write/ng-091","desc":"negative: opt=plain cmd=ng:w288:actions_add_action_ct_commit_pipe_index_5: index after control is the next kind: Failed to load TC action module (W288)","cmd":"tc actions add action ct commit pipe index 5","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"errno":"ENOENT","refused_by":"kernel"},"axes":{"fix":"w288","json":"0","words":"actions add action ct commit pipe index 5"}} +{"id":"tcact2write/ng-092","desc":"negative: opt=plain cmd=ng:w290-mask:actions_add_action_ct_zone_5/1_index_1: zone takes no mask: ct: Illegal \"zone\" (W290)","cmd":"tc actions add action ct zone 5/1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w290-mask","json":"0","words":"actions add action ct zone 5/1 index 1"}} +{"id":"tcact2write/ng-093","desc":"negative: opt=plain cmd=ng:w292-h:actions_add_action_ct_h: h is help: the usage, exit(-1) (W292)","cmd":"tc actions add action ct h","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w292-h","json":"0","words":"actions add action ct h"}} +{"id":"tcact2write/ng-094","desc":"negative: opt=plain cmd=ng:ct-clear:actions_add_action_ct_clear_commit_index_1: ct: clear can only be used alone","cmd":"tc actions add action ct clear commit index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"ct-clear","json":"0","words":"actions add action ct clear commit index 1"}} +{"id":"tcact2write/ng-095","desc":"negative: opt=plain cmd=ng:ct-both:actions_add_action_ct_commit_nat_src_addr_1.1.1.1_nat_dst_addr_2.2.2.2_index_1: ct: src and dst nat can't be used together","cmd":"tc actions add action ct commit nat src addr 1.1.1.1 nat dst addr 2.2.2.2 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"ct-both","json":"0","words":"actions add action ct commit nat src addr 1.1.1.1 nat dst addr 2.2.2.2 index 1"}} +{"id":"tcact2write/ng-096","desc":"negative: opt=plain cmd=ng:ct-natonly:actions_add_action_ct_commit_nat_index_1: ct: commit and nat must set src or dst","cmd":"tc actions add action ct commit nat index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"ct-natonly","json":"0","words":"actions add action ct commit nat index 1"}} +{"id":"tcact2write/ng-097","desc":"negative: opt=plain cmd=ng:ct-nocommit:actions_add_action_ct_nat_src_addr_1.1.1.1_index_1: ct: src or dst is only valid if commit is set","cmd":"tc actions add action ct nat src addr 1.1.1.1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"ct-nocommit","json":"0","words":"actions add action ct nat src addr 1.1.1.1 index 1"}} +{"id":"tcact2write/ng-098","desc":"negative: opt=plain cmd=ng:ct-mark:actions_add_action_ct_commit_mark_zz_index_1: ct: Illegal \"mark\"","cmd":"tc actions add action ct commit mark zz index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"ct-mark","json":"0","words":"actions add action ct commit mark zz index 1"}} +{"id":"tcact2write/ng-099","desc":"negative: opt=plain cmd=ng:ct-index:actions_add_action_ct_index_0x5: ct: Illegal \"index\"","cmd":"tc actions add action ct index 0x5","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"ct-index","json":"0","words":"actions add action ct index 0x5"}} +{"id":"tcact2write/ng-100","desc":"negative: opt=plain cmd=ng:ct-helper:actions_add_action_ct_commit_helper_ipv5-tcp-ftp_index_1: an unknown family","cmd":"tc actions add action ct commit helper ipv5-tcp-ftp index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"ct-helper","json":"0","words":"actions add action ct commit helper ipv5-tcp-ftp index 1"}} +{"id":"tcact2write/ng-101","desc":"negative: opt=plain cmd=ng:ct-help:actions_add_action_ct_help: the usage, exit(-1)","cmd":"tc actions add action ct help","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"ct-help","json":"0","words":"actions add action ct help"}} +{"id":"tcact2write/ng-102","desc":"negative: opt=plain cmd=ng:w191-gate:actions_add_action_gate: a bare gate: NEXT_ARG","cmd":"tc actions add action gate","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w191-gate","json":"0","words":"actions add action gate"}} +{"id":"tcact2write/ng-103","desc":"negative: opt=plain cmd=ng:w295-big:actions_add_action_gate_sched-entry_open_1ms_1_2147483648_index_1: \"maxoctets\" is too large","cmd":"tc actions add action gate sched-entry open 1ms 1 2147483648 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w295-big","json":"0","words":"actions add action gate sched-entry open 1ms 1 2147483648 index 1"}} +{"id":"tcact2write/ng-104","desc":"negative: opt=plain cmd=ng:w296-index:actions_add_action_gate_sched-entry_open_1000000_-1_-1_index_0x1: index is base 10: invarg, exit(-1) (W296)","cmd":"tc actions add action gate sched-entry open 1000000 -1 -1 index 0x1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w296-index","json":"0","words":"actions add action gate sched-entry open 1000000 -1 -1 index 0x1"}} +{"id":"tcact2write/ng-105","desc":"negative: opt=plain cmd=ng:w297-half:actions_add_action_gate_sched-entry_open_0.5_-1_-1_index_1: interval 0.5 is 0 (W297)","cmd":"tc actions add action gate sched-entry open 0.5 -1 -1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"errno":"EINVAL","refused_by":"kernel"},"axes":{"fix":"w297-half","json":"0","words":"actions add action gate sched-entry open 0.5 -1 -1 index 1"}} +{"id":"tcact2write/ng-106","desc":"negative: opt=plain cmd=ng:w298-ms:actions_add_action_gate_base-time_-1ms_sched-entry_open_1000000_-1_-1_index_1: a negative time with a unit: invarg (W298)","cmd":"tc actions add action gate base-time -1ms sched-entry open 1000000 -1 -1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w298-ms","json":"0","words":"actions add action gate base-time -1ms sched-entry open 1000000 -1 -1 index 1"}} +{"id":"tcact2write/ng-107","desc":"negative: opt=plain cmd=ng:w300:actions_add_action_gate_sched-entry_opn_1ms_index_1: the entry usage and \"sched-entry\" is incomplete (W300)","cmd":"tc actions add action gate sched-entry opn 1ms index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w300","json":"0","words":"actions add action gate sched-entry opn 1ms index 1"}} +{"id":"tcact2write/ng-108","desc":"negative: opt=plain cmd=ng:w300-end:actions_add_action_gate_sched-entry: sched-entry at the end (W300)","cmd":"tc actions add action gate sched-entry","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w300-end","json":"0","words":"actions add action gate sched-entry"}} +{"id":"tcact2write/ng-109","desc":"negative: opt=plain cmd=ng:w300-state:actions_add_action_gate_sched-entry_open: no interval (W300)","cmd":"tc actions add action gate sched-entry open","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w300-state","json":"0","words":"actions add action gate sched-entry open"}} +{"id":"tcact2write/ng-110","desc":"negative: opt=plain cmd=ng:w300-int:actions_add_action_gate_sched-entry_open_zz_index_1: a bad interval (W300)","cmd":"tc actions add action gate sched-entry open zz index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w300-int","json":"0","words":"actions add action gate sched-entry open zz index 1"}} +{"id":"tcact2write/ng-111","desc":"negative: opt=plain cmd=ng:w301:actions_add_action_gate_help: the usage, exit(-1) (W301)","cmd":"tc actions add action gate help","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w301","json":"0","words":"actions add action gate help"}} +{"id":"tcact2write/ng-112","desc":"negative: opt=plain cmd=ng:w301-prio:actions_add_action_gate_priority_zz_sched-entry_open_1ms_index_1: invarg, exit(-1) (W301)","cmd":"tc actions add action gate priority zz sched-entry open 1ms index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w301-prio","json":"0","words":"actions add action gate priority zz sched-entry open 1ms index 1"}} +{"id":"tcact2write/ng-113","desc":"negative: opt=plain cmd=ng:w302-h:actions_add_action_gate_h: h is help (W302)","cmd":"tc actions add action gate h","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w302-h","json":"0","words":"actions add action gate h"}} +{"id":"tcact2write/ng-114","desc":"negative: opt=plain cmd=ng:w303:actions_add_action_gate_sched-entry_open_1000000_-1_-1_pipe_index_5: index after control is the next kind: Failed to load TC action module (W303)","cmd":"tc actions add action gate sched-entry open 1000000 -1 -1 pipe index 5","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"errno":"ENOENT","refused_by":"kernel"},"axes":{"fix":"w303","json":"0","words":"actions add action gate sched-entry open 1000000 -1 -1 pipe index 5"}} +{"id":"tcact2write/ng-115","desc":"negative: opt=plain cmd=ng:w303-goto:actions_add_action_gate_sched-entry_open_1000000_-1_-1_goto_chain_x: Illegal \"chain index\" twice (W303)","cmd":"tc actions add action gate sched-entry open 1000000 -1 -1 goto chain x","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w303-goto","json":"0","words":"actions add action gate sched-entry open 1000000 -1 -1 goto chain x"}} +{"id":"tcact2write/ng-116","desc":"negative: opt=plain cmd=ng:w305:actions_add_action_gate_index_5: an empty ENTRY_LIST on create (W305)","cmd":"tc actions add action gate index 5","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"errno":"EINVAL","refused_by":"kernel"},"axes":{"fix":"w305","json":"0","words":"actions add action gate index 5"}} +{"id":"tcact2write/ng-117","desc":"negative: opt=plain cmd=ng:gate-big:actions_add_action_gate_sched-entry_open_4294967296_-1_-1_index_1: \"interval\" is too large","cmd":"tc actions add action gate sched-entry open 4294967296 -1 -1 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"gate-big","json":"0","words":"actions add action gate sched-entry open 4294967296 -1 -1 index 1"}} +{"id":"tcact2write/ng-118","desc":"negative: opt=plain cmd=ng:gate-clk:actions_add_action_gate_clockid_FOO_sched-entry_open_1ms_index_1: an unknown clockid","cmd":"tc actions add action gate clockid FOO sched-entry open 1ms index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"gate-clk","json":"0","words":"actions add action gate clockid FOO sched-entry open 1ms index 1"}} +{"id":"tcact2write/ng-119","desc":"negative: opt=plain cmd=ng:gate-none:actions_add_action_gate_priority_2: gate: must add at least one entry","cmd":"tc actions add action gate priority 2","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"gate-none","json":"0","words":"actions add action gate priority 2"}} +{"id":"tcact2write/ng-120","desc":"negative: opt=plain cmd=ng:w307-2039:actions_add_action_bpf_bytecode-file_bpf.txt_index_1: 2039 instructions: PARMS past 16384, addattr_l ERROR (W307)","cmd":"tc actions add action bpf bytecode-file bpf.txt index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","{ printf '%s\\n' 2039; i=0; while [ $i -lt 2039 ]; do printf '6 0 0 0\\n'; i=$((i+1)); done; } > bpf.txt"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"errno":"EINVAL","refused_by":"kernel"},"axes":{"fix":"w307-2039","json":"0","words":"actions add action bpf bytecode-file bpf.txt index 1"}} +{"id":"tcact2write/ng-121","desc":"negative: opt=plain cmd=ng:w307-2041:actions_add_action_bpf_bytecode-file_bpf.txt_index_1: 2041 instructions: PARMS past 16384 (W307)","cmd":"tc actions add action bpf bytecode-file bpf.txt index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","{ printf '%s\\n' 2041; i=0; while [ $i -lt 2041 ]; do printf '6 0 0 0\\n'; i=$((i+1)); done; } > bpf.txt"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"errno":"EINVAL","refused_by":"kernel"},"axes":{"fix":"w307-2041","json":"0","words":"actions add action bpf bytecode-file bpf.txt index 1"}} +{"id":"tcact2write/ng-122","desc":"negative: opt=plain cmd=ng:w307-2042:actions_add_action_bpf_bytecode-file_bpf.txt_index_1: 2042: OPS_LEN with no OPS (W307)","cmd":"tc actions add action bpf bytecode-file bpf.txt index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","{ printf '%s\\n' 2042; i=0; while [ $i -lt 2042 ]; do printf '6 0 0 0\\n'; i=$((i+1)); done; } > bpf.txt"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"errno":"EINVAL","refused_by":"kernel"},"axes":{"fix":"w307-2042","json":"0","words":"actions add action bpf bytecode-file bpf.txt index 1"}} +{"id":"tcact2write/ng-123","desc":"negative: opt=plain cmd=ng:w307-4097:actions_add_action_bpf_bytecode-file_bpf.txt_index_1: past BPF_MAXINSNS: no message (W307)","cmd":"tc actions add action bpf bytecode-file bpf.txt index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","{ printf '%s\\n' 4097; i=0; while [ $i -lt 4097 ]; do printf '6 0 0 0\\n'; i=$((i+1)); done; } > bpf.txt"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w307-4097","json":"0","words":"actions add action bpf bytecode-file bpf.txt index 1"}} +{"id":"tcact2write/ng-124","desc":"negative: opt=plain cmd=ng:w308-space:actions_add_action_bpf_bytecode_'4_,6_0_0_0'_index_1: the header's separator: -EINVAL with no message (W308)","cmd":"tc actions add action bpf bytecode '4 ,6 0 0 0' index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w308-space","json":"0","words":"actions add action bpf bytecode '4 ,6 0 0 0' index 1"}} +{"id":"tcact2write/ng-125","desc":"negative: opt=plain cmd=ng:w308-zero:actions_add_action_bpf_bytecode_'0,6_0_0_0'_index_1: a header of 0 (W308)","cmd":"tc actions add action bpf bytecode '0,6 0 0 0' index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w308-zero","json":"0","words":"actions add action bpf bytecode '0,6 0 0 0' index 1"}} +{"id":"tcact2write/ng-126","desc":"negative: opt=plain cmd=ng:w309-hex:actions_add_action_bpf_bytecode_'1,0x6_0_0_0'_index_1: Error at instruction 0! (W309)","cmd":"tc actions add action bpf bytecode '1,0x6 0 0 0' index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w309-hex","json":"0","words":"actions add action bpf bytecode '1,0x6 0 0 0' index 1"}} +{"id":"tcact2write/ng-127","desc":"negative: opt=plain cmd=ng:w310:actions_add_action_bpf_bytecode_'1,6_0_0_0,_'_index_1: Real program length exceeds encoded length parameter! (W310)","cmd":"tc actions add action bpf bytecode '1,6 0 0 0, ' index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w310","json":"0","words":"actions add action bpf bytecode '1,6 0 0 0, ' index 1"}} +{"id":"tcact2write/ng-128","desc":"negative: opt=plain cmd=ng:w310-less:actions_add_action_bpf_bytecode_'2,6_0_0_0'_index_1: Parsed program length is less than encoded length parameter! (W310)","cmd":"tc actions add action bpf bytecode '2,6 0 0 0' index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w310-less","json":"0","words":"actions add action bpf bytecode '2,6 0 0 0' index 1"}} +{"id":"tcact2write/ng-129","desc":"negative: opt=plain cmd=ng:w311-blank:actions_add_action_bpf_bytecode-file_bpf.txt_index_1: a leading blank line: no message (W311)","cmd":"tc actions add action bpf bytecode-file bpf.txt index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","printf '%s' '\n1\n6 0 0 0\n' > bpf.txt"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w311-blank","json":"0","words":"actions add action bpf bytecode-file bpf.txt index 1"}} +{"id":"tcact2write/ng-130","desc":"negative: opt=plain cmd=ng:w311-crlf:actions_add_action_bpf_bytecode-file_bpf.txt_index_1: CRLF: no message (W311)","cmd":"tc actions add action bpf bytecode-file bpf.txt index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","printf '%s' '1\r\n6 0 0 0\r\n' > bpf.txt"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w311-crlf","json":"0","words":"actions add action bpf bytecode-file bpf.txt index 1"}} +{"id":"tcact2write/ng-131","desc":"negative: opt=plain cmd=ng:w311-dir:actions_add_action_bpf_bytecode-file_._index_1: a directory: -E2BIG with no message (W311)","cmd":"tc actions add action bpf bytecode-file . index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w311-dir","json":"0","words":"actions add action bpf bytecode-file . index 1"}} +{"id":"tcact2write/ng-132","desc":"negative: opt=plain cmd=ng:w311-none:actions_add_action_bpf_bytecode-file_nosuch.txt_index_1: Cannot fopen: No such file or directory (W311)","cmd":"tc actions add action bpf bytecode-file nosuch.txt index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w311-none","json":"0","words":"actions add action bpf bytecode-file nosuch.txt index 1"}} +{"id":"tcact2write/ng-133","desc":"negative: opt=plain cmd=ng:w312-two:actions_add_action_bpf_bytecode_'1,6_0_0_0'_bytecode_'1,6_0_0_1'_index_1: a second program word is the next kind (W312)","cmd":"tc actions add action bpf bytecode '1,6 0 0 0' bytecode '1,6 0 0 1' index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w312-two","json":"0","words":"actions add action bpf bytecode '1,6 0 0 0' bytecode '1,6 0 0 1' index 1"}} +{"id":"tcact2write/ng-134","desc":"negative: opt=plain cmd=ng:w312-drop:actions_add_action_bpf_drop: What mode is \"drop\"? (W312)","cmd":"tc actions add action bpf drop","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w312-drop","json":"0","words":"actions add action bpf drop"}} +{"id":"tcact2write/ng-135","desc":"negative: opt=plain cmd=ng:w312:actions_add_action_bpf_index_5: index ends the loop: PARMS only on a create (W312)","cmd":"tc actions add action bpf index 5","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"errno":"EINVAL","refused_by":"kernel"},"axes":{"fix":"w312","json":"0","words":"actions add action bpf index 5"}} +{"id":"tcact2write/ng-136","desc":"negative: opt=plain cmd=ng:w313:actions_add_action_bpf: a bare bpf: NEXT_ARG (W313)","cmd":"tc actions add action bpf","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w313","json":"0","words":"actions add action bpf"}} +{"id":"tcact2write/ng-137","desc":"negative: opt=plain cmd=ng:w313-help:actions_add_action_bpf_help: help returns -1: bad action parsing (W313)","cmd":"tc actions add action bpf help","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w313-help","json":"0","words":"actions add action bpf help"}} +{"id":"tcact2write/ng-138","desc":"negative: opt=plain cmd=ng:w313-index:actions_add_action_bpf_bytecode_'1,6_0_0_0'_index_zz: bpf: Illegal \"index\" (W313)","cmd":"tc actions add action bpf bytecode '1,6 0 0 0' index zz","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w313-index","json":"0","words":"actions add action bpf bytecode '1,6 0 0 0' index zz"}} +{"id":"tcact2write/ng-139","desc":"negative: opt=plain cmd=ng:w314-obj:actions_add_action_bpf_o_nosuch.o_index_1: o is object-file: an eBPF load (W314)","cmd":"tc actions add action bpf o nosuch.o index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w314-obj","json":"0","words":"actions add action bpf o nosuch.o index 1"}} +{"id":"tcact2write/ng-140","desc":"negative: opt=plain cmd=ng:w314-p:actions_add_action_bpf_p_/sys/fs/bpf/nosuch_index_1: p is pinned: bpf(2) (W314)","cmd":"tc actions add action bpf p /sys/fs/bpf/nosuch index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w314-p","json":"0","words":"actions add action bpf p /sys/fs/bpf/nosuch index 1"}} +{"id":"tcact2write/ng-141","desc":"negative: opt=plain cmd=ng:w314-fd:actions_add_action_bpf_f_3_index_1: f is fd: pinned, bpf(2) (W314)","cmd":"tc actions add action bpf f 3 index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w314-fd","json":"0","words":"actions add action bpf f 3 index 1"}} +{"id":"tcact2write/ng-142","desc":"negative: opt=plain cmd=ng:ebpf-obj:actions_add_action_bpf_object-file_nosuch.o_index_1: eBPF object-file: tc's answer, refused by name in gotc","cmd":"tc actions add action bpf object-file nosuch.o index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"ebpf-obj","json":"0","words":"actions add action bpf object-file nosuch.o index 1"}} +{"id":"tcact2write/ng-143","desc":"negative: opt=plain cmd=ng:ebpf-pinned:actions_add_action_bpf_object-pinned_/sys/fs/bpf/nosuch_index_1: eBPF object-pinned: bpf(2)","cmd":"tc actions add action bpf object-pinned /sys/fs/bpf/nosuch index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"ebpf-pinned","json":"0","words":"actions add action bpf object-pinned /sys/fs/bpf/nosuch index 1"}} +{"id":"tcact2write/ng-144","desc":"negative: opt=plain cmd=ng:ebpf-run:actions_add_action_bpf_run_obj_nosuch.o_index_1: eBPF obj after run","cmd":"tc actions add action bpf run obj nosuch.o index 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"ebpf-run","json":"0","words":"actions add action bpf run obj nosuch.o index 1"}} +{"id":"tcact2write/ng-145","desc":"negative: opt=plain cmd=ng:w315:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_classid_1:1: options but no program: OPS_LEN 0 (W315)","cmd":"tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf classid 1:1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":2,"errno":"EINVAL","refused_by":"kernel"},"axes":{"fix":"w315","json":"0","words":"filter add dev d0 ingress pref 1 protocol ip handle 1 bpf classid 1:1"}} +{"id":"tcact2write/ng-146","desc":"negative: opt=plain cmd=ng:w316:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf: no words: no OPTIONS (W316)","cmd":"tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":2,"errno":"EINVAL","refused_by":"kernel"},"axes":{"fix":"w316","json":"0","words":"filter add dev d0 ingress pref 1 protocol ip handle 1 bpf"}} +{"id":"tcact2write/ng-147","desc":"negative: opt=plain cmd=ng:w319:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_bytecode_'1,6_0_0_0'_bogus: What is \"bogus\"?, the usage (W319)","cmd":"tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' bogus","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":1,"refused_by":"ack-then-fail"},"axes":{"fix":"w319","json":"0","words":"filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' bogus"}} +{"id":"tcact2write/ng-148","desc":"negative: opt=plain cmd=ng:w319-flowid:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_bytecode_'1,6_0_0_0'_flowid_zz: Illegal \"classid\" for flowid (W319)","cmd":"tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' flowid zz","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":1,"refused_by":"ack-then-fail"},"axes":{"fix":"w319-flowid","json":"0","words":"filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' flowid zz"}} +{"id":"tcact2write/ng-149","desc":"negative: opt=plain cmd=ng:w319-parse:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_bytecode_'1,6_0_0': Unable to parse bpf command line (W319)","cmd":"tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0'","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":1,"refused_by":"ack-then-fail"},"axes":{"fix":"w319-parse","json":"0","words":"filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0'"}} +{"id":"tcact2write/ng-150","desc":"negative: opt=plain cmd=ng:w320:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_bytecode_'1,6_0_0_0'_skip_hw_skip_sw: both skip flags (W320)","cmd":"tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' skip_hw skip_sw","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":2,"errno":"EINVAL","refused_by":"kernel"},"axes":{"fix":"w320","json":"0","words":"filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' skip_hw skip_sw"}} +{"id":"tcact2write/ng-151","desc":"negative: opt=plain cmd=ng:w320-sw:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_bytecode_'1,6_0_0_0'_skip_sw: skip_sw on a dummy (W320)","cmd":"tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' skip_sw","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":2,"errno":"ENOTSUP","refused_by":"kernel"},"axes":{"fix":"w320-sw","json":"0","words":"filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' skip_sw"}} +{"id":"tcact2write/ng-152","desc":"negative: opt=plain cmd=ng:fb-help:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_help: the filter's usage","cmd":"tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf help","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":1,"refused_by":"ack-then-fail"},"axes":{"fix":"fb-help","json":"0","words":"filter add dev d0 ingress pref 1 protocol ip handle 1 bpf help"}} +{"id":"tcact2write/ng-153","desc":"negative: opt=plain cmd=ng:fb-obj:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_object-file_nosuch.o: eBPF object-file in a filter: tc's answer","cmd":"tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf object-file nosuch.o","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":1,"refused_by":"ack-then-fail"},"axes":{"fix":"fb-obj","json":"0","words":"filter add dev d0 ingress pref 1 protocol ip handle 1 bpf object-file nosuch.o"}} +{"id":"tcact2write/ng-154","desc":"negative: opt=plain cmd=ng:fb-pinned:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_pinned_/sys/fs/bpf/nosuch: eBPF pinned in a filter: bpf(2)","cmd":"tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf pinned /sys/fs/bpf/nosuch","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":1,"refused_by":"ack-then-fail"},"axes":{"fix":"fb-pinned","json":"0","words":"filter add dev d0 ingress pref 1 protocol ip handle 1 bpf pinned /sys/fs/bpf/nosuch"}} +{"id":"tcact2write/ng-155","desc":"negative: opt=plain cmd=ng:fb-action:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_bytecode_'1,6_0_0_0'_action_bogus: Bad action type bogus: gact's usage, exit(-1)","cmd":"tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' action bogus","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"ack-then-fail"},"axes":{"fix":"fb-action","json":"0","words":"filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' action bogus"}} +{"id":"tcact2write/ng-156","desc":"negative: opt=plain cmd=ng:fb-ops:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_bytecode_'1,6_0_0_0,6_0_0_0': an encoded length of 1 with two instructions","cmd":"tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0,6 0 0 0'","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":1,"refused_by":"ack-then-fail"},"axes":{"fix":"fb-ops","json":"0","words":"filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0,6 0 0 0'"}} +{"id":"tcact2write/ng-157","desc":"negative: opt=plain cmd=ng:w248:actions_add_action_pedit_ex_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_index_1_action_pedit_ex_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_index_2_action_pedit_ex_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_index_3: three 128-key ex actions pass 16384: the errors are ignored and a malformed nest is sent (W248)","cmd":"tc actions add action pedit ex munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 index 1 action pedit ex munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 index 2 action pedit ex munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 index 3","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"errno":"EINVAL","refused_by":"kernel"},"axes":{"fix":"w248","json":"0","words":"actions add action pedit ex munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 index 1 action pedit ex munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 index 2 action pedit ex munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 index 3"}} +{"id":"tcact2write/ng-158","desc":"negative: opt=plain cmd=ng:w268-force:batch:ife-exit: ife's usage exit ends -force (W268)","cmd":"tc -force -batch b.txt","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","printf '%s\\n' 'actions add action ife pipe' 'actions add action gact pass index 2' > b.txt"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":255,"refused_by":"ack-then-fail"},"axes":{"batch":"ife-exit","fix":"w268-force","json":"0","words":"-force -batch b.txt"}} +{"id":"tcact2write/ng-159","desc":"negative: opt=plain cmd=ng:w250-force:batch:addr-exit: get_addr's exit(1) ends -force (W250)","cmd":"tc -force -batch b.txt","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","printf '%s\\n' 'actions add action tunnel_key set src_ip bogus dst_ip 10.0.0.2 id 1 index 1' 'actions add action gact pass index 2' > b.txt"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":1,"refused_by":"ack-then-fail"},"axes":{"batch":"addr-exit","fix":"w250-force","json":"0","words":"-force -batch b.txt"}} +{"id":"tcact2write/ng-160","desc":"negative: opt=plain cmd=ng:ct-force:batch:return: ct returns -1, so -force carries on","cmd":"tc -force -batch b.txt","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 clsact","tc qdisc add dev d1 root handle 1: htb","tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit","tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit","tc qdisc add dev d1 ingress_block 10 clsact","printf '%s\\n' 'actions add action ct clear commit index 1' 'actions add action gact pass index 2' > b.txt"],"modules":["sch_htb","sch_ingress","cls_basic","cls_cgroup","cls_flow","cls_fw","cls_matchall","cls_route","cls_u32","act_gact","act_police","act_mirred","act_skbedit","act_vlan","act_csum","act_nat","act_simple","act_connmark","act_ctinfo","act_sample","act_skbmod","act_mpls","act_pedit","act_tunnel_key","act_ife","act_ct","act_gate","act_bpf","cls_bpf","act_meta_mark","act_meta_skbprio","act_meta_skbtcindex"],"proto":"route","expect":{"rc":1,"refused_by":"ack-then-fail"},"axes":{"batch":"return","fix":"ct-force","json":"0","words":"-force -batch b.txt"}} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-001/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-001/cmd.json new file mode 100644 index 000000000..e3e15a413 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-001/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "v-add", + "json": "0", + "words": "actions add action pedit munge offset 12 u32 set 0x1 index 1" + }, + "cmd": "tc actions add action pedit munge offset 12 u32 set 0x1 index 1", + "desc": "positive: opt=plain cmd=v-add:actions_add_action_pedit_munge_offset_12_u32_set_0x1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-001", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-001/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-001/dump.out new file mode 100644 index 000000000..39572662b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-001/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 12: val 00000001 mask 00000000 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-001/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-001/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-001/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-001/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-001/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-001/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-001/ip.pcap new file mode 100644 index 000000000..e2352d591 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-001/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-001/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-001/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-001/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-001/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-001/netlink_route_dump.pcap new file mode 100644 index 000000000..8f8634ba1 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-001/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-002/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-002/cmd.json new file mode 100644 index 000000000..9fb0429c3 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-002/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "v-change", + "json": "0", + "words": "actions change action pedit ex munge ip ttl add 1 index 1" + }, + "cmd": "tc actions change action pedit ex munge ip ttl add 1 index 1", + "desc": "positive: opt=plain cmd=v-change:actions_change_action_pedit_ex_munge_ip_ttl_add_1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-002", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "tc actions add action pedit munge offset 12 u32 set 0x1 index 1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "tc actions add action pedit munge offset 12 u32 set 0x1 index 1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-002/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-002/dump.out new file mode 100644 index 000000000..b68084dab --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-002/dump.out @@ -0,0 +1,7 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at ipv4+8: add 01000000 mask 00ffffff + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-002/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-002/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-002/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-002/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-002/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-002/ip.pcap new file mode 100644 index 000000000..e320ad800 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-002/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-002/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-002/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-002/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-002/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-002/netlink_route_dump.pcap new file mode 100644 index 000000000..44579860e Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-002/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-003/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-003/cmd.json new file mode 100644 index 000000000..9230857cb --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-003/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "v-replace", + "json": "0", + "words": "actions replace action pedit ex munge ip ttl add 1 index 1" + }, + "cmd": "tc actions replace action pedit ex munge ip ttl add 1 index 1", + "desc": "positive: opt=plain cmd=v-replace:actions_replace_action_pedit_ex_munge_ip_ttl_add_1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-003", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "tc actions add action pedit munge offset 12 u32 set 0x1 index 1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "tc actions add action pedit munge offset 12 u32 set 0x1 index 1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-003/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-003/dump.out new file mode 100644 index 000000000..b68084dab --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-003/dump.out @@ -0,0 +1,7 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at ipv4+8: add 01000000 mask 00ffffff + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-003/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-003/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-003/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-003/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-003/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-003/ip.pcap new file mode 100644 index 000000000..fffca1935 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-003/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-003/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-003/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-003/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-003/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-003/netlink_route_dump.pcap new file mode 100644 index 000000000..3ea7573c5 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-003/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-004/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-004/cmd.json new file mode 100644 index 000000000..2a5bfe85c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-004/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "v-replace-new", + "json": "0", + "words": "actions replace action pedit ex munge ip ttl add 1 index 2" + }, + "cmd": "tc actions replace action pedit ex munge ip ttl add 1 index 2", + "desc": "positive: opt=plain cmd=v-replace-new:actions_replace_action_pedit_ex_munge_ip_ttl_add_1_index_2", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-004", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-004/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-004/dump.out new file mode 100644 index 000000000..c8f5e2948 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-004/dump.out @@ -0,0 +1,7 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 2 ref 1 bind 0 + key #0 at ipv4+8: add 01000000 mask 00ffffff + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-004/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-004/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-004/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-004/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-004/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-004/ip.pcap new file mode 100644 index 000000000..85d695529 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-004/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-004/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-004/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-004/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-004/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-004/netlink_route_dump.pcap new file mode 100644 index 000000000..9bff87dd4 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-004/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-005/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-005/cmd.json new file mode 100644 index 000000000..4dad1d6c0 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-005/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "v-delete", + "json": "0", + "words": "actions delete action pedit index 1" + }, + "cmd": "tc actions delete action pedit index 1", + "desc": "positive: opt=plain cmd=v-delete:actions_delete_action_pedit_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-005", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "tc actions add action pedit munge offset 12 u32 set 0x1 index 1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "tc actions add action pedit munge offset 12 u32 set 0x1 index 1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-005/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-005/dump.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-005/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-005/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-005/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-005/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-005/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-005/ip.pcap new file mode 100644 index 000000000..68f985464 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-005/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-005/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-005/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-005/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-005/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-005/netlink_route_dump.pcap new file mode 100644 index 000000000..9741f7895 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-005/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-006/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-006/cmd.json new file mode 100644 index 000000000..059547fa4 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-006/cmd.json @@ -0,0 +1,114 @@ +{ + "axes": { + "fix": "v-flush", + "json": "0", + "words": "actions flush action pedit" + }, + "cmd": "tc actions flush action pedit", + "desc": "positive: opt=plain cmd=v-flush:actions_flush_action_pedit", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-006", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "tc actions add action pedit munge offset 12 u32 set 0x1 index 1", + "tc actions add action pedit munge offset 12 u32 set 0x1 index 2" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "tc actions add action pedit munge offset 12 u32 set 0x1 index 1", + "rc": 0 + }, + { + "cmd": "tc actions add action pedit munge offset 12 u32 set 0x1 index 2", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-006/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-006/dump.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-006/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-006/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-006/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-006/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-006/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-006/ip.pcap new file mode 100644 index 000000000..c8af1a260 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-006/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-006/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-006/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-006/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-006/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-006/netlink_route_dump.pcap new file mode 100644 index 000000000..1fe1e26f2 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-006/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-007/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-007/cmd.json new file mode 100644 index 000000000..09d8d8f6b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-007/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "v-add", + "json": "0", + "words": "actions add action tunnel_key unset index 1" + }, + "cmd": "tc actions add action tunnel_key unset index 1", + "desc": "positive: opt=plain cmd=v-add:actions_add_action_tunnel_key_unset_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-007", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action tunnel_key", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-007/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-007/dump.out new file mode 100644 index 000000000..2cd305829 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-007/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: tunnel_key unset pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-007/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-007/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-007/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-007/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-007/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-007/ip.pcap new file mode 100644 index 000000000..bf843ce90 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-007/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-007/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-007/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-007/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-007/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-007/netlink_route_dump.pcap new file mode 100644 index 000000000..57a71d0f4 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-007/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-008/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-008/cmd.json new file mode 100644 index 000000000..00aa3804e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-008/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "v-change", + "json": "0", + "words": "actions change action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 index 1" + }, + "cmd": "tc actions change action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 index 1", + "desc": "positive: opt=plain cmd=v-change:actions_change_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-008", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "tc actions add action tunnel_key unset index 1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action tunnel_key", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "tc actions add action tunnel_key unset index 1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-008/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-008/dump.out new file mode 100644 index 000000000..ce9ca4220 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-008/dump.out @@ -0,0 +1,10 @@ +total acts 1 + + action order 0: tunnel_key set + src_ip 10.0.0.1 + dst_ip 10.0.0.2 + key_id 7 + csum pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-008/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-008/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-008/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-008/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-008/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-008/ip.pcap new file mode 100644 index 000000000..9e9b200b9 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-008/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-008/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-008/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-008/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-008/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-008/netlink_route_dump.pcap new file mode 100644 index 000000000..b9f23a6c7 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-008/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-009/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-009/cmd.json new file mode 100644 index 000000000..fb8d4fea2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-009/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "v-replace", + "json": "0", + "words": "actions replace action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 index 1" + }, + "cmd": "tc actions replace action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 index 1", + "desc": "positive: opt=plain cmd=v-replace:actions_replace_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-009", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "tc actions add action tunnel_key unset index 1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action tunnel_key", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "tc actions add action tunnel_key unset index 1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-009/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-009/dump.out new file mode 100644 index 000000000..ce9ca4220 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-009/dump.out @@ -0,0 +1,10 @@ +total acts 1 + + action order 0: tunnel_key set + src_ip 10.0.0.1 + dst_ip 10.0.0.2 + key_id 7 + csum pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-009/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-009/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-009/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-009/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-009/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-009/ip.pcap new file mode 100644 index 000000000..4eb9de979 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-009/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-009/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-009/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-009/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-009/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-009/netlink_route_dump.pcap new file mode 100644 index 000000000..030eb20b3 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-009/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-010/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-010/cmd.json new file mode 100644 index 000000000..772218a26 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-010/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "v-replace-new", + "json": "0", + "words": "actions replace action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 index 2" + }, + "cmd": "tc actions replace action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 index 2", + "desc": "positive: opt=plain cmd=v-replace-new:actions_replace_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_index_2", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-010", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action tunnel_key", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-010/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-010/dump.out new file mode 100644 index 000000000..2a9065235 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-010/dump.out @@ -0,0 +1,10 @@ +total acts 1 + + action order 0: tunnel_key set + src_ip 10.0.0.1 + dst_ip 10.0.0.2 + key_id 7 + csum pipe + index 2 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-010/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-010/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-010/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-010/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-010/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-010/ip.pcap new file mode 100644 index 000000000..860a0842d Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-010/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-010/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-010/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-010/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-010/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-010/netlink_route_dump.pcap new file mode 100644 index 000000000..da0a502f0 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-010/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-011/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-011/cmd.json new file mode 100644 index 000000000..d53f59eb2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-011/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "v-delete", + "json": "0", + "words": "actions delete action tunnel_key index 1" + }, + "cmd": "tc actions delete action tunnel_key index 1", + "desc": "positive: opt=plain cmd=v-delete:actions_delete_action_tunnel_key_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-011", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "tc actions add action tunnel_key unset index 1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action tunnel_key", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "tc actions add action tunnel_key unset index 1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-011/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-011/dump.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-011/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-011/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-011/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-011/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-011/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-011/ip.pcap new file mode 100644 index 000000000..8561a9b23 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-011/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-011/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-011/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-011/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-011/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-011/netlink_route_dump.pcap new file mode 100644 index 000000000..d758f2721 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-011/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-012/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-012/cmd.json new file mode 100644 index 000000000..fbd723697 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-012/cmd.json @@ -0,0 +1,114 @@ +{ + "axes": { + "fix": "v-flush", + "json": "0", + "words": "actions flush action tunnel_key" + }, + "cmd": "tc actions flush action tunnel_key", + "desc": "positive: opt=plain cmd=v-flush:actions_flush_action_tunnel_key", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-012", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "tc actions add action tunnel_key unset index 1", + "tc actions add action tunnel_key unset index 2" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action tunnel_key", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "tc actions add action tunnel_key unset index 1", + "rc": 0 + }, + { + "cmd": "tc actions add action tunnel_key unset index 2", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-012/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-012/dump.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-012/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-012/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-012/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-012/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-012/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-012/ip.pcap new file mode 100644 index 000000000..ac5428423 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-012/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-012/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-012/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-012/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-012/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-012/netlink_route_dump.pcap new file mode 100644 index 000000000..4e0ee1089 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-012/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-013/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-013/cmd.json new file mode 100644 index 000000000..649df61dd --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-013/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "v-add", + "json": "0", + "words": "actions add action ife decode index 1" + }, + "cmd": "tc actions add action ife decode index 1", + "desc": "positive: opt=plain cmd=v-add:actions_add_action_ife_decode_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-013", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ife", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-013/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-013/dump.out new file mode 100644 index 000000000..1bbb497bd --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-013/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ife decode action pipe type 0 + allow mark allow tcindex allow prio + index 1 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-013/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-013/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-013/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-013/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-013/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-013/ip.pcap new file mode 100644 index 000000000..fe08e5657 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-013/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-013/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-013/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-013/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-013/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-013/netlink_route_dump.pcap new file mode 100644 index 000000000..d5a7fc0e7 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-013/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-014/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-014/cmd.json new file mode 100644 index 000000000..97343cec5 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-014/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "v-change", + "json": "0", + "words": "actions change action ife encode allow mark index 1" + }, + "cmd": "tc actions change action ife encode allow mark index 1", + "desc": "positive: opt=plain cmd=v-change:actions_change_action_ife_encode_allow_mark_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-014", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "tc actions add action ife decode index 1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ife", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "tc actions add action ife decode index 1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-014/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-014/dump.out new file mode 100644 index 000000000..88186865c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-014/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ife encode action pipe type 0XED3E + allow mark + index 1 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-014/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-014/ip.err new file mode 100644 index 000000000..301050e59 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-014/ip.err @@ -0,0 +1 @@ +IFE type 0xED3E diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-014/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-014/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-014/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-014/ip.pcap new file mode 100644 index 000000000..dda2d1909 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-014/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-014/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-014/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-014/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-014/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-014/netlink_route_dump.pcap new file mode 100644 index 000000000..397c195ce Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-014/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-015/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-015/cmd.json new file mode 100644 index 000000000..16f35bbef --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-015/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "v-replace", + "json": "0", + "words": "actions replace action ife encode allow mark index 1" + }, + "cmd": "tc actions replace action ife encode allow mark index 1", + "desc": "positive: opt=plain cmd=v-replace:actions_replace_action_ife_encode_allow_mark_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-015", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "tc actions add action ife decode index 1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ife", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "tc actions add action ife decode index 1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-015/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-015/dump.out new file mode 100644 index 000000000..88186865c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-015/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ife encode action pipe type 0XED3E + allow mark + index 1 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-015/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-015/ip.err new file mode 100644 index 000000000..301050e59 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-015/ip.err @@ -0,0 +1 @@ +IFE type 0xED3E diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-015/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-015/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-015/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-015/ip.pcap new file mode 100644 index 000000000..f46e168b6 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-015/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-015/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-015/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-015/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-015/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-015/netlink_route_dump.pcap new file mode 100644 index 000000000..80faf7aeb Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-015/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-016/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-016/cmd.json new file mode 100644 index 000000000..996dc66f9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-016/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "v-replace-new", + "json": "0", + "words": "actions replace action ife encode allow mark index 2" + }, + "cmd": "tc actions replace action ife encode allow mark index 2", + "desc": "positive: opt=plain cmd=v-replace-new:actions_replace_action_ife_encode_allow_mark_index_2", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-016", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ife", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-016/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-016/dump.out new file mode 100644 index 000000000..f7b64b437 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-016/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ife encode action pipe type 0XED3E + allow mark + index 2 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-016/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-016/ip.err new file mode 100644 index 000000000..301050e59 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-016/ip.err @@ -0,0 +1 @@ +IFE type 0xED3E diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-016/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-016/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-016/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-016/ip.pcap new file mode 100644 index 000000000..00d2a2451 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-016/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-016/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-016/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-016/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-016/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-016/netlink_route_dump.pcap new file mode 100644 index 000000000..e64d6aa3c Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-016/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-017/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-017/cmd.json new file mode 100644 index 000000000..c1c0efa78 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-017/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "v-delete", + "json": "0", + "words": "actions delete action ife index 1" + }, + "cmd": "tc actions delete action ife index 1", + "desc": "positive: opt=plain cmd=v-delete:actions_delete_action_ife_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-017", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "tc actions add action ife decode index 1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ife", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "tc actions add action ife decode index 1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-017/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-017/dump.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-017/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-017/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-017/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-017/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-017/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-017/ip.pcap new file mode 100644 index 000000000..7a632b071 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-017/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-017/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-017/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-017/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-017/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-017/netlink_route_dump.pcap new file mode 100644 index 000000000..4290250f2 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-017/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-018/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-018/cmd.json new file mode 100644 index 000000000..b8bb7340d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-018/cmd.json @@ -0,0 +1,114 @@ +{ + "axes": { + "fix": "v-flush", + "json": "0", + "words": "actions flush action ife" + }, + "cmd": "tc actions flush action ife", + "desc": "positive: opt=plain cmd=v-flush:actions_flush_action_ife", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-018", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "tc actions add action ife decode index 1", + "tc actions add action ife decode index 2" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ife", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "tc actions add action ife decode index 1", + "rc": 0 + }, + { + "cmd": "tc actions add action ife decode index 2", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-018/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-018/dump.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-018/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-018/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-018/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-018/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-018/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-018/ip.pcap new file mode 100644 index 000000000..d48025016 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-018/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-018/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-018/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-018/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-018/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-018/netlink_route_dump.pcap new file mode 100644 index 000000000..d7a790588 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-018/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-019/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-019/cmd.json new file mode 100644 index 000000000..487c7ba11 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-019/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "v-add", + "json": "0", + "words": "actions add action ct commit index 1" + }, + "cmd": "tc actions add action ct commit index 1", + "desc": "positive: opt=plain cmd=v-add:actions_add_action_ct_commit_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-019", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ct", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-019/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-019/dump.out new file mode 100644 index 000000000..810b55ab7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-019/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ct commit zone 0 pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-019/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-019/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-019/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-019/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-019/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-019/ip.pcap new file mode 100644 index 000000000..fcc9a57dd Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-019/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-019/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-019/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-019/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-019/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-019/netlink_route_dump.pcap new file mode 100644 index 000000000..326b30d3d Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-019/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-020/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-020/cmd.json new file mode 100644 index 000000000..082e78da8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-020/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "v-change", + "json": "0", + "words": "actions change action ct commit zone 5 index 1" + }, + "cmd": "tc actions change action ct commit zone 5 index 1", + "desc": "positive: opt=plain cmd=v-change:actions_change_action_ct_commit_zone_5_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-020", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "tc actions add action ct commit index 1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ct", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "tc actions add action ct commit index 1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-020/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-020/dump.out new file mode 100644 index 000000000..c722847c6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-020/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ct commit zone 5 pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-020/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-020/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-020/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-020/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-020/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-020/ip.pcap new file mode 100644 index 000000000..ae29d2c97 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-020/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-020/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-020/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-020/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-020/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-020/netlink_route_dump.pcap new file mode 100644 index 000000000..511d03582 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-020/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-021/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-021/cmd.json new file mode 100644 index 000000000..a765d12e6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-021/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "v-replace", + "json": "0", + "words": "actions replace action ct commit zone 5 index 1" + }, + "cmd": "tc actions replace action ct commit zone 5 index 1", + "desc": "positive: opt=plain cmd=v-replace:actions_replace_action_ct_commit_zone_5_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-021", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "tc actions add action ct commit index 1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ct", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "tc actions add action ct commit index 1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-021/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-021/dump.out new file mode 100644 index 000000000..c722847c6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-021/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ct commit zone 5 pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-021/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-021/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-021/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-021/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-021/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-021/ip.pcap new file mode 100644 index 000000000..1d0afb2ea Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-021/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-021/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-021/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-021/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-021/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-021/netlink_route_dump.pcap new file mode 100644 index 000000000..e91254219 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-021/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-022/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-022/cmd.json new file mode 100644 index 000000000..395fc2793 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-022/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "v-replace-new", + "json": "0", + "words": "actions replace action ct commit zone 5 index 2" + }, + "cmd": "tc actions replace action ct commit zone 5 index 2", + "desc": "positive: opt=plain cmd=v-replace-new:actions_replace_action_ct_commit_zone_5_index_2", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-022", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ct", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-022/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-022/dump.out new file mode 100644 index 000000000..3cfb6a0fc --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-022/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ct commit zone 5 pipe + index 2 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-022/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-022/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-022/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-022/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-022/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-022/ip.pcap new file mode 100644 index 000000000..1095c68fa Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-022/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-022/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-022/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-022/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-022/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-022/netlink_route_dump.pcap new file mode 100644 index 000000000..fcc516e80 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-022/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-023/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-023/cmd.json new file mode 100644 index 000000000..8132aed9e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-023/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "v-delete", + "json": "0", + "words": "actions delete action ct index 1" + }, + "cmd": "tc actions delete action ct index 1", + "desc": "positive: opt=plain cmd=v-delete:actions_delete_action_ct_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-023", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "tc actions add action ct commit index 1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ct", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "tc actions add action ct commit index 1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-023/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-023/dump.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-023/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-023/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-023/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-023/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-023/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-023/ip.pcap new file mode 100644 index 000000000..30d6eddb6 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-023/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-023/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-023/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-023/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-023/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-023/netlink_route_dump.pcap new file mode 100644 index 000000000..0e917771f Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-023/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-024/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-024/cmd.json new file mode 100644 index 000000000..610fd390c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-024/cmd.json @@ -0,0 +1,114 @@ +{ + "axes": { + "fix": "v-flush", + "json": "0", + "words": "actions flush action ct" + }, + "cmd": "tc actions flush action ct", + "desc": "positive: opt=plain cmd=v-flush:actions_flush_action_ct", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-024", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "tc actions add action ct commit index 1", + "tc actions add action ct commit index 2" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ct", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "tc actions add action ct commit index 1", + "rc": 0 + }, + { + "cmd": "tc actions add action ct commit index 2", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-024/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-024/dump.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-024/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-024/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-024/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-024/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-024/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-024/ip.pcap new file mode 100644 index 000000000..b8dca7ac5 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-024/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-024/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-024/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-024/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-024/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-024/netlink_route_dump.pcap new file mode 100644 index 000000000..8524c6bcf Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-024/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-025/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-025/cmd.json new file mode 100644 index 000000000..c6ded4120 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-025/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "v-add", + "json": "0", + "words": "actions add action gate sched-entry open 1000000 -1 -1 index 1" + }, + "cmd": "tc actions add action gate sched-entry open 1000000 -1 -1 index 1", + "desc": "positive: opt=plain cmd=v-add:actions_add_action_gate_sched-entry_open_1000000_-1_-1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-025", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-025/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-025/dump.out new file mode 100644 index 000000000..d1ef0a62e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-025/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: + priority wildcard clockid TAI flags 0 + base-time 0ns cycle-time 1ms cycle-time-ext 0ns + schedule: + number 0 gate-state open interval 1ms ipv wildcard max-octets wildcard + pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-025/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-025/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-025/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-025/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-025/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-025/ip.pcap new file mode 100644 index 000000000..228988a9f Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-025/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-025/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-025/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-025/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-025/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-025/netlink_route_dump.pcap new file mode 100644 index 000000000..f5cce3844 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-025/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-026/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-026/cmd.json new file mode 100644 index 000000000..3e24d8190 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-026/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "v-change", + "json": "0", + "words": "actions change action gate base-time 1000 sched-entry close 2000000 index 1" + }, + "cmd": "tc actions change action gate base-time 1000 sched-entry close 2000000 index 1", + "desc": "positive: opt=plain cmd=v-change:actions_change_action_gate_base-time_1000_sched-entry_close_2000000_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-026", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "tc actions add action gate sched-entry open 1000000 -1 -1 index 1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "tc actions add action gate sched-entry open 1000000 -1 -1 index 1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-026/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-026/dump.out new file mode 100644 index 000000000..5074f1449 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-026/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: + priority wildcard clockid TAI flags 0 + base-time 1us cycle-time 2ms cycle-time-ext 0ns + schedule: + number 0 gate-state close interval 2ms ipv wildcard max-octets wildcard + pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-026/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-026/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-026/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-026/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-026/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-026/ip.pcap new file mode 100644 index 000000000..d3e30bdcf Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-026/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-026/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-026/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-026/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-026/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-026/netlink_route_dump.pcap new file mode 100644 index 000000000..6a726d3cb Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-026/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-027/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-027/cmd.json new file mode 100644 index 000000000..cb5202c23 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-027/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "v-replace", + "json": "0", + "words": "actions replace action gate base-time 1000 sched-entry close 2000000 index 1" + }, + "cmd": "tc actions replace action gate base-time 1000 sched-entry close 2000000 index 1", + "desc": "positive: opt=plain cmd=v-replace:actions_replace_action_gate_base-time_1000_sched-entry_close_2000000_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-027", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "tc actions add action gate sched-entry open 1000000 -1 -1 index 1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "tc actions add action gate sched-entry open 1000000 -1 -1 index 1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-027/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-027/dump.out new file mode 100644 index 000000000..5074f1449 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-027/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: + priority wildcard clockid TAI flags 0 + base-time 1us cycle-time 2ms cycle-time-ext 0ns + schedule: + number 0 gate-state close interval 2ms ipv wildcard max-octets wildcard + pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-027/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-027/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-027/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-027/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-027/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-027/ip.pcap new file mode 100644 index 000000000..c54e88ff3 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-027/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-027/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-027/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-027/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-027/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-027/netlink_route_dump.pcap new file mode 100644 index 000000000..142bca859 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-027/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-028/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-028/cmd.json new file mode 100644 index 000000000..45bfa20e4 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-028/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "v-replace-new", + "json": "0", + "words": "actions replace action gate base-time 1000 sched-entry close 2000000 index 2" + }, + "cmd": "tc actions replace action gate base-time 1000 sched-entry close 2000000 index 2", + "desc": "positive: opt=plain cmd=v-replace-new:actions_replace_action_gate_base-time_1000_sched-entry_close_2000000_index_2", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-028", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-028/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-028/dump.out new file mode 100644 index 000000000..2e85e4c13 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-028/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: + priority wildcard clockid TAI flags 0 + base-time 1us cycle-time 2ms cycle-time-ext 0ns + schedule: + number 0 gate-state close interval 2ms ipv wildcard max-octets wildcard + pipe + index 2 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-028/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-028/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-028/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-028/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-028/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-028/ip.pcap new file mode 100644 index 000000000..cde37bf67 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-028/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-028/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-028/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-028/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-028/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-028/netlink_route_dump.pcap new file mode 100644 index 000000000..799500663 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-028/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-029/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-029/cmd.json new file mode 100644 index 000000000..be0bc2a26 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-029/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "v-delete", + "json": "0", + "words": "actions delete action gate index 1" + }, + "cmd": "tc actions delete action gate index 1", + "desc": "positive: opt=plain cmd=v-delete:actions_delete_action_gate_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-029", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "tc actions add action gate sched-entry open 1000000 -1 -1 index 1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "tc actions add action gate sched-entry open 1000000 -1 -1 index 1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-029/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-029/dump.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-029/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-029/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-029/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-029/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-029/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-029/ip.pcap new file mode 100644 index 000000000..d5f903a9c Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-029/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-029/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-029/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-029/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-029/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-029/netlink_route_dump.pcap new file mode 100644 index 000000000..dee7537a7 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-029/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-030/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-030/cmd.json new file mode 100644 index 000000000..6c6d64aff --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-030/cmd.json @@ -0,0 +1,114 @@ +{ + "axes": { + "fix": "v-flush", + "json": "0", + "words": "actions flush action gate" + }, + "cmd": "tc actions flush action gate", + "desc": "positive: opt=plain cmd=v-flush:actions_flush_action_gate", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-030", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "tc actions add action gate sched-entry open 1000000 -1 -1 index 1", + "tc actions add action gate sched-entry open 1000000 -1 -1 index 2" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "tc actions add action gate sched-entry open 1000000 -1 -1 index 1", + "rc": 0 + }, + { + "cmd": "tc actions add action gate sched-entry open 1000000 -1 -1 index 2", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-030/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-030/dump.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-030/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-030/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-030/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-030/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-030/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-030/ip.pcap new file mode 100644 index 000000000..c94d5b85d Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-030/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-030/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-030/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-030/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-030/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-030/netlink_route_dump.pcap new file mode 100644 index 000000000..dedf75d14 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-030/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-031/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-031/cmd.json new file mode 100644 index 000000000..6467e72ee --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-031/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "v-add", + "json": "0", + "words": "actions add action bpf bytecode '1,6 0 0 0' index 1" + }, + "cmd": "tc actions add action bpf bytecode '1,6 0 0 0' index 1", + "desc": "positive: opt=plain cmd=v-add:actions_add_action_bpf_bytecode_'1,6_0_0_0'_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-031", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action bpf", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-031/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-031/dump.out new file mode 100644 index 000000000..b31ef392d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-031/dump.out @@ -0,0 +1,5 @@ +total acts 1 + + action order 0: bpf bytecode '1,6 0 0 0' default-action pipe + index 1 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-031/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-031/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-031/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-031/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-031/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-031/ip.pcap new file mode 100644 index 000000000..a08b44a47 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-031/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-031/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-031/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-031/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-031/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-031/netlink_route_dump.pcap new file mode 100644 index 000000000..81c3470a7 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-031/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-032/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-032/cmd.json new file mode 100644 index 000000000..e32a2bfab --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-032/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "v-change", + "json": "0", + "words": "actions change action bpf bytecode '1,6 0 0 4294967295' index 1" + }, + "cmd": "tc actions change action bpf bytecode '1,6 0 0 4294967295' index 1", + "desc": "positive: opt=plain cmd=v-change:actions_change_action_bpf_bytecode_'1,6_0_0_4294967295'_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-032", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "tc actions add action bpf bytecode '1,6 0 0 0' index 1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action bpf", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "tc actions add action bpf bytecode '1,6 0 0 0' index 1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-032/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-032/dump.out new file mode 100644 index 000000000..110a2613c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-032/dump.out @@ -0,0 +1,5 @@ +total acts 1 + + action order 0: bpf bytecode '1,6 0 0 4294967295' default-action pipe + index 1 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-032/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-032/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-032/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-032/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-032/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-032/ip.pcap new file mode 100644 index 000000000..d5b756d82 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-032/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-032/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-032/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-032/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-032/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-032/netlink_route_dump.pcap new file mode 100644 index 000000000..159f4a321 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-032/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-033/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-033/cmd.json new file mode 100644 index 000000000..59d116d8d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-033/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "v-replace", + "json": "0", + "words": "actions replace action bpf bytecode '1,6 0 0 4294967295' index 1" + }, + "cmd": "tc actions replace action bpf bytecode '1,6 0 0 4294967295' index 1", + "desc": "positive: opt=plain cmd=v-replace:actions_replace_action_bpf_bytecode_'1,6_0_0_4294967295'_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-033", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "tc actions add action bpf bytecode '1,6 0 0 0' index 1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action bpf", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "tc actions add action bpf bytecode '1,6 0 0 0' index 1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-033/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-033/dump.out new file mode 100644 index 000000000..110a2613c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-033/dump.out @@ -0,0 +1,5 @@ +total acts 1 + + action order 0: bpf bytecode '1,6 0 0 4294967295' default-action pipe + index 1 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-033/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-033/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-033/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-033/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-033/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-033/ip.pcap new file mode 100644 index 000000000..76b63b350 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-033/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-033/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-033/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-033/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-033/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-033/netlink_route_dump.pcap new file mode 100644 index 000000000..7f1425da6 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-033/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-034/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-034/cmd.json new file mode 100644 index 000000000..c4b76d6d2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-034/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "v-replace-new", + "json": "0", + "words": "actions replace action bpf bytecode '1,6 0 0 4294967295' index 2" + }, + "cmd": "tc actions replace action bpf bytecode '1,6 0 0 4294967295' index 2", + "desc": "positive: opt=plain cmd=v-replace-new:actions_replace_action_bpf_bytecode_'1,6_0_0_4294967295'_index_2", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-034", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action bpf", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-034/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-034/dump.out new file mode 100644 index 000000000..6274361dc --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-034/dump.out @@ -0,0 +1,5 @@ +total acts 1 + + action order 0: bpf bytecode '1,6 0 0 4294967295' default-action pipe + index 2 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-034/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-034/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-034/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-034/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-034/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-034/ip.pcap new file mode 100644 index 000000000..44e64d807 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-034/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-034/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-034/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-034/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-034/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-034/netlink_route_dump.pcap new file mode 100644 index 000000000..27d7b203b Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-034/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-035/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-035/cmd.json new file mode 100644 index 000000000..a00edf407 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-035/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "v-delete", + "json": "0", + "words": "actions delete action bpf index 1" + }, + "cmd": "tc actions delete action bpf index 1", + "desc": "positive: opt=plain cmd=v-delete:actions_delete_action_bpf_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-035", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "tc actions add action bpf bytecode '1,6 0 0 0' index 1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action bpf", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "tc actions add action bpf bytecode '1,6 0 0 0' index 1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-035/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-035/dump.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-035/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-035/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-035/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-035/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-035/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-035/ip.pcap new file mode 100644 index 000000000..98d0f3c37 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-035/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-035/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-035/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-035/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-035/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-035/netlink_route_dump.pcap new file mode 100644 index 000000000..d5b16342a Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-035/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-036/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-036/cmd.json new file mode 100644 index 000000000..3632e2bda --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-036/cmd.json @@ -0,0 +1,114 @@ +{ + "axes": { + "fix": "v-flush", + "json": "0", + "words": "actions flush action bpf" + }, + "cmd": "tc actions flush action bpf", + "desc": "positive: opt=plain cmd=v-flush:actions_flush_action_bpf", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-036", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "tc actions add action bpf bytecode '1,6 0 0 0' index 1", + "tc actions add action bpf bytecode '1,6 0 0 0' index 2" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action bpf", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "tc actions add action bpf bytecode '1,6 0 0 0' index 1", + "rc": 0 + }, + { + "cmd": "tc actions add action bpf bytecode '1,6 0 0 0' index 2", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-036/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-036/dump.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-036/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-036/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-036/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-036/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-036/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-036/ip.pcap new file mode 100644 index 000000000..593028651 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-036/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-036/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-036/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-036/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-036/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-036/netlink_route_dump.pcap new file mode 100644 index 000000000..52a5b6501 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-036/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-037/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-037/cmd.json new file mode 100644 index 000000000..7868112e4 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-037/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped", + "json": "0", + "words": "actions add action pedit munge offset 0 u8 set 0x1 index 1" + }, + "cmd": "tc actions add action pedit munge offset 0 u8 set 0x1 index 1", + "desc": "positive: opt=plain cmd=ped:actions_add_action_pedit_munge_offset_0_u8_set_0x1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-037", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-037/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-037/dump.out new file mode 100644 index 000000000..07191ce1d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-037/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 0: val 01000000 mask 00ffffff + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-037/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-037/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-037/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-037/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-037/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-037/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-037/ip.pcap new file mode 100644 index 000000000..0aa62b38d Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-037/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-037/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-037/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-037/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-037/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-037/netlink_route_dump.pcap new file mode 100644 index 000000000..cf834f1ac Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-037/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-038/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-038/cmd.json new file mode 100644 index 000000000..6ab0360f3 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-038/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped", + "json": "0", + "words": "actions add action pedit munge offset 1 u8 set 0x1 index 1" + }, + "cmd": "tc actions add action pedit munge offset 1 u8 set 0x1 index 1", + "desc": "positive: opt=plain cmd=ped:actions_add_action_pedit_munge_offset_1_u8_set_0x1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-038", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-038/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-038/dump.out new file mode 100644 index 000000000..8cf2866b0 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-038/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 0: val 00010000 mask ff00ffff + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-038/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-038/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-038/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-038/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-038/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-038/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-038/ip.pcap new file mode 100644 index 000000000..1ca935cb5 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-038/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-038/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-038/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-038/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-038/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-038/netlink_route_dump.pcap new file mode 100644 index 000000000..a4059969d Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-038/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-039/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-039/cmd.json new file mode 100644 index 000000000..63f3783c3 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-039/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped", + "json": "0", + "words": "actions add action pedit munge offset 3 u8 set 0x1 index 1" + }, + "cmd": "tc actions add action pedit munge offset 3 u8 set 0x1 index 1", + "desc": "positive: opt=plain cmd=ped:actions_add_action_pedit_munge_offset_3_u8_set_0x1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-039", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-039/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-039/dump.out new file mode 100644 index 000000000..4dede43b3 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-039/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 0: val 00000001 mask ffffff00 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-039/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-039/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-039/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-039/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-039/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-039/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-039/ip.pcap new file mode 100644 index 000000000..375ef0d12 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-039/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-039/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-039/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-039/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-039/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-039/netlink_route_dump.pcap new file mode 100644 index 000000000..23b35da59 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-039/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-040/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-040/cmd.json new file mode 100644 index 000000000..1ba501413 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-040/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped", + "json": "0", + "words": "actions add action pedit munge offset 2 u16 set 0x1 index 1" + }, + "cmd": "tc actions add action pedit munge offset 2 u16 set 0x1 index 1", + "desc": "positive: opt=plain cmd=ped:actions_add_action_pedit_munge_offset_2_u16_set_0x1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-040", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-040/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-040/dump.out new file mode 100644 index 000000000..800163744 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-040/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 0: val 00000001 mask ffff0000 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-040/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-040/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-040/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-040/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-040/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-040/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-040/ip.pcap new file mode 100644 index 000000000..bd6c4ded3 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-040/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-040/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-040/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-040/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-040/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-040/netlink_route_dump.pcap new file mode 100644 index 000000000..39d80b05b Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-040/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-041/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-041/cmd.json new file mode 100644 index 000000000..90ecc31f4 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-041/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped", + "json": "0", + "words": "actions add action pedit munge offset 12 u16 set 0x0800 retain 0xff00 index 1" + }, + "cmd": "tc actions add action pedit munge offset 12 u16 set 0x0800 retain 0xff00 index 1", + "desc": "positive: opt=plain cmd=ped:actions_add_action_pedit_munge_offset_12_u16_set_0x0800_retain_0xff00_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-041", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-041/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-041/dump.out new file mode 100644 index 000000000..7ef033303 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-041/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 12: val 08000000 mask 00ffffff + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-041/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-041/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-041/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-041/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-041/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-041/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-041/ip.pcap new file mode 100644 index 000000000..899c8f860 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-041/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-041/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-041/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-041/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-041/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-041/netlink_route_dump.pcap new file mode 100644 index 000000000..7f821036c Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-041/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-042/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-042/cmd.json new file mode 100644 index 000000000..6d464427d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-042/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped", + "json": "0", + "words": "actions add action pedit munge offset 12 u32 at 0 f 2 set 0x1 index 1" + }, + "cmd": "tc actions add action pedit munge offset 12 u32 at 0 f 2 set 0x1 index 1", + "desc": "positive: opt=plain cmd=ped:actions_add_action_pedit_munge_offset_12_u32_at_0_f_2_set_0x1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-042", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-042/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-042/dump.out new file mode 100644 index 000000000..39572662b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-042/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 12: val 00000001 mask 00000000 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-042/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-042/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-042/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-042/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-042/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-042/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-042/ip.pcap new file mode 100644 index 000000000..3fc9796e1 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-042/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-042/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-042/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-042/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-042/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-042/netlink_route_dump.pcap new file mode 100644 index 000000000..08ad4a5ba Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-042/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-043/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-043/cmd.json new file mode 100644 index 000000000..f97d464a8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-043/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped", + "json": "0", + "words": "actions add action pedit munge offset 12 u32 clear index 1" + }, + "cmd": "tc actions add action pedit munge offset 12 u32 clear index 1", + "desc": "positive: opt=plain cmd=ped:actions_add_action_pedit_munge_offset_12_u32_clear_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-043", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-043/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-043/dump.out new file mode 100644 index 000000000..f07806995 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-043/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 12: val 00000000 mask 00000000 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-043/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-043/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-043/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-043/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-043/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-043/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-043/ip.pcap new file mode 100644 index 000000000..89d9f81c7 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-043/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-043/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-043/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-043/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-043/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-043/netlink_route_dump.pcap new file mode 100644 index 000000000..ca2d233c8 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-043/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-044/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-044/cmd.json new file mode 100644 index 000000000..10093feeb --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-044/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped", + "json": "0", + "words": "actions add action pedit munge offset 12 u32 invert index 1" + }, + "cmd": "tc actions add action pedit munge offset 12 u32 invert index 1", + "desc": "positive: opt=plain cmd=ped:actions_add_action_pedit_munge_offset_12_u32_invert_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-044", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-044/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-044/dump.out new file mode 100644 index 000000000..be9be1040 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-044/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 12: val ffffffff mask ffffffff + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-044/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-044/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-044/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-044/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-044/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-044/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-044/ip.pcap new file mode 100644 index 000000000..c5cf8e7af Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-044/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-044/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-044/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-044/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-044/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-044/netlink_route_dump.pcap new file mode 100644 index 000000000..a1c914300 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-044/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-045/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-045/cmd.json new file mode 100644 index 000000000..e79b2c007 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-045/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped", + "json": "0", + "words": "actions add action pedit munge offset 12 u32 preserve index 1" + }, + "cmd": "tc actions add action pedit munge offset 12 u32 preserve index 1", + "desc": "positive: opt=plain cmd=ped:actions_add_action_pedit_munge_offset_12_u32_preserve_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-045", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-045/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-045/dump.out new file mode 100644 index 000000000..4b71b9563 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-045/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 12: val 00000000 mask ffffffff + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-045/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-045/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-045/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-045/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-045/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-045/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-045/ip.pcap new file mode 100644 index 000000000..a91d6464c Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-045/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-045/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-045/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-045/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-045/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-045/netlink_route_dump.pcap new file mode 100644 index 000000000..a932de11b Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-045/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-046/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-046/cmd.json new file mode 100644 index 000000000..86e081410 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-046/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped", + "json": "0", + "words": "actions add action pedit munge offset 12 u32 set 0x1 drop index 1" + }, + "cmd": "tc actions add action pedit munge offset 12 u32 set 0x1 drop index 1", + "desc": "positive: opt=plain cmd=ped:actions_add_action_pedit_munge_offset_12_u32_set_0x1_drop_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-046", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-046/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-046/dump.out new file mode 100644 index 000000000..aea456f68 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-046/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action drop keys 1 + index 1 ref 1 bind 0 + key #0 at 12: val 00000001 mask 00000000 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-046/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-046/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-046/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-046/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-046/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-046/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-046/ip.pcap new file mode 100644 index 000000000..bf38c801d Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-046/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-046/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-046/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-046/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-046/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-046/netlink_route_dump.pcap new file mode 100644 index 000000000..2391d5933 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-046/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-047/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-047/cmd.json new file mode 100644 index 000000000..f7c335f71 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-047/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped", + "json": "0", + "words": "actions add action pedit munge offset 12 u32 set 0x1 munge offset 16 u32 set 0x2 pipe index 1" + }, + "cmd": "tc actions add action pedit munge offset 12 u32 set 0x1 munge offset 16 u32 set 0x2 pipe index 1", + "desc": "positive: opt=plain cmd=ped:actions_add_action_pedit_munge_offset_12_u32_set_0x1_munge_offset_16_u32_set_0x2_pipe_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-047", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-047/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-047/dump.out new file mode 100644 index 000000000..e4898bd87 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-047/dump.out @@ -0,0 +1,7 @@ +total acts 1 + + action order 0: pedit action pipe keys 2 + index 1 ref 1 bind 0 + key #0 at 12: val 00000001 mask 00000000 + key #1 at 16: val 00000002 mask 00000000 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-047/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-047/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-047/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-047/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-047/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-047/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-047/ip.pcap new file mode 100644 index 000000000..e614ee83e Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-047/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-047/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-047/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-047/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-047/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-047/netlink_route_dump.pcap new file mode 100644 index 000000000..698d715a5 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-047/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-048/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-048/cmd.json new file mode 100644 index 000000000..e5ded3b69 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-048/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped", + "json": "0", + "words": "actions add action pedit ex munge offset 12 u32 add 1 index 1" + }, + "cmd": "tc actions add action pedit ex munge offset 12 u32 add 1 index 1", + "desc": "positive: opt=plain cmd=ped:actions_add_action_pedit_ex_munge_offset_12_u32_add_1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-048", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-048/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-048/dump.out new file mode 100644 index 000000000..5500d1caf --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-048/dump.out @@ -0,0 +1,7 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 12: add 00000001 mask 00000000 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-048/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-048/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-048/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-048/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-048/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-048/ip.pcap new file mode 100644 index 000000000..753208c90 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-048/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-048/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-048/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-048/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-048/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-048/netlink_route_dump.pcap new file mode 100644 index 000000000..2e6792155 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-048/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-049/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-049/cmd.json new file mode 100644 index 000000000..818c29a58 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-049/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped-ip", + "json": "0", + "words": "actions add action pedit munge ip src set 10.0.0.1 index 1" + }, + "cmd": "tc actions add action pedit munge ip src set 10.0.0.1 index 1", + "desc": "positive: opt=plain cmd=ped-ip:actions_add_action_pedit_munge_ip_src_set_10.0.0.1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-049", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-049/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-049/dump.out new file mode 100644 index 000000000..c7b356c65 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-049/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 12: val 0a000001 mask 00000000 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-049/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-049/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-049/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-049/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-049/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-049/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-049/ip.pcap new file mode 100644 index 000000000..c90d8ab4a Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-049/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-049/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-049/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-049/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-049/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-049/netlink_route_dump.pcap new file mode 100644 index 000000000..f688a9bbd Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-049/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-050/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-050/cmd.json new file mode 100644 index 000000000..e944b2d9e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-050/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped-ip", + "json": "0", + "words": "actions add action pedit munge ip dst set 10.0.0.2 index 1" + }, + "cmd": "tc actions add action pedit munge ip dst set 10.0.0.2 index 1", + "desc": "positive: opt=plain cmd=ped-ip:actions_add_action_pedit_munge_ip_dst_set_10.0.0.2_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-050", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-050/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-050/dump.out new file mode 100644 index 000000000..787717684 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-050/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 16: val 0a000002 mask 00000000 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-050/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-050/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-050/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-050/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-050/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-050/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-050/ip.pcap new file mode 100644 index 000000000..1660a1df7 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-050/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-050/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-050/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-050/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-050/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-050/netlink_route_dump.pcap new file mode 100644 index 000000000..2dc09b021 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-050/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-051/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-051/cmd.json new file mode 100644 index 000000000..cf9678b82 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-051/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped-ip", + "json": "0", + "words": "actions add action pedit munge ip tos set 0x10 index 1" + }, + "cmd": "tc actions add action pedit munge ip tos set 0x10 index 1", + "desc": "positive: opt=plain cmd=ped-ip:actions_add_action_pedit_munge_ip_tos_set_0x10_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-051", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-051/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-051/dump.out new file mode 100644 index 000000000..3cb842026 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-051/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 0: val 00100000 mask ff00ffff + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-051/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-051/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-051/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-051/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-051/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-051/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-051/ip.pcap new file mode 100644 index 000000000..01644d1c8 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-051/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-051/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-051/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-051/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-051/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-051/netlink_route_dump.pcap new file mode 100644 index 000000000..e5b548214 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-051/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-052/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-052/cmd.json new file mode 100644 index 000000000..2720f8e34 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-052/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped-ip", + "json": "0", + "words": "actions add action pedit munge ip dsfield set 0x10 index 1" + }, + "cmd": "tc actions add action pedit munge ip dsfield set 0x10 index 1", + "desc": "positive: opt=plain cmd=ped-ip:actions_add_action_pedit_munge_ip_dsfield_set_0x10_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-052", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-052/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-052/dump.out new file mode 100644 index 000000000..3cb842026 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-052/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 0: val 00100000 mask ff00ffff + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-052/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-052/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-052/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-052/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-052/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-052/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-052/ip.pcap new file mode 100644 index 000000000..94a00d9b7 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-052/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-052/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-052/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-052/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-052/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-052/netlink_route_dump.pcap new file mode 100644 index 000000000..af9493748 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-052/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-053/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-053/cmd.json new file mode 100644 index 000000000..1e2591dff --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-053/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped-ip", + "json": "0", + "words": "actions add action pedit munge ip ihl set 5 index 1" + }, + "cmd": "tc actions add action pedit munge ip ihl set 5 index 1", + "desc": "positive: opt=plain cmd=ped-ip:actions_add_action_pedit_munge_ip_ihl_set_5_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-053", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-053/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-053/dump.out new file mode 100644 index 000000000..0fd4fcfc2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-053/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 0: val 05000000 mask f0ffffff + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-053/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-053/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-053/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-053/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-053/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-053/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-053/ip.pcap new file mode 100644 index 000000000..3ce66d0fa Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-053/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-053/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-053/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-053/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-053/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-053/netlink_route_dump.pcap new file mode 100644 index 000000000..77d613441 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-053/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-054/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-054/cmd.json new file mode 100644 index 000000000..bab15e99b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-054/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped-ip", + "json": "0", + "words": "actions add action pedit munge ip ttl set 64 index 1" + }, + "cmd": "tc actions add action pedit munge ip ttl set 64 index 1", + "desc": "positive: opt=plain cmd=ped-ip:actions_add_action_pedit_munge_ip_ttl_set_64_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-054", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-054/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-054/dump.out new file mode 100644 index 000000000..a4e1dccb5 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-054/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 8: val 40000000 mask 00ffffff + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-054/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-054/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-054/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-054/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-054/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-054/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-054/ip.pcap new file mode 100644 index 000000000..4897f678e Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-054/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-054/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-054/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-054/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-054/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-054/netlink_route_dump.pcap new file mode 100644 index 000000000..8bc4ec17b Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-054/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-055/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-055/cmd.json new file mode 100644 index 000000000..bac60eaed --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-055/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped-ip", + "json": "0", + "words": "actions add action pedit munge ip protocol set 17 index 1" + }, + "cmd": "tc actions add action pedit munge ip protocol set 17 index 1", + "desc": "positive: opt=plain cmd=ped-ip:actions_add_action_pedit_munge_ip_protocol_set_17_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-055", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-055/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-055/dump.out new file mode 100644 index 000000000..fabfed715 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-055/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 8: val 00110000 mask ff00ffff + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-055/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-055/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-055/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-055/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-055/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-055/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-055/ip.pcap new file mode 100644 index 000000000..0f52bae31 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-055/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-055/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-055/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-055/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-055/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-055/netlink_route_dump.pcap new file mode 100644 index 000000000..5de23bfae Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-055/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-056/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-056/cmd.json new file mode 100644 index 000000000..e92edbe13 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-056/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped-ip", + "json": "0", + "words": "actions add action pedit munge ip precedence set 0x20 index 1" + }, + "cmd": "tc actions add action pedit munge ip precedence set 0x20 index 1", + "desc": "positive: opt=plain cmd=ped-ip:actions_add_action_pedit_munge_ip_precedence_set_0x20_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-056", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-056/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-056/dump.out new file mode 100644 index 000000000..90a730ef4 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-056/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 0: val 00200000 mask ff00ffff + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-056/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-056/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-056/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-056/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-056/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-056/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-056/ip.pcap new file mode 100644 index 000000000..12beb5290 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-056/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-056/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-056/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-056/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-056/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-056/netlink_route_dump.pcap new file mode 100644 index 000000000..97ec819c6 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-056/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-057/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-057/cmd.json new file mode 100644 index 000000000..fe771bed2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-057/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped-ip", + "json": "0", + "words": "actions add action pedit munge ip nofrag set 0 index 1" + }, + "cmd": "tc actions add action pedit munge ip nofrag set 0 index 1", + "desc": "positive: opt=plain cmd=ped-ip:actions_add_action_pedit_munge_ip_nofrag_set_0_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-057", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-057/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-057/dump.out new file mode 100644 index 000000000..8d7e31179 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-057/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 4: val 00000000 mask ffffc0ff + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-057/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-057/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-057/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-057/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-057/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-057/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-057/ip.pcap new file mode 100644 index 000000000..c760c3088 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-057/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-057/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-057/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-057/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-057/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-057/netlink_route_dump.pcap new file mode 100644 index 000000000..e18391205 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-057/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-058/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-058/cmd.json new file mode 100644 index 000000000..2349a0ff8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-058/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped-ip", + "json": "0", + "words": "actions add action pedit munge ip firstfrag set 0 index 1" + }, + "cmd": "tc actions add action pedit munge ip firstfrag set 0 index 1", + "desc": "positive: opt=plain cmd=ped-ip:actions_add_action_pedit_munge_ip_firstfrag_set_0_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-058", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-058/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-058/dump.out new file mode 100644 index 000000000..4502246cc --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-058/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 4: val 00000000 mask ffffe0ff + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-058/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-058/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-058/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-058/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-058/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-058/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-058/ip.pcap new file mode 100644 index 000000000..0fd850915 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-058/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-058/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-058/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-058/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-058/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-058/netlink_route_dump.pcap new file mode 100644 index 000000000..0288c326f Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-058/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-059/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-059/cmd.json new file mode 100644 index 000000000..4682d0574 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-059/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped-ip", + "json": "0", + "words": "actions add action pedit munge ip ce set 0x80 index 1" + }, + "cmd": "tc actions add action pedit munge ip ce set 0x80 index 1", + "desc": "positive: opt=plain cmd=ped-ip:actions_add_action_pedit_munge_ip_ce_set_0x80_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-059", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-059/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-059/dump.out new file mode 100644 index 000000000..1014b2d3b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-059/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 4: val 00008000 mask ffff7fff + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-059/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-059/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-059/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-059/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-059/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-059/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-059/ip.pcap new file mode 100644 index 000000000..1007090c2 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-059/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-059/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-059/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-059/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-059/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-059/netlink_route_dump.pcap new file mode 100644 index 000000000..0e0b62be6 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-059/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-060/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-060/cmd.json new file mode 100644 index 000000000..116b73dec --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-060/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped-ip", + "json": "0", + "words": "actions add action pedit munge ip df set 0x40 index 1" + }, + "cmd": "tc actions add action pedit munge ip df set 0x40 index 1", + "desc": "positive: opt=plain cmd=ped-ip:actions_add_action_pedit_munge_ip_df_set_0x40_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-060", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-060/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-060/dump.out new file mode 100644 index 000000000..4d04ce0c5 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-060/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 4: val 00004000 mask ffffbfff + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-060/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-060/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-060/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-060/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-060/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-060/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-060/ip.pcap new file mode 100644 index 000000000..a79484429 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-060/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-060/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-060/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-060/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-060/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-060/netlink_route_dump.pcap new file mode 100644 index 000000000..0657b7942 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-060/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-061/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-061/cmd.json new file mode 100644 index 000000000..3e99eaa67 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-061/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped-ip", + "json": "0", + "words": "actions add action pedit munge ip mf set 0x20 index 1" + }, + "cmd": "tc actions add action pedit munge ip mf set 0x20 index 1", + "desc": "positive: opt=plain cmd=ped-ip:actions_add_action_pedit_munge_ip_mf_set_0x20_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-061", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-061/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-061/dump.out new file mode 100644 index 000000000..80d019c8a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-061/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 4: val 00002000 mask ffffdfff + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-061/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-061/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-061/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-061/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-061/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-061/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-061/ip.pcap new file mode 100644 index 000000000..c337832bc Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-061/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-061/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-061/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-061/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-061/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-061/netlink_route_dump.pcap new file mode 100644 index 000000000..ab01ccef3 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-061/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-062/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-062/cmd.json new file mode 100644 index 000000000..5c5f5e58e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-062/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped-ip", + "json": "0", + "words": "actions add action pedit munge ip dport set 80 index 1" + }, + "cmd": "tc actions add action pedit munge ip dport set 80 index 1", + "desc": "positive: opt=plain cmd=ped-ip:actions_add_action_pedit_munge_ip_dport_set_80_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-062", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-062/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-062/dump.out new file mode 100644 index 000000000..ddf2c2a3c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-062/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 20: val 00000050 mask ffff0000 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-062/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-062/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-062/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-062/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-062/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-062/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-062/ip.pcap new file mode 100644 index 000000000..da244f772 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-062/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-062/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-062/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-062/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-062/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-062/netlink_route_dump.pcap new file mode 100644 index 000000000..69e39031d Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-062/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-063/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-063/cmd.json new file mode 100644 index 000000000..00c762b12 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-063/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped-ip", + "json": "0", + "words": "actions add action pedit munge ip sport set 53 index 1" + }, + "cmd": "tc actions add action pedit munge ip sport set 53 index 1", + "desc": "positive: opt=plain cmd=ped-ip:actions_add_action_pedit_munge_ip_sport_set_53_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-063", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-063/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-063/dump.out new file mode 100644 index 000000000..d3c152656 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-063/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 20: val 00350000 mask 0000ffff + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-063/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-063/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-063/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-063/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-063/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-063/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-063/ip.pcap new file mode 100644 index 000000000..2db43e09f Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-063/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-063/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-063/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-063/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-063/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-063/netlink_route_dump.pcap new file mode 100644 index 000000000..de4b77a60 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-063/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-064/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-064/cmd.json new file mode 100644 index 000000000..94b5c8512 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-064/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped-ip", + "json": "0", + "words": "actions add action pedit munge ip icmp_type set 8 index 1" + }, + "cmd": "tc actions add action pedit munge ip icmp_type set 8 index 1", + "desc": "positive: opt=plain cmd=ped-ip:actions_add_action_pedit_munge_ip_icmp_type_set_8_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-064", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-064/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-064/dump.out new file mode 100644 index 000000000..4e01bab8f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-064/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 20: val 08000000 mask 00ffffff + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-064/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-064/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-064/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-064/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-064/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-064/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-064/ip.pcap new file mode 100644 index 000000000..a9bed8ca2 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-064/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-064/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-064/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-064/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-064/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-064/netlink_route_dump.pcap new file mode 100644 index 000000000..47cd7ac1d Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-064/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-065/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-065/cmd.json new file mode 100644 index 000000000..4158e17e3 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-065/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped-ex", + "json": "0", + "words": "actions add action pedit ex munge ip src set 10.0.0.1 index 1" + }, + "cmd": "tc actions add action pedit ex munge ip src set 10.0.0.1 index 1", + "desc": "positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_ip_src_set_10.0.0.1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-065", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-065/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-065/dump.out new file mode 100644 index 000000000..d3e478c30 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-065/dump.out @@ -0,0 +1,7 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at ipv4+12: val 0a000001 mask 00000000 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-065/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-065/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-065/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-065/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-065/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-065/ip.pcap new file mode 100644 index 000000000..f6db42a93 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-065/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-065/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-065/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-065/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-065/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-065/netlink_route_dump.pcap new file mode 100644 index 000000000..6c189a516 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-065/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-066/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-066/cmd.json new file mode 100644 index 000000000..153665d6a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-066/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped-ex", + "json": "0", + "words": "actions add action pedit ex munge ip ttl decrement index 1" + }, + "cmd": "tc actions add action pedit ex munge ip ttl decrement index 1", + "desc": "positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_ip_ttl_decrement_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-066", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-066/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-066/dump.out new file mode 100644 index 000000000..e73796c03 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-066/dump.out @@ -0,0 +1,7 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at ipv4+8: add ff000000 mask 00ffffff + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-066/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-066/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-066/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-066/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-066/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-066/ip.pcap new file mode 100644 index 000000000..14719de11 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-066/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-066/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-066/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-066/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-066/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-066/netlink_route_dump.pcap new file mode 100644 index 000000000..8d361716a Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-066/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-067/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-067/cmd.json new file mode 100644 index 000000000..079ab4a71 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-067/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped-ex", + "json": "0", + "words": "actions add action pedit ex munge ip ttl add 1 index 1" + }, + "cmd": "tc actions add action pedit ex munge ip ttl add 1 index 1", + "desc": "positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_ip_ttl_add_1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-067", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-067/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-067/dump.out new file mode 100644 index 000000000..b68084dab --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-067/dump.out @@ -0,0 +1,7 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at ipv4+8: add 01000000 mask 00ffffff + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-067/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-067/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-067/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-067/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-067/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-067/ip.pcap new file mode 100644 index 000000000..e78c75d14 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-067/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-067/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-067/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-067/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-067/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-067/netlink_route_dump.pcap new file mode 100644 index 000000000..7ba75acf5 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-067/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-068/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-068/cmd.json new file mode 100644 index 000000000..457494a82 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-068/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped-ex", + "json": "0", + "words": "actions add action pedit ex munge ip tos set 0x10 retain 0xf0 index 1" + }, + "cmd": "tc actions add action pedit ex munge ip tos set 0x10 retain 0xf0 index 1", + "desc": "positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_ip_tos_set_0x10_retain_0xf0_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-068", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-068/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-068/dump.out new file mode 100644 index 000000000..8a606acbf --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-068/dump.out @@ -0,0 +1,7 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at ipv4+0: val 00100000 mask ff0fffff + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-068/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-068/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-068/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-068/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-068/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-068/ip.pcap new file mode 100644 index 000000000..0bbaffc65 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-068/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-068/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-068/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-068/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-068/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-068/netlink_route_dump.pcap new file mode 100644 index 000000000..504c2d251 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-068/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-069/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-069/cmd.json new file mode 100644 index 000000000..7e42dc222 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-069/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped-ex", + "json": "0", + "words": "actions add action pedit ex munge ip6 src set 2001:db8::1 index 1" + }, + "cmd": "tc actions add action pedit ex munge ip6 src set 2001:db8::1 index 1", + "desc": "positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_ip6_src_set_2001:db8::1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-069", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-069/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-069/dump.out new file mode 100644 index 000000000..0e6e49ce9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-069/dump.out @@ -0,0 +1,10 @@ +total acts 1 + + action order 0: pedit action pass keys 4 + index 1 ref 1 bind 0 + key #0 at ipv6+8: val 20010db8 mask 00000000 + key #1 at ipv6+12: val 00000000 mask 00000000 + key #2 at ipv6+16: val 00000000 mask 00000000 + key #3 at ipv6+20: val 00000001 mask 00000000 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-069/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-069/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-069/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-069/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-069/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-069/ip.pcap new file mode 100644 index 000000000..fd5e30e73 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-069/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-069/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-069/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-069/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-069/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-069/netlink_route_dump.pcap new file mode 100644 index 000000000..50296a64c Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-069/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-070/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-070/cmd.json new file mode 100644 index 000000000..feaa12f70 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-070/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped-ex", + "json": "0", + "words": "actions add action pedit ex munge ip6 dst set 2001:db8::2 index 1" + }, + "cmd": "tc actions add action pedit ex munge ip6 dst set 2001:db8::2 index 1", + "desc": "positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_ip6_dst_set_2001:db8::2_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-070", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-070/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-070/dump.out new file mode 100644 index 000000000..046355c69 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-070/dump.out @@ -0,0 +1,10 @@ +total acts 1 + + action order 0: pedit action pass keys 4 + index 1 ref 1 bind 0 + key #0 at ipv6+24: val 20010db8 mask 00000000 + key #1 at ipv6+28: val 00000000 mask 00000000 + key #2 at ipv6+32: val 00000000 mask 00000000 + key #3 at ipv6+36: val 00000002 mask 00000000 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-070/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-070/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-070/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-070/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-070/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-070/ip.pcap new file mode 100644 index 000000000..ae3fb3103 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-070/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-070/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-070/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-070/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-070/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-070/netlink_route_dump.pcap new file mode 100644 index 000000000..9cff280bc Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-070/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-071/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-071/cmd.json new file mode 100644 index 000000000..6ed819733 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-071/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped-ex", + "json": "0", + "words": "actions add action pedit ex munge ip6 flow_lbl set 0x12345 index 1" + }, + "cmd": "tc actions add action pedit ex munge ip6 flow_lbl set 0x12345 index 1", + "desc": "positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_ip6_flow_lbl_set_0x12345_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-071", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-071/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-071/dump.out new file mode 100644 index 000000000..927475609 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-071/dump.out @@ -0,0 +1,7 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at ipv6+0: val 00012345 mask fff80000 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-071/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-071/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-071/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-071/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-071/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-071/ip.pcap new file mode 100644 index 000000000..3e1e4314d Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-071/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-071/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-071/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-071/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-071/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-071/netlink_route_dump.pcap new file mode 100644 index 000000000..d1b40f893 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-071/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-072/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-072/cmd.json new file mode 100644 index 000000000..2474f493c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-072/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped-ex", + "json": "0", + "words": "actions add action pedit ex munge ip6 payload_len set 100 index 1" + }, + "cmd": "tc actions add action pedit ex munge ip6 payload_len set 100 index 1", + "desc": "positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_ip6_payload_len_set_100_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-072", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-072/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-072/dump.out new file mode 100644 index 000000000..6fb3291fe --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-072/dump.out @@ -0,0 +1,7 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at ipv6+4: val 00640000 mask 0000ffff + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-072/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-072/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-072/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-072/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-072/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-072/ip.pcap new file mode 100644 index 000000000..23fad66f3 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-072/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-072/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-072/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-072/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-072/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-072/netlink_route_dump.pcap new file mode 100644 index 000000000..8ac9ab0ff Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-072/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-073/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-073/cmd.json new file mode 100644 index 000000000..77ef9b4ff --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-073/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped-ex", + "json": "0", + "words": "actions add action pedit ex munge ip6 nexthdr set 6 index 1" + }, + "cmd": "tc actions add action pedit ex munge ip6 nexthdr set 6 index 1", + "desc": "positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_ip6_nexthdr_set_6_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-073", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-073/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-073/dump.out new file mode 100644 index 000000000..88ea6354c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-073/dump.out @@ -0,0 +1,7 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at ipv6+4: val 00000600 mask ffff00ff + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-073/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-073/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-073/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-073/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-073/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-073/ip.pcap new file mode 100644 index 000000000..f79e06e3d Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-073/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-073/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-073/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-073/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-073/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-073/netlink_route_dump.pcap new file mode 100644 index 000000000..d1ce42f98 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-073/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-074/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-074/cmd.json new file mode 100644 index 000000000..903ff154d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-074/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped-ex", + "json": "0", + "words": "actions add action pedit ex munge ip6 hoplimit set 64 index 1" + }, + "cmd": "tc actions add action pedit ex munge ip6 hoplimit set 64 index 1", + "desc": "positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_ip6_hoplimit_set_64_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-074", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-074/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-074/dump.out new file mode 100644 index 000000000..156a41b75 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-074/dump.out @@ -0,0 +1,7 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at ipv6+4: val 00000040 mask ffffff00 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-074/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-074/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-074/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-074/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-074/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-074/ip.pcap new file mode 100644 index 000000000..a18e76616 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-074/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-074/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-074/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-074/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-074/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-074/netlink_route_dump.pcap new file mode 100644 index 000000000..dec57a2bc Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-074/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-075/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-075/cmd.json new file mode 100644 index 000000000..bf4d73db8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-075/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped-ex", + "json": "0", + "words": "actions add action pedit ex munge ip6 hoplimit decrement index 1" + }, + "cmd": "tc actions add action pedit ex munge ip6 hoplimit decrement index 1", + "desc": "positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_ip6_hoplimit_decrement_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-075", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-075/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-075/dump.out new file mode 100644 index 000000000..6d42bbbb9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-075/dump.out @@ -0,0 +1,7 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at ipv6+4: add 000000ff mask ffffff00 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-075/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-075/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-075/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-075/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-075/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-075/ip.pcap new file mode 100644 index 000000000..ce146c433 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-075/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-075/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-075/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-075/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-075/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-075/netlink_route_dump.pcap new file mode 100644 index 000000000..c9ca70dfb Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-075/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-076/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-076/cmd.json new file mode 100644 index 000000000..6c9cf7c58 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-076/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped-ex", + "json": "0", + "words": "actions add action pedit ex munge ip6 traffic_class set 0x10 index 1" + }, + "cmd": "tc actions add action pedit ex munge ip6 traffic_class set 0x10 index 1", + "desc": "positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_ip6_traffic_class_set_0x10_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-076", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-076/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-076/dump.out new file mode 100644 index 000000000..92a1ebcc5 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-076/dump.out @@ -0,0 +1,7 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at ipv6+0: val 01000000 mask f00fffff + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-076/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-076/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-076/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-076/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-076/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-076/ip.pcap new file mode 100644 index 000000000..c04ca8185 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-076/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-076/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-076/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-076/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-076/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-076/netlink_route_dump.pcap new file mode 100644 index 000000000..2a215bd40 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-076/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-077/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-077/cmd.json new file mode 100644 index 000000000..440386807 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-077/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped-ex", + "json": "0", + "words": "actions add action pedit ex munge tcp sport set 80 index 1" + }, + "cmd": "tc actions add action pedit ex munge tcp sport set 80 index 1", + "desc": "positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_tcp_sport_set_80_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-077", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-077/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-077/dump.out new file mode 100644 index 000000000..6a90ce507 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-077/dump.out @@ -0,0 +1,7 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at tcp+0: val 00500000 mask 0000ffff + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-077/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-077/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-077/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-077/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-077/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-077/ip.pcap new file mode 100644 index 000000000..fdba19680 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-077/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-077/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-077/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-077/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-077/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-077/netlink_route_dump.pcap new file mode 100644 index 000000000..3ff813087 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-077/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-078/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-078/cmd.json new file mode 100644 index 000000000..80f4e1dd4 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-078/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped-ex", + "json": "0", + "words": "actions add action pedit ex munge tcp dport set 443 index 1" + }, + "cmd": "tc actions add action pedit ex munge tcp dport set 443 index 1", + "desc": "positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_tcp_dport_set_443_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-078", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-078/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-078/dump.out new file mode 100644 index 000000000..8cc9b7ab8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-078/dump.out @@ -0,0 +1,7 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at tcp+0: val 000001bb mask ffff0000 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-078/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-078/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-078/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-078/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-078/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-078/ip.pcap new file mode 100644 index 000000000..34af5731d Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-078/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-078/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-078/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-078/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-078/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-078/netlink_route_dump.pcap new file mode 100644 index 000000000..6079c2f87 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-078/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-079/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-079/cmd.json new file mode 100644 index 000000000..ef6c47047 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-079/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped-ex", + "json": "0", + "words": "actions add action pedit ex munge tcp flags set 0x02 index 1" + }, + "cmd": "tc actions add action pedit ex munge tcp flags set 0x02 index 1", + "desc": "positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_tcp_flags_set_0x02_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-079", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-079/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-079/dump.out new file mode 100644 index 000000000..a4266d974 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-079/dump.out @@ -0,0 +1,7 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at tcp+12: val 00020000 mask ff00ffff + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-079/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-079/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-079/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-079/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-079/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-079/ip.pcap new file mode 100644 index 000000000..9219f5287 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-079/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-079/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-079/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-079/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-079/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-079/netlink_route_dump.pcap new file mode 100644 index 000000000..b10c60a7c Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-079/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-080/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-080/cmd.json new file mode 100644 index 000000000..d0c5bbce3 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-080/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped-ex", + "json": "0", + "words": "actions add action pedit ex munge udp sport set 53 index 1" + }, + "cmd": "tc actions add action pedit ex munge udp sport set 53 index 1", + "desc": "positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_udp_sport_set_53_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-080", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-080/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-080/dump.out new file mode 100644 index 000000000..469c6f650 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-080/dump.out @@ -0,0 +1,7 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at udp+0: val 00350000 mask 0000ffff + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-080/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-080/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-080/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-080/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-080/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-080/ip.pcap new file mode 100644 index 000000000..454febd2d Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-080/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-080/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-080/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-080/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-080/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-080/netlink_route_dump.pcap new file mode 100644 index 000000000..de07e2f30 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-080/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-081/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-081/cmd.json new file mode 100644 index 000000000..4c30e6c98 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-081/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped-ex", + "json": "0", + "words": "actions add action pedit ex munge udp dport set 67 index 1" + }, + "cmd": "tc actions add action pedit ex munge udp dport set 67 index 1", + "desc": "positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_udp_dport_set_67_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-081", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-081/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-081/dump.out new file mode 100644 index 000000000..c1b84db28 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-081/dump.out @@ -0,0 +1,7 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at udp+0: val 00000043 mask ffff0000 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-081/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-081/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-081/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-081/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-081/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-081/ip.pcap new file mode 100644 index 000000000..1475b90fc Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-081/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-081/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-081/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-081/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-081/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-081/netlink_route_dump.pcap new file mode 100644 index 000000000..d347443d3 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-081/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-082/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-082/cmd.json new file mode 100644 index 000000000..34b237f6b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-082/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped-ex", + "json": "0", + "words": "actions add action pedit ex munge eth dst set 02:00:00:00:00:09 index 1" + }, + "cmd": "tc actions add action pedit ex munge eth dst set 02:00:00:00:00:09 index 1", + "desc": "positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_eth_dst_set_02:00:00:00:00:09_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-082", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-082/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-082/dump.out new file mode 100644 index 000000000..4c7c2efe7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-082/dump.out @@ -0,0 +1,8 @@ +total acts 1 + + action order 0: pedit action pass keys 2 + index 1 ref 1 bind 0 + key #0 at eth+0: val 02000000 mask 00000000 + key #1 at eth+4: val 00090000 mask 0000ffff + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-082/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-082/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-082/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-082/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-082/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-082/ip.pcap new file mode 100644 index 000000000..cabd76399 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-082/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-082/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-082/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-082/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-082/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-082/netlink_route_dump.pcap new file mode 100644 index 000000000..fe419815e Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-082/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-083/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-083/cmd.json new file mode 100644 index 000000000..4d2f232b5 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-083/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped-ex", + "json": "0", + "words": "actions add action pedit ex munge eth src set 02:00:00:00:00:0a index 1" + }, + "cmd": "tc actions add action pedit ex munge eth src set 02:00:00:00:00:0a index 1", + "desc": "positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_eth_src_set_02:00:00:00:00:0a_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-083", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-083/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-083/dump.out new file mode 100644 index 000000000..0ef627b2b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-083/dump.out @@ -0,0 +1,8 @@ +total acts 1 + + action order 0: pedit action pass keys 2 + index 1 ref 1 bind 0 + key #0 at eth+4: val 00000200 mask ffff0000 + key #1 at eth+8: val 0000000a mask 00000000 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-083/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-083/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-083/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-083/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-083/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-083/ip.pcap new file mode 100644 index 000000000..43eca7f58 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-083/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-083/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-083/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-083/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-083/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-083/netlink_route_dump.pcap new file mode 100644 index 000000000..755629a83 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-083/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-084/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-084/cmd.json new file mode 100644 index 000000000..009ea485b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-084/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped-ex", + "json": "0", + "words": "actions add action pedit ex munge eth type set 0x0800 index 1" + }, + "cmd": "tc actions add action pedit ex munge eth type set 0x0800 index 1", + "desc": "positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_eth_type_set_0x0800_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-084", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-084/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-084/dump.out new file mode 100644 index 000000000..c06e801df --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-084/dump.out @@ -0,0 +1,7 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at eth+12: val 08000000 mask 0000ffff + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-084/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-084/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-084/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-084/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-084/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-084/ip.pcap new file mode 100644 index 000000000..cfdf3b8b6 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-084/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-084/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-084/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-084/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-084/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-084/netlink_route_dump.pcap new file mode 100644 index 000000000..0918beb9e Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-084/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-085/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-085/cmd.json new file mode 100644 index 000000000..b84344ed1 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-085/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped-ex", + "json": "0", + "words": "actions add action pedit ex munge ip ttl set 10 munge ip6 hoplimit set 10 munge tcp dport set 80 munge eth type set 0x86dd index 1" + }, + "cmd": "tc actions add action pedit ex munge ip ttl set 10 munge ip6 hoplimit set 10 munge tcp dport set 80 munge eth type set 0x86dd index 1", + "desc": "positive: opt=plain cmd=ped-ex:actions_add_action_pedit_ex_munge_ip_ttl_set_10_munge_ip6_hoplimit_set_10_munge_tcp_dport_set_80_munge_eth_type_set_0x86dd_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-085", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-085/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-085/dump.out new file mode 100644 index 000000000..fe46ae53b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-085/dump.out @@ -0,0 +1,10 @@ +total acts 1 + + action order 0: pedit action pass keys 4 + index 1 ref 1 bind 0 + key #0 at ipv4+8: val 0a000000 mask 00ffffff + key #1 at ipv6+4: val 0000000a mask ffffff00 + key #2 at tcp+0: val 00000050 mask ffff0000 + key #3 at eth+12: val 86dd0000 mask 0000ffff + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-085/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-085/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-085/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-085/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-085/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-085/ip.pcap new file mode 100644 index 000000000..0e8d30498 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-085/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-085/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-085/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-085/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-085/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-085/netlink_route_dump.pcap new file mode 100644 index 000000000..1cb764477 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-085/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-086/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-086/cmd.json new file mode 100644 index 000000000..3cea9436e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-086/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped", + "json": "0", + "words": "actions add action pedit munge ip ttl set 255 index 1" + }, + "cmd": "tc actions add action pedit munge ip ttl set 255 index 1", + "desc": "boundary: opt=plain cmd=ped:actions_add_action_pedit_munge_ip_ttl_set_255_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-086", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-086/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-086/dump.out new file mode 100644 index 000000000..989ee9ed9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-086/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 8: val ff000000 mask 00ffffff + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-086/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-086/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-086/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-086/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-086/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-086/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-086/ip.pcap new file mode 100644 index 000000000..31e91221b Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-086/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-086/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-086/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-086/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-086/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-086/netlink_route_dump.pcap new file mode 100644 index 000000000..2f01a098b Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-086/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-087/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-087/cmd.json new file mode 100644 index 000000000..49a71fc4a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-087/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ped", + "json": "0", + "words": "actions add action pedit munge ip dport set 65535 index 1" + }, + "cmd": "tc actions add action pedit munge ip dport set 65535 index 1", + "desc": "boundary: opt=plain cmd=ped:actions_add_action_pedit_munge_ip_dport_set_65535_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-087", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-087/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-087/dump.out new file mode 100644 index 000000000..8a20b29c1 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-087/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 20: val 0000ffff mask ffff0000 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-087/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-087/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-087/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-087/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-087/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-087/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-087/ip.pcap new file mode 100644 index 000000000..e20931497 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-087/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-087/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-087/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-087/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-087/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-087/netlink_route_dump.pcap new file mode 100644 index 000000000..320b64e07 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-087/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-088/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-088/cmd.json new file mode 100644 index 000000000..8afde7972 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-088/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w220", + "json": "0", + "words": "actions add action pedit munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 index 1" + }, + "cmd": "tc actions add action pedit munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 index 1", + "desc": "boundary: opt=plain cmd=w220:actions_add_action_pedit_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-088", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-088/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-088/dump.out new file mode 100644 index 000000000..9315c556f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-088/dump.out @@ -0,0 +1,133 @@ +total acts 1 + + action order 0: pedit action pass keys 128 + index 1 ref 1 bind 0 + key #0 at 0: val 00000001 mask 00000000 + key #1 at 0: val 00000001 mask 00000000 + key #2 at 0: val 00000001 mask 00000000 + key #3 at 0: val 00000001 mask 00000000 + key #4 at 0: val 00000001 mask 00000000 + key #5 at 0: val 00000001 mask 00000000 + key #6 at 0: val 00000001 mask 00000000 + key #7 at 0: val 00000001 mask 00000000 + key #8 at 0: val 00000001 mask 00000000 + key #9 at 0: val 00000001 mask 00000000 + key #10 at 0: val 00000001 mask 00000000 + key #11 at 0: val 00000001 mask 00000000 + key #12 at 0: val 00000001 mask 00000000 + key #13 at 0: val 00000001 mask 00000000 + key #14 at 0: val 00000001 mask 00000000 + key #15 at 0: val 00000001 mask 00000000 + key #16 at 0: val 00000001 mask 00000000 + key #17 at 0: val 00000001 mask 00000000 + key #18 at 0: val 00000001 mask 00000000 + key #19 at 0: val 00000001 mask 00000000 + key #20 at 0: val 00000001 mask 00000000 + key #21 at 0: val 00000001 mask 00000000 + key #22 at 0: val 00000001 mask 00000000 + key #23 at 0: val 00000001 mask 00000000 + key #24 at 0: val 00000001 mask 00000000 + key #25 at 0: val 00000001 mask 00000000 + key #26 at 0: val 00000001 mask 00000000 + key #27 at 0: val 00000001 mask 00000000 + key #28 at 0: val 00000001 mask 00000000 + key #29 at 0: val 00000001 mask 00000000 + key #30 at 0: val 00000001 mask 00000000 + key #31 at 0: val 00000001 mask 00000000 + key #32 at 0: val 00000001 mask 00000000 + key #33 at 0: val 00000001 mask 00000000 + key #34 at 0: val 00000001 mask 00000000 + key #35 at 0: val 00000001 mask 00000000 + key #36 at 0: val 00000001 mask 00000000 + key #37 at 0: val 00000001 mask 00000000 + key #38 at 0: val 00000001 mask 00000000 + key #39 at 0: val 00000001 mask 00000000 + key #40 at 0: val 00000001 mask 00000000 + key #41 at 0: val 00000001 mask 00000000 + key #42 at 0: val 00000001 mask 00000000 + key #43 at 0: val 00000001 mask 00000000 + key #44 at 0: val 00000001 mask 00000000 + key #45 at 0: val 00000001 mask 00000000 + key #46 at 0: val 00000001 mask 00000000 + key #47 at 0: val 00000001 mask 00000000 + key #48 at 0: val 00000001 mask 00000000 + key #49 at 0: val 00000001 mask 00000000 + key #50 at 0: val 00000001 mask 00000000 + key #51 at 0: val 00000001 mask 00000000 + key #52 at 0: val 00000001 mask 00000000 + key #53 at 0: val 00000001 mask 00000000 + key #54 at 0: val 00000001 mask 00000000 + key #55 at 0: val 00000001 mask 00000000 + key #56 at 0: val 00000001 mask 00000000 + key #57 at 0: val 00000001 mask 00000000 + key #58 at 0: val 00000001 mask 00000000 + key #59 at 0: val 00000001 mask 00000000 + key #60 at 0: val 00000001 mask 00000000 + key #61 at 0: val 00000001 mask 00000000 + key #62 at 0: val 00000001 mask 00000000 + key #63 at 0: val 00000001 mask 00000000 + key #64 at 0: val 00000001 mask 00000000 + key #65 at 0: val 00000001 mask 00000000 + key #66 at 0: val 00000001 mask 00000000 + key #67 at 0: val 00000001 mask 00000000 + key #68 at 0: val 00000001 mask 00000000 + key #69 at 0: val 00000001 mask 00000000 + key #70 at 0: val 00000001 mask 00000000 + key #71 at 0: val 00000001 mask 00000000 + key #72 at 0: val 00000001 mask 00000000 + key #73 at 0: val 00000001 mask 00000000 + key #74 at 0: val 00000001 mask 00000000 + key #75 at 0: val 00000001 mask 00000000 + key #76 at 0: val 00000001 mask 00000000 + key #77 at 0: val 00000001 mask 00000000 + key #78 at 0: val 00000001 mask 00000000 + key #79 at 0: val 00000001 mask 00000000 + key #80 at 0: val 00000001 mask 00000000 + key #81 at 0: val 00000001 mask 00000000 + key #82 at 0: val 00000001 mask 00000000 + key #83 at 0: val 00000001 mask 00000000 + key #84 at 0: val 00000001 mask 00000000 + key #85 at 0: val 00000001 mask 00000000 + key #86 at 0: val 00000001 mask 00000000 + key #87 at 0: val 00000001 mask 00000000 + key #88 at 0: val 00000001 mask 00000000 + key #89 at 0: val 00000001 mask 00000000 + key #90 at 0: val 00000001 mask 00000000 + key #91 at 0: val 00000001 mask 00000000 + key #92 at 0: val 00000001 mask 00000000 + key #93 at 0: val 00000001 mask 00000000 + key #94 at 0: val 00000001 mask 00000000 + key #95 at 0: val 00000001 mask 00000000 + key #96 at 0: val 00000001 mask 00000000 + key #97 at 0: val 00000001 mask 00000000 + key #98 at 0: val 00000001 mask 00000000 + key #99 at 0: val 00000001 mask 00000000 + key #100 at 0: val 00000001 mask 00000000 + key #101 at 0: val 00000001 mask 00000000 + key #102 at 0: val 00000001 mask 00000000 + key #103 at 0: val 00000001 mask 00000000 + key #104 at 0: val 00000001 mask 00000000 + key #105 at 0: val 00000001 mask 00000000 + key #106 at 0: val 00000001 mask 00000000 + key #107 at 0: val 00000001 mask 00000000 + key #108 at 0: val 00000001 mask 00000000 + key #109 at 0: val 00000001 mask 00000000 + key #110 at 0: val 00000001 mask 00000000 + key #111 at 0: val 00000001 mask 00000000 + key #112 at 0: val 00000001 mask 00000000 + key #113 at 0: val 00000001 mask 00000000 + key #114 at 0: val 00000001 mask 00000000 + key #115 at 0: val 00000001 mask 00000000 + key #116 at 0: val 00000001 mask 00000000 + key #117 at 0: val 00000001 mask 00000000 + key #118 at 0: val 00000001 mask 00000000 + key #119 at 0: val 00000001 mask 00000000 + key #120 at 0: val 00000001 mask 00000000 + key #121 at 0: val 00000001 mask 00000000 + key #122 at 0: val 00000001 mask 00000000 + key #123 at 0: val 00000001 mask 00000000 + key #124 at 0: val 00000001 mask 00000000 + key #125 at 0: val 00000001 mask 00000000 + key #126 at 0: val 00000001 mask 00000000 + key #127 at 0: val 00000001 mask 00000000 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-088/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-088/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-088/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-088/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-088/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-088/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-088/ip.pcap new file mode 100644 index 000000000..276267102 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-088/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-088/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-088/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-088/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-088/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-088/netlink_route_dump.pcap new file mode 100644 index 000000000..d6c933464 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-088/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-089/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-089/cmd.json new file mode 100644 index 000000000..b1f23de59 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-089/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w216-at", + "json": "0", + "words": "actions add action pedit munge offset 12 u32 at 4 0xff 24 set 1 index 1" + }, + "cmd": "tc actions add action pedit munge offset 12 u32 at 4 0xff 24 set 1 index 1", + "desc": "corner: opt=plain cmd=w216-at:actions_add_action_pedit_munge_offset_12_u32_at_4_0xff_24_set_1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-089", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-089/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-089/dump.out new file mode 100644 index 000000000..39572662b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-089/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 12: val 00000001 mask 00000000 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-089/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-089/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-089/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-089/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-089/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-089/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-089/ip.pcap new file mode 100644 index 000000000..dcd3c20ac Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-089/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-089/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-089/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-089/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-089/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-089/netlink_route_dump.pcap new file mode 100644 index 000000000..d61ac5e47 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-089/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-090/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-090/cmd.json new file mode 100644 index 000000000..c219f4f3f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-090/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w217", + "json": "0", + "words": "actions add action pedit munge offset 12 u32 at 0x4 10 2 set 1 index 1" + }, + "cmd": "tc actions add action pedit munge offset 12 u32 at 0x4 10 2 set 1 index 1", + "desc": "corner: opt=plain cmd=w217:actions_add_action_pedit_munge_offset_12_u32_at_0x4_10_2_set_1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-090", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-090/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-090/dump.out new file mode 100644 index 000000000..39572662b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-090/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 12: val 00000001 mask 00000000 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-090/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-090/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-090/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-090/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-090/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-090/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-090/ip.pcap new file mode 100644 index 000000000..e81ea518b Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-090/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-090/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-090/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-090/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-090/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-090/netlink_route_dump.pcap new file mode 100644 index 000000000..fbbdf7dcd Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-090/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-091/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-091/cmd.json new file mode 100644 index 000000000..18c68bbcc --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-091/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w223", + "json": "0", + "words": "actions add action pedit ex munge eth dst invert index 1" + }, + "cmd": "tc actions add action pedit ex munge eth dst invert index 1", + "desc": "corner: opt=plain cmd=w223:actions_add_action_pedit_ex_munge_eth_dst_invert_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-091", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-091/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-091/dump.out new file mode 100644 index 000000000..37a348772 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-091/dump.out @@ -0,0 +1,8 @@ +total acts 1 + + action order 0: pedit action pass keys 2 + index 1 ref 1 bind 0 + key #0 at eth+0: val ff000000 mask 00000000 + key #1 at eth+4: val 00000000 mask 0000ffff + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-091/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-091/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-091/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-091/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-091/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-091/ip.pcap new file mode 100644 index 000000000..ff091f539 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-091/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-091/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-091/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-091/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-091/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-091/netlink_route_dump.pcap new file mode 100644 index 000000000..1b37c638e Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-091/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-092/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-092/cmd.json new file mode 100644 index 000000000..86777a1a7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-092/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w223-ip6", + "json": "0", + "words": "actions add action pedit ex munge ip6 dst invert index 1" + }, + "cmd": "tc actions add action pedit ex munge ip6 dst invert index 1", + "desc": "corner: opt=plain cmd=w223-ip6:actions_add_action_pedit_ex_munge_ip6_dst_invert_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-092", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-092/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-092/dump.out new file mode 100644 index 000000000..0c43394dc --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-092/dump.out @@ -0,0 +1,10 @@ +total acts 1 + + action order 0: pedit action pass keys 4 + index 1 ref 1 bind 0 + key #0 at ipv6+24: val ff000000 mask 00000000 + key #1 at ipv6+28: val 00000000 mask 00000000 + key #2 at ipv6+32: val 00000000 mask 00000000 + key #3 at ipv6+36: val 00000000 mask 00000000 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-092/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-092/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-092/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-092/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-092/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-092/ip.pcap new file mode 100644 index 000000000..94ee0832b Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-092/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-092/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-092/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-092/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-092/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-092/netlink_route_dump.pcap new file mode 100644 index 000000000..cda618ec1 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-092/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-093/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-093/cmd.json new file mode 100644 index 000000000..ec60a07a7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-093/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w224", + "json": "0", + "words": "actions add action pedit munge offset 12 u32 preserve retain 0xff index 1" + }, + "cmd": "tc actions add action pedit munge offset 12 u32 preserve retain 0xff index 1", + "desc": "corner: opt=plain cmd=w224:actions_add_action_pedit_munge_offset_12_u32_preserve_retain_0xff_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-093", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-093/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-093/dump.out new file mode 100644 index 000000000..2905bcbbd --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-093/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 12: val 00000000 mask ffffff00 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-093/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-093/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-093/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-093/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-093/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-093/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-093/ip.pcap new file mode 100644 index 000000000..20fa5ccf0 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-093/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-093/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-093/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-093/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-093/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-093/netlink_route_dump.pcap new file mode 100644 index 000000000..bdfe2d2d7 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-093/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-094/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-094/cmd.json new file mode 100644 index 000000000..2dd51d6d0 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-094/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w224-set", + "json": "0", + "words": "actions add action pedit munge offset 12 u32 set 0x1234 retain 0xff index 1" + }, + "cmd": "tc actions add action pedit munge offset 12 u32 set 0x1234 retain 0xff index 1", + "desc": "corner: opt=plain cmd=w224-set:actions_add_action_pedit_munge_offset_12_u32_set_0x1234_retain_0xff_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-094", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-094/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-094/dump.out new file mode 100644 index 000000000..d5337fb96 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-094/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 12: val 00000034 mask ffffff00 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-094/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-094/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-094/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-094/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-094/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-094/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-094/ip.pcap new file mode 100644 index 000000000..3e1625540 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-094/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-094/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-094/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-094/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-094/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-094/netlink_route_dump.pcap new file mode 100644 index 000000000..2364b57ac Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-094/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-095/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-095/cmd.json new file mode 100644 index 000000000..1303794fb --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-095/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w227", + "json": "0", + "words": "actions add action pedit munge offset 12 u32 a 0 f 0 set 1 index 1" + }, + "cmd": "tc actions add action pedit munge offset 12 u32 a 0 f 0 set 1 index 1", + "desc": "corner: opt=plain cmd=w227:actions_add_action_pedit_munge_offset_12_u32_a_0_f_0_set_1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-095", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-095/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-095/dump.out new file mode 100644 index 000000000..39572662b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-095/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 12: val 00000001 mask 00000000 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-095/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-095/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-095/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-095/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-095/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-095/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-095/ip.pcap new file mode 100644 index 000000000..8733e9076 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-095/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-095/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-095/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-095/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-095/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-095/netlink_route_dump.pcap new file mode 100644 index 000000000..6be9f6f89 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-095/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-096/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-096/cmd.json new file mode 100644 index 000000000..ab97d150d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-096/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w227-u", + "json": "0", + "words": "actions add action pedit munge offset 12 u set 1 index 1" + }, + "cmd": "tc actions add action pedit munge offset 12 u set 1 index 1", + "desc": "corner: opt=plain cmd=w227-u:actions_add_action_pedit_munge_offset_12_u_set_1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-096", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-096/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-096/dump.out new file mode 100644 index 000000000..39572662b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-096/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 12: val 00000001 mask 00000000 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-096/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-096/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-096/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-096/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-096/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-096/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-096/ip.pcap new file mode 100644 index 000000000..fc443f29b Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-096/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-096/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-096/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-096/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-096/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-096/netlink_route_dump.pcap new file mode 100644 index 000000000..b6d167540 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-096/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-097/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-097/cmd.json new file mode 100644 index 000000000..bb3ce9e00 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-097/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w227-u1", + "json": "0", + "words": "actions add action pedit munge offset 12 u1 set 1 index 1" + }, + "cmd": "tc actions add action pedit munge offset 12 u1 set 1 index 1", + "desc": "corner: opt=plain cmd=w227-u1:actions_add_action_pedit_munge_offset_12_u1_set_1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-097", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-097/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-097/dump.out new file mode 100644 index 000000000..4e3b77867 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-097/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 12: val 00010000 mask 0000ffff + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-097/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-097/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-097/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-097/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-097/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-097/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-097/ip.pcap new file mode 100644 index 000000000..548d3a815 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-097/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-097/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-097/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-097/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-097/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-097/netlink_route_dump.pcap new file mode 100644 index 000000000..72527d132 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-097/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-098/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-098/cmd.json new file mode 100644 index 000000000..87d9eabe4 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-098/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w232-junk", + "json": "0", + "words": "actions add action pedit ex munge eth dst set 02:00:00:00:00:01junk index 1" + }, + "cmd": "tc actions add action pedit ex munge eth dst set 02:00:00:00:00:01junk index 1", + "desc": "corner: opt=plain cmd=w232-junk:actions_add_action_pedit_ex_munge_eth_dst_set_02:00:00:00:00:01junk_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-098", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-098/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-098/dump.out new file mode 100644 index 000000000..780fda4cd --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-098/dump.out @@ -0,0 +1,8 @@ +total acts 1 + + action order 0: pedit action pass keys 2 + index 1 ref 1 bind 0 + key #0 at eth+0: val 02000000 mask 00000000 + key #1 at eth+4: val 00010000 mask 0000ffff + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-098/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-098/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-098/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-098/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-098/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-098/ip.pcap new file mode 100644 index 000000000..ee4572a5d Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-098/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-098/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-098/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-098/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-098/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-098/netlink_route_dump.pcap new file mode 100644 index 000000000..da43e13eb Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-098/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-099/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-099/cmd.json new file mode 100644 index 000000000..42b0f7db6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-099/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w233", + "json": "0", + "words": "actions add action pedit munge ip src set 10.0.0.1/8 index 1" + }, + "cmd": "tc actions add action pedit munge ip src set 10.0.0.1/8 index 1", + "desc": "corner: opt=plain cmd=w233:actions_add_action_pedit_munge_ip_src_set_10.0.0.1/8_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-099", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-099/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-099/dump.out new file mode 100644 index 000000000..c7b356c65 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-099/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 12: val 0a000001 mask 00000000 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-099/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-099/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-099/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-099/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-099/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-099/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-099/ip.pcap new file mode 100644 index 000000000..b1a3b5002 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-099/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-099/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-099/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-099/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-099/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-099/netlink_route_dump.pcap new file mode 100644 index 000000000..fe74f6e3f Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-099/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-100/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-100/cmd.json new file mode 100644 index 000000000..1a94ac5f4 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-100/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w233-legacy", + "json": "0", + "words": "actions add action pedit munge ip src set 010.1 index 1" + }, + "cmd": "tc actions add action pedit munge ip src set 010.1 index 1", + "desc": "corner: opt=plain cmd=w233-legacy:actions_add_action_pedit_munge_ip_src_set_010.1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-100", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-100/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-100/dump.out new file mode 100644 index 000000000..0d67788b8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-100/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 12: val 08010000 mask 00000000 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-100/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-100/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-100/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-100/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-100/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-100/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-100/ip.pcap new file mode 100644 index 000000000..d92f606ed Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-100/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-100/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-100/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-100/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-100/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-100/netlink_route_dump.pcap new file mode 100644 index 000000000..796bfc6ff Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-100/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-101/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-101/cmd.json new file mode 100644 index 000000000..e2862ae1d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-101/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w233-any", + "json": "0", + "words": "actions add action pedit munge ip dst set any index 1" + }, + "cmd": "tc actions add action pedit munge ip dst set any index 1", + "desc": "corner: opt=plain cmd=w233-any:actions_add_action_pedit_munge_ip_dst_set_any_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-101", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-101/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-101/dump.out new file mode 100644 index 000000000..ff9862039 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-101/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 16: val 00000000 mask 00000000 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-101/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-101/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-101/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-101/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-101/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-101/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-101/ip.pcap new file mode 100644 index 000000000..c9b814122 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-101/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-101/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-101/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-101/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-101/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-101/netlink_route_dump.pcap new file mode 100644 index 000000000..bbd5124f2 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-101/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-102/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-102/cmd.json new file mode 100644 index 000000000..bb9a877ec --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-102/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w234", + "json": "0", + "words": "actions add action pedit ex munge ip6 src set any index 1" + }, + "cmd": "tc actions add action pedit ex munge ip6 src set any index 1", + "desc": "corner: opt=plain cmd=w234:actions_add_action_pedit_ex_munge_ip6_src_set_any_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-102", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-102/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-102/dump.out new file mode 100644 index 000000000..328da2462 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-102/dump.out @@ -0,0 +1,10 @@ +total acts 1 + + action order 0: pedit action pass keys 4 + index 1 ref 1 bind 0 + key #0 at ipv6+8: val 00000000 mask 00000000 + key #1 at ipv6+12: val 00000000 mask 00000000 + key #2 at ipv6+16: val 00000000 mask 00000000 + key #3 at ipv6+20: val 00000000 mask 00000000 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-102/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-102/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-102/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-102/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-102/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-102/ip.pcap new file mode 100644 index 000000000..61ba6b6ed Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-102/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-102/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-102/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-102/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-102/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-102/netlink_route_dump.pcap new file mode 100644 index 000000000..ec2669883 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-102/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-103/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-103/cmd.json new file mode 100644 index 000000000..6b45e5250 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-103/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w234-len", + "json": "0", + "words": "actions add action pedit ex munge ip6 src set 2001:db8::1/64 index 1" + }, + "cmd": "tc actions add action pedit ex munge ip6 src set 2001:db8::1/64 index 1", + "desc": "corner: opt=plain cmd=w234-len:actions_add_action_pedit_ex_munge_ip6_src_set_2001:db8::1/64_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-103", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-103/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-103/dump.out new file mode 100644 index 000000000..0e6e49ce9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-103/dump.out @@ -0,0 +1,10 @@ +total acts 1 + + action order 0: pedit action pass keys 4 + index 1 ref 1 bind 0 + key #0 at ipv6+8: val 20010db8 mask 00000000 + key #1 at ipv6+12: val 00000000 mask 00000000 + key #2 at ipv6+16: val 00000000 mask 00000000 + key #3 at ipv6+20: val 00000001 mask 00000000 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-103/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-103/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-103/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-103/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-103/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-103/ip.pcap new file mode 100644 index 000000000..abb4ad2b4 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-103/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-103/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-103/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-103/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-103/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-103/netlink_route_dump.pcap new file mode 100644 index 000000000..6cf34058a Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-103/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-104/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-104/cmd.json new file mode 100644 index 000000000..d20c29048 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-104/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w235", + "json": "0", + "words": "actions add action pedit munge offset -4 u32 set 1 index 1" + }, + "cmd": "tc actions add action pedit munge offset -4 u32 set 1 index 1", + "desc": "corner: opt=plain cmd=w235:actions_add_action_pedit_munge_offset_-4_u32_set_1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-104", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-104/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-104/dump.out new file mode 100644 index 000000000..2ec979fbf --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-104/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at -4: val 00000001 mask 00000000 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-104/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-104/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-104/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-104/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-104/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-104/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-104/ip.pcap new file mode 100644 index 000000000..2d04ada76 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-104/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-104/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-104/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-104/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-104/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-104/netlink_route_dump.pcap new file mode 100644 index 000000000..579fb1d0f Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-104/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-105/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-105/cmd.json new file mode 100644 index 000000000..fe50253e2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-105/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w236", + "json": "0", + "words": "actions add action pedit munge ip icmp_code set 3 index 1" + }, + "cmd": "tc actions add action pedit munge ip icmp_code set 3 index 1", + "desc": "corner: opt=plain cmd=w236:actions_add_action_pedit_munge_ip_icmp_code_set_3_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-105", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-105/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-105/dump.out new file mode 100644 index 000000000..8fb441902 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-105/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 20: val 03000000 mask 00ffffff + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-105/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-105/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-105/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-105/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-105/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-105/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-105/ip.pcap new file mode 100644 index 000000000..810693e55 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-105/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-105/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-105/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-105/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-105/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-105/netlink_route_dump.pcap new file mode 100644 index 000000000..3b8553235 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-105/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-106/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-106/cmd.json new file mode 100644 index 000000000..502afb31a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-106/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w237-d", + "json": "0", + "words": "actions add action pedit munge ip d set 1 index 1" + }, + "cmd": "tc actions add action pedit munge ip d set 1 index 1", + "desc": "corner: opt=plain cmd=w237-d:actions_add_action_pedit_munge_ip_d_set_1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-106", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-106/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-106/dump.out new file mode 100644 index 000000000..8cf2866b0 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-106/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 0: val 00010000 mask ff00ffff + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-106/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-106/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-106/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-106/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-106/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-106/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-106/ip.pcap new file mode 100644 index 000000000..2ae7fd83b Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-106/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-106/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-106/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-106/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-106/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-106/netlink_route_dump.pcap new file mode 100644 index 000000000..cf9dff9da Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-106/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-107/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-107/cmd.json new file mode 100644 index 000000000..9588f7b26 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-107/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w237-p", + "json": "0", + "words": "actions add action pedit munge ip p set 1 index 1" + }, + "cmd": "tc actions add action pedit munge ip p set 1 index 1", + "desc": "corner: opt=plain cmd=w237-p:actions_add_action_pedit_munge_ip_p_set_1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-107", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-107/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-107/dump.out new file mode 100644 index 000000000..8cf2866b0 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-107/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at 0: val 00010000 mask ff00ffff + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-107/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-107/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-107/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-107/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-107/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-107/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-107/ip.pcap new file mode 100644 index 000000000..8be12bd86 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-107/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-107/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-107/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-107/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-107/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-107/netlink_route_dump.pcap new file mode 100644 index 000000000..7fb2678eb Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-107/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-108/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-108/cmd.json new file mode 100644 index 000000000..a14771c6e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-108/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w238", + "json": "0", + "words": "actions add action pedit ex munge ip6 flow_lbl set 0xfffff index 1" + }, + "cmd": "tc actions add action pedit ex munge ip6 flow_lbl set 0xfffff index 1", + "desc": "corner: opt=plain cmd=w238:actions_add_action_pedit_ex_munge_ip6_flow_lbl_set_0xfffff_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-108", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-108/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-108/dump.out new file mode 100644 index 000000000..9069275d8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-108/dump.out @@ -0,0 +1,7 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 1 ref 1 bind 0 + key #0 at ipv6+0: val 0007ffff mask fff80000 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-108/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-108/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-108/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-108/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-108/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-108/ip.pcap new file mode 100644 index 000000000..07a8e57fc Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-108/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-108/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-108/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-108/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-108/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-108/netlink_route_dump.pcap new file mode 100644 index 000000000..32360ccbd Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-108/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-109/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-109/cmd.json new file mode 100644 index 000000000..0d0714bbd --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-109/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w243", + "json": "0", + "words": "actions add action pedit munge ip ttl set 1 index 5 pipe" + }, + "cmd": "tc actions add action pedit munge ip ttl set 1 index 5 pipe", + "desc": "corner: opt=plain cmd=w243:actions_add_action_pedit_munge_ip_ttl_set_1_index_5_pipe", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-109", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-109/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-109/dump.out new file mode 100644 index 000000000..60eac190f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-109/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: pedit action pass keys 1 + index 5 ref 1 bind 0 + key #0 at 8: val 01000000 mask 00ffffff + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-109/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-109/ip.err new file mode 100644 index 000000000..78b532626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-109/ip.err @@ -0,0 +1 @@ +Warning: act_pedit: Unsupported pedit command offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-109/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-109/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-109/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-109/ip.pcap new file mode 100644 index 000000000..59b37c547 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-109/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-109/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-109/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-109/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-109/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-109/netlink_route_dump.pcap new file mode 100644 index 000000000..194cbe2f1 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-109/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-110/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-110/cmd.json new file mode 100644 index 000000000..ab136a76d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-110/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w249", + "json": "0", + "words": "actions add action pedit ex munge ip6 src add ::1 index 1" + }, + "cmd": "tc actions add action pedit ex munge ip6 src add ::1 index 1", + "desc": "corner: opt=plain cmd=w249:actions_add_action_pedit_ex_munge_ip6_src_add_::1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-110", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-110/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-110/dump.out new file mode 100644 index 000000000..251ec981f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-110/dump.out @@ -0,0 +1,10 @@ +total acts 1 + + action order 0: pedit action pass keys 4 + index 1 ref 1 bind 0 + key #0 at ipv6+8: add 00000000 mask 00000000 + key #1 at ipv6+12: add 00000000 mask 00000000 + key #2 at ipv6+16: add 00000000 mask 00000000 + key #3 at ipv6+20: add 00000001 mask 00000000 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-110/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-110/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-110/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-110/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-110/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-110/ip.pcap new file mode 100644 index 000000000..7397b0420 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-110/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-110/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-110/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-110/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-110/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-110/netlink_route_dump.pcap new file mode 100644 index 000000000..037cd02ac Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-110/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-111/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-111/cmd.json new file mode 100644 index 000000000..71590f9ba --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-111/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w249-eth", + "json": "0", + "words": "actions add action pedit ex munge eth dst add 00:00:00:00:00:01 index 1" + }, + "cmd": "tc actions add action pedit ex munge eth dst add 00:00:00:00:00:01 index 1", + "desc": "corner: opt=plain cmd=w249-eth:actions_add_action_pedit_ex_munge_eth_dst_add_00:00:00:00:00:01_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-111", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action pedit", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-111/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-111/dump.out new file mode 100644 index 000000000..7cba86332 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-111/dump.out @@ -0,0 +1,8 @@ +total acts 1 + + action order 0: pedit action pass keys 2 + index 1 ref 1 bind 0 + key #0 at eth+0: add 00000000 mask 00000000 + key #1 at eth+4: add 00010000 mask 0000ffff + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-111/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-111/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-111/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-111/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-111/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-111/ip.pcap new file mode 100644 index 000000000..559285bfe Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-111/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-111/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-111/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-111/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-111/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-111/netlink_route_dump.pcap new file mode 100644 index 000000000..934bfd905 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-111/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-112/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-112/cmd.json new file mode 100644 index 000000000..9db49eb61 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-112/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "tk", + "json": "0", + "words": "actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 dst_port 4789 tos 0x10 ttl 64 index 1" + }, + "cmd": "tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 dst_port 4789 tos 0x10 ttl 64 index 1", + "desc": "positive: opt=plain cmd=tk:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_dst_port_4789_tos_0x10_ttl_64_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-112", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action tunnel_key", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-112/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-112/dump.out new file mode 100644 index 000000000..cb6d85b7c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-112/dump.out @@ -0,0 +1,13 @@ +total acts 1 + + action order 0: tunnel_key set + src_ip 10.0.0.1 + dst_ip 10.0.0.2 + key_id 7 + dst_port 4789 + csum + tos 0x10 + ttl 64 pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-112/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-112/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-112/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-112/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-112/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-112/ip.pcap new file mode 100644 index 000000000..75e173939 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-112/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-112/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-112/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-112/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-112/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-112/netlink_route_dump.pcap new file mode 100644 index 000000000..4bf5d602f Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-112/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-113/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-113/cmd.json new file mode 100644 index 000000000..6a2e44025 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-113/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "tk", + "json": "0", + "words": "actions add action tunnel_key set src_ip 2001:db8::1 dst_ip 2001:db8::2 id 8 dst_port 6081 index 1" + }, + "cmd": "tc actions add action tunnel_key set src_ip 2001:db8::1 dst_ip 2001:db8::2 id 8 dst_port 6081 index 1", + "desc": "positive: opt=plain cmd=tk:actions_add_action_tunnel_key_set_src_ip_2001:db8::1_dst_ip_2001:db8::2_id_8_dst_port_6081_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-113", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action tunnel_key", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-113/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-113/dump.out new file mode 100644 index 000000000..92f61c069 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-113/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: tunnel_key set + src_ip 2001:db8::1 + dst_ip 2001:db8::2 + key_id 8 + dst_port 6081 + csum pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-113/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-113/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-113/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-113/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-113/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-113/ip.pcap new file mode 100644 index 000000000..c0f9cc6b2 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-113/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-113/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-113/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-113/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-113/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-113/netlink_route_dump.pcap new file mode 100644 index 000000000..f70410a08 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-113/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-114/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-114/cmd.json new file mode 100644 index 000000000..dc83c191d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-114/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "tk", + "json": "0", + "words": "actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 nocsum nofrag index 1" + }, + "cmd": "tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 nocsum nofrag index 1", + "desc": "positive: opt=plain cmd=tk:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_nocsum_nofrag_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-114", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action tunnel_key", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-114/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-114/dump.out new file mode 100644 index 000000000..b43e48def --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-114/dump.out @@ -0,0 +1,10 @@ +total acts 1 + + action order 0: tunnel_key set + src_ip 10.0.0.1 + dst_ip 10.0.0.2 + key_id 7 + nocsum nofrag pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-114/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-114/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-114/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-114/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-114/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-114/ip.pcap new file mode 100644 index 000000000..2f4e76a77 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-114/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-114/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-114/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-114/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-114/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-114/netlink_route_dump.pcap new file mode 100644 index 000000000..e45aaf328 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-114/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-115/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-115/cmd.json new file mode 100644 index 000000000..0b16774c3 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-115/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "tk", + "json": "0", + "words": "actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 csum index 1" + }, + "cmd": "tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 csum index 1", + "desc": "positive: opt=plain cmd=tk:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_csum_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-115", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action tunnel_key", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-115/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-115/dump.out new file mode 100644 index 000000000..ce9ca4220 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-115/dump.out @@ -0,0 +1,10 @@ +total acts 1 + + action order 0: tunnel_key set + src_ip 10.0.0.1 + dst_ip 10.0.0.2 + key_id 7 + csum pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-115/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-115/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-115/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-115/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-115/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-115/ip.pcap new file mode 100644 index 000000000..e83243cb4 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-115/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-115/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-115/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-115/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-115/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-115/netlink_route_dump.pcap new file mode 100644 index 000000000..ad64e56c9 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-115/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-116/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-116/cmd.json new file mode 100644 index 000000000..f828d8607 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-116/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "tk", + "json": "0", + "words": "actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 index 1" + }, + "cmd": "tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 index 1", + "desc": "positive: opt=plain cmd=tk:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-116", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action tunnel_key", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-116/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-116/dump.out new file mode 100644 index 000000000..a0bd2688e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-116/dump.out @@ -0,0 +1,9 @@ +total acts 1 + + action order 0: tunnel_key set + src_ip 10.0.0.1 + dst_ip 10.0.0.2 + csum pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-116/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-116/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-116/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-116/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-116/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-116/ip.pcap new file mode 100644 index 000000000..3b4f50673 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-116/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-116/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-116/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-116/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-116/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-116/netlink_route_dump.pcap new file mode 100644 index 000000000..97b11f1e9 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-116/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-117/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-117/cmd.json new file mode 100644 index 000000000..77338b149 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-117/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "tk", + "json": "0", + "words": "actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts 0102:80:00880022 index 1" + }, + "cmd": "tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts 0102:80:00880022 index 1", + "desc": "positive: opt=plain cmd=tk:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_geneve_opts_0102:80:00880022_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-117", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action tunnel_key", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-117/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-117/dump.out new file mode 100644 index 000000000..9157ea361 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-117/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: tunnel_key set + src_ip 10.0.0.1 + dst_ip 10.0.0.2 + key_id 7 + geneve_opts 0102:80:00880022 + csum pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-117/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-117/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-117/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-117/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-117/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-117/ip.pcap new file mode 100644 index 000000000..85c7d8ec5 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-117/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-117/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-117/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-117/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-117/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-117/netlink_route_dump.pcap new file mode 100644 index 000000000..a0359fed2 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-117/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-118/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-118/cmd.json new file mode 100644 index 000000000..a287709ba --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-118/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "tk", + "json": "0", + "words": "actions add action tunnel_key set src_ip 2001:db8::1 dst_ip 2001:db8::2 id 8 geneve_opts 0102:80:00880022,0103:81:00a000b0,0104:82:0011223344556677 index 1" + }, + "cmd": "tc actions add action tunnel_key set src_ip 2001:db8::1 dst_ip 2001:db8::2 id 8 geneve_opts 0102:80:00880022,0103:81:00a000b0,0104:82:0011223344556677 index 1", + "desc": "positive: opt=plain cmd=tk:actions_add_action_tunnel_key_set_src_ip_2001:db8::1_dst_ip_2001:db8::2_id_8_geneve_opts_0102:80:00880022,0103:81:00a000b0,0104:82:0011223344556677_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-118", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action tunnel_key", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-118/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-118/dump.out new file mode 100644 index 000000000..e57f9a91b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-118/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: tunnel_key set + src_ip 2001:db8::1 + dst_ip 2001:db8::2 + key_id 8 + geneve_opts 0102:80:00880022,0103:81:00a000b0,0104:82:0011223344556677 + csum pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-118/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-118/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-118/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-118/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-118/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-118/ip.pcap new file mode 100644 index 000000000..137ddbdc9 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-118/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-118/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-118/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-118/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-118/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-118/netlink_route_dump.pcap new file mode 100644 index 000000000..7bcafc507 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-118/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-119/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-119/cmd.json new file mode 100644 index 000000000..347a509f0 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-119/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "tk", + "json": "0", + "words": "actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 9 vxlan_opts 4660 index 1" + }, + "cmd": "tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 9 vxlan_opts 4660 index 1", + "desc": "positive: opt=plain cmd=tk:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_9_vxlan_opts_4660_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-119", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action tunnel_key", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-119/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-119/dump.out new file mode 100644 index 000000000..06ec4d4e0 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-119/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: tunnel_key set + src_ip 10.0.0.1 + dst_ip 10.0.0.2 + key_id 9 + vxlan_opts 4660 + csum pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-119/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-119/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-119/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-119/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-119/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-119/ip.pcap new file mode 100644 index 000000000..7ef20e72a Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-119/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-119/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-119/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-119/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-119/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-119/netlink_route_dump.pcap new file mode 100644 index 000000000..a71d5df5b Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-119/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-120/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-120/cmd.json new file mode 100644 index 000000000..1382876d3 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-120/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "tk", + "json": "0", + "words": "actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 10 erspan_opts 1:12:0:0 index 1" + }, + "cmd": "tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 10 erspan_opts 1:12:0:0 index 1", + "desc": "positive: opt=plain cmd=tk:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_10_erspan_opts_1:12:0:0_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-120", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action tunnel_key", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-120/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-120/dump.out new file mode 100644 index 000000000..569fd4568 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-120/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: tunnel_key set + src_ip 10.0.0.1 + dst_ip 10.0.0.2 + key_id 10 + erspan_opts 1:12:0:0 + csum pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-120/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-120/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-120/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-120/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-120/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-120/ip.pcap new file mode 100644 index 000000000..42778d04e Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-120/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-120/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-120/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-120/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-120/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-120/netlink_route_dump.pcap new file mode 100644 index 000000000..b94c57af3 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-120/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-121/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-121/cmd.json new file mode 100644 index 000000000..dc6082365 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-121/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "tk", + "json": "0", + "words": "actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 11 erspan_opts 2:0:1:7 index 1" + }, + "cmd": "tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 11 erspan_opts 2:0:1:7 index 1", + "desc": "positive: opt=plain cmd=tk:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_11_erspan_opts_2:0:1:7_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-121", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action tunnel_key", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-121/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-121/dump.out new file mode 100644 index 000000000..ed9d7b63a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-121/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: tunnel_key set + src_ip 10.0.0.1 + dst_ip 10.0.0.2 + key_id 11 + erspan_opts 2:0:1:7 + csum pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-121/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-121/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-121/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-121/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-121/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-121/ip.pcap new file mode 100644 index 000000000..b17969610 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-121/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-121/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-121/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-121/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-121/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-121/netlink_route_dump.pcap new file mode 100644 index 000000000..3c4c3de96 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-121/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-122/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-122/cmd.json new file mode 100644 index 000000000..9fb694f59 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-122/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "tk", + "json": "0", + "words": "actions add action tunnel_key unset drop index 1" + }, + "cmd": "tc actions add action tunnel_key unset drop index 1", + "desc": "positive: opt=plain cmd=tk:actions_add_action_tunnel_key_unset_drop_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-122", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action tunnel_key", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-122/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-122/dump.out new file mode 100644 index 000000000..27eb036a9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-122/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: tunnel_key unset drop + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-122/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-122/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-122/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-122/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-122/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-122/ip.pcap new file mode 100644 index 000000000..b05c78af4 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-122/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-122/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-122/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-122/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-122/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-122/netlink_route_dump.pcap new file mode 100644 index 000000000..04d104586 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-122/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-123/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-123/cmd.json new file mode 100644 index 000000000..b95a83299 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-123/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "tk", + "json": "0", + "words": "actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 pipe index 1" + }, + "cmd": "tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 pipe index 1", + "desc": "positive: opt=plain cmd=tk:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_pipe_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-123", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action tunnel_key", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-123/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-123/dump.out new file mode 100644 index 000000000..ce9ca4220 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-123/dump.out @@ -0,0 +1,10 @@ +total acts 1 + + action order 0: tunnel_key set + src_ip 10.0.0.1 + dst_ip 10.0.0.2 + key_id 7 + csum pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-123/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-123/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-123/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-123/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-123/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-123/ip.pcap new file mode 100644 index 000000000..b8c9eb834 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-123/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-123/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-123/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-123/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-123/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-123/netlink_route_dump.pcap new file mode 100644 index 000000000..ef47e98a2 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-123/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-124/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-124/cmd.json new file mode 100644 index 000000000..eee783c7a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-124/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "tk", + "json": "0", + "words": "actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 tos 255 ttl 255 index 1" + }, + "cmd": "tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 tos 255 ttl 255 index 1", + "desc": "boundary: opt=plain cmd=tk:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_tos_255_ttl_255_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-124", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action tunnel_key", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-124/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-124/dump.out new file mode 100644 index 000000000..6bae9df92 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-124/dump.out @@ -0,0 +1,12 @@ +total acts 1 + + action order 0: tunnel_key set + src_ip 10.0.0.1 + dst_ip 10.0.0.2 + key_id 7 + csum + tos 0xff + ttl 255 pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-124/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-124/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-124/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-124/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-124/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-124/ip.pcap new file mode 100644 index 000000000..fa890e589 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-124/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-124/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-124/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-124/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-124/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-124/netlink_route_dump.pcap new file mode 100644 index 000000000..a6d1f6229 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-124/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-125/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-125/cmd.json new file mode 100644 index 000000000..58c257794 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-125/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "tk", + "json": "0", + "words": "actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 4294967295 dst_port 65535 index 1" + }, + "cmd": "tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 4294967295 dst_port 65535 index 1", + "desc": "boundary: opt=plain cmd=tk:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_4294967295_dst_port_65535_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-125", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action tunnel_key", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-125/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-125/dump.out new file mode 100644 index 000000000..f530f3002 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-125/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: tunnel_key set + src_ip 10.0.0.1 + dst_ip 10.0.0.2 + key_id 4294967295 + dst_port 65535 + csum pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-125/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-125/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-125/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-125/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-125/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-125/ip.pcap new file mode 100644 index 000000000..4be088c8d Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-125/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-125/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-125/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-125/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-125/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-125/netlink_route_dump.pcap new file mode 100644 index 000000000..b6bf20978 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-125/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-126/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-126/cmd.json new file mode 100644 index 000000000..3be5a383d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-126/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w255", + "json": "0", + "words": "actions add action tunnel_key s src_ip 10.0.0.1 d 10.0.0.2 i 7 t 1 n index 1" + }, + "cmd": "tc actions add action tunnel_key s src_ip 10.0.0.1 d 10.0.0.2 i 7 t 1 n index 1", + "desc": "corner: opt=plain cmd=w255:actions_add_action_tunnel_key_s_src_ip_10.0.0.1_d_10.0.0.2_i_7_t_1_n_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-126", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action tunnel_key", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-126/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-126/dump.out new file mode 100644 index 000000000..454f224b1 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-126/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: tunnel_key set + src_ip 10.0.0.1 + dst_ip 10.0.0.2 + key_id 7 + nocsum + tos 0x1 pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-126/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-126/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-126/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-126/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-126/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-126/ip.pcap new file mode 100644 index 000000000..8881ce327 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-126/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-126/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-126/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-126/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-126/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-126/netlink_route_dump.pcap new file mode 100644 index 000000000..e1b57c839 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-126/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-127/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-127/cmd.json new file mode 100644 index 000000000..3de4845d8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-127/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w257", + "json": "0", + "words": "actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 tos 1a ttl 010 index 1" + }, + "cmd": "tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 tos 1a ttl 010 index 1", + "desc": "corner: opt=plain cmd=w257:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_tos_1a_ttl_010_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-127", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action tunnel_key", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-127/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-127/dump.out new file mode 100644 index 000000000..c49949408 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-127/dump.out @@ -0,0 +1,12 @@ +total acts 1 + + action order 0: tunnel_key set + src_ip 10.0.0.1 + dst_ip 10.0.0.2 + key_id 7 + csum + tos 0x1a + ttl 10 pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-127/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-127/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-127/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-127/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-127/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-127/ip.pcap new file mode 100644 index 000000000..1d656e6f2 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-127/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-127/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-127/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-127/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-127/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-127/netlink_route_dump.pcap new file mode 100644 index 000000000..81de5c198 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-127/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-128/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-128/cmd.json new file mode 100644 index 000000000..e720b9e31 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-128/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w259-8", + "json": "0", + "words": "actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts 0102:80:00112233 index 1" + }, + "cmd": "tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts 0102:80:00112233 index 1", + "desc": "corner: opt=plain cmd=w259-8:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_geneve_opts_0102:80:00112233_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-128", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action tunnel_key", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-128/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-128/dump.out new file mode 100644 index 000000000..de72f3cf6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-128/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: tunnel_key set + src_ip 10.0.0.1 + dst_ip 10.0.0.2 + key_id 7 + geneve_opts 0102:80:00112233 + csum pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-128/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-128/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-128/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-128/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-128/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-128/ip.pcap new file mode 100644 index 000000000..309cf21d9 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-128/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-128/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-128/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-128/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-128/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-128/netlink_route_dump.pcap new file mode 100644 index 000000000..1aed4f010 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-128/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-129/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-129/cmd.json new file mode 100644 index 000000000..3d7e3836c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-129/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w262", + "json": "0", + "words": "actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts 0102:80:00880022 vxlan_opts 4660 index 1" + }, + "cmd": "tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts 0102:80:00880022 vxlan_opts 4660 index 1", + "desc": "corner: opt=plain cmd=w262:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_geneve_opts_0102:80:00880022_vxlan_opts_4660_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-129", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action tunnel_key", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-129/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-129/dump.out new file mode 100644 index 000000000..5262d39bb --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-129/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: tunnel_key set + src_ip 10.0.0.1 + dst_ip 10.0.0.2 + key_id 7 + vxlan_opts 4660 + csum pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-129/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-129/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-129/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-129/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-129/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-129/ip.pcap new file mode 100644 index 000000000..5dd4e91e4 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-129/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-129/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-129/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-129/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-129/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-129/netlink_route_dump.pcap new file mode 100644 index 000000000..091ee084c Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-129/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-130/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-130/cmd.json new file mode 100644 index 000000000..165bfb9a4 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-130/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w263", + "json": "0", + "words": "actions add action tunnel_key unset src_ip 10.0.0.1 dst_ip 10.0.0.2 nocsum index 1" + }, + "cmd": "tc actions add action tunnel_key unset src_ip 10.0.0.1 dst_ip 10.0.0.2 nocsum index 1", + "desc": "corner: opt=plain cmd=w263:actions_add_action_tunnel_key_unset_src_ip_10.0.0.1_dst_ip_10.0.0.2_nocsum_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-130", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action tunnel_key", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-130/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-130/dump.out new file mode 100644 index 000000000..2cd305829 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-130/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: tunnel_key unset pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-130/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-130/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-130/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-130/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-130/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-130/ip.pcap new file mode 100644 index 000000000..8eab7d36c Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-130/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-130/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-130/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-130/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-130/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-130/netlink_route_dump.pcap new file mode 100644 index 000000000..cc1a94835 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-130/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-131/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-131/cmd.json new file mode 100644 index 000000000..0d2cc179d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-131/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w264", + "json": "0", + "words": "actions add action tunnel_key unset index 5 pipe" + }, + "cmd": "tc actions add action tunnel_key unset index 5 pipe", + "desc": "corner: opt=plain cmd=w264:actions_add_action_tunnel_key_unset_index_5_pipe", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-131", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action tunnel_key", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-131/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-131/dump.out new file mode 100644 index 000000000..8a3a1d879 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-131/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: tunnel_key unset pipe + index 5 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-131/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-131/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-131/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-131/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-131/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-131/ip.pcap new file mode 100644 index 000000000..351599963 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-131/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-131/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-131/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-131/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-131/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-131/netlink_route_dump.pcap new file mode 100644 index 000000000..33f2abe77 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-131/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-132/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-132/cmd.json new file mode 100644 index 000000000..c823845ab --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-132/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w274", + "json": "0", + "words": "actions add action ife encode type 0xED3E dst 02:00:00:00:00:01 src 02:00:00:00:00:02 use mark 7 index 1" + }, + "cmd": "tc actions add action ife encode type 0xED3E dst 02:00:00:00:00:01 src 02:00:00:00:00:02 use mark 7 index 1", + "desc": "positive: opt=plain cmd=w274:actions_add_action_ife_encode_type_0xED3E_dst_02:00:00:00:00:01_src_02:00:00:00:00:02_use_mark_7_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-132", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ife", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-132/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-132/dump.out new file mode 100644 index 000000000..cf0ee7881 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-132/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ife encode action pipe type 0XED3E + use mark 7 dst 02:00:00:00:00:01 src 02:00:00:00:00:02 + index 1 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-132/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-132/ip.err new file mode 100644 index 000000000..94b1ac954 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-132/ip.err @@ -0,0 +1,3 @@ +IFE type 0xED3E +dst MAC address <02:00:00:00:00:01> +src MAC address <02:00:00:00:00:02> diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-132/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-132/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-132/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-132/ip.pcap new file mode 100644 index 000000000..2c8d5c74f Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-132/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-132/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-132/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-132/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-132/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-132/netlink_route_dump.pcap new file mode 100644 index 000000000..c9bba46cb Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-132/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-133/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-133/cmd.json new file mode 100644 index 000000000..0a8021eb3 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-133/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w275", + "json": "0", + "words": "actions add action ife encode allow mark allow prio allow tcindex index 1" + }, + "cmd": "tc actions add action ife encode allow mark allow prio allow tcindex index 1", + "desc": "positive: opt=plain cmd=w275:actions_add_action_ife_encode_allow_mark_allow_prio_allow_tcindex_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-133", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ife", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-133/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-133/dump.out new file mode 100644 index 000000000..4ee68c1c4 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-133/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ife encode action pipe type 0XED3E + allow mark allow tcindex allow prio + index 1 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-133/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-133/ip.err new file mode 100644 index 000000000..301050e59 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-133/ip.err @@ -0,0 +1 @@ +IFE type 0xED3E diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-133/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-133/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-133/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-133/ip.pcap new file mode 100644 index 000000000..f80b7571d Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-133/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-133/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-133/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-133/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-133/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-133/netlink_route_dump.pcap new file mode 100644 index 000000000..99653cf7c Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-133/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-134/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-134/cmd.json new file mode 100644 index 000000000..c3574abdb --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-134/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ife", + "json": "0", + "words": "actions add action ife encode use prio 5 use tcindex 3 index 1" + }, + "cmd": "tc actions add action ife encode use prio 5 use tcindex 3 index 1", + "desc": "positive: opt=plain cmd=ife:actions_add_action_ife_encode_use_prio_5_use_tcindex_3_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-134", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ife", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-134/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-134/dump.out new file mode 100644 index 000000000..14d62e918 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-134/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ife encode action pipe type 0XED3E + use tcindex 3 use prio 5 + index 1 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-134/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-134/ip.err new file mode 100644 index 000000000..301050e59 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-134/ip.err @@ -0,0 +1 @@ +IFE type 0xED3E diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-134/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-134/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-134/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-134/ip.pcap new file mode 100644 index 000000000..0c08a14fc Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-134/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-134/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-134/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-134/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-134/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-134/netlink_route_dump.pcap new file mode 100644 index 000000000..a6a0f6fc4 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-134/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-135/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-135/cmd.json new file mode 100644 index 000000000..8d27bd8f3 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-135/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ife", + "json": "0", + "words": "actions add action ife decode index 1" + }, + "cmd": "tc actions add action ife decode index 1", + "desc": "positive: opt=plain cmd=ife:actions_add_action_ife_decode_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-135", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ife", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-135/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-135/dump.out new file mode 100644 index 000000000..1bbb497bd --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-135/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ife decode action pipe type 0 + allow mark allow tcindex allow prio + index 1 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-135/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-135/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-135/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-135/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-135/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-135/ip.pcap new file mode 100644 index 000000000..6fc799062 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-135/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-135/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-135/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-135/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-135/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-135/netlink_route_dump.pcap new file mode 100644 index 000000000..325daafd2 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-135/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-136/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-136/cmd.json new file mode 100644 index 000000000..d81edda62 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-136/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ife", + "json": "0", + "words": "actions add action ife encode allow mark drop index 1" + }, + "cmd": "tc actions add action ife encode allow mark drop index 1", + "desc": "positive: opt=plain cmd=ife:actions_add_action_ife_encode_allow_mark_drop_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-136", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ife", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-136/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-136/dump.out new file mode 100644 index 000000000..3bd16395d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-136/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ife encode action drop type 0XED3E + allow mark + index 1 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-136/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-136/ip.err new file mode 100644 index 000000000..301050e59 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-136/ip.err @@ -0,0 +1 @@ +IFE type 0xED3E diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-136/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-136/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-136/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-136/ip.pcap new file mode 100644 index 000000000..eaceda524 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-136/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-136/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-136/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-136/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-136/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-136/netlink_route_dump.pcap new file mode 100644 index 000000000..8d7c9022f Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-136/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-137/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-137/cmd.json new file mode 100644 index 000000000..8b137bdc5 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-137/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ife", + "json": "0", + "words": "actions add action ife encode use mark 4294967295 use tcindex 65535 index 1" + }, + "cmd": "tc actions add action ife encode use mark 4294967295 use tcindex 65535 index 1", + "desc": "boundary: opt=plain cmd=ife:actions_add_action_ife_encode_use_mark_4294967295_use_tcindex_65535_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-137", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ife", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-137/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-137/dump.out new file mode 100644 index 000000000..90f5077d3 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-137/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ife encode action pipe type 0XED3E + use mark 4294967295 use tcindex 65535 + index 1 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-137/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-137/ip.err new file mode 100644 index 000000000..301050e59 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-137/ip.err @@ -0,0 +1 @@ +IFE type 0xED3E diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-137/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-137/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-137/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-137/ip.pcap new file mode 100644 index 000000000..c1169bc19 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-137/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-137/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-137/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-137/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-137/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-137/netlink_route_dump.pcap new file mode 100644 index 000000000..f4b2b6635 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-137/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-138/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-138/cmd.json new file mode 100644 index 000000000..1806b59dc --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-138/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w267", + "json": "0", + "words": "actions add action ife index 5" + }, + "cmd": "tc actions add action ife index 5", + "desc": "corner: opt=plain cmd=w267:actions_add_action_ife_index_5", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-138", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ife", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-138/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-138/dump.out new file mode 100644 index 000000000..50aa248e1 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-138/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ife decode action pipe type 0 + allow mark allow tcindex allow prio + index 5 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-138/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-138/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-138/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-138/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-138/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-138/ip.pcap new file mode 100644 index 000000000..dc1113be4 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-138/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-138/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-138/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-138/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-138/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-138/netlink_route_dump.pcap new file mode 100644 index 000000000..b04cc1afd Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-138/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-139/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-139/cmd.json new file mode 100644 index 000000000..5e5a65fa1 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-139/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w269", + "json": "0", + "words": "actions add action ife ife i decode index 1" + }, + "cmd": "tc actions add action ife ife i decode index 1", + "desc": "corner: opt=plain cmd=w269:actions_add_action_ife_ife_i_decode_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-139", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ife", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-139/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-139/dump.out new file mode 100644 index 000000000..1bbb497bd --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-139/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ife decode action pipe type 0 + allow mark allow tcindex allow prio + index 1 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-139/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-139/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-139/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-139/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-139/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-139/ip.pcap new file mode 100644 index 000000000..4365e0377 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-139/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-139/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-139/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-139/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-139/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-139/netlink_route_dump.pcap new file mode 100644 index 000000000..fa41a2ecf Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-139/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-140/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-140/cmd.json new file mode 100644 index 000000000..a6975ff2b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-140/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w270", + "json": "0", + "words": "actions add action ife e a mark ds 02:00:00:00:00:01 t 0x1234 index 1" + }, + "cmd": "tc actions add action ife e a mark ds 02:00:00:00:00:01 t 0x1234 index 1", + "desc": "corner: opt=plain cmd=w270:actions_add_action_ife_e_a_mark_ds_02:00:00:00:00:01_t_0x1234_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-140", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ife", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-140/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-140/dump.out new file mode 100644 index 000000000..84f9c95f9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-140/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ife encode action pipe type 0X1234 + allow mark dst 02:00:00:00:00:01 + index 1 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-140/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-140/ip.err new file mode 100644 index 000000000..29a4a52a3 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-140/ip.err @@ -0,0 +1,2 @@ +dst MAC address <02:00:00:00:00:01> +IFE type 0x1234 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-140/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-140/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-140/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-140/ip.pcap new file mode 100644 index 000000000..c1510ddd6 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-140/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-140/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-140/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-140/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-140/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-140/netlink_route_dump.pcap new file mode 100644 index 000000000..327173dab Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-140/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-141/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-141/cmd.json new file mode 100644 index 000000000..ae03aee84 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-141/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w270-last", + "json": "0", + "words": "actions add action ife encode decode index 1" + }, + "cmd": "tc actions add action ife encode decode index 1", + "desc": "corner: opt=plain cmd=w270-last:actions_add_action_ife_encode_decode_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-141", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ife", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-141/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-141/dump.out new file mode 100644 index 000000000..1bbb497bd --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-141/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ife decode action pipe type 0 + allow mark allow tcindex allow prio + index 1 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-141/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-141/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-141/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-141/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-141/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-141/ip.pcap new file mode 100644 index 000000000..6a1933125 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-141/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-141/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-141/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-141/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-141/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-141/netlink_route_dump.pcap new file mode 100644 index 000000000..e0966dcb1 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-141/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-142/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-142/cmd.json new file mode 100644 index 000000000..a6feb0504 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-142/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w271", + "json": "0", + "words": "actions add action ife encode use mark 0 index 1" + }, + "cmd": "tc actions add action ife encode use mark 0 index 1", + "desc": "corner: opt=plain cmd=w271:actions_add_action_ife_encode_use_mark_0_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-142", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ife", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-142/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-142/dump.out new file mode 100644 index 000000000..4d16c4ab9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-142/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ife encode action pipe type 0XED3E + + index 1 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-142/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-142/ip.err new file mode 100644 index 000000000..301050e59 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-142/ip.err @@ -0,0 +1 @@ +IFE type 0xED3E diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-142/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-142/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-142/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-142/ip.pcap new file mode 100644 index 000000000..4839eaf3a Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-142/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-142/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-142/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-142/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-142/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-142/netlink_route_dump.pcap new file mode 100644 index 000000000..460f79346 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-142/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-143/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-143/cmd.json new file mode 100644 index 000000000..928b83568 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-143/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w271-order", + "json": "0", + "words": "actions add action ife encode use tcindex 1 use mark 2 allow prio index 1" + }, + "cmd": "tc actions add action ife encode use tcindex 1 use mark 2 allow prio index 1", + "desc": "corner: opt=plain cmd=w271-order:actions_add_action_ife_encode_use_tcindex_1_use_mark_2_allow_prio_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-143", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ife", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-143/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-143/dump.out new file mode 100644 index 000000000..f30deeedc --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-143/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ife encode action pipe type 0XED3E + use mark 2 use tcindex 1 allow prio + index 1 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-143/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-143/ip.err new file mode 100644 index 000000000..301050e59 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-143/ip.err @@ -0,0 +1 @@ +IFE type 0xED3E diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-143/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-143/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-143/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-143/ip.pcap new file mode 100644 index 000000000..6efa92072 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-143/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-143/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-143/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-143/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-143/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-143/netlink_route_dump.pcap new file mode 100644 index 000000000..3b0895589 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-143/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-144/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-144/cmd.json new file mode 100644 index 000000000..43451c540 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-144/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w271-over", + "json": "0", + "words": "actions add action ife encode allow mark use mark 9 index 1" + }, + "cmd": "tc actions add action ife encode allow mark use mark 9 index 1", + "desc": "corner: opt=plain cmd=w271-over:actions_add_action_ife_encode_allow_mark_use_mark_9_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-144", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ife", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-144/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-144/dump.out new file mode 100644 index 000000000..d521e3ee1 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-144/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ife encode action pipe type 0XED3E + use mark 9 + index 1 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-144/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-144/ip.err new file mode 100644 index 000000000..301050e59 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-144/ip.err @@ -0,0 +1 @@ +IFE type 0xED3E diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-144/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-144/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-144/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-144/ip.pcap new file mode 100644 index 000000000..aab328135 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-144/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-144/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-144/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-144/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-144/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-144/netlink_route_dump.pcap new file mode 100644 index 000000000..c6f5a729f Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-144/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-145/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-145/cmd.json new file mode 100644 index 000000000..04c474e44 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-145/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w272", + "json": "0", + "words": "actions add action ife encode use mark 010 index 0x5" + }, + "cmd": "tc actions add action ife encode use mark 010 index 0x5", + "desc": "corner: opt=plain cmd=w272:actions_add_action_ife_encode_use_mark_010_index_0x5", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-145", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ife", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-145/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-145/dump.out new file mode 100644 index 000000000..3b13425cd --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-145/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ife encode action pipe type 0XED3E + use mark 8 + index 5 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-145/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-145/ip.err new file mode 100644 index 000000000..301050e59 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-145/ip.err @@ -0,0 +1 @@ +IFE type 0xED3E diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-145/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-145/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-145/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-145/ip.pcap new file mode 100644 index 000000000..600d4f591 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-145/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-145/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-145/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-145/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-145/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-145/netlink_route_dump.pcap new file mode 100644 index 000000000..622e856f8 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-145/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-146/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-146/cmd.json new file mode 100644 index 000000000..1ebe66496 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-146/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w273", + "json": "0", + "words": "actions add action ife decode dst 02:00:00:00:00:01 type 0x1234 allow mark index 1" + }, + "cmd": "tc actions add action ife decode dst 02:00:00:00:00:01 type 0x1234 allow mark index 1", + "desc": "corner: opt=plain cmd=w273:actions_add_action_ife_decode_dst_02:00:00:00:00:01_type_0x1234_allow_mark_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-146", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ife", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-146/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-146/dump.out new file mode 100644 index 000000000..1bbb497bd --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-146/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ife decode action pipe type 0 + allow mark allow tcindex allow prio + index 1 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-146/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-146/ip.err new file mode 100644 index 000000000..29a4a52a3 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-146/ip.err @@ -0,0 +1,2 @@ +dst MAC address <02:00:00:00:00:01> +IFE type 0x1234 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-146/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-146/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-146/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-146/ip.pcap new file mode 100644 index 000000000..7cbc004dc Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-146/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-146/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-146/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-146/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-146/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-146/netlink_route_dump.pcap new file mode 100644 index 000000000..6d8d63e7e Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-146/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-147/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-147/cmd.json new file mode 100644 index 000000000..dd1595cc6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-147/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w196-ife", + "json": "0", + "words": "actions add action ife encode dst 02:00:00:00:00:01junk allow mark index 1" + }, + "cmd": "tc actions add action ife encode dst 02:00:00:00:00:01junk allow mark index 1", + "desc": "corner: opt=plain cmd=w196-ife:actions_add_action_ife_encode_dst_02:00:00:00:00:01junk_allow_mark_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-147", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ife", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-147/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-147/dump.out new file mode 100644 index 000000000..53ca8a456 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-147/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ife encode action pipe type 0XED3E + allow mark dst 02:00:00:00:00:01 + index 1 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-147/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-147/ip.err new file mode 100644 index 000000000..59dc804a3 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-147/ip.err @@ -0,0 +1,2 @@ +dst MAC address <02:00:00:00:00:01junk> +IFE type 0xED3E diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-147/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-147/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-147/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-147/ip.pcap new file mode 100644 index 000000000..1db4c15ed Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-147/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-147/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-147/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-147/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-147/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-147/netlink_route_dump.pcap new file mode 100644 index 000000000..2ca53106c Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-147/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-148/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-148/cmd.json new file mode 100644 index 000000000..4c748e8e1 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-148/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w196-ife-x", + "json": "0", + "words": "actions add action ife encode dst 0x2:1aa:00:00:00:01 allow mark index 1" + }, + "cmd": "tc actions add action ife encode dst 0x2:1aa:00:00:00:01 allow mark index 1", + "desc": "corner: opt=plain cmd=w196-ife-x:actions_add_action_ife_encode_dst_0x2:1aa:00:00:00:01_allow_mark_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-148", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ife", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-148/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-148/dump.out new file mode 100644 index 000000000..d424b15e9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-148/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ife encode action pipe type 0XED3E + allow mark dst 02:aa:00:00:00:01 + index 1 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-148/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-148/ip.err new file mode 100644 index 000000000..6928efcb1 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-148/ip.err @@ -0,0 +1,2 @@ +dst MAC address <0x2:1aa:00:00:00:01> +IFE type 0xED3E diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-148/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-148/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-148/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-148/ip.pcap new file mode 100644 index 000000000..7c831f28d Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-148/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-148/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-148/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-148/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-148/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-148/netlink_route_dump.pcap new file mode 100644 index 000000000..f49760cf4 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-148/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-149/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-149/cmd.json new file mode 100644 index 000000000..bb45cb47f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-149/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ct", + "json": "0", + "words": "actions add action ct index 1" + }, + "cmd": "tc actions add action ct index 1", + "desc": "positive: opt=plain cmd=ct:actions_add_action_ct_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-149", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ct", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-149/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-149/dump.out new file mode 100644 index 000000000..4060cd635 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-149/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ct zone 0 pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-149/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-149/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-149/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-149/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-149/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-149/ip.pcap new file mode 100644 index 000000000..81f90107f Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-149/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-149/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-149/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-149/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-149/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-149/netlink_route_dump.pcap new file mode 100644 index 000000000..1948ffc51 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-149/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-150/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-150/cmd.json new file mode 100644 index 000000000..ae2a512c0 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-150/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ct", + "json": "0", + "words": "actions add action ct commit force index 1" + }, + "cmd": "tc actions add action ct commit force index 1", + "desc": "positive: opt=plain cmd=ct:actions_add_action_ct_commit_force_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-150", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ct", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-150/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-150/dump.out new file mode 100644 index 000000000..45feaf61f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-150/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ct commit force zone 0 pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-150/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-150/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-150/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-150/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-150/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-150/ip.pcap new file mode 100644 index 000000000..0f22b5600 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-150/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-150/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-150/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-150/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-150/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-150/netlink_route_dump.pcap new file mode 100644 index 000000000..5ae0c67f9 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-150/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-151/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-151/cmd.json new file mode 100644 index 000000000..ab930fb56 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-151/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ct", + "json": "0", + "words": "actions add action ct clear index 1" + }, + "cmd": "tc actions add action ct clear index 1", + "desc": "positive: opt=plain cmd=ct:actions_add_action_ct_clear_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-151", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ct", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-151/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-151/dump.out new file mode 100644 index 000000000..6a1866dd2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-151/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ct clear pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-151/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-151/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-151/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-151/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-151/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-151/ip.pcap new file mode 100644 index 000000000..431a3afa9 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-151/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-151/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-151/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-151/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-151/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-151/netlink_route_dump.pcap new file mode 100644 index 000000000..1c31ec0b1 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-151/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-152/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-152/cmd.json new file mode 100644 index 000000000..b99a2f743 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-152/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ct", + "json": "0", + "words": "actions add action ct zone 5 index 1" + }, + "cmd": "tc actions add action ct zone 5 index 1", + "desc": "positive: opt=plain cmd=ct:actions_add_action_ct_zone_5_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-152", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ct", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-152/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-152/dump.out new file mode 100644 index 000000000..94294963b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-152/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ct zone 5 pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-152/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-152/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-152/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-152/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-152/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-152/ip.pcap new file mode 100644 index 000000000..b63324311 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-152/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-152/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-152/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-152/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-152/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-152/netlink_route_dump.pcap new file mode 100644 index 000000000..dce7a96d5 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-152/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-153/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-153/cmd.json new file mode 100644 index 000000000..2e5ef52d4 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-153/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ct", + "json": "0", + "words": "actions add action ct commit zone 404 mark 0x42/0xf0 label 12312300000000000000000000000001/ffffffff000000000000000000000001 index 1" + }, + "cmd": "tc actions add action ct commit zone 404 mark 0x42/0xf0 label 12312300000000000000000000000001/ffffffff000000000000000000000001 index 1", + "desc": "positive: opt=plain cmd=ct:actions_add_action_ct_commit_zone_404_mark_0x42/0xf0_label_12312300000000000000000000000001/ffffffff000000000000000000000001_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-153", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ct", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-153/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-153/dump.out new file mode 100644 index 000000000..495fcb7da --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-153/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ct commit mark 66/0xf0 zone 404 label 12312300000000000000000000000001/ffffffff000000000000000000000001 pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-153/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-153/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-153/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-153/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-153/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-153/ip.pcap new file mode 100644 index 000000000..fa44333da Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-153/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-153/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-153/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-153/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-153/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-153/netlink_route_dump.pcap new file mode 100644 index 000000000..0a3f671e0 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-153/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-154/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-154/cmd.json new file mode 100644 index 000000000..8ab6301f1 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-154/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ct", + "json": "0", + "words": "actions add action ct commit mark 5 index 1" + }, + "cmd": "tc actions add action ct commit mark 5 index 1", + "desc": "positive: opt=plain cmd=ct:actions_add_action_ct_commit_mark_5_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-154", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ct", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-154/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-154/dump.out new file mode 100644 index 000000000..730ba4a7c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-154/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ct commit mark 5 zone 0 pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-154/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-154/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-154/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-154/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-154/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-154/ip.pcap new file mode 100644 index 000000000..d71605f9a Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-154/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-154/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-154/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-154/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-154/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-154/netlink_route_dump.pcap new file mode 100644 index 000000000..96788f978 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-154/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-155/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-155/cmd.json new file mode 100644 index 000000000..385651388 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-155/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ct", + "json": "0", + "words": "actions add action ct commit label 0102 index 1" + }, + "cmd": "tc actions add action ct commit label 0102 index 1", + "desc": "positive: opt=plain cmd=ct:actions_add_action_ct_commit_label_0102_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-155", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ct", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-155/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-155/dump.out new file mode 100644 index 000000000..7d05a396b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-155/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ct commit zone 0 label 01020000000000000000000000000000 pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-155/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-155/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-155/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-155/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-155/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-155/ip.pcap new file mode 100644 index 000000000..a7ff3ccd7 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-155/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-155/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-155/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-155/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-155/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-155/netlink_route_dump.pcap new file mode 100644 index 000000000..9b5409531 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-155/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-156/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-156/cmd.json new file mode 100644 index 000000000..a93465fdd --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-156/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ct", + "json": "0", + "words": "actions add action ct commit nat src addr 10.0.0.1-10.0.0.9 port 1000-2000 index 1" + }, + "cmd": "tc actions add action ct commit nat src addr 10.0.0.1-10.0.0.9 port 1000-2000 index 1", + "desc": "positive: opt=plain cmd=ct:actions_add_action_ct_commit_nat_src_addr_10.0.0.1-10.0.0.9_port_1000-2000_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-156", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ct", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-156/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-156/dump.out new file mode 100644 index 000000000..dfede6456 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-156/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ct commit zone 0 nat src addr 10.0.0.1-10.0.0.9 port 1000-2000 pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-156/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-156/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-156/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-156/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-156/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-156/ip.pcap new file mode 100644 index 000000000..4bbd79027 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-156/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-156/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-156/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-156/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-156/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-156/netlink_route_dump.pcap new file mode 100644 index 000000000..340ad46dc Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-156/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-157/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-157/cmd.json new file mode 100644 index 000000000..03ea7fd69 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-157/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ct", + "json": "0", + "words": "actions add action ct commit nat dst addr 10.0.0.1 port 80 index 1" + }, + "cmd": "tc actions add action ct commit nat dst addr 10.0.0.1 port 80 index 1", + "desc": "positive: opt=plain cmd=ct:actions_add_action_ct_commit_nat_dst_addr_10.0.0.1_port_80_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-157", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ct", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-157/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-157/dump.out new file mode 100644 index 000000000..5d27f4903 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-157/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ct commit zone 0 nat dst addr 10.0.0.1 port 80 pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-157/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-157/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-157/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-157/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-157/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-157/ip.pcap new file mode 100644 index 000000000..6debaafbc Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-157/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-157/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-157/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-157/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-157/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-157/netlink_route_dump.pcap new file mode 100644 index 000000000..b49a4bd82 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-157/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-158/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-158/cmd.json new file mode 100644 index 000000000..160f51369 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-158/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ct", + "json": "0", + "words": "actions add action ct commit nat dst addr 2001:db8::1 index 1" + }, + "cmd": "tc actions add action ct commit nat dst addr 2001:db8::1 index 1", + "desc": "positive: opt=plain cmd=ct:actions_add_action_ct_commit_nat_dst_addr_2001:db8::1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-158", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ct", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-158/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-158/dump.out new file mode 100644 index 000000000..294971cef --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-158/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ct commit zone 0 nat dst addr 2001:db8::1 pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-158/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-158/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-158/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-158/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-158/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-158/ip.pcap new file mode 100644 index 000000000..9cb350973 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-158/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-158/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-158/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-158/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-158/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-158/netlink_route_dump.pcap new file mode 100644 index 000000000..b8dd4a371 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-158/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-159/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-159/cmd.json new file mode 100644 index 000000000..0d902a1da --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-159/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ct", + "json": "0", + "words": "actions add action ct commit nat src addr 2001:db8::1-2001:db8::9 port 80-90 index 1" + }, + "cmd": "tc actions add action ct commit nat src addr 2001:db8::1-2001:db8::9 port 80-90 index 1", + "desc": "positive: opt=plain cmd=ct:actions_add_action_ct_commit_nat_src_addr_2001:db8::1-2001:db8::9_port_80-90_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-159", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ct", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-159/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-159/dump.out new file mode 100644 index 000000000..4740c336e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-159/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ct commit zone 0 nat src addr 2001:db8::1-2001:db8::9 port 80-90 pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-159/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-159/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-159/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-159/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-159/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-159/ip.pcap new file mode 100644 index 000000000..3e2124ae5 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-159/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-159/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-159/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-159/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-159/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-159/netlink_route_dump.pcap new file mode 100644 index 000000000..15d69acc2 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-159/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-160/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-160/cmd.json new file mode 100644 index 000000000..92a69ec6e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-160/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ct", + "json": "0", + "words": "actions add action ct nat index 1" + }, + "cmd": "tc actions add action ct nat index 1", + "desc": "positive: opt=plain cmd=ct:actions_add_action_ct_nat_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-160", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ct", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-160/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-160/dump.out new file mode 100644 index 000000000..196997f0e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-160/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ct zone 0 nat pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-160/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-160/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-160/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-160/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-160/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-160/ip.pcap new file mode 100644 index 000000000..8df8a9580 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-160/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-160/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-160/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-160/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-160/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-160/netlink_route_dump.pcap new file mode 100644 index 000000000..f3d8dcd01 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-160/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-161/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-161/cmd.json new file mode 100644 index 000000000..4439c5998 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-161/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ct", + "json": "0", + "words": "actions add action ct nat zone 3 index 1" + }, + "cmd": "tc actions add action ct nat zone 3 index 1", + "desc": "positive: opt=plain cmd=ct:actions_add_action_ct_nat_zone_3_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-161", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ct", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-161/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-161/dump.out new file mode 100644 index 000000000..b2eaca9d2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-161/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ct zone 3 nat pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-161/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-161/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-161/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-161/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-161/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-161/ip.pcap new file mode 100644 index 000000000..b94a249dd Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-161/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-161/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-161/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-161/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-161/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-161/netlink_route_dump.pcap new file mode 100644 index 000000000..bbc20abc9 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-161/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-162/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-162/cmd.json new file mode 100644 index 000000000..504c70375 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-162/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ct", + "json": "0", + "words": "actions add action ct commit helper ipv4-tcp-ftp index 1" + }, + "cmd": "tc actions add action ct commit helper ipv4-tcp-ftp index 1", + "desc": "positive: opt=plain cmd=ct:actions_add_action_ct_commit_helper_ipv4-tcp-ftp_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-162", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ct", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-162/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-162/dump.out new file mode 100644 index 000000000..e7d15a4ac --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-162/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ct commit zone 0 helper ipv6-tcp-ftp pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-162/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-162/ip.err new file mode 100644 index 000000000..6c5f0e3c6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-162/ip.err @@ -0,0 +1 @@ +Warning: act_api: Failed to setup tc actions for offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-162/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-162/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-162/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-162/ip.pcap new file mode 100644 index 000000000..2d05dbb7b Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-162/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-162/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-162/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-162/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-162/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-162/netlink_route_dump.pcap new file mode 100644 index 000000000..552e58779 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-162/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-163/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-163/cmd.json new file mode 100644 index 000000000..cd6b46a03 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-163/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ct", + "json": "0", + "words": "actions add action ct commit helper ipv6-tcp-ftp index 1" + }, + "cmd": "tc actions add action ct commit helper ipv6-tcp-ftp index 1", + "desc": "positive: opt=plain cmd=ct:actions_add_action_ct_commit_helper_ipv6-tcp-ftp_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-163", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ct", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-163/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-163/dump.out new file mode 100644 index 000000000..e7d15a4ac --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-163/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ct commit zone 0 helper ipv6-tcp-ftp pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-163/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-163/ip.err new file mode 100644 index 000000000..6c5f0e3c6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-163/ip.err @@ -0,0 +1 @@ +Warning: act_api: Failed to setup tc actions for offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-163/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-163/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-163/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-163/ip.pcap new file mode 100644 index 000000000..0270195c4 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-163/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-163/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-163/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-163/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-163/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-163/netlink_route_dump.pcap new file mode 100644 index 000000000..eac30ea7c Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-163/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-164/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-164/cmd.json new file mode 100644 index 000000000..bd24d8eda --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-164/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ct", + "json": "0", + "words": "actions add action ct commit index 1 drop" + }, + "cmd": "tc actions add action ct commit index 1 drop", + "desc": "positive: opt=plain cmd=ct:actions_add_action_ct_commit_index_1_drop", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-164", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ct", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-164/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-164/dump.out new file mode 100644 index 000000000..548a33b43 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-164/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ct commit zone 0 drop + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-164/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-164/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-164/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-164/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-164/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-164/ip.pcap new file mode 100644 index 000000000..294a309b5 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-164/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-164/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-164/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-164/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-164/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-164/netlink_route_dump.pcap new file mode 100644 index 000000000..7772dbcd3 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-164/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-165/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-165/cmd.json new file mode 100644 index 000000000..8ead380ed --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-165/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "ct", + "json": "0", + "words": "actions add action ct zone 65535 index 1" + }, + "cmd": "tc actions add action ct zone 65535 index 1", + "desc": "boundary: opt=plain cmd=ct:actions_add_action_ct_zone_65535_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-165", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ct", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-165/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-165/dump.out new file mode 100644 index 000000000..f85717d09 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-165/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ct zone 65535 pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-165/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-165/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-165/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-165/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-165/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-165/ip.pcap new file mode 100644 index 000000000..0295fd531 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-165/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-165/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-165/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-165/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-165/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-165/netlink_route_dump.pcap new file mode 100644 index 000000000..163b4924b Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-165/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-166/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-166/cmd.json new file mode 100644 index 000000000..2f619fef8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-166/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w285-32", + "json": "0", + "words": "actions add action ct commit label 0123456789abcdef0123456789abcdef index 1" + }, + "cmd": "tc actions add action ct commit label 0123456789abcdef0123456789abcdef index 1", + "desc": "boundary: opt=plain cmd=w285-32:actions_add_action_ct_commit_label_0123456789abcdef0123456789abcdef_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-166", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ct", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-166/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-166/dump.out new file mode 100644 index 000000000..1c0a49622 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-166/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ct commit zone 0 label 0123456789abcdef0123456789abcdef pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-166/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-166/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-166/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-166/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-166/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-166/ip.pcap new file mode 100644 index 000000000..4242d8cfd Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-166/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-166/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-166/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-166/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-166/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-166/netlink_route_dump.pcap new file mode 100644 index 000000000..89d4b953f Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-166/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-167/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-167/cmd.json new file mode 100644 index 000000000..6fc949186 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-167/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w280-62", + "json": "0", + "words": "actions add action ct commit nat src addr 2001:0db8:0000:0000:0000:0000:0000:0001-2001:0db8:0000:0000::9 index 1" + }, + "cmd": "tc actions add action ct commit nat src addr 2001:0db8:0000:0000:0000:0000:0000:0001-2001:0db8:0000:0000::9 index 1", + "desc": "boundary: opt=plain cmd=w280-62:actions_add_action_ct_commit_nat_src_addr_2001:0db8:0000:0000:0000:0000:0000:0001-2001:0db8:0000:0000::9_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-167", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ct", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-167/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-167/dump.out new file mode 100644 index 000000000..37d628121 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-167/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ct commit zone 0 nat src addr 2001:db8::1-2001:db8::9 pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-167/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-167/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-167/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-167/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-167/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-167/ip.pcap new file mode 100644 index 000000000..9ce745af9 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-167/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-167/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-167/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-167/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-167/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-167/netlink_route_dump.pcap new file mode 100644 index 000000000..f78d9df38 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-167/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-168/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-168/cmd.json new file mode 100644 index 000000000..c06e7604b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-168/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w280", + "json": "0", + "words": "actions add action ct commit nat src addr 2001:0db8:0000:0000:0000:0000:0000:0001-2001:0db8:0000:0000::09 index 1" + }, + "cmd": "tc actions add action ct commit nat src addr 2001:0db8:0000:0000:0000:0000:0000:0001-2001:0db8:0000:0000::09 index 1", + "desc": "corner: opt=plain cmd=w280:actions_add_action_ct_commit_nat_src_addr_2001:0db8:0000:0000:0000:0000:0000:0001-2001:0db8:0000:0000::09_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-168", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ct", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-168/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-168/dump.out new file mode 100644 index 000000000..37d628121 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-168/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ct commit zone 0 nat src addr 2001:db8::1-2001:db8::9 pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-168/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-168/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-168/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-168/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-168/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-168/ip.pcap new file mode 100644 index 000000000..e9a8c441c Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-168/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-168/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-168/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-168/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-168/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-168/netlink_route_dump.pcap new file mode 100644 index 000000000..893555509 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-168/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-169/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-169/cmd.json new file mode 100644 index 000000000..c901ef352 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-169/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w281", + "json": "0", + "words": "actions add action ct commit nat src addr 10.0.0.1 index 1" + }, + "cmd": "tc actions add action ct commit nat src addr 10.0.0.1 index 1", + "desc": "corner: opt=plain cmd=w281:actions_add_action_ct_commit_nat_src_addr_10.0.0.1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-169", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ct", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-169/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-169/dump.out new file mode 100644 index 000000000..d4aaf8645 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-169/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ct commit zone 0 nat src addr 10.0.0.1 pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-169/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-169/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-169/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-169/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-169/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-169/ip.pcap new file mode 100644 index 000000000..c359795d2 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-169/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-169/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-169/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-169/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-169/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-169/netlink_route_dump.pcap new file mode 100644 index 000000000..e40e064b9 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-169/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-170/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-170/cmd.json new file mode 100644 index 000000000..6cf4ee5d1 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-170/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w282", + "json": "0", + "words": "actions add action ct commit nat src addr 10.0.0.1 port 2000-1000 index 1" + }, + "cmd": "tc actions add action ct commit nat src addr 10.0.0.1 port 2000-1000 index 1", + "desc": "corner: opt=plain cmd=w282:actions_add_action_ct_commit_nat_src_addr_10.0.0.1_port_2000-1000_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-170", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ct", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-170/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-170/dump.out new file mode 100644 index 000000000..bbf2cbc66 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-170/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ct commit zone 0 nat src addr 10.0.0.1 port 2000-1000 pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-170/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-170/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-170/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-170/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-170/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-170/ip.pcap new file mode 100644 index 000000000..d9ec226a3 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-170/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-170/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-170/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-170/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-170/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-170/netlink_route_dump.pcap new file mode 100644 index 000000000..145f81061 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-170/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-171/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-171/cmd.json new file mode 100644 index 000000000..709e0b05b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-171/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w284", + "json": "0", + "words": "actions add action ct commit helper ipv4-6-ftp index 1" + }, + "cmd": "tc actions add action ct commit helper ipv4-6-ftp index 1", + "desc": "corner: opt=plain cmd=w284:actions_add_action_ct_commit_helper_ipv4-6-ftp_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-171", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ct", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-171/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-171/dump.out new file mode 100644 index 000000000..e7d15a4ac --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-171/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ct commit zone 0 helper ipv6-tcp-ftp pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-171/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-171/ip.err new file mode 100644 index 000000000..6c5f0e3c6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-171/ip.err @@ -0,0 +1 @@ +Warning: act_api: Failed to setup tc actions for offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-171/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-171/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-171/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-171/ip.pcap new file mode 100644 index 000000000..45c4e2aa5 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-171/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-171/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-171/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-171/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-171/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-171/netlink_route_dump.pcap new file mode 100644 index 000000000..631d31534 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-171/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-172/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-172/cmd.json new file mode 100644 index 000000000..f36f2c093 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-172/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w287-odd", + "json": "0", + "words": "actions add action ct commit label 00g index 1" + }, + "cmd": "tc actions add action ct commit label 00g index 1", + "desc": "corner: opt=plain cmd=w287-odd:actions_add_action_ct_commit_label_00g_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-172", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ct", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-172/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-172/dump.out new file mode 100644 index 000000000..224370a9c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-172/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ct commit zone 0 label 00000000000000000000000000000000 pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-172/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-172/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-172/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-172/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-172/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-172/ip.pcap new file mode 100644 index 000000000..a9e23a55c Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-172/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-172/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-172/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-172/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-172/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-172/netlink_route_dump.pcap new file mode 100644 index 000000000..6d673d3de Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-172/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-173/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-173/cmd.json new file mode 100644 index 000000000..6d300796b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-173/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w287-0", + "json": "0", + "words": "actions add action ct commit label 0 index 1" + }, + "cmd": "tc actions add action ct commit label 0 index 1", + "desc": "corner: opt=plain cmd=w287-0:actions_add_action_ct_commit_label_0_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-173", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ct", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-173/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-173/dump.out new file mode 100644 index 000000000..224370a9c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-173/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ct commit zone 0 label 00000000000000000000000000000000 pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-173/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-173/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-173/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-173/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-173/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-173/ip.pcap new file mode 100644 index 000000000..4a1ba2401 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-173/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-173/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-173/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-173/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-173/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-173/netlink_route_dump.pcap new file mode 100644 index 000000000..449c394e0 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-173/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-174/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-174/cmd.json new file mode 100644 index 000000000..f416c5e79 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-174/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w289", + "json": "0", + "words": "actions add action ct clear zone 5 mark 1 index 1" + }, + "cmd": "tc actions add action ct clear zone 5 mark 1 index 1", + "desc": "corner: opt=plain cmd=w289:actions_add_action_ct_clear_zone_5_mark_1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-174", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ct", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-174/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-174/dump.out new file mode 100644 index 000000000..6a1866dd2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-174/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ct clear pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-174/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-174/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-174/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-174/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-174/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-174/ip.pcap new file mode 100644 index 000000000..f1b8af00b Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-174/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-174/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-174/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-174/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-174/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-174/netlink_route_dump.pcap new file mode 100644 index 000000000..f99ea4558 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-174/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-175/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-175/cmd.json new file mode 100644 index 000000000..f0d55067c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-175/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w289-force", + "json": "0", + "words": "actions add action ct force index 1" + }, + "cmd": "tc actions add action ct force index 1", + "desc": "corner: opt=plain cmd=w289-force:actions_add_action_ct_force_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-175", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ct", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-175/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-175/dump.out new file mode 100644 index 000000000..4060cd635 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-175/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ct zone 0 pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-175/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-175/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-175/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-175/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-175/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-175/ip.pcap new file mode 100644 index 000000000..cec9f1b2a Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-175/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-175/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-175/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-175/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-175/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-175/netlink_route_dump.pcap new file mode 100644 index 000000000..22b98440a Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-175/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-176/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-176/cmd.json new file mode 100644 index 000000000..89b5d44e3 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-176/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w290", + "json": "0", + "words": "actions add action ct zone 010 index 1" + }, + "cmd": "tc actions add action ct zone 010 index 1", + "desc": "corner: opt=plain cmd=w290:actions_add_action_ct_zone_010_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-176", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ct", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-176/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-176/dump.out new file mode 100644 index 000000000..9195f02a1 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-176/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ct zone 8 pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-176/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-176/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-176/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-176/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-176/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-176/ip.pcap new file mode 100644 index 000000000..2bd4ea9c3 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-176/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-176/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-176/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-176/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-176/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-176/netlink_route_dump.pcap new file mode 100644 index 000000000..48d9eb928 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-176/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-177/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-177/cmd.json new file mode 100644 index 000000000..c09f4dc6a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-177/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w292", + "json": "0", + "words": "actions add action ct co z 5 m 1 index 1" + }, + "cmd": "tc actions add action ct co z 5 m 1 index 1", + "desc": "corner: opt=plain cmd=w292:actions_add_action_ct_co_z_5_m_1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-177", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ct", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-177/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-177/dump.out new file mode 100644 index 000000000..6f23fd1df --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-177/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ct commit mark 1 zone 5 pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-177/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-177/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-177/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-177/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-177/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-177/ip.pcap new file mode 100644 index 000000000..740bf872d Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-177/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-177/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-177/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-177/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-177/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-177/netlink_route_dump.pcap new file mode 100644 index 000000000..d65ee668b Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-177/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-178/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-178/cmd.json new file mode 100644 index 000000000..609c16946 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-178/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w292-c", + "json": "0", + "words": "actions add action ct c index 1" + }, + "cmd": "tc actions add action ct c index 1", + "desc": "corner: opt=plain cmd=w292-c:actions_add_action_ct_c_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-178", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action ct", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-178/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-178/dump.out new file mode 100644 index 000000000..6a1866dd2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-178/dump.out @@ -0,0 +1,6 @@ +total acts 1 + + action order 0: ct clear pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-178/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-178/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-178/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-178/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-178/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-178/ip.pcap new file mode 100644 index 000000000..32271498b Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-178/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-178/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-178/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-178/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-178/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-178/netlink_route_dump.pcap new file mode 100644 index 000000000..a963258a4 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-178/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-179/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-179/cmd.json new file mode 100644 index 000000000..1b3259bd0 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-179/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "gate", + "json": "0", + "words": "actions add action gate priority 2 clockid CLOCK_TAI base-time 200000000000ns cycle-time 300000000ns cycle-time-ext 1000ns sched-entry open 100000000ns 3 8000 sched-entry close 100000000ns -1 -1 sched-entry open 100000000ns 1 -1 index 1" + }, + "cmd": "tc actions add action gate priority 2 clockid CLOCK_TAI base-time 200000000000ns cycle-time 300000000ns cycle-time-ext 1000ns sched-entry open 100000000ns 3 8000 sched-entry close 100000000ns -1 -1 sched-entry open 100000000ns 1 -1 index 1", + "desc": "positive: opt=plain cmd=gate:actions_add_action_gate_priority_2_clockid_CLOCK_TAI_base-time_200000000000ns_cycle-time_300000000ns_cycle-time-ext_1000ns_sched-entry_open_100000000ns_3_8000_sched-entry_close_100000000ns_-1_-1_sched-entry_open_100000000ns_1_-1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-179", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-179/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-179/dump.out new file mode 100644 index 000000000..4f2c8bd9f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-179/dump.out @@ -0,0 +1,13 @@ +total acts 1 + + action order 0: + priority 2 clockid TAI flags 0 + base-time 200s cycle-time 300ms cycle-time-ext 1us + schedule: + number 0 gate-state open interval 100ms ipv 3 max-octets 8000b + number 1 gate-state close interval 100ms ipv wildcard max-octets wildcard + number 2 gate-state open interval 100ms ipv 1 max-octets wildcard + pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-179/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-179/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-179/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-179/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-179/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-179/ip.pcap new file mode 100644 index 000000000..f9c517e61 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-179/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-179/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-179/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-179/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-179/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-179/netlink_route_dump.pcap new file mode 100644 index 000000000..38121db75 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-179/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-180/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-180/cmd.json new file mode 100644 index 000000000..c4f3d2396 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-180/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "gate", + "json": "0", + "words": "actions add action gate sched-entry close 100000000ns index 1" + }, + "cmd": "tc actions add action gate sched-entry close 100000000ns index 1", + "desc": "positive: opt=plain cmd=gate:actions_add_action_gate_sched-entry_close_100000000ns_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-180", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-180/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-180/dump.out new file mode 100644 index 000000000..c1d264aef --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-180/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: + priority wildcard clockid TAI flags 0 + base-time 0ns cycle-time 100ms cycle-time-ext 0ns + schedule: + number 0 gate-state close interval 100ms ipv wildcard max-octets wildcard + pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-180/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-180/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-180/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-180/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-180/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-180/ip.pcap new file mode 100644 index 000000000..d9efb187c Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-180/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-180/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-180/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-180/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-180/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-180/netlink_route_dump.pcap new file mode 100644 index 000000000..22b5518d9 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-180/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-181/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-181/cmd.json new file mode 100644 index 000000000..9e34e0353 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-181/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "gate", + "json": "0", + "words": "actions add action gate sched-entry open 1ms index 1" + }, + "cmd": "tc actions add action gate sched-entry open 1ms index 1", + "desc": "positive: opt=plain cmd=gate:actions_add_action_gate_sched-entry_open_1ms_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-181", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-181/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-181/dump.out new file mode 100644 index 000000000..d1ef0a62e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-181/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: + priority wildcard clockid TAI flags 0 + base-time 0ns cycle-time 1ms cycle-time-ext 0ns + schedule: + number 0 gate-state open interval 1ms ipv wildcard max-octets wildcard + pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-181/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-181/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-181/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-181/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-181/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-181/ip.pcap new file mode 100644 index 000000000..d5a1d8591 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-181/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-181/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-181/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-181/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-181/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-181/netlink_route_dump.pcap new file mode 100644 index 000000000..4d987d0a1 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-181/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-182/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-182/cmd.json new file mode 100644 index 000000000..bc0321512 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-182/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "gate", + "json": "0", + "words": "actions add action gate sched-entry open 1us -1 -1 index 1" + }, + "cmd": "tc actions add action gate sched-entry open 1us -1 -1 index 1", + "desc": "positive: opt=plain cmd=gate:actions_add_action_gate_sched-entry_open_1us_-1_-1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-182", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-182/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-182/dump.out new file mode 100644 index 000000000..de34e7362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-182/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: + priority wildcard clockid TAI flags 0 + base-time 0ns cycle-time 1us cycle-time-ext 0ns + schedule: + number 0 gate-state open interval 1us ipv wildcard max-octets wildcard + pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-182/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-182/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-182/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-182/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-182/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-182/ip.pcap new file mode 100644 index 000000000..fad9e0321 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-182/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-182/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-182/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-182/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-182/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-182/netlink_route_dump.pcap new file mode 100644 index 000000000..62c1fdfb9 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-182/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-183/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-183/cmd.json new file mode 100644 index 000000000..35a92f0f2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-183/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "gate", + "json": "0", + "words": "actions add action gate sched-entry open 1000000 3 8k index 1" + }, + "cmd": "tc actions add action gate sched-entry open 1000000 3 8k index 1", + "desc": "positive: opt=plain cmd=gate:actions_add_action_gate_sched-entry_open_1000000_3_8k_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-183", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-183/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-183/dump.out new file mode 100644 index 000000000..b8ae4264f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-183/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: + priority wildcard clockid TAI flags 0 + base-time 0ns cycle-time 1ms cycle-time-ext 0ns + schedule: + number 0 gate-state open interval 1ms ipv 3 max-octets 8Kb + pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-183/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-183/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-183/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-183/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-183/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-183/ip.pcap new file mode 100644 index 000000000..7cecf93c9 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-183/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-183/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-183/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-183/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-183/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-183/netlink_route_dump.pcap new file mode 100644 index 000000000..2a8b9c961 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-183/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-184/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-184/cmd.json new file mode 100644 index 000000000..fb47459bc --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-184/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "gate-clk", + "json": "0", + "words": "actions add action gate clockid CLOCK_TAI sched-entry open 1000000 -1 -1 index 1" + }, + "cmd": "tc actions add action gate clockid CLOCK_TAI sched-entry open 1000000 -1 -1 index 1", + "desc": "positive: opt=plain cmd=gate-clk:actions_add_action_gate_clockid_CLOCK_TAI_sched-entry_open_1000000_-1_-1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-184", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-184/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-184/dump.out new file mode 100644 index 000000000..d1ef0a62e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-184/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: + priority wildcard clockid TAI flags 0 + base-time 0ns cycle-time 1ms cycle-time-ext 0ns + schedule: + number 0 gate-state open interval 1ms ipv wildcard max-octets wildcard + pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-184/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-184/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-184/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-184/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-184/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-184/ip.pcap new file mode 100644 index 000000000..b0093632b Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-184/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-184/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-184/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-184/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-184/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-184/netlink_route_dump.pcap new file mode 100644 index 000000000..3fbe435f4 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-184/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-185/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-185/cmd.json new file mode 100644 index 000000000..559e0ad28 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-185/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "gate-clk", + "json": "0", + "words": "actions add action gate clockid CLOCK_REALTIME sched-entry open 1000000 -1 -1 index 1" + }, + "cmd": "tc actions add action gate clockid CLOCK_REALTIME sched-entry open 1000000 -1 -1 index 1", + "desc": "positive: opt=plain cmd=gate-clk:actions_add_action_gate_clockid_CLOCK_REALTIME_sched-entry_open_1000000_-1_-1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-185", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-185/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-185/dump.out new file mode 100644 index 000000000..c161fbd9b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-185/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: + priority wildcard clockid REALTIME flags 0 + base-time 0ns cycle-time 1ms cycle-time-ext 0ns + schedule: + number 0 gate-state open interval 1ms ipv wildcard max-octets wildcard + pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-185/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-185/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-185/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-185/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-185/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-185/ip.pcap new file mode 100644 index 000000000..8ff41d05f Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-185/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-185/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-185/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-185/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-185/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-185/netlink_route_dump.pcap new file mode 100644 index 000000000..fab7f6ba6 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-185/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-186/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-186/cmd.json new file mode 100644 index 000000000..7ade5faf9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-186/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "gate-clk", + "json": "0", + "words": "actions add action gate clockid CLOCK_MONOTONIC sched-entry open 1000000 -1 -1 index 1" + }, + "cmd": "tc actions add action gate clockid CLOCK_MONOTONIC sched-entry open 1000000 -1 -1 index 1", + "desc": "positive: opt=plain cmd=gate-clk:actions_add_action_gate_clockid_CLOCK_MONOTONIC_sched-entry_open_1000000_-1_-1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-186", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-186/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-186/dump.out new file mode 100644 index 000000000..bc133c4b6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-186/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: + priority wildcard clockid MONOTONIC flags 0 + base-time 0ns cycle-time 1ms cycle-time-ext 0ns + schedule: + number 0 gate-state open interval 1ms ipv wildcard max-octets wildcard + pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-186/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-186/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-186/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-186/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-186/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-186/ip.pcap new file mode 100644 index 000000000..56d42c3df Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-186/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-186/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-186/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-186/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-186/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-186/netlink_route_dump.pcap new file mode 100644 index 000000000..9aef2c8c1 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-186/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-187/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-187/cmd.json new file mode 100644 index 000000000..b89540420 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-187/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "gate-clk", + "json": "0", + "words": "actions add action gate clockid CLOCK_BOOTTIME sched-entry open 1000000 -1 -1 index 1" + }, + "cmd": "tc actions add action gate clockid CLOCK_BOOTTIME sched-entry open 1000000 -1 -1 index 1", + "desc": "positive: opt=plain cmd=gate-clk:actions_add_action_gate_clockid_CLOCK_BOOTTIME_sched-entry_open_1000000_-1_-1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-187", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-187/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-187/dump.out new file mode 100644 index 000000000..4f999a559 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-187/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: + priority wildcard clockid BOOTTIME flags 0 + base-time 0ns cycle-time 1ms cycle-time-ext 0ns + schedule: + number 0 gate-state open interval 1ms ipv wildcard max-octets wildcard + pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-187/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-187/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-187/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-187/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-187/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-187/ip.pcap new file mode 100644 index 000000000..0ebe3233a Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-187/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-187/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-187/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-187/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-187/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-187/netlink_route_dump.pcap new file mode 100644 index 000000000..61b04efbd Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-187/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-188/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-188/cmd.json new file mode 100644 index 000000000..9c4daa882 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-188/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "gate-clk", + "json": "0", + "words": "actions add action gate clockid tai sched-entry open 1000000 -1 -1 index 1" + }, + "cmd": "tc actions add action gate clockid tai sched-entry open 1000000 -1 -1 index 1", + "desc": "positive: opt=plain cmd=gate-clk:actions_add_action_gate_clockid_tai_sched-entry_open_1000000_-1_-1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-188", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-188/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-188/dump.out new file mode 100644 index 000000000..d1ef0a62e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-188/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: + priority wildcard clockid TAI flags 0 + base-time 0ns cycle-time 1ms cycle-time-ext 0ns + schedule: + number 0 gate-state open interval 1ms ipv wildcard max-octets wildcard + pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-188/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-188/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-188/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-188/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-188/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-188/ip.pcap new file mode 100644 index 000000000..1e1627066 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-188/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-188/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-188/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-188/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-188/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-188/netlink_route_dump.pcap new file mode 100644 index 000000000..66a9b67e2 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-188/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-189/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-189/cmd.json new file mode 100644 index 000000000..e77625e3d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-189/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "gate-clk", + "json": "0", + "words": "actions add action gate clockid clock_boottime sched-entry open 1000000 -1 -1 index 1" + }, + "cmd": "tc actions add action gate clockid clock_boottime sched-entry open 1000000 -1 -1 index 1", + "desc": "positive: opt=plain cmd=gate-clk:actions_add_action_gate_clockid_clock_boottime_sched-entry_open_1000000_-1_-1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-189", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-189/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-189/dump.out new file mode 100644 index 000000000..4f999a559 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-189/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: + priority wildcard clockid BOOTTIME flags 0 + base-time 0ns cycle-time 1ms cycle-time-ext 0ns + schedule: + number 0 gate-state open interval 1ms ipv wildcard max-octets wildcard + pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-189/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-189/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-189/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-189/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-189/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-189/ip.pcap new file mode 100644 index 000000000..6a447e780 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-189/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-189/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-189/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-189/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-189/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-189/netlink_route_dump.pcap new file mode 100644 index 000000000..45ac4a106 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-189/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-190/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-190/cmd.json new file mode 100644 index 000000000..3b67135a5 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-190/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "gate", + "json": "0", + "words": "actions add action gate base-time 1 cycle-time 2000000 sched-entry open 1000000 -1 -1 sched-entry close 1000000 index 1" + }, + "cmd": "tc actions add action gate base-time 1 cycle-time 2000000 sched-entry open 1000000 -1 -1 sched-entry close 1000000 index 1", + "desc": "positive: opt=plain cmd=gate:actions_add_action_gate_base-time_1_cycle-time_2000000_sched-entry_open_1000000_-1_-1_sched-entry_close_1000000_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-190", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-190/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-190/dump.out new file mode 100644 index 000000000..aca645eb7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-190/dump.out @@ -0,0 +1,12 @@ +total acts 1 + + action order 0: + priority wildcard clockid TAI flags 0 + base-time 1ns cycle-time 2ms cycle-time-ext 0ns + schedule: + number 0 gate-state open interval 1ms ipv wildcard max-octets wildcard + number 1 gate-state close interval 1ms ipv wildcard max-octets wildcard + pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-190/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-190/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-190/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-190/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-190/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-190/ip.pcap new file mode 100644 index 000000000..228a2d049 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-190/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-190/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-190/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-190/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-190/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-190/netlink_route_dump.pcap new file mode 100644 index 000000000..5f929f4fd Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-190/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-191/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-191/cmd.json new file mode 100644 index 000000000..1870107ba --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-191/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "gate", + "json": "0", + "words": "actions add action gate flags 1 sched-entry open 1000000 -1 -1 index 1" + }, + "cmd": "tc actions add action gate flags 1 sched-entry open 1000000 -1 -1 index 1", + "desc": "positive: opt=plain cmd=gate:actions_add_action_gate_flags_1_sched-entry_open_1000000_-1_-1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-191", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-191/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-191/dump.out new file mode 100644 index 000000000..02f33e341 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-191/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: + priority wildcard clockid TAI flags 0x1 + base-time 0ns cycle-time 1ms cycle-time-ext 0ns + schedule: + number 0 gate-state open interval 1ms ipv wildcard max-octets wildcard + pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-191/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-191/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-191/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-191/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-191/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-191/ip.pcap new file mode 100644 index 000000000..07fe40477 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-191/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-191/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-191/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-191/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-191/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-191/netlink_route_dump.pcap new file mode 100644 index 000000000..1109ba24a Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-191/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-192/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-192/cmd.json new file mode 100644 index 000000000..208e18f9f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-192/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "gate", + "json": "0", + "words": "actions add action gate sched-entry open 1000000 -1 -1 index 1 drop" + }, + "cmd": "tc actions add action gate sched-entry open 1000000 -1 -1 index 1 drop", + "desc": "positive: opt=plain cmd=gate:actions_add_action_gate_sched-entry_open_1000000_-1_-1_index_1_drop", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-192", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-192/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-192/dump.out new file mode 100644 index 000000000..7021477a8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-192/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: + priority wildcard clockid TAI flags 0 + base-time 0ns cycle-time 1ms cycle-time-ext 0ns + schedule: + number 0 gate-state open interval 1ms ipv wildcard max-octets wildcard + drop + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-192/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-192/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-192/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-192/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-192/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-192/ip.pcap new file mode 100644 index 000000000..a760a7980 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-192/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-192/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-192/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-192/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-192/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-192/netlink_route_dump.pcap new file mode 100644 index 000000000..591270bf3 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-192/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-193/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-193/cmd.json new file mode 100644 index 000000000..76a5af86a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-193/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "gate", + "json": "0", + "words": "actions add action gate sched-entry open 4294967295 -1 -1 index 1" + }, + "cmd": "tc actions add action gate sched-entry open 4294967295 -1 -1 index 1", + "desc": "boundary: opt=plain cmd=gate:actions_add_action_gate_sched-entry_open_4294967295_-1_-1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-193", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-193/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-193/dump.out new file mode 100644 index 000000000..ad63a3b14 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-193/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: + priority wildcard clockid TAI flags 0 + base-time 0ns cycle-time 4.29s cycle-time-ext 0ns + schedule: + number 0 gate-state open interval 4.29s ipv wildcard max-octets wildcard + pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-193/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-193/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-193/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-193/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-193/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-193/ip.pcap new file mode 100644 index 000000000..4a564ca7b Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-193/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-193/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-193/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-193/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-193/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-193/netlink_route_dump.pcap new file mode 100644 index 000000000..152d4f262 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-193/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-194/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-194/cmd.json new file mode 100644 index 000000000..f974625e5 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-194/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "gate", + "json": "0", + "words": "actions add action gate sched-entry open 4294967295ns -1 -1 index 1" + }, + "cmd": "tc actions add action gate sched-entry open 4294967295ns -1 -1 index 1", + "desc": "boundary: opt=plain cmd=gate:actions_add_action_gate_sched-entry_open_4294967295ns_-1_-1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-194", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-194/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-194/dump.out new file mode 100644 index 000000000..ad63a3b14 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-194/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: + priority wildcard clockid TAI flags 0 + base-time 0ns cycle-time 4.29s cycle-time-ext 0ns + schedule: + number 0 gate-state open interval 4.29s ipv wildcard max-octets wildcard + pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-194/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-194/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-194/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-194/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-194/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-194/ip.pcap new file mode 100644 index 000000000..a3bb835d4 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-194/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-194/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-194/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-194/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-194/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-194/netlink_route_dump.pcap new file mode 100644 index 000000000..3a062fd64 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-194/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-195/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-195/cmd.json new file mode 100644 index 000000000..4e5e2d886 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-195/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "gate", + "json": "0", + "words": "actions add action gate sched-entry open 1000 2147483647 2147483647 index 1" + }, + "cmd": "tc actions add action gate sched-entry open 1000 2147483647 2147483647 index 1", + "desc": "boundary: opt=plain cmd=gate:actions_add_action_gate_sched-entry_open_1000_2147483647_2147483647_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-195", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-195/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-195/dump.out new file mode 100644 index 000000000..2aab44b0f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-195/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: + priority wildcard clockid TAI flags 0 + base-time 0ns cycle-time 1us cycle-time-ext 0ns + schedule: + number 0 gate-state open interval 1us ipv 2147483647 max-octets 2Gb + pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-195/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-195/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-195/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-195/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-195/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-195/ip.pcap new file mode 100644 index 000000000..eb5d060e3 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-195/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-195/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-195/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-195/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-195/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-195/netlink_route_dump.pcap new file mode 100644 index 000000000..025bb40af Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-195/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-196/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-196/cmd.json new file mode 100644 index 000000000..74677108c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-196/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w293-30", + "json": "0", + "words": "actions add action gate sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 index 1" + }, + "cmd": "tc actions add action gate sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 index 1", + "desc": "boundary: opt=plain cmd=w293-30:actions_add_action_gate_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-196", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-196/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-196/dump.out new file mode 100644 index 000000000..a6cc389c1 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-196/dump.out @@ -0,0 +1,40 @@ +total acts 1 + + action order 0: + priority wildcard clockid TAI flags 0 + base-time 0ns cycle-time 30us cycle-time-ext 0ns + schedule: + number 0 gate-state open interval 1us ipv wildcard max-octets wildcard + number 1 gate-state open interval 1us ipv wildcard max-octets wildcard + number 2 gate-state open interval 1us ipv wildcard max-octets wildcard + number 3 gate-state open interval 1us ipv wildcard max-octets wildcard + number 4 gate-state open interval 1us ipv wildcard max-octets wildcard + number 5 gate-state open interval 1us ipv wildcard max-octets wildcard + number 6 gate-state open interval 1us ipv wildcard max-octets wildcard + number 7 gate-state open interval 1us ipv wildcard max-octets wildcard + number 8 gate-state open interval 1us ipv wildcard max-octets wildcard + number 9 gate-state open interval 1us ipv wildcard max-octets wildcard + number 10 gate-state open interval 1us ipv wildcard max-octets wildcard + number 11 gate-state open interval 1us ipv wildcard max-octets wildcard + number 12 gate-state open interval 1us ipv wildcard max-octets wildcard + number 13 gate-state open interval 1us ipv wildcard max-octets wildcard + number 14 gate-state open interval 1us ipv wildcard max-octets wildcard + number 15 gate-state open interval 1us ipv wildcard max-octets wildcard + number 16 gate-state open interval 1us ipv wildcard max-octets wildcard + number 17 gate-state open interval 1us ipv wildcard max-octets wildcard + number 18 gate-state open interval 1us ipv wildcard max-octets wildcard + number 19 gate-state open interval 1us ipv wildcard max-octets wildcard + number 20 gate-state open interval 1us ipv wildcard max-octets wildcard + number 21 gate-state open interval 1us ipv wildcard max-octets wildcard + number 22 gate-state open interval 1us ipv wildcard max-octets wildcard + number 23 gate-state open interval 1us ipv wildcard max-octets wildcard + number 24 gate-state open interval 1us ipv wildcard max-octets wildcard + number 25 gate-state open interval 1us ipv wildcard max-octets wildcard + number 26 gate-state open interval 1us ipv wildcard max-octets wildcard + number 27 gate-state open interval 1us ipv wildcard max-octets wildcard + number 28 gate-state open interval 1us ipv wildcard max-octets wildcard + number 29 gate-state open interval 1us ipv wildcard max-octets wildcard + pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-196/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-196/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-196/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-196/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-196/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-196/ip.pcap new file mode 100644 index 000000000..1a921726c Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-196/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-196/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-196/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-196/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-196/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-196/netlink_route_dump.pcap new file mode 100644 index 000000000..e60c04cea Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-196/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-197/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-197/cmd.json new file mode 100644 index 000000000..623055284 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-197/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w293-31", + "json": "0", + "words": "actions add action gate sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 index 1" + }, + "cmd": "tc actions add action gate sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 index 1", + "desc": "corner: opt=plain cmd=w293-31:actions_add_action_gate_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-197", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-197/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-197/dump.out new file mode 100644 index 000000000..a6cc389c1 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-197/dump.out @@ -0,0 +1,40 @@ +total acts 1 + + action order 0: + priority wildcard clockid TAI flags 0 + base-time 0ns cycle-time 30us cycle-time-ext 0ns + schedule: + number 0 gate-state open interval 1us ipv wildcard max-octets wildcard + number 1 gate-state open interval 1us ipv wildcard max-octets wildcard + number 2 gate-state open interval 1us ipv wildcard max-octets wildcard + number 3 gate-state open interval 1us ipv wildcard max-octets wildcard + number 4 gate-state open interval 1us ipv wildcard max-octets wildcard + number 5 gate-state open interval 1us ipv wildcard max-octets wildcard + number 6 gate-state open interval 1us ipv wildcard max-octets wildcard + number 7 gate-state open interval 1us ipv wildcard max-octets wildcard + number 8 gate-state open interval 1us ipv wildcard max-octets wildcard + number 9 gate-state open interval 1us ipv wildcard max-octets wildcard + number 10 gate-state open interval 1us ipv wildcard max-octets wildcard + number 11 gate-state open interval 1us ipv wildcard max-octets wildcard + number 12 gate-state open interval 1us ipv wildcard max-octets wildcard + number 13 gate-state open interval 1us ipv wildcard max-octets wildcard + number 14 gate-state open interval 1us ipv wildcard max-octets wildcard + number 15 gate-state open interval 1us ipv wildcard max-octets wildcard + number 16 gate-state open interval 1us ipv wildcard max-octets wildcard + number 17 gate-state open interval 1us ipv wildcard max-octets wildcard + number 18 gate-state open interval 1us ipv wildcard max-octets wildcard + number 19 gate-state open interval 1us ipv wildcard max-octets wildcard + number 20 gate-state open interval 1us ipv wildcard max-octets wildcard + number 21 gate-state open interval 1us ipv wildcard max-octets wildcard + number 22 gate-state open interval 1us ipv wildcard max-octets wildcard + number 23 gate-state open interval 1us ipv wildcard max-octets wildcard + number 24 gate-state open interval 1us ipv wildcard max-octets wildcard + number 25 gate-state open interval 1us ipv wildcard max-octets wildcard + number 26 gate-state open interval 1us ipv wildcard max-octets wildcard + number 27 gate-state open interval 1us ipv wildcard max-octets wildcard + number 28 gate-state open interval 1us ipv wildcard max-octets wildcard + number 29 gate-state open interval 1us ipv wildcard max-octets wildcard + pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-197/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-197/ip.err new file mode 100644 index 000000000..67aa1fd8c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-197/ip.err @@ -0,0 +1,2 @@ +addattr_l ERROR: message exceeded bound of 1024 +Warning: Attribute isn't type 'entry'. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-197/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-197/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-197/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-197/ip.pcap new file mode 100644 index 000000000..7933d2c2a Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-197/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-197/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-197/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-197/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-197/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-197/netlink_route_dump.pcap new file mode 100644 index 000000000..8f2180826 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-197/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-198/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-198/cmd.json new file mode 100644 index 000000000..e9f57e388 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-198/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w293-40", + "json": "0", + "words": "actions add action gate sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 index 1" + }, + "cmd": "tc actions add action gate sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 sched-entry open 1000 -1 -1 index 1", + "desc": "corner: opt=plain cmd=w293-40:actions_add_action_gate_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_sched-entry_open_1000_-1_-1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-198", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-198/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-198/dump.out new file mode 100644 index 000000000..a6cc389c1 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-198/dump.out @@ -0,0 +1,40 @@ +total acts 1 + + action order 0: + priority wildcard clockid TAI flags 0 + base-time 0ns cycle-time 30us cycle-time-ext 0ns + schedule: + number 0 gate-state open interval 1us ipv wildcard max-octets wildcard + number 1 gate-state open interval 1us ipv wildcard max-octets wildcard + number 2 gate-state open interval 1us ipv wildcard max-octets wildcard + number 3 gate-state open interval 1us ipv wildcard max-octets wildcard + number 4 gate-state open interval 1us ipv wildcard max-octets wildcard + number 5 gate-state open interval 1us ipv wildcard max-octets wildcard + number 6 gate-state open interval 1us ipv wildcard max-octets wildcard + number 7 gate-state open interval 1us ipv wildcard max-octets wildcard + number 8 gate-state open interval 1us ipv wildcard max-octets wildcard + number 9 gate-state open interval 1us ipv wildcard max-octets wildcard + number 10 gate-state open interval 1us ipv wildcard max-octets wildcard + number 11 gate-state open interval 1us ipv wildcard max-octets wildcard + number 12 gate-state open interval 1us ipv wildcard max-octets wildcard + number 13 gate-state open interval 1us ipv wildcard max-octets wildcard + number 14 gate-state open interval 1us ipv wildcard max-octets wildcard + number 15 gate-state open interval 1us ipv wildcard max-octets wildcard + number 16 gate-state open interval 1us ipv wildcard max-octets wildcard + number 17 gate-state open interval 1us ipv wildcard max-octets wildcard + number 18 gate-state open interval 1us ipv wildcard max-octets wildcard + number 19 gate-state open interval 1us ipv wildcard max-octets wildcard + number 20 gate-state open interval 1us ipv wildcard max-octets wildcard + number 21 gate-state open interval 1us ipv wildcard max-octets wildcard + number 22 gate-state open interval 1us ipv wildcard max-octets wildcard + number 23 gate-state open interval 1us ipv wildcard max-octets wildcard + number 24 gate-state open interval 1us ipv wildcard max-octets wildcard + number 25 gate-state open interval 1us ipv wildcard max-octets wildcard + number 26 gate-state open interval 1us ipv wildcard max-octets wildcard + number 27 gate-state open interval 1us ipv wildcard max-octets wildcard + number 28 gate-state open interval 1us ipv wildcard max-octets wildcard + number 29 gate-state open interval 1us ipv wildcard max-octets wildcard + pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-198/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-198/ip.err new file mode 100644 index 000000000..f8cf5f53f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-198/ip.err @@ -0,0 +1,11 @@ +addattr_l ERROR: message exceeded bound of 1024 +addattr_l ERROR: message exceeded bound of 1024 +addattr_l ERROR: message exceeded bound of 1024 +addattr_l ERROR: message exceeded bound of 1024 +addattr_l ERROR: message exceeded bound of 1024 +addattr_l ERROR: message exceeded bound of 1024 +addattr_l ERROR: message exceeded bound of 1024 +addattr_l ERROR: message exceeded bound of 1024 +addattr_l ERROR: message exceeded bound of 1024 +addattr_l ERROR: message exceeded bound of 1024 +Warning: Attribute isn't type 'entry'. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-198/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-198/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-198/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-198/ip.pcap new file mode 100644 index 000000000..88ebeb0e8 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-198/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-198/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-198/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-198/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-198/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-198/netlink_route_dump.pcap new file mode 100644 index 000000000..1586c1e91 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-198/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-199/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-199/cmd.json new file mode 100644 index 000000000..2f622fbcf --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-199/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w293-close", + "json": "0", + "words": "actions add action gate sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 index 1" + }, + "cmd": "tc actions add action gate sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 sched-entry close 1000 index 1", + "desc": "corner: opt=plain cmd=w293-close:actions_add_action_gate_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_sched-entry_close_1000_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-199", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-199/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-199/dump.out new file mode 100644 index 000000000..a72323dd2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-199/dump.out @@ -0,0 +1,44 @@ +total acts 1 + + action order 0: + priority wildcard clockid TAI flags 0 + base-time 0ns cycle-time 34us cycle-time-ext 0ns + schedule: + number 0 gate-state close interval 1us ipv wildcard max-octets wildcard + number 1 gate-state close interval 1us ipv wildcard max-octets wildcard + number 2 gate-state close interval 1us ipv wildcard max-octets wildcard + number 3 gate-state close interval 1us ipv wildcard max-octets wildcard + number 4 gate-state close interval 1us ipv wildcard max-octets wildcard + number 5 gate-state close interval 1us ipv wildcard max-octets wildcard + number 6 gate-state close interval 1us ipv wildcard max-octets wildcard + number 7 gate-state close interval 1us ipv wildcard max-octets wildcard + number 8 gate-state close interval 1us ipv wildcard max-octets wildcard + number 9 gate-state close interval 1us ipv wildcard max-octets wildcard + number 10 gate-state close interval 1us ipv wildcard max-octets wildcard + number 11 gate-state close interval 1us ipv wildcard max-octets wildcard + number 12 gate-state close interval 1us ipv wildcard max-octets wildcard + number 13 gate-state close interval 1us ipv wildcard max-octets wildcard + number 14 gate-state close interval 1us ipv wildcard max-octets wildcard + number 15 gate-state close interval 1us ipv wildcard max-octets wildcard + number 16 gate-state close interval 1us ipv wildcard max-octets wildcard + number 17 gate-state close interval 1us ipv wildcard max-octets wildcard + number 18 gate-state close interval 1us ipv wildcard max-octets wildcard + number 19 gate-state close interval 1us ipv wildcard max-octets wildcard + number 20 gate-state close interval 1us ipv wildcard max-octets wildcard + number 21 gate-state close interval 1us ipv wildcard max-octets wildcard + number 22 gate-state close interval 1us ipv wildcard max-octets wildcard + number 23 gate-state close interval 1us ipv wildcard max-octets wildcard + number 24 gate-state close interval 1us ipv wildcard max-octets wildcard + number 25 gate-state close interval 1us ipv wildcard max-octets wildcard + number 26 gate-state close interval 1us ipv wildcard max-octets wildcard + number 27 gate-state close interval 1us ipv wildcard max-octets wildcard + number 28 gate-state close interval 1us ipv wildcard max-octets wildcard + number 29 gate-state close interval 1us ipv wildcard max-octets wildcard + number 30 gate-state close interval 1us ipv wildcard max-octets wildcard + number 31 gate-state close interval 1us ipv wildcard max-octets wildcard + number 32 gate-state close interval 1us ipv wildcard max-octets wildcard + number 33 gate-state close interval 1us ipv wildcard max-octets wildcard + pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-199/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-199/ip.err new file mode 100644 index 000000000..cf363e80b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-199/ip.err @@ -0,0 +1,3 @@ +addattr_l ERROR: message exceeded bound of 1024 +addattr_l ERROR: message exceeded bound of 1024 +Warning: Attribute isn't type 'entry'. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-199/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-199/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-199/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-199/ip.pcap new file mode 100644 index 000000000..f7b731037 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-199/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-199/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-199/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-199/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-199/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-199/netlink_route_dump.pcap new file mode 100644 index 000000000..f06d4bac7 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-199/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-200/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-200/cmd.json new file mode 100644 index 000000000..2a80d6e9a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-200/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w295", + "json": "0", + "words": "actions add action gate sched-entry open 1ms 1 1.5 index 1" + }, + "cmd": "tc actions add action gate sched-entry open 1ms 1 1.5 index 1", + "desc": "corner: opt=plain cmd=w295:actions_add_action_gate_sched-entry_open_1ms_1_1.5_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-200", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-200/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-200/dump.out new file mode 100644 index 000000000..896a0e19b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-200/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: + priority wildcard clockid TAI flags 0 + base-time 0ns cycle-time 1ms cycle-time-ext 0ns + schedule: + number 0 gate-state open interval 1ms ipv 1 max-octets 1b + pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-200/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-200/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-200/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-200/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-200/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-200/ip.pcap new file mode 100644 index 000000000..7f4cb239d Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-200/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-200/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-200/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-200/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-200/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-200/netlink_route_dump.pcap new file mode 100644 index 000000000..5ac0fde9f Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-200/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-201/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-201/cmd.json new file mode 100644 index 000000000..bff734d70 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-201/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w295-0kb", + "json": "0", + "words": "actions add action gate sched-entry open 1ms 1 0kb index 1" + }, + "cmd": "tc actions add action gate sched-entry open 1ms 1 0kb index 1", + "desc": "corner: opt=plain cmd=w295-0kb:actions_add_action_gate_sched-entry_open_1ms_1_0kb_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-201", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-201/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-201/dump.out new file mode 100644 index 000000000..0b70e58cb --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-201/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: + priority wildcard clockid TAI flags 0 + base-time 0ns cycle-time 1ms cycle-time-ext 0ns + schedule: + number 0 gate-state open interval 1ms ipv 1 max-octets wildcard + pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-201/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-201/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-201/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-201/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-201/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-201/ip.pcap new file mode 100644 index 000000000..deb7b33e7 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-201/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-201/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-201/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-201/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-201/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-201/netlink_route_dump.pcap new file mode 100644 index 000000000..0e049abb1 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-201/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-202/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-202/cmd.json new file mode 100644 index 000000000..5a5f479b7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-202/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w296", + "json": "0", + "words": "actions add action gate priority 0x2 sched-entry open 0x10 0x3 0x10 index 1" + }, + "cmd": "tc actions add action gate priority 0x2 sched-entry open 0x10 0x3 0x10 index 1", + "desc": "corner: opt=plain cmd=w296:actions_add_action_gate_priority_0x2_sched-entry_open_0x10_0x3_0x10_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-202", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-202/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-202/dump.out new file mode 100644 index 000000000..f5f2d03cf --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-202/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: + priority 2 clockid TAI flags 0 + base-time 0ns cycle-time 16ns cycle-time-ext 0ns + schedule: + number 0 gate-state open interval 16ns ipv 3 max-octets 16b + pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-202/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-202/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-202/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-202/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-202/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-202/ip.pcap new file mode 100644 index 000000000..632be8065 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-202/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-202/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-202/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-202/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-202/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-202/netlink_route_dump.pcap new file mode 100644 index 000000000..3b8539ad8 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-202/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-203/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-203/cmd.json new file mode 100644 index 000000000..8969accd8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-203/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w296-time", + "json": "0", + "words": "actions add action gate base-time 0x10 cycle-time 1.5 sched-entry open 1000000 -1 -1 index 1" + }, + "cmd": "tc actions add action gate base-time 0x10 cycle-time 1.5 sched-entry open 1000000 -1 -1 index 1", + "desc": "corner: opt=plain cmd=w296-time:actions_add_action_gate_base-time_0x10_cycle-time_1.5_sched-entry_open_1000000_-1_-1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-203", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-203/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-203/dump.out new file mode 100644 index 000000000..ae89daabd --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-203/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: + priority wildcard clockid TAI flags 0 + base-time 16ns cycle-time 1ns cycle-time-ext 0ns + schedule: + number 0 gate-state open interval 1ms ipv wildcard max-octets wildcard + pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-203/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-203/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-203/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-203/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-203/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-203/ip.pcap new file mode 100644 index 000000000..cc7437e05 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-203/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-203/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-203/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-203/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-203/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-203/netlink_route_dump.pcap new file mode 100644 index 000000000..0e2caac6e Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-203/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-204/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-204/cmd.json new file mode 100644 index 000000000..b43558027 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-204/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w297-inf", + "json": "0", + "words": "actions add action gate base-time inf sched-entry open 1000000 -1 -1 index 1" + }, + "cmd": "tc actions add action gate base-time inf sched-entry open 1000000 -1 -1 index 1", + "desc": "corner: opt=plain cmd=w297-inf:actions_add_action_gate_base-time_inf_sched-entry_open_1000000_-1_-1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-204", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-204/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-204/dump.out new file mode 100644 index 000000000..d2cefa304 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-204/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: + priority wildcard clockid TAI flags 0 + base-time -9223372036854775808ns cycle-time 1ms cycle-time-ext 0ns + schedule: + number 0 gate-state open interval 1ms ipv wildcard max-octets wildcard + pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-204/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-204/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-204/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-204/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-204/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-204/ip.pcap new file mode 100644 index 000000000..79e8ac551 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-204/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-204/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-204/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-204/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-204/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-204/netlink_route_dump.pcap new file mode 100644 index 000000000..2476e0056 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-204/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-205/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-205/cmd.json new file mode 100644 index 000000000..14b11afa7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-205/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w297-nan", + "json": "0", + "words": "actions add action gate base-time nan sched-entry open 1000000 -1 -1 index 1" + }, + "cmd": "tc actions add action gate base-time nan sched-entry open 1000000 -1 -1 index 1", + "desc": "corner: opt=plain cmd=w297-nan:actions_add_action_gate_base-time_nan_sched-entry_open_1000000_-1_-1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-205", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-205/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-205/dump.out new file mode 100644 index 000000000..d2cefa304 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-205/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: + priority wildcard clockid TAI flags 0 + base-time -9223372036854775808ns cycle-time 1ms cycle-time-ext 0ns + schedule: + number 0 gate-state open interval 1ms ipv wildcard max-octets wildcard + pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-205/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-205/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-205/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-205/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-205/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-205/ip.pcap new file mode 100644 index 000000000..c7902b5ee Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-205/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-205/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-205/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-205/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-205/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-205/netlink_route_dump.pcap new file mode 100644 index 000000000..5d1deb978 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-205/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-206/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-206/cmd.json new file mode 100644 index 000000000..696733dd6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-206/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w297-big", + "json": "0", + "words": "actions add action gate cycle-time 1e30 sched-entry open 1000000 -1 -1 index 1" + }, + "cmd": "tc actions add action gate cycle-time 1e30 sched-entry open 1000000 -1 -1 index 1", + "desc": "corner: opt=plain cmd=w297-big:actions_add_action_gate_cycle-time_1e30_sched-entry_open_1000000_-1_-1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-206", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-206/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-206/dump.out new file mode 100644 index 000000000..de1e3a74e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-206/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: + priority wildcard clockid TAI flags 0 + base-time 0ns cycle-time -9223372036854775808ns cycle-time-ext 0ns + schedule: + number 0 gate-state open interval 1ms ipv wildcard max-octets wildcard + pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-206/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-206/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-206/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-206/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-206/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-206/ip.pcap new file mode 100644 index 000000000..c16463078 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-206/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-206/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-206/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-206/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-206/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-206/netlink_route_dump.pcap new file mode 100644 index 000000000..c3ffb5ff8 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-206/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-207/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-207/cmd.json new file mode 100644 index 000000000..04df66e6c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-207/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w297-frac", + "json": "0", + "words": "actions add action gate base-time 1.9ns sched-entry open 1000000 -1 -1 index 1" + }, + "cmd": "tc actions add action gate base-time 1.9ns sched-entry open 1000000 -1 -1 index 1", + "desc": "corner: opt=plain cmd=w297-frac:actions_add_action_gate_base-time_1.9ns_sched-entry_open_1000000_-1_-1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-207", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-207/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-207/dump.out new file mode 100644 index 000000000..a521adcf2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-207/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: + priority wildcard clockid TAI flags 0 + base-time 1ns cycle-time 1ms cycle-time-ext 0ns + schedule: + number 0 gate-state open interval 1ms ipv wildcard max-octets wildcard + pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-207/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-207/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-207/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-207/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-207/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-207/ip.pcap new file mode 100644 index 000000000..e3c0f6a0a Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-207/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-207/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-207/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-207/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-207/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-207/netlink_route_dump.pcap new file mode 100644 index 000000000..42fe4f544 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-207/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-208/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-208/cmd.json new file mode 100644 index 000000000..17a0e33b1 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-208/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w298", + "json": "0", + "words": "actions add action gate base-time -1 sched-entry open 1000000 -1 -1 index 1" + }, + "cmd": "tc actions add action gate base-time -1 sched-entry open 1000000 -1 -1 index 1", + "desc": "corner: opt=plain cmd=w298:actions_add_action_gate_base-time_-1_sched-entry_open_1000000_-1_-1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-208", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-208/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-208/dump.out new file mode 100644 index 000000000..eb3a71c88 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-208/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: + priority wildcard clockid TAI flags 0 + base-time -1ns cycle-time 1ms cycle-time-ext 0ns + schedule: + number 0 gate-state open interval 1ms ipv wildcard max-octets wildcard + pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-208/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-208/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-208/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-208/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-208/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-208/ip.pcap new file mode 100644 index 000000000..0bbce77c7 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-208/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-208/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-208/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-208/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-208/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-208/netlink_route_dump.pcap new file mode 100644 index 000000000..05dc27c54 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-208/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-209/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-209/cmd.json new file mode 100644 index 000000000..ef3ce2be3 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-209/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w299", + "json": "0", + "words": "actions add action gate priority -1 flags 0 base-time 0 cycle-time 0 sched-entry open 1000000 -1 -1 index 1" + }, + "cmd": "tc actions add action gate priority -1 flags 0 base-time 0 cycle-time 0 sched-entry open 1000000 -1 -1 index 1", + "desc": "corner: opt=plain cmd=w299:actions_add_action_gate_priority_-1_flags_0_base-time_0_cycle-time_0_sched-entry_open_1000000_-1_-1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-209", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-209/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-209/dump.out new file mode 100644 index 000000000..d1ef0a62e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-209/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: + priority wildcard clockid TAI flags 0 + base-time 0ns cycle-time 1ms cycle-time-ext 0ns + schedule: + number 0 gate-state open interval 1ms ipv wildcard max-octets wildcard + pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-209/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-209/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-209/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-209/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-209/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-209/ip.pcap new file mode 100644 index 000000000..9512b4d9f Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-209/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-209/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-209/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-209/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-209/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-209/netlink_route_dump.pcap new file mode 100644 index 000000000..816fe4b72 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-209/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-210/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-210/cmd.json new file mode 100644 index 000000000..c929a7ca6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-210/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w302", + "json": "0", + "words": "actions add action gate p 2 c 2000000 sched-entry open 1000000 -1 -1 index 1" + }, + "cmd": "tc actions add action gate p 2 c 2000000 sched-entry open 1000000 -1 -1 index 1", + "desc": "corner: opt=plain cmd=w302:actions_add_action_gate_p_2_c_2000000_sched-entry_open_1000000_-1_-1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-210", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-210/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-210/dump.out new file mode 100644 index 000000000..839533317 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-210/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: + priority 2 clockid TAI flags 0 + base-time 0ns cycle-time 2ms cycle-time-ext 0ns + schedule: + number 0 gate-state open interval 1ms ipv wildcard max-octets wildcard + pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-210/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-210/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-210/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-210/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-210/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-210/ip.pcap new file mode 100644 index 000000000..5f9b22f04 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-210/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-210/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-210/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-210/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-210/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-210/netlink_route_dump.pcap new file mode 100644 index 000000000..3dbfb5f82 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-210/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-211/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-211/cmd.json new file mode 100644 index 000000000..a0ce8b52d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-211/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w304", + "json": "0", + "words": "actions add action gate sched-entry close 1000000 3 8000 index 1" + }, + "cmd": "tc actions add action gate sched-entry close 1000000 3 8000 index 1", + "desc": "corner: opt=plain cmd=w304:actions_add_action_gate_sched-entry_close_1000000_3_8000_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-211", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-211/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-211/dump.out new file mode 100644 index 000000000..38bf39e1f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-211/dump.out @@ -0,0 +1,11 @@ +total acts 1 + + action order 0: + priority wildcard clockid TAI flags 0 + base-time 0ns cycle-time 1ms cycle-time-ext 0ns + schedule: + number 0 gate-state close interval 1ms ipv wildcard max-octets wildcard + pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-211/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-211/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-211/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-211/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-211/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-211/ip.pcap new file mode 100644 index 000000000..86bce8f95 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-211/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-211/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-211/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-211/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-211/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-211/netlink_route_dump.pcap new file mode 100644 index 000000000..d123a15d6 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-211/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-212/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-212/cmd.json new file mode 100644 index 000000000..2b457789f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-212/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w306", + "json": "0", + "words": "actions add action gate cycle-time 1000 sched-entry open 1000000 -1 -1 sched-entry open 1000000 -1 -1 index 1" + }, + "cmd": "tc actions add action gate cycle-time 1000 sched-entry open 1000000 -1 -1 sched-entry open 1000000 -1 -1 index 1", + "desc": "corner: opt=plain cmd=w306:actions_add_action_gate_cycle-time_1000_sched-entry_open_1000000_-1_-1_sched-entry_open_1000000_-1_-1_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-212", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action gate", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-212/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-212/dump.out new file mode 100644 index 000000000..cbdcd6d3e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-212/dump.out @@ -0,0 +1,12 @@ +total acts 1 + + action order 0: + priority wildcard clockid TAI flags 0 + base-time 0ns cycle-time 1us cycle-time-ext 0ns + schedule: + number 0 gate-state open interval 1ms ipv wildcard max-octets wildcard + number 1 gate-state open interval 1ms ipv wildcard max-octets wildcard + pipe + index 1 ref 1 bind 0 + not_in_hw + used_hw_stats disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-212/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-212/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-212/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-212/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-212/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-212/ip.pcap new file mode 100644 index 000000000..adb4f7b0f Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-212/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-212/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-212/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-212/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-212/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-212/netlink_route_dump.pcap new file mode 100644 index 000000000..51bd610da Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-212/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-213/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-213/cmd.json new file mode 100644 index 000000000..b99cfb022 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-213/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "bpf", + "json": "0", + "words": "actions add action bpf bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' index 1" + }, + "cmd": "tc actions add action bpf bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' index 1", + "desc": "positive: opt=plain cmd=bpf:actions_add_action_bpf_bytecode_'4,40_0_0_12,21_0_1_2048,6_0_0_262144,6_0_0_0'_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-213", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action bpf", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-213/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-213/dump.out new file mode 100644 index 000000000..cb00c27a1 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-213/dump.out @@ -0,0 +1,5 @@ +total acts 1 + + action order 0: bpf bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' default-action pipe + index 1 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-213/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-213/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-213/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-213/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-213/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-213/ip.pcap new file mode 100644 index 000000000..241199ec8 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-213/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-213/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-213/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-213/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-213/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-213/netlink_route_dump.pcap new file mode 100644 index 000000000..1ddf13e26 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-213/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-214/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-214/cmd.json new file mode 100644 index 000000000..7095587bf --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-214/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "bpf", + "json": "0", + "words": "actions add action bpf bc '1,6 0 0 0' index 1" + }, + "cmd": "tc actions add action bpf bc '1,6 0 0 0' index 1", + "desc": "positive: opt=plain cmd=bpf:actions_add_action_bpf_bc_'1,6_0_0_0'_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-214", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action bpf", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-214/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-214/dump.out new file mode 100644 index 000000000..b31ef392d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-214/dump.out @@ -0,0 +1,5 @@ +total acts 1 + + action order 0: bpf bytecode '1,6 0 0 0' default-action pipe + index 1 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-214/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-214/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-214/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-214/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-214/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-214/ip.pcap new file mode 100644 index 000000000..474d6b1e2 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-214/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-214/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-214/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-214/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-214/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-214/netlink_route_dump.pcap new file mode 100644 index 000000000..3cae1f407 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-214/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-215/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-215/cmd.json new file mode 100644 index 000000000..4ef8133ad --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-215/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "bpf", + "json": "0", + "words": "actions add action bpf run bytecode '1,6 0 0 0' index 1" + }, + "cmd": "tc actions add action bpf run bytecode '1,6 0 0 0' index 1", + "desc": "positive: opt=plain cmd=bpf:actions_add_action_bpf_run_bytecode_'1,6_0_0_0'_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-215", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action bpf", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-215/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-215/dump.out new file mode 100644 index 000000000..b31ef392d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-215/dump.out @@ -0,0 +1,5 @@ +total acts 1 + + action order 0: bpf bytecode '1,6 0 0 0' default-action pipe + index 1 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-215/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-215/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-215/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-215/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-215/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-215/ip.pcap new file mode 100644 index 000000000..e750c39d0 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-215/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-215/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-215/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-215/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-215/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-215/netlink_route_dump.pcap new file mode 100644 index 000000000..31308d2d1 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-215/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-216/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-216/cmd.json new file mode 100644 index 000000000..c454da788 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-216/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "bpf", + "json": "0", + "words": "actions add action bpf bytecode '1,6 0 0 0' drop index 1" + }, + "cmd": "tc actions add action bpf bytecode '1,6 0 0 0' drop index 1", + "desc": "positive: opt=plain cmd=bpf:actions_add_action_bpf_bytecode_'1,6_0_0_0'_drop_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-216", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action bpf", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-216/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-216/dump.out new file mode 100644 index 000000000..4454333b1 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-216/dump.out @@ -0,0 +1,5 @@ +total acts 1 + + action order 0: bpf bytecode '1,6 0 0 0' default-action drop + index 1 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-216/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-216/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-216/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-216/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-216/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-216/ip.pcap new file mode 100644 index 000000000..121cacac6 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-216/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-216/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-216/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-216/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-216/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-216/netlink_route_dump.pcap new file mode 100644 index 000000000..9bd08a783 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-216/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-217/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-217/cmd.json new file mode 100644 index 000000000..9e04912a6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-217/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "bpf", + "json": "0", + "words": "actions add action bpf bytecode '1,6 0 0 0,' index 1" + }, + "cmd": "tc actions add action bpf bytecode '1,6 0 0 0,' index 1", + "desc": "positive: opt=plain cmd=bpf:actions_add_action_bpf_bytecode_'1,6_0_0_0,'_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-217", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action bpf", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-217/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-217/dump.out new file mode 100644 index 000000000..b31ef392d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-217/dump.out @@ -0,0 +1,5 @@ +total acts 1 + + action order 0: bpf bytecode '1,6 0 0 0' default-action pipe + index 1 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-217/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-217/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-217/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-217/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-217/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-217/ip.pcap new file mode 100644 index 000000000..bc8e2b1db Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-217/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-217/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-217/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-217/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-217/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-217/netlink_route_dump.pcap new file mode 100644 index 000000000..324db6275 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-217/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-218/bpf.txt b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-218/bpf.txt new file mode 100644 index 000000000..0b0c18816 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-218/bpf.txt @@ -0,0 +1,5 @@ +4 +40 0 0 12 +21 0 1 2048 +6 0 0 262144 +6 0 0 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-218/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-218/cmd.json new file mode 100644 index 000000000..d1801b6d5 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-218/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "bpf-file", + "json": "0", + "words": "actions add action bpf bytecode-file bpf.txt index 1" + }, + "cmd": "tc actions add action bpf bytecode-file bpf.txt index 1", + "desc": "positive: opt=plain cmd=bpf-file:actions_add_action_bpf_bytecode-file_bpf.txt_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-218", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "printf '%s' '4\n40 0 0 12\n21 0 1 2048\n6 0 0 262144\n6 0 0 0\n' > bpf.txt" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action bpf", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "printf '%s' '4\n40 0 0 12\n21 0 1 2048\n6 0 0 262144\n6 0 0 0\n' > bpf.txt", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-218/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-218/dump.out new file mode 100644 index 000000000..cb00c27a1 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-218/dump.out @@ -0,0 +1,5 @@ +total acts 1 + + action order 0: bpf bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' default-action pipe + index 1 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-218/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-218/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-218/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-218/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-218/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-218/ip.pcap new file mode 100644 index 000000000..3d6c999e6 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-218/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-218/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-218/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-218/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-218/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-218/netlink_route_dump.pcap new file mode 100644 index 000000000..9895959e1 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-218/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-219/bpf.txt b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-219/bpf.txt new file mode 100644 index 000000000..1d686fb80 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-219/bpf.txt @@ -0,0 +1 @@ +1,6 0 0 0 \ No newline at end of file diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-219/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-219/cmd.json new file mode 100644 index 000000000..7e932b2f4 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-219/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "bpf-file", + "json": "0", + "words": "actions add action bpf bcf bpf.txt index 1" + }, + "cmd": "tc actions add action bpf bcf bpf.txt index 1", + "desc": "positive: opt=plain cmd=bpf-file:actions_add_action_bpf_bcf_bpf.txt_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-219", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "printf '%s' '1,6 0 0 0' > bpf.txt" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action bpf", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "printf '%s' '1,6 0 0 0' > bpf.txt", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-219/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-219/dump.out new file mode 100644 index 000000000..b31ef392d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-219/dump.out @@ -0,0 +1,5 @@ +total acts 1 + + action order 0: bpf bytecode '1,6 0 0 0' default-action pipe + index 1 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-219/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-219/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-219/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-219/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-219/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-219/ip.pcap new file mode 100644 index 000000000..f017bf929 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-219/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-219/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-219/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-219/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-219/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-219/netlink_route_dump.pcap new file mode 100644 index 000000000..f7efbf8f0 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-219/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-220/bpf.txt b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-220/bpf.txt new file mode 100644 index 000000000..f0bf92890 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-220/bpf.txt @@ -0,0 +1,3 @@ +2, 6 0 0 0 + +6 0 0 1 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-220/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-220/cmd.json new file mode 100644 index 000000000..669531125 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-220/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "bpf-file", + "json": "0", + "words": "actions add action bpf bytecode-file bpf.txt index 1" + }, + "cmd": "tc actions add action bpf bytecode-file bpf.txt index 1", + "desc": "positive: opt=plain cmd=bpf-file:actions_add_action_bpf_bytecode-file_bpf.txt_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-220", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "printf '%s' '2,\t6 0 0 0\n\n6 0 0 1\n' > bpf.txt" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action bpf", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "printf '%s' '2,\t6 0 0 0\n\n6 0 0 1\n' > bpf.txt", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-220/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-220/dump.out new file mode 100644 index 000000000..02512a1dd --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-220/dump.out @@ -0,0 +1,5 @@ +total acts 1 + + action order 0: bpf bytecode '2,6 0 0 0,6 0 0 1' default-action pipe + index 1 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-220/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-220/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-220/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-220/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-220/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-220/ip.pcap new file mode 100644 index 000000000..da7c75c9d Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-220/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-220/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-220/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-220/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-220/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-220/netlink_route_dump.pcap new file mode 100644 index 000000000..4c827f759 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-220/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-221/- b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-221/- new file mode 100644 index 000000000..1d686fb80 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-221/- @@ -0,0 +1 @@ +1,6 0 0 0 \ No newline at end of file diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-221/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-221/cmd.json new file mode 100644 index 000000000..f4f45a844 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-221/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "w311-dash", + "json": "0", + "words": "actions add action bpf bytecode-file - index 1" + }, + "cmd": "tc actions add action bpf bytecode-file - index 1", + "desc": "corner: opt=plain cmd=w311-dash:actions_add_action_bpf_bytecode-file_-_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-221", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "printf '1,6 0 0 0' > ./-" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action bpf", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "printf '1,6 0 0 0' > ./-", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-221/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-221/dump.out new file mode 100644 index 000000000..b31ef392d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-221/dump.out @@ -0,0 +1,5 @@ +total acts 1 + + action order 0: bpf bytecode '1,6 0 0 0' default-action pipe + index 1 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-221/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-221/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-221/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-221/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-221/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-221/ip.pcap new file mode 100644 index 000000000..44641270a Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-221/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-221/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-221/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-221/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-221/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-221/netlink_route_dump.pcap new file mode 100644 index 000000000..0d6a839d2 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-221/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-222/bpf.txt b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-222/bpf.txt new file mode 100644 index 000000000..4064a3565 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-222/bpf.txt @@ -0,0 +1,2039 @@ +2038 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-222/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-222/cmd.json new file mode 100644 index 000000000..db89724c1 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-222/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "w307-2038", + "json": "0", + "words": "actions add action bpf bytecode-file bpf.txt index 1" + }, + "cmd": "tc actions add action bpf bytecode-file bpf.txt index 1", + "desc": "boundary: opt=plain cmd=w307-2038:actions_add_action_bpf_bytecode-file_bpf.txt_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-222", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "{ printf '%s\\n' 2038; i=0; while [ $i -lt 2038 ]; do printf '6 0 0 0\\n'; i=$((i+1)); done; } > bpf.txt" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action bpf", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "{ printf '%s\\n' 2038; i=0; while [ $i -lt 2038 ]; do printf '6 0 0 0\\n'; i=$((i+1)); done; } > bpf.txt", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-222/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-222/dump.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-222/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-222/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-222/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-222/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-222/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-222/ip.pcap new file mode 100644 index 000000000..b8fbcae9c Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-222/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-222/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-222/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-222/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-222/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-222/netlink_route_dump.pcap new file mode 100644 index 000000000..72d517572 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-222/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-223/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-223/cmd.json new file mode 100644 index 000000000..35764b7cf --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-223/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w308", + "json": "0", + "words": "actions add action bpf bytecode '65537,6 0 0 0' index 1" + }, + "cmd": "tc actions add action bpf bytecode '65537,6 0 0 0' index 1", + "desc": "corner: opt=plain cmd=w308:actions_add_action_bpf_bytecode_'65537,6_0_0_0'_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-223", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action bpf", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-223/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-223/dump.out new file mode 100644 index 000000000..b31ef392d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-223/dump.out @@ -0,0 +1,5 @@ +total acts 1 + + action order 0: bpf bytecode '1,6 0 0 0' default-action pipe + index 1 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-223/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-223/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-223/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-223/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-223/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-223/ip.pcap new file mode 100644 index 000000000..248960c0b Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-223/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-223/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-223/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-223/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-223/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-223/netlink_route_dump.pcap new file mode 100644 index 000000000..5173139d9 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-223/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-224/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-224/cmd.json new file mode 100644 index 000000000..b93db7b0f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-224/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w309", + "json": "0", + "words": "actions add action bpf bytecode '1,6 0 0 0xffff' index 1" + }, + "cmd": "tc actions add action bpf bytecode '1,6 0 0 0xffff' index 1", + "desc": "corner: opt=plain cmd=w309:actions_add_action_bpf_bytecode_'1,6_0_0_0xffff'_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-224", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action bpf", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-224/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-224/dump.out new file mode 100644 index 000000000..b31ef392d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-224/dump.out @@ -0,0 +1,5 @@ +total acts 1 + + action order 0: bpf bytecode '1,6 0 0 0' default-action pipe + index 1 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-224/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-224/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-224/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-224/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-224/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-224/ip.pcap new file mode 100644 index 000000000..85c597408 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-224/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-224/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-224/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-224/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-224/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-224/netlink_route_dump.pcap new file mode 100644 index 000000000..7a2329871 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-224/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-225/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-225/cmd.json new file mode 100644 index 000000000..05f8ad192 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-225/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w309-wrap", + "json": "0", + "words": "actions add action bpf bytecode '1,65542 256 0 4294967296' index 1" + }, + "cmd": "tc actions add action bpf bytecode '1,65542 256 0 4294967296' index 1", + "desc": "corner: opt=plain cmd=w309-wrap:actions_add_action_bpf_bytecode_'1,65542_256_0_4294967296'_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-225", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action bpf", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-225/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-225/dump.out new file mode 100644 index 000000000..b31ef392d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-225/dump.out @@ -0,0 +1,5 @@ +total acts 1 + + action order 0: bpf bytecode '1,6 0 0 0' default-action pipe + index 1 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-225/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-225/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-225/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-225/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-225/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-225/ip.pcap new file mode 100644 index 000000000..cd948de72 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-225/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-225/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-225/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-225/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-225/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-225/netlink_route_dump.pcap new file mode 100644 index 000000000..f0c399b2c Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-225/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-226/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-226/cmd.json new file mode 100644 index 000000000..0a4137792 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-226/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w314", + "json": "0", + "words": "actions add action bpf b '1,6 0 0 0' index 1" + }, + "cmd": "tc actions add action bpf b '1,6 0 0 0' index 1", + "desc": "corner: opt=plain cmd=w314:actions_add_action_bpf_b_'1,6_0_0_0'_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-226", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action bpf", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-226/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-226/dump.out new file mode 100644 index 000000000..b31ef392d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-226/dump.out @@ -0,0 +1,5 @@ +total acts 1 + + action order 0: bpf bytecode '1,6 0 0 0' default-action pipe + index 1 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-226/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-226/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-226/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-226/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-226/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-226/ip.pcap new file mode 100644 index 000000000..4a84733f8 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-226/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-226/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-226/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-226/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-226/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-226/netlink_route_dump.pcap new file mode 100644 index 000000000..ad13b48d3 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-226/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-227/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-227/cmd.json new file mode 100644 index 000000000..232ca3a2d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-227/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "f-pedit", + "json": "0", + "words": "filter add dev d0 egress pref 1 protocol all handle 1 matchall action pedit munge offset 12 u32 set 0x1" + }, + "cmd": "tc filter add dev d0 egress pref 1 protocol all handle 1 matchall action pedit munge offset 12 u32 set 0x1", + "desc": "positive: opt=plain cmd=f-pedit:filter_add_dev_d0_egress_pref_1_protocol_all_handle_1_matchall_action_pedit_munge_offset_12_u32_set_0x1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-227", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d filter show dev d0 egress", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-227/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-227/dump.out new file mode 100644 index 000000000..07066e8a1 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-227/dump.out @@ -0,0 +1,7 @@ +filter protocol all pref 1 matchall chain 0 +filter protocol all pref 1 matchall chain 0 handle 0x1 + not_in_hw + action order 1: pedit action pass keys 1 + index 1 ref 1 bind 1 + key #0 at 12: val 00000001 mask 00000000 + diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-227/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-227/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-227/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-227/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-227/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-227/ip.pcap new file mode 100644 index 000000000..ec85bb761 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-227/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-227/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-227/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-227/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-227/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-227/netlink_route_dump.pcap new file mode 100644 index 000000000..07e5a2091 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-227/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-228/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-228/cmd.json new file mode 100644 index 000000000..cdace858f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-228/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "f-tunnel_key", + "json": "0", + "words": "filter add dev d0 egress pref 1 protocol all handle 1 matchall action tunnel_key unset" + }, + "cmd": "tc filter add dev d0 egress pref 1 protocol all handle 1 matchall action tunnel_key unset", + "desc": "positive: opt=plain cmd=f-tunnel_key:filter_add_dev_d0_egress_pref_1_protocol_all_handle_1_matchall_action_tunnel_key_unset", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-228", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d filter show dev d0 egress", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-228/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-228/dump.out new file mode 100644 index 000000000..3dc4f9986 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-228/dump.out @@ -0,0 +1,6 @@ +filter protocol all pref 1 matchall chain 0 +filter protocol all pref 1 matchall chain 0 handle 0x1 + not_in_hw + action order 1: tunnel_key unset pipe + index 1 ref 1 bind 1 + diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-228/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-228/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-228/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-228/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-228/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-228/ip.pcap new file mode 100644 index 000000000..4d0957965 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-228/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-228/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-228/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-228/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-228/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-228/netlink_route_dump.pcap new file mode 100644 index 000000000..4e441254b Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-228/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-229/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-229/cmd.json new file mode 100644 index 000000000..a4e7df673 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-229/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "f-ife", + "json": "0", + "words": "filter add dev d0 egress pref 1 protocol all handle 1 matchall action ife decode" + }, + "cmd": "tc filter add dev d0 egress pref 1 protocol all handle 1 matchall action ife decode", + "desc": "positive: opt=plain cmd=f-ife:filter_add_dev_d0_egress_pref_1_protocol_all_handle_1_matchall_action_ife_decode", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-229", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d filter show dev d0 egress", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-229/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-229/dump.out new file mode 100644 index 000000000..d0c3711cf --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-229/dump.out @@ -0,0 +1,7 @@ +filter protocol all pref 1 matchall chain 0 +filter protocol all pref 1 matchall chain 0 handle 0x1 + not_in_hw + action order 1: ife decode action pipe type 0 + allow mark allow tcindex allow prio + index 1 ref 1 bind 1 + diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-229/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-229/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-229/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-229/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-229/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-229/ip.pcap new file mode 100644 index 000000000..38c378155 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-229/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-229/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-229/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-229/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-229/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-229/netlink_route_dump.pcap new file mode 100644 index 000000000..5c551e809 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-229/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-230/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-230/cmd.json new file mode 100644 index 000000000..967b0b39d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-230/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "f-ct", + "json": "0", + "words": "filter add dev d0 egress pref 1 protocol all handle 1 matchall action ct commit" + }, + "cmd": "tc filter add dev d0 egress pref 1 protocol all handle 1 matchall action ct commit", + "desc": "positive: opt=plain cmd=f-ct:filter_add_dev_d0_egress_pref_1_protocol_all_handle_1_matchall_action_ct_commit", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-230", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d filter show dev d0 egress", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-230/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-230/dump.out new file mode 100644 index 000000000..dfb06dda6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-230/dump.out @@ -0,0 +1,6 @@ +filter protocol all pref 1 matchall chain 0 +filter protocol all pref 1 matchall chain 0 handle 0x1 + not_in_hw + action order 1: ct commit zone 0 pipe + index 1 ref 1 bind 1 + diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-230/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-230/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-230/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-230/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-230/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-230/ip.pcap new file mode 100644 index 000000000..1c9786404 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-230/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-230/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-230/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-230/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-230/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-230/netlink_route_dump.pcap new file mode 100644 index 000000000..1356937b8 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-230/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-231/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-231/cmd.json new file mode 100644 index 000000000..d8ffdd6d8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-231/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "f-gate", + "json": "0", + "words": "filter add dev d0 egress pref 1 protocol all handle 1 matchall action gate sched-entry open 1000000 -1 -1" + }, + "cmd": "tc filter add dev d0 egress pref 1 protocol all handle 1 matchall action gate sched-entry open 1000000 -1 -1", + "desc": "positive: opt=plain cmd=f-gate:filter_add_dev_d0_egress_pref_1_protocol_all_handle_1_matchall_action_gate_sched-entry_open_1000000_-1_-1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-231", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d filter show dev d0 egress", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-231/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-231/dump.out new file mode 100644 index 000000000..954c0011c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-231/dump.out @@ -0,0 +1,11 @@ +filter protocol all pref 1 matchall chain 0 +filter protocol all pref 1 matchall chain 0 handle 0x1 + not_in_hw + action order 1: + priority wildcard clockid TAI flags 0 + base-time 0ns cycle-time 1ms cycle-time-ext 0ns + schedule: + number 0 gate-state open interval 1ms ipv wildcard max-octets wildcard + pipe + index 1 ref 1 bind 1 + diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-231/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-231/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-231/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-231/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-231/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-231/ip.pcap new file mode 100644 index 000000000..392440f4d Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-231/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-231/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-231/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-231/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-231/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-231/netlink_route_dump.pcap new file mode 100644 index 000000000..2dbc92444 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-231/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-232/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-232/cmd.json new file mode 100644 index 000000000..0a4b41c15 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-232/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "f-bpf", + "json": "0", + "words": "filter add dev d0 egress pref 1 protocol all handle 1 matchall action bpf bytecode '1,6 0 0 0'" + }, + "cmd": "tc filter add dev d0 egress pref 1 protocol all handle 1 matchall action bpf bytecode '1,6 0 0 0'", + "desc": "positive: opt=plain cmd=f-bpf:filter_add_dev_d0_egress_pref_1_protocol_all_handle_1_matchall_action_bpf_bytecode_'1,6_0_0_0'", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-232", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d filter show dev d0 egress", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-232/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-232/dump.out new file mode 100644 index 000000000..3d001d34f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-232/dump.out @@ -0,0 +1,6 @@ +filter protocol all pref 1 matchall chain 0 +filter protocol all pref 1 matchall chain 0 handle 0x1 + not_in_hw + action order 1: bpf bytecode '1,6 0 0 0' default-action pipe + index 1 ref 1 bind 1 + diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-232/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-232/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-232/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-232/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-232/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-232/ip.pcap new file mode 100644 index 000000000..192acc9e6 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-232/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-232/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-232/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-232/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-232/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-232/netlink_route_dump.pcap new file mode 100644 index 000000000..f44d9ef29 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-232/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-233/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-233/cmd.json new file mode 100644 index 000000000..eb7b7c1fd --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-233/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "f-list", + "json": "0", + "words": "filter add dev d0 egress pref 1 protocol all handle 1 matchall action pedit ex munge ip ttl add 1 action ct commit zone 3 action gate sched-entry open 1ms action tunnel_key unset action ife decode action bpf bytecode '1,6 0 0 0'" + }, + "cmd": "tc filter add dev d0 egress pref 1 protocol all handle 1 matchall action pedit ex munge ip ttl add 1 action ct commit zone 3 action gate sched-entry open 1ms action tunnel_key unset action ife decode action bpf bytecode '1,6 0 0 0'", + "desc": "positive: opt=plain cmd=f-list:filter_add_dev_d0_egress_pref_1_protocol_all_handle_1_matchall_action_pedit_ex_munge_ip_ttl_add_1_action_ct_commit_zone_3_action_gate_sched-entry_open_1ms_action_tunnel_key_unset_action_ife_decode_action_bpf_bytecode_'1,6_0_0_0'", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-233", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d filter show dev d0 egress", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-233/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-233/dump.out new file mode 100644 index 000000000..914627d55 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-233/dump.out @@ -0,0 +1,28 @@ +filter protocol all pref 1 matchall chain 0 +filter protocol all pref 1 matchall chain 0 handle 0x1 + not_in_hw + action order 1: pedit action pass keys 1 + index 1 ref 1 bind 1 + key #0 at ipv4+8: add 01000000 mask 00ffffff + + action order 2: ct commit zone 3 pipe + index 1 ref 1 bind 1 + + action order 3: + priority wildcard clockid TAI flags 0 + base-time 0ns cycle-time 1ms cycle-time-ext 0ns + schedule: + number 0 gate-state open interval 1ms ipv wildcard max-octets wildcard + pipe + index 1 ref 1 bind 1 + + action order 4: tunnel_key unset pipe + index 1 ref 1 bind 1 + + action order 5: ife decode action pipe type 0 + allow mark allow tcindex allow prio + index 1 ref 1 bind 1 + + action order 6: bpf bytecode '1,6 0 0 0' default-action pipe + index 1 ref 1 bind 1 + diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-233/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-233/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-233/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-233/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-233/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-233/ip.pcap new file mode 100644 index 000000000..330277d29 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-233/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-233/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-233/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-233/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-233/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-233/netlink_route_dump.pcap new file mode 100644 index 000000000..9ddd46f37 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-233/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-234/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-234/cmd.json new file mode 100644 index 000000000..f0e9ed06d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-234/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "f-bind", + "json": "0", + "words": "filter add dev d0 egress pref 1 protocol all handle 1 matchall action ct index 1" + }, + "cmd": "tc filter add dev d0 egress pref 1 protocol all handle 1 matchall action ct index 1", + "desc": "positive: opt=plain cmd=f-bind:filter_add_dev_d0_egress_pref_1_protocol_all_handle_1_matchall_action_ct_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-234", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "tc actions add action ct commit index 1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d filter show dev d0 egress", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "tc actions add action ct commit index 1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-234/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-234/dump.out new file mode 100644 index 000000000..628788ea3 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-234/dump.out @@ -0,0 +1,6 @@ +filter protocol all pref 1 matchall chain 0 +filter protocol all pref 1 matchall chain 0 handle 0x1 + not_in_hw + action order 1: ct commit zone 0 pipe + index 1 ref 2 bind 1 + diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-234/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-234/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-234/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-234/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-234/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-234/ip.pcap new file mode 100644 index 000000000..669cdaa6b Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-234/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-234/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-234/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-234/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-234/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-234/netlink_route_dump.pcap new file mode 100644 index 000000000..43232b79f Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-234/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-235/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-235/cmd.json new file mode 100644 index 000000000..6de1693f7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-235/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "w242-bind", + "json": "0", + "words": "filter add dev d0 egress pref 1 protocol all handle 1 matchall action pedit index 1" + }, + "cmd": "tc filter add dev d0 egress pref 1 protocol all handle 1 matchall action pedit index 1", + "desc": "corner: opt=plain cmd=w242-bind:filter_add_dev_d0_egress_pref_1_protocol_all_handle_1_matchall_action_pedit_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-235", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "tc actions add action pedit munge offset 12 u32 set 0x1 index 1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d filter show dev d0 egress", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "tc actions add action pedit munge offset 12 u32 set 0x1 index 1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-235/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-235/dump.out new file mode 100644 index 000000000..482299d75 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-235/dump.out @@ -0,0 +1,7 @@ +filter protocol all pref 1 matchall chain 0 +filter protocol all pref 1 matchall chain 0 handle 0x1 + not_in_hw + action order 1: pedit action pass keys 1 + index 1 ref 2 bind 1 + key #0 at 12: val 00000001 mask 00000000 + diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-235/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-235/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-235/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-235/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-235/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-235/ip.pcap new file mode 100644 index 000000000..6064ffbb2 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-235/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-235/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-235/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-235/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-235/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-235/netlink_route_dump.pcap new file mode 100644 index 000000000..2363ea446 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-235/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-236/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-236/cmd.json new file mode 100644 index 000000000..36d720267 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-236/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "w305-bind", + "json": "0", + "words": "filter add dev d0 egress pref 1 protocol all handle 1 matchall action gate index 1" + }, + "cmd": "tc filter add dev d0 egress pref 1 protocol all handle 1 matchall action gate index 1", + "desc": "corner: opt=plain cmd=w305-bind:filter_add_dev_d0_egress_pref_1_protocol_all_handle_1_matchall_action_gate_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-236", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "tc actions add action gate sched-entry open 1000000 -1 -1 index 1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d filter show dev d0 egress", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "tc actions add action gate sched-entry open 1000000 -1 -1 index 1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-236/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-236/dump.out new file mode 100644 index 000000000..4a0d1b80b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-236/dump.out @@ -0,0 +1,11 @@ +filter protocol all pref 1 matchall chain 0 +filter protocol all pref 1 matchall chain 0 handle 0x1 + not_in_hw + action order 1: + priority wildcard clockid TAI flags 0 + base-time 0ns cycle-time 1ms cycle-time-ext 0ns + schedule: + number 0 gate-state open interval 1ms ipv wildcard max-octets wildcard + pipe + index 1 ref 2 bind 1 + diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-236/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-236/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-236/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-236/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-236/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-236/ip.pcap new file mode 100644 index 000000000..705f3a468 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-236/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-236/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-236/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-236/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-236/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-236/netlink_route_dump.pcap new file mode 100644 index 000000000..d82502126 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-236/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-237/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-237/cmd.json new file mode 100644 index 000000000..44caca133 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-237/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "w312-bind", + "json": "0", + "words": "filter add dev d0 egress pref 1 protocol all handle 1 matchall action bpf index 1" + }, + "cmd": "tc filter add dev d0 egress pref 1 protocol all handle 1 matchall action bpf index 1", + "desc": "corner: opt=plain cmd=w312-bind:filter_add_dev_d0_egress_pref_1_protocol_all_handle_1_matchall_action_bpf_index_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-237", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "tc actions add action bpf bytecode '1,6 0 0 0' index 1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d filter show dev d0 egress", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "tc actions add action bpf bytecode '1,6 0 0 0' index 1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-237/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-237/dump.out new file mode 100644 index 000000000..afd97b5f9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-237/dump.out @@ -0,0 +1,6 @@ +filter protocol all pref 1 matchall chain 0 +filter protocol all pref 1 matchall chain 0 handle 0x1 + not_in_hw + action order 1: bpf bytecode '1,6 0 0 0' default-action pipe + index 1 ref 2 bind 1 + diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-237/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-237/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-237/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-237/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-237/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-237/ip.pcap new file mode 100644 index 000000000..4b9d8af10 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-237/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-237/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-237/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-237/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-237/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-237/netlink_route_dump.pcap new file mode 100644 index 000000000..04de786be Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-237/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-238/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-238/cmd.json new file mode 100644 index 000000000..fdd5a216b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-238/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w248-2", + "json": "0", + "words": "filter add dev d0 egress pref 1 protocol all handle 1 matchall action pedit ex munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 action pedit ex munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1" + }, + "cmd": "tc filter add dev d0 egress pref 1 protocol all handle 1 matchall action pedit ex munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 action pedit ex munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1", + "desc": "corner: opt=plain cmd=w248-2:filter_add_dev_d0_egress_pref_1_protocol_all_handle_1_matchall_action_pedit_ex_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_action_pedit_ex_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-238", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d filter show dev d0 egress", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-238/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-238/dump.out new file mode 100644 index 000000000..d1a44db96 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-238/dump.out @@ -0,0 +1 @@ +filter protocol all pref 1 matchall chain 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-238/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-238/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-238/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-238/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-238/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-238/ip.pcap new file mode 100644 index 000000000..26d14693b Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-238/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-238/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-238/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-238/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-238/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-238/netlink_route_dump.pcap new file mode 100644 index 000000000..5c8b01c8f Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-238/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-239/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-239/cmd.json new file mode 100644 index 000000000..61aac939b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-239/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "fb", + "json": "0", + "words": "filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' classid 1:1" + }, + "cmd": "tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' classid 1:1", + "desc": "positive: opt=plain cmd=fb:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_bytecode_'4,40_0_0_12,21_0_1_2048,6_0_0_262144,6_0_0_0'_classid_1:1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-239", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d filter show dev d0 ingress", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-239/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-239/dump.out new file mode 100644 index 000000000..5c9de9bd5 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-239/dump.out @@ -0,0 +1,2 @@ +filter protocol ip pref 1 bpf chain 0 +filter protocol ip pref 1 bpf chain 0 handle 0x1 flowid 1:1 not_in_hw bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-239/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-239/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-239/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-239/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-239/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-239/ip.pcap new file mode 100644 index 000000000..e475b0a26 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-239/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-239/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-239/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-239/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-239/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-239/netlink_route_dump.pcap new file mode 100644 index 000000000..48476dfa1 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-239/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-240/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-240/cmd.json new file mode 100644 index 000000000..928eff98d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-240/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "fb", + "json": "0", + "words": "filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' da skip_hw" + }, + "cmd": "tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' da skip_hw", + "desc": "positive: opt=plain cmd=fb:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_bytecode_'1,6_0_0_0'_da_skip_hw", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-240", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d filter show dev d0 ingress", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-240/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-240/dump.out new file mode 100644 index 000000000..c69c04a66 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-240/dump.out @@ -0,0 +1,2 @@ +filter protocol ip pref 1 bpf chain 0 +filter protocol ip pref 1 bpf chain 0 handle 0x1 direct-action skip_hw not_in_hw bytecode '1,6 0 0 0' diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-240/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-240/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-240/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-240/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-240/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-240/ip.pcap new file mode 100644 index 000000000..94bed8d58 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-240/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-240/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-240/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-240/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-240/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-240/netlink_route_dump.pcap new file mode 100644 index 000000000..6f878a689 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-240/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-241/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-241/cmd.json new file mode 100644 index 000000000..ef80072e8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-241/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "fb", + "json": "0", + "words": "filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 4294967295' action gact pass" + }, + "cmd": "tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 4294967295' action gact pass", + "desc": "positive: opt=plain cmd=fb:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_bytecode_'1,6_0_0_4294967295'_action_gact_pass", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-241", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d filter show dev d0 ingress", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-241/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-241/dump.out new file mode 100644 index 000000000..ace75b17b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-241/dump.out @@ -0,0 +1,6 @@ +filter protocol ip pref 1 bpf chain 0 +filter protocol ip pref 1 bpf chain 0 handle 0x1 not_in_hw bytecode '1,6 0 0 4294967295' + action order 1: gact action pass + random type none pass val 0 + index 1 ref 1 bind 1 + diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-241/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-241/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-241/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-241/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-241/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-241/ip.pcap new file mode 100644 index 000000000..6fd7853cc Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-241/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-241/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-241/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-241/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-241/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-241/netlink_route_dump.pcap new file mode 100644 index 000000000..80a6b129c Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-241/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-242/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-242/cmd.json new file mode 100644 index 000000000..78a6d7820 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-242/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "fb", + "json": "0", + "words": "filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 4294967295' police rate 1mbit burst 10k drop" + }, + "cmd": "tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 4294967295' police rate 1mbit burst 10k drop", + "desc": "positive: opt=plain cmd=fb:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_bytecode_'1,6_0_0_4294967295'_police_rate_1mbit_burst_10k_drop", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-242", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d filter show dev d0 ingress", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-242/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-242/dump.out new file mode 100644 index 000000000..aca47b844 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-242/dump.out @@ -0,0 +1,5 @@ +filter protocol ip pref 1 bpf chain 0 +filter protocol ip pref 1 bpf chain 0 handle 0x1 not_in_hw bytecode '1,6 0 0 4294967295' + police 0x1 rate 1Mbit burst 10Kb mtu 2Kb action drop overhead 0b linklayer ethernet + ref 1 bind 1 + diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-242/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-242/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-242/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-242/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-242/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-242/ip.pcap new file mode 100644 index 000000000..b340f2f2f Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-242/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-242/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-242/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-242/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-242/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-242/netlink_route_dump.pcap new file mode 100644 index 000000000..42dc08afe Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-242/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-243/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-243/cmd.json new file mode 100644 index 000000000..aada09fa9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-243/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "fb", + "json": "0", + "words": "filter add dev d0 ingress pref 1 protocol ip handle 1 bpf run bytecode '1,6 0 0 0' flowid 1:2" + }, + "cmd": "tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf run bytecode '1,6 0 0 0' flowid 1:2", + "desc": "positive: opt=plain cmd=fb:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_run_bytecode_'1,6_0_0_0'_flowid_1:2", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-243", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d filter show dev d0 ingress", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-243/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-243/dump.out new file mode 100644 index 000000000..7dba61a2e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-243/dump.out @@ -0,0 +1,2 @@ +filter protocol ip pref 1 bpf chain 0 +filter protocol ip pref 1 bpf chain 0 handle 0x1 flowid 1:2 not_in_hw bytecode '1,6 0 0 0' diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-243/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-243/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-243/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-243/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-243/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-243/ip.pcap new file mode 100644 index 000000000..ada49ae8e Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-243/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-243/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-243/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-243/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-243/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-243/netlink_route_dump.pcap new file mode 100644 index 000000000..9f41ae587 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-243/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-244/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-244/cmd.json new file mode 100644 index 000000000..10b6c26d3 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-244/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "fb", + "json": "0", + "words": "filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bc '1,6 0 0 0' direct-action" + }, + "cmd": "tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bc '1,6 0 0 0' direct-action", + "desc": "positive: opt=plain cmd=fb:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_bc_'1,6_0_0_0'_direct-action", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-244", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d filter show dev d0 ingress", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-244/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-244/dump.out new file mode 100644 index 000000000..1deba4b2a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-244/dump.out @@ -0,0 +1,2 @@ +filter protocol ip pref 1 bpf chain 0 +filter protocol ip pref 1 bpf chain 0 handle 0x1 direct-action not_in_hw bytecode '1,6 0 0 0' diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-244/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-244/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-244/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-244/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-244/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-244/ip.pcap new file mode 100644 index 000000000..a9bc6f358 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-244/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-244/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-244/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-244/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-244/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-244/netlink_route_dump.pcap new file mode 100644 index 000000000..724e5972a Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-244/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-245/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-245/cmd.json new file mode 100644 index 000000000..19b241143 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-245/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "fb", + "json": "0", + "words": "filter add dev d0 ingress pref 1 protocol ip handle 1 bpf flowid 1:1 bytecode '1,6 0 0 0'" + }, + "cmd": "tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf flowid 1:1 bytecode '1,6 0 0 0'", + "desc": "positive: opt=plain cmd=fb:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_flowid_1:1_bytecode_'1,6_0_0_0'", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-245", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d filter show dev d0 ingress", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-245/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-245/dump.out new file mode 100644 index 000000000..664ccfd82 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-245/dump.out @@ -0,0 +1,2 @@ +filter protocol ip pref 1 bpf chain 0 +filter protocol ip pref 1 bpf chain 0 handle 0x1 flowid 1:1 not_in_hw bytecode '1,6 0 0 0' diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-245/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-245/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-245/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-245/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-245/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-245/ip.pcap new file mode 100644 index 000000000..d0edaa473 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-245/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-245/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-245/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-245/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-245/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-245/netlink_route_dump.pcap new file mode 100644 index 000000000..cb12f937f Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-245/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-246/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-246/cmd.json new file mode 100644 index 000000000..5a11986a1 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-246/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "fb", + "json": "0", + "words": "filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' action pedit ex munge ip ttl add 1 action ct commit" + }, + "cmd": "tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' action pedit ex munge ip ttl add 1 action ct commit", + "desc": "positive: opt=plain cmd=fb:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_bytecode_'1,6_0_0_0'_action_pedit_ex_munge_ip_ttl_add_1_action_ct_commit", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-246", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d filter show dev d0 ingress", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-246/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-246/dump.out new file mode 100644 index 000000000..e13af4224 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-246/dump.out @@ -0,0 +1,9 @@ +filter protocol ip pref 1 bpf chain 0 +filter protocol ip pref 1 bpf chain 0 handle 0x1 not_in_hw bytecode '1,6 0 0 0' + action order 1: pedit action pass keys 1 + index 1 ref 1 bind 1 + key #0 at ipv4+8: add 01000000 mask 00ffffff + + action order 2: ct commit zone 0 pipe + index 1 ref 1 bind 1 + diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-246/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-246/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-246/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-246/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-246/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-246/ip.pcap new file mode 100644 index 000000000..7fe51ebca Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-246/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-246/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-246/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-246/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-246/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-246/netlink_route_dump.pcap new file mode 100644 index 000000000..03d6b14d4 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-246/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-247/bpf.txt b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-247/bpf.txt new file mode 100644 index 000000000..2ff1b9c04 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-247/bpf.txt @@ -0,0 +1 @@ +4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0 \ No newline at end of file diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-247/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-247/cmd.json new file mode 100644 index 000000000..37649f825 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-247/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "fb-file", + "json": "0", + "words": "filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode-file bpf.txt classid 1:1" + }, + "cmd": "tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode-file bpf.txt classid 1:1", + "desc": "positive: opt=plain cmd=fb-file:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_bytecode-file_bpf.txt_classid_1:1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-247", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "printf '%s' '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' > bpf.txt" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d filter show dev d0 ingress", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "printf '%s' '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' > bpf.txt", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-247/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-247/dump.out new file mode 100644 index 000000000..5c9de9bd5 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-247/dump.out @@ -0,0 +1,2 @@ +filter protocol ip pref 1 bpf chain 0 +filter protocol ip pref 1 bpf chain 0 handle 0x1 flowid 1:1 not_in_hw bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-247/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-247/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-247/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-247/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-247/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-247/ip.pcap new file mode 100644 index 000000000..13116640b Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-247/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-247/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-247/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-247/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-247/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-247/netlink_route_dump.pcap new file mode 100644 index 000000000..9c1ea7edd Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-247/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-248/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-248/cmd.json new file mode 100644 index 000000000..46874918b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-248/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "fb-v", + "json": "0", + "words": "filter change dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 1' classid 1:2" + }, + "cmd": "tc filter change dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 1' classid 1:2", + "desc": "positive: opt=plain cmd=fb-v:filter_change_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_bytecode_'1,6_0_0_1'_classid_1:2", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-248", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' classid 1:1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d filter show dev d0 ingress", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' classid 1:1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-248/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-248/dump.out new file mode 100644 index 000000000..d32c3d462 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-248/dump.out @@ -0,0 +1,2 @@ +filter protocol ip pref 1 bpf chain 0 +filter protocol ip pref 1 bpf chain 0 handle 0x1 flowid 1:2 not_in_hw bytecode '1,6 0 0 1' diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-248/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-248/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-248/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-248/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-248/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-248/ip.pcap new file mode 100644 index 000000000..cc714f666 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-248/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-248/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-248/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-248/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-248/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-248/netlink_route_dump.pcap new file mode 100644 index 000000000..1337aaa7a Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-248/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-249/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-249/cmd.json new file mode 100644 index 000000000..ccc0356bd --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-249/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "fb-v", + "json": "0", + "words": "filter replace dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 1' classid 1:2" + }, + "cmd": "tc filter replace dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 1' classid 1:2", + "desc": "positive: opt=plain cmd=fb-v:filter_replace_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_bytecode_'1,6_0_0_1'_classid_1:2", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-249", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' classid 1:1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d filter show dev d0 ingress", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' classid 1:1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-249/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-249/dump.out new file mode 100644 index 000000000..d32c3d462 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-249/dump.out @@ -0,0 +1,2 @@ +filter protocol ip pref 1 bpf chain 0 +filter protocol ip pref 1 bpf chain 0 handle 0x1 flowid 1:2 not_in_hw bytecode '1,6 0 0 1' diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-249/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-249/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-249/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-249/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-249/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-249/ip.pcap new file mode 100644 index 000000000..29352ee74 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-249/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-249/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-249/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-249/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-249/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-249/netlink_route_dump.pcap new file mode 100644 index 000000000..93d7c6230 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-249/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-250/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-250/cmd.json new file mode 100644 index 000000000..9c44bb4a2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-250/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "fb-v", + "json": "0", + "words": "filter replace dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 1'" + }, + "cmd": "tc filter replace dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 1'", + "desc": "positive: opt=plain cmd=fb-v:filter_replace_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_bytecode_'1,6_0_0_1'", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-250", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d filter show dev d0 ingress", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-250/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-250/dump.out new file mode 100644 index 000000000..ccb5109b4 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-250/dump.out @@ -0,0 +1,2 @@ +filter protocol ip pref 1 bpf chain 0 +filter protocol ip pref 1 bpf chain 0 handle 0x1 not_in_hw bytecode '1,6 0 0 1' diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-250/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-250/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-250/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-250/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-250/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-250/ip.pcap new file mode 100644 index 000000000..f7b818c43 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-250/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-250/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-250/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-250/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-250/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-250/netlink_route_dump.pcap new file mode 100644 index 000000000..a6b28d76b Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-250/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-251/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-251/cmd.json new file mode 100644 index 000000000..03eed561f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-251/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "fb-v", + "json": "0", + "words": "filter delete dev d0 ingress pref 1 protocol ip handle 1 bpf" + }, + "cmd": "tc filter delete dev d0 ingress pref 1 protocol ip handle 1 bpf", + "desc": "positive: opt=plain cmd=fb-v:filter_delete_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-251", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' classid 1:1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d filter show dev d0 ingress", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' classid 1:1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-251/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-251/dump.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-251/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-251/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-251/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-251/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-251/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-251/ip.pcap new file mode 100644 index 000000000..fc5271023 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-251/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-251/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-251/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-251/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-251/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-251/netlink_route_dump.pcap new file mode 100644 index 000000000..16cafb526 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-251/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-252/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-252/cmd.json new file mode 100644 index 000000000..b0905d081 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-252/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "fb-p", + "json": "0", + "words": "filter add dev d1 parent 1: pref 1 protocol ip handle 7 bpf bytecode '1,6 0 0 0' classid 1:2" + }, + "cmd": "tc filter add dev d1 parent 1: pref 1 protocol ip handle 7 bpf bytecode '1,6 0 0 0' classid 1:2", + "desc": "positive: opt=plain cmd=fb-p:filter_add_dev_d1_parent_1:_pref_1_protocol_ip_handle_7_bpf_bytecode_'1,6_0_0_0'_classid_1:2", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-252", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d filter show dev d1 parent 1:", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-252/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-252/dump.out new file mode 100644 index 000000000..b5e16caad --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-252/dump.out @@ -0,0 +1,2 @@ +filter protocol ip pref 1 bpf chain 0 +filter protocol ip pref 1 bpf chain 0 handle 0x7 flowid 1:2 not_in_hw bytecode '1,6 0 0 0' diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-252/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-252/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-252/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-252/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-252/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-252/ip.pcap new file mode 100644 index 000000000..93804ff97 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-252/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-252/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-252/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-252/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-252/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-252/netlink_route_dump.pcap new file mode 100644 index 000000000..c1a81531b Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-252/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-253/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-253/cmd.json new file mode 100644 index 000000000..dc8887955 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-253/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w317", + "json": "0", + "words": "filter add dev d0 ingress pref 1 protocol ip handle 1 bpf classid 1:1 bytecode '1,6 0 0 0' classid 1:2 da action gact pass" + }, + "cmd": "tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf classid 1:1 bytecode '1,6 0 0 0' classid 1:2 da action gact pass", + "desc": "corner: opt=plain cmd=w317:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_classid_1:1_bytecode_'1,6_0_0_0'_classid_1:2_da_action_gact_pass", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-253", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d filter show dev d0 ingress", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-253/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-253/dump.out new file mode 100644 index 000000000..83ac0a1e8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-253/dump.out @@ -0,0 +1,6 @@ +filter protocol ip pref 1 bpf chain 0 +filter protocol ip pref 1 bpf chain 0 handle 0x1 flowid 1:2 direct-action not_in_hw bytecode '1,6 0 0 0' + action order 1: gact action pass + random type none pass val 0 + index 1 ref 1 bind 1 + diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-253/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-253/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-253/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-253/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-253/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-253/ip.pcap new file mode 100644 index 000000000..21fc67045 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-253/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-253/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-253/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-253/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-253/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-253/netlink_route_dump.pcap new file mode 100644 index 000000000..03f523f24 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-253/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-254/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-254/cmd.json new file mode 100644 index 000000000..d4c569ee6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-254/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w318", + "json": "0", + "words": "filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' s f 1:1" + }, + "cmd": "tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' s f 1:1", + "desc": "corner: opt=plain cmd=w318:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_bytecode_'1,6_0_0_0'_s_f_1:1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-254", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d filter show dev d0 ingress", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-254/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-254/dump.out new file mode 100644 index 000000000..85c664638 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-254/dump.out @@ -0,0 +1,2 @@ +filter protocol ip pref 1 bpf chain 0 +filter protocol ip pref 1 bpf chain 0 handle 0x1 flowid 1:1 skip_hw not_in_hw bytecode '1,6 0 0 0' diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-254/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-254/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-254/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-254/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-254/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-254/ip.pcap new file mode 100644 index 000000000..9669514ea Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-254/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-254/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-254/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-254/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-254/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-254/netlink_route_dump.pcap new file mode 100644 index 000000000..a0ee2979e Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-254/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-255/b.txt b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-255/b.txt new file mode 100644 index 000000000..ef18ea544 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-255/b.txt @@ -0,0 +1,2 @@ +actions add action pedit ex munge eth dst set 02:00:00:00:00:01 index 1 +actions add action simple sdata x diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-255/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-255/cmd.json new file mode 100644 index 000000000..d7cf58c07 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-255/cmd.json @@ -0,0 +1,110 @@ +{ + "axes": { + "batch": "eth-colons", + "fix": "w232-batch", + "json": "0", + "words": "-batch b.txt" + }, + "cmd": "tc -batch b.txt", + "desc": "corner: opt=plain cmd=w232-batch:batch:eth-colons", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-255", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "printf '%s\\n' 'actions add action pedit ex munge eth dst set 02:00:00:00:00:01 index 1' 'actions add action simple sdata x' > b.txt" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action simple", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "printf '%s\\n' 'actions add action pedit ex munge eth dst set 02:00:00:00:00:01 index 1' 'actions add action simple sdata x' > b.txt", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-255/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-255/dump.out new file mode 100644 index 000000000..6a13a24db --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-255/dump.out @@ -0,0 +1,5 @@ +total acts 1 + + action order 0: Simple + index 1 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-255/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-255/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-255/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-255/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-255/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-255/ip.pcap new file mode 100644 index 000000000..c5733a4e5 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-255/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-255/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-255/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-255/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-255/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-255/netlink_route_dump.pcap new file mode 100644 index 000000000..a9354243f Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-255/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-256/b.txt b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-256/b.txt new file mode 100644 index 000000000..eae90c1d9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-256/b.txt @@ -0,0 +1,2 @@ +actions add action tunnel_key geneve_opts 0102:80:00880022,0103:81:00a000b0 set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 1 index 1 +actions add action simple sdata x diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-256/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-256/cmd.json new file mode 100644 index 000000000..b92fbcc75 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-256/cmd.json @@ -0,0 +1,110 @@ +{ + "axes": { + "batch": "strtok", + "fix": "w265-batch", + "json": "0", + "words": "-batch b.txt" + }, + "cmd": "tc -batch b.txt", + "desc": "corner: opt=plain cmd=w265-batch:batch:strtok", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-256", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "printf '%s\\n' 'actions add action tunnel_key geneve_opts 0102:80:00880022,0103:81:00a000b0 set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 1 index 1' 'actions add action simple sdata x' > b.txt" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action simple", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "printf '%s\\n' 'actions add action tunnel_key geneve_opts 0102:80:00880022,0103:81:00a000b0 set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 1 index 1' 'actions add action simple sdata x' > b.txt", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-256/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-256/dump.out new file mode 100644 index 000000000..6a13a24db --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-256/dump.out @@ -0,0 +1,5 @@ +total acts 1 + + action order 0: Simple + index 1 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-256/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-256/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-256/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-256/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-256/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-256/ip.pcap new file mode 100644 index 000000000..8f27631ad Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-256/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-256/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-256/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-256/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-256/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-256/netlink_route_dump.pcap new file mode 100644 index 000000000..41a4cfe5e Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-256/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-257/b.txt b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-257/b.txt new file mode 100644 index 000000000..adc540083 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-257/b.txt @@ -0,0 +1,2 @@ +actions add action ct commit mark 0x1/0xff label 01/ff index 1 +actions add action simple sdata x diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-257/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-257/cmd.json new file mode 100644 index 000000000..6512980b6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-257/cmd.json @@ -0,0 +1,110 @@ +{ + "axes": { + "batch": "slash", + "fix": "w291-batch", + "json": "0", + "words": "-batch b.txt" + }, + "cmd": "tc -batch b.txt", + "desc": "corner: opt=plain cmd=w291-batch:batch:slash", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-257", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "printf '%s\\n' 'actions add action ct commit mark 0x1/0xff label 01/ff index 1' 'actions add action simple sdata x' > b.txt" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc actions ls action simple", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "printf '%s\\n' 'actions add action ct commit mark 0x1/0xff label 01/ff index 1' 'actions add action simple sdata x' > b.txt", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-257/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-257/dump.out new file mode 100644 index 000000000..6a13a24db --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-257/dump.out @@ -0,0 +1,5 @@ +total acts 1 + + action order 0: Simple + index 1 ref 1 bind 0 + not_in_hw diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-257/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-257/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-257/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-257/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-257/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-257/ip.pcap new file mode 100644 index 000000000..942d80145 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-257/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-257/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-257/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-257/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-257/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-257/netlink_route_dump.pcap new file mode 100644 index 000000000..3d7bc4b0f Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-257/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-258/b.txt b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-258/b.txt new file mode 100644 index 000000000..d65782e2a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-258/b.txt @@ -0,0 +1,2 @@ +actions add action bpf bytecode-file bpf.txt index 1 +filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode-file bpf.txt action bpf index 1 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-258/bpf.txt b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-258/bpf.txt new file mode 100644 index 000000000..1d686fb80 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-258/bpf.txt @@ -0,0 +1 @@ +1,6 0 0 0 \ No newline at end of file diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-258/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-258/cmd.json new file mode 100644 index 000000000..6d7952483 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-258/cmd.json @@ -0,0 +1,115 @@ +{ + "axes": { + "batch": "file", + "fix": "bpf-batch", + "json": "0", + "words": "-batch b.txt" + }, + "cmd": "tc -batch b.txt", + "desc": "positive: opt=plain cmd=bpf-batch:batch:file", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcact2write/ec-258", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "printf '%s' '1,6 0 0 0' > bpf.txt", + "printf '%s\\n' 'actions add action bpf bytecode-file bpf.txt index 1' 'filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode-file bpf.txt action bpf index 1' > b.txt" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d filter show dev d0 ingress", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "printf '%s' '1,6 0 0 0' > bpf.txt", + "rc": 0 + }, + { + "cmd": "printf '%s\\n' 'actions add action bpf bytecode-file bpf.txt index 1' 'filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode-file bpf.txt action bpf index 1' > b.txt", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-258/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-258/dump.out new file mode 100644 index 000000000..7bb62da4b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-258/dump.out @@ -0,0 +1,5 @@ +filter protocol ip pref 1 bpf chain 0 +filter protocol ip pref 1 bpf chain 0 handle 0x1 not_in_hw bytecode '1,6 0 0 0' + action order 1: bpf bytecode '1,6 0 0 0' default-action pipe + index 1 ref 2 bind 1 + diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-258/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-258/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-258/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-258/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-258/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-258/ip.pcap new file mode 100644 index 000000000..1a18ab1a9 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-258/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-258/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-258/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-258/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-258/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-258/netlink_route_dump.pcap new file mode 100644 index 000000000..f64b554ee Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ec-258/netlink_route_dump.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-001/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-001/cmd.json new file mode 100644 index 000000000..59642be74 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-001/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w191-ped", + "json": "0", + "words": "actions add action pedit" + }, + "cmd": "tc actions add action pedit", + "desc": "negative: opt=plain cmd=ng:w191-ped:actions_add_action_pedit: a bare pedit: NEXT_ARG (W246)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-001", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-001/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-001/ip.err new file mode 100644 index 000000000..f7d546177 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-001/ip.err @@ -0,0 +1 @@ +Command line is not complete. Try option "help" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-001/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-001/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-001/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-001/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-001/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-001/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-001/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-001/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-002/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-002/cmd.json new file mode 100644 index 000000000..290e5eb60 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-002/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w216", + "json": "0", + "words": "actions add action pedit munge offset 12 u32 at 0 offmask f shift 0 set 1 index 1" + }, + "cmd": "tc actions add action pedit munge offset 12 u32 at 0 offmask f shift 0 set 1 index 1", + "desc": "negative: opt=plain cmd=ng:w216:actions_add_action_pedit_munge_offset_12_u32_at_0_offmask_f_shift_0_set_1_index_1: the man page's at form: Bad pedit construct (12) (W216)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-002", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-002/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-002/ip.err new file mode 100644 index 000000000..47b3fccf2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-002/ip.err @@ -0,0 +1,19 @@ +Bad pedit construct (12) +Usage: ... pedit munge [ex] [CONTROL] +Where: MUNGE := | + := [ATC] + OFFSETC:= offset + ATC:= at offmask shift + NOTE: offval is byte offset, must be multiple of 4 + NOTE: maskval is a 32 bit hex number + NOTE: shiftval is a shift value + CMD:= clear | invert | set | add | decrement | retain + := ip | ip6 + | udp | tcp | icmp + CONTROL:= reclassify | pipe | drop | continue | pass | + goto chain + NOTE: if 'ex' is set, extended functionality will be supported (kernel >= 4.11) +For Example usage look at the examples directory +bad action parsing +parse_action: bad value (15:pedit)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-002/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-002/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-002/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-002/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-002/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-002/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-002/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-002/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-003/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-003/cmd.json new file mode 100644 index 000000000..87984e48a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-003/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w218", + "json": "0", + "words": "actions add action pedit munge offset 2 u32 set 1" + }, + "cmd": "tc actions add action pedit munge offset 2 u32 set 1", + "desc": "negative: opt=plain cmd=ng:w218:actions_add_action_pedit_munge_offset_2_u32_set_1: a failed pack at the end of the line: Bad pedit construct ((null)) (W218)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-003", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-003/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-003/ip.err new file mode 100644 index 000000000..a458092ba --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-003/ip.err @@ -0,0 +1,20 @@ +pack_key32: 32 bit offsets must begin in 32bit boundaries +Bad pedit construct ((null)) +Usage: ... pedit munge [ex] [CONTROL] +Where: MUNGE := | + := [ATC] + OFFSETC:= offset + ATC:= at offmask shift + NOTE: offval is byte offset, must be multiple of 4 + NOTE: maskval is a 32 bit hex number + NOTE: shiftval is a shift value + CMD:= clear | invert | set | add | decrement | retain + := ip | ip6 + | udp | tcp | icmp + CONTROL:= reclassify | pipe | drop | continue | pass | + goto chain + NOTE: if 'ex' is set, extended functionality will be supported (kernel >= 4.11) +For Example usage look at the examples directory +bad action parsing +parse_action: bad value (7:pedit)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-003/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-003/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-003/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-003/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-003/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-003/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-003/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-003/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-004/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-004/cmd.json new file mode 100644 index 000000000..ccf1e0d10 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-004/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w218-idx", + "json": "0", + "words": "actions add action pedit munge offset 2 u32 set 1 index 1" + }, + "cmd": "tc actions add action pedit munge offset 2 u32 set 1 index 1", + "desc": "negative: opt=plain cmd=ng:w218-idx:actions_add_action_pedit_munge_offset_2_u32_set_1_index_1: the same with index after: (index) (W218)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-004", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-004/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-004/ip.err new file mode 100644 index 000000000..76f881507 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-004/ip.err @@ -0,0 +1,20 @@ +pack_key32: 32 bit offsets must begin in 32bit boundaries +Bad pedit construct (index) +Usage: ... pedit munge [ex] [CONTROL] +Where: MUNGE := | + := [ATC] + OFFSETC:= offset + ATC:= at offmask shift + NOTE: offval is byte offset, must be multiple of 4 + NOTE: maskval is a 32 bit hex number + NOTE: shiftval is a shift value + CMD:= clear | invert | set | add | decrement | retain + := ip | ip6 + | udp | tcp | icmp + CONTROL:= reclassify | pipe | drop | continue | pass | + goto chain + NOTE: if 'ex' is set, extended functionality will be supported (kernel >= 4.11) +For Example usage look at the examples directory +bad action parsing +parse_action: bad value (9:pedit)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-004/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-004/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-004/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-004/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-004/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-004/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-004/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-004/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-005/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-005/cmd.json new file mode 100644 index 000000000..6f7eb9407 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-005/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w219", + "json": "0", + "words": "actions add action pedit munge ip foo set 1 index 1" + }, + "cmd": "tc actions add action pedit munge ip foo set 1 index 1", + "desc": "negative: opt=plain cmd=ng:w219:actions_add_action_pedit_munge_ip_foo_set_1_index_1: bad pedit parsing, then Bad pedit construct (ip) (W219)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-005", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-005/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-005/ip.err new file mode 100644 index 000000000..a44967375 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-005/ip.err @@ -0,0 +1,20 @@ +bad pedit parsing +Bad pedit construct (ip) +Usage: ... pedit munge [ex] [CONTROL] +Where: MUNGE := | + := [ATC] + OFFSETC:= offset + ATC:= at offmask shift + NOTE: offval is byte offset, must be multiple of 4 + NOTE: maskval is a 32 bit hex number + NOTE: shiftval is a shift value + CMD:= clear | invert | set | add | decrement | retain + := ip | ip6 + | udp | tcp | icmp + CONTROL:= reclassify | pipe | drop | continue | pass | + goto chain + NOTE: if 'ex' is set, extended functionality will be supported (kernel >= 4.11) +For Example usage look at the examples directory +bad action parsing +parse_action: bad value (8:pedit)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-005/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-005/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-005/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-005/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-005/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-005/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-005/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-005/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-006/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-006/cmd.json new file mode 100644 index 000000000..8fb135eff --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-006/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w220-129", + "json": "0", + "words": "actions add action pedit munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 index 1" + }, + "cmd": "tc actions add action pedit munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 index 1", + "desc": "negative: opt=plain cmd=ng:w220-129:actions_add_action_pedit_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_index_1: key 129: pack_key returns -1 with no message of its own (W220)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-006", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-006/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-006/ip.err new file mode 100644 index 000000000..97d1b5e64 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-006/ip.err @@ -0,0 +1,19 @@ +Bad pedit construct (index) +Usage: ... pedit munge [ex] [CONTROL] +Where: MUNGE := | + := [ATC] + OFFSETC:= offset + ATC:= at offmask shift + NOTE: offval is byte offset, must be multiple of 4 + NOTE: maskval is a 32 bit hex number + NOTE: shiftval is a shift value + CMD:= clear | invert | set | add | decrement | retain + := ip | ip6 + | udp | tcp | icmp + CONTROL:= reclassify | pipe | drop | continue | pass | + goto chain + NOTE: if 'ex' is set, extended functionality will be supported (kernel >= 4.11) +For Example usage look at the examples directory +bad action parsing +parse_action: bad value (777:pedit)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-006/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-006/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-006/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-006/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-006/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-006/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-006/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-006/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-007/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-007/cmd.json new file mode 100644 index 000000000..27c836534 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-007/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w221", + "json": "0", + "words": "actions add action pedit munge ip ttl set 256 index 1" + }, + "cmd": "tc actions add action pedit munge ip ttl set 256 index 1", + "desc": "negative: opt=plain cmd=ng:w221:actions_add_action_pedit_munge_ip_ttl_set_256_index_1: pack_key8 bad value (val 100 mask 0 (W221)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-007", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-007/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-007/ip.err new file mode 100644 index 000000000..7f066b1de --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-007/ip.err @@ -0,0 +1,21 @@ +pack_key8 bad value (val 100 mask 0 +bad pedit parsing +Bad pedit construct (ip) +Usage: ... pedit munge [ex] [CONTROL] +Where: MUNGE := | + := [ATC] + OFFSETC:= offset + ATC:= at offmask shift + NOTE: offval is byte offset, must be multiple of 4 + NOTE: maskval is a 32 bit hex number + NOTE: shiftval is a shift value + CMD:= clear | invert | set | add | decrement | retain + := ip | ip6 + | udp | tcp | icmp + CONTROL:= reclassify | pipe | drop | continue | pass | + goto chain + NOTE: if 'ex' is set, extended functionality will be supported (kernel >= 4.11) +For Example usage look at the examples directory +bad action parsing +parse_action: bad value (8:pedit)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-007/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-007/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-007/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-007/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-007/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-007/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-007/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-007/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-008/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-008/cmd.json new file mode 100644 index 000000000..a7ecb4b8a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-008/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w221-16", + "json": "0", + "words": "actions add action pedit munge ip dport set 65536 index 1" + }, + "cmd": "tc actions add action pedit munge ip dport set 65536 index 1", + "desc": "negative: opt=plain cmd=ng:w221-16:actions_add_action_pedit_munge_ip_dport_set_65536_index_1: pack_key16 bad value (W221)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-008", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-008/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-008/ip.err new file mode 100644 index 000000000..c52e79688 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-008/ip.err @@ -0,0 +1,21 @@ +pack_key16 bad value +bad pedit parsing +Bad pedit construct (ip) +Usage: ... pedit munge [ex] [CONTROL] +Where: MUNGE := | + := [ATC] + OFFSETC:= offset + ATC:= at offmask shift + NOTE: offval is byte offset, must be multiple of 4 + NOTE: maskval is a 32 bit hex number + NOTE: shiftval is a shift value + CMD:= clear | invert | set | add | decrement | retain + := ip | ip6 + | udp | tcp | icmp + CONTROL:= reclassify | pipe | drop | continue | pass | + goto chain + NOTE: if 'ex' is set, extended functionality will be supported (kernel >= 4.11) +For Example usage look at the examples directory +bad action parsing +parse_action: bad value (8:pedit)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-008/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-008/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-008/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-008/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-008/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-008/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-008/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-008/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-009/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-009/cmd.json new file mode 100644 index 000000000..1f2abce5a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-009/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w222", + "json": "0", + "words": "actions add action pedit ex munge eth dst preserve index 1" + }, + "cmd": "tc actions add action pedit ex munge eth dst preserve index 1", + "desc": "negative: opt=plain cmd=ng:w222:actions_add_action_pedit_ex_munge_eth_dst_preserve_index_1: retain is not supported for fields longer the 32 bits (W222)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-009", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-009/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-009/ip.err new file mode 100644 index 000000000..951cad172 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-009/ip.err @@ -0,0 +1,21 @@ +retain is not supported for fields longer the 32 bits +bad pedit parsing +Bad pedit construct (eth) +Usage: ... pedit munge [ex] [CONTROL] +Where: MUNGE := | + := [ATC] + OFFSETC:= offset + ATC:= at offmask shift + NOTE: offval is byte offset, must be multiple of 4 + NOTE: maskval is a 32 bit hex number + NOTE: shiftval is a shift value + CMD:= clear | invert | set | add | decrement | retain + := ip | ip6 + | udp | tcp | icmp + CONTROL:= reclassify | pipe | drop | continue | pass | + goto chain + NOTE: if 'ex' is set, extended functionality will be supported (kernel >= 4.11) +For Example usage look at the examples directory +bad action parsing +parse_action: bad value (8:pedit)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-009/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-009/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-009/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-009/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-009/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-009/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-009/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-009/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-010/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-010/cmd.json new file mode 100644 index 000000000..19b68b203 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-010/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w222-ip6", + "json": "0", + "words": "actions add action pedit ex munge ip6 src set ::1 retain 0xff index 1" + }, + "cmd": "tc actions add action pedit ex munge ip6 src set ::1 retain 0xff index 1", + "desc": "negative: opt=plain cmd=ng:w222-ip6:actions_add_action_pedit_ex_munge_ip6_src_set_::1_retain_0xff_index_1: the same for ip6 (W222)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-010", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-010/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-010/ip.err new file mode 100644 index 000000000..b0c85c7b9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-010/ip.err @@ -0,0 +1,21 @@ +retain is not supported for fields longer the 32 bits +bad pedit parsing +Bad pedit construct (ip6) +Usage: ... pedit munge [ex] [CONTROL] +Where: MUNGE := | + := [ATC] + OFFSETC:= offset + ATC:= at offmask shift + NOTE: offval is byte offset, must be multiple of 4 + NOTE: maskval is a 32 bit hex number + NOTE: shiftval is a shift value + CMD:= clear | invert | set | add | decrement | retain + := ip | ip6 + | udp | tcp | icmp + CONTROL:= reclassify | pipe | drop | continue | pass | + goto chain + NOTE: if 'ex' is set, extended functionality will be supported (kernel >= 4.11) +For Example usage look at the examples directory +bad action parsing +parse_action: bad value (11:pedit)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-010/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-010/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-010/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-010/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-010/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-010/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-010/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-010/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-011/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-011/cmd.json new file mode 100644 index 000000000..b3e6bdd96 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-011/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w225", + "json": "0", + "words": "actions add action pedit munge ip ttl set 5 r" + }, + "cmd": "tc actions add action pedit munge ip ttl set 5 r", + "desc": "negative: opt=plain cmd=ng:w225:actions_add_action_pedit_munge_ip_ttl_set_5_r: r is retain: NEXT_ARG (W225)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-011", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-011/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-011/ip.err new file mode 100644 index 000000000..f7d546177 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-011/ip.err @@ -0,0 +1 @@ +Command line is not complete. Try option "help" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-011/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-011/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-011/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-011/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-011/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-011/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-011/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-011/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-012/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-012/cmd.json new file mode 100644 index 000000000..f5c4ed2a5 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-012/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w226", + "json": "0", + "words": "actions add action pedit munge ip ttl set 5 p" + }, + "cmd": "tc actions add action pedit munge ip ttl set 5 p", + "desc": "negative: opt=plain cmd=ng:w226:actions_add_action_pedit_munge_ip_ttl_set_5_p: p is pedit: NEXT_ARG (W226)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-012", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-012/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-012/ip.err new file mode 100644 index 000000000..f7d546177 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-012/ip.err @@ -0,0 +1 @@ +Command line is not complete. Try option "help" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-012/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-012/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-012/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-012/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-012/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-012/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-012/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-012/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-013/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-013/cmd.json new file mode 100644 index 000000000..c43cfd27f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-013/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w228", + "json": "0", + "words": "actions add action pedit help" + }, + "cmd": "tc actions add action pedit help", + "desc": "negative: opt=plain cmd=ng:w228:actions_add_action_pedit_help: the usage, exit(-1) (W228)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-013", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-013/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-013/ip.err new file mode 100644 index 000000000..8a7976929 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-013/ip.err @@ -0,0 +1,15 @@ +Usage: ... pedit munge [ex] [CONTROL] +Where: MUNGE := | + := [ATC] + OFFSETC:= offset + ATC:= at offmask shift + NOTE: offval is byte offset, must be multiple of 4 + NOTE: maskval is a 32 bit hex number + NOTE: shiftval is a shift value + CMD:= clear | invert | set | add | decrement | retain + := ip | ip6 + | udp | tcp | icmp + CONTROL:= reclassify | pipe | drop | continue | pass | + goto chain + NOTE: if 'ex' is set, extended functionality will be supported (kernel >= 4.11) +For Example usage look at the examples directory diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-013/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-013/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-013/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-013/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-013/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-013/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-013/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-013/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-014/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-014/cmd.json new file mode 100644 index 000000000..75cbab92b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-014/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w229", + "json": "0", + "words": "actions add action pedit munge ip ttl add 1 index 1" + }, + "cmd": "tc actions add action pedit munge ip ttl add 1 index 1", + "desc": "negative: opt=plain cmd=ng:w229:actions_add_action_pedit_munge_ip_ttl_add_1_index_1: Non extended mode. only 'set' command is supported (W229)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-014", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-014/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-014/ip.err new file mode 100644 index 000000000..58827fbf6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-014/ip.err @@ -0,0 +1,21 @@ +Non extended mode. only 'set' command is supported +bad pedit parsing +Bad pedit construct (ip) +Usage: ... pedit munge [ex] [CONTROL] +Where: MUNGE := | + := [ATC] + OFFSETC:= offset + ATC:= at offmask shift + NOTE: offval is byte offset, must be multiple of 4 + NOTE: maskval is a 32 bit hex number + NOTE: shiftval is a shift value + CMD:= clear | invert | set | add | decrement | retain + := ip | ip6 + | udp | tcp | icmp + CONTROL:= reclassify | pipe | drop | continue | pass | + goto chain + NOTE: if 'ex' is set, extended functionality will be supported (kernel >= 4.11) +For Example usage look at the examples directory +bad action parsing +parse_action: bad value (8:pedit)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-014/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-014/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-014/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-014/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-014/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-014/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-014/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-014/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-015/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-015/cmd.json new file mode 100644 index 000000000..f7b4f55f5 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-015/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w229-dec", + "json": "0", + "words": "actions add action pedit munge ip ttl decrement index 1" + }, + "cmd": "tc actions add action pedit munge ip ttl decrement index 1", + "desc": "negative: opt=plain cmd=ng:w229-dec:actions_add_action_pedit_munge_ip_ttl_decrement_index_1: decrement without ex (W229)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-015", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-015/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-015/ip.err new file mode 100644 index 000000000..937e462cc --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-015/ip.err @@ -0,0 +1,21 @@ +Non extended mode. only 'set' command is supported +bad pedit parsing +Bad pedit construct (ip) +Usage: ... pedit munge [ex] [CONTROL] +Where: MUNGE := | + := [ATC] + OFFSETC:= offset + ATC:= at offmask shift + NOTE: offval is byte offset, must be multiple of 4 + NOTE: maskval is a 32 bit hex number + NOTE: shiftval is a shift value + CMD:= clear | invert | set | add | decrement | retain + := ip | ip6 + | udp | tcp | icmp + CONTROL:= reclassify | pipe | drop | continue | pass | + goto chain + NOTE: if 'ex' is set, extended functionality will be supported (kernel >= 4.11) +For Example usage look at the examples directory +bad action parsing +parse_action: bad value (7:pedit)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-015/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-015/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-015/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-015/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-015/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-015/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-015/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-015/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-016/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-016/cmd.json new file mode 100644 index 000000000..9e00dc0be --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-016/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w230", + "json": "0", + "words": "actions add action pedit munge foo bar index 1" + }, + "cmd": "tc actions add action pedit munge foo bar index 1", + "desc": "negative: opt=plain cmd=ng:w230:actions_add_action_pedit_munge_foo_bar_index_1: Unknown action hence option \"bar\" is unparsable (W230)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-016", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-016/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-016/ip.err new file mode 100644 index 000000000..0f5b81424 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-016/ip.err @@ -0,0 +1,21 @@ +Unknown action hence option "bar" is unparsable +bad pedit parsing +Bad pedit construct (foo) +Usage: ... pedit munge [ex] [CONTROL] +Where: MUNGE := | + := [ATC] + OFFSETC:= offset + ATC:= at offmask shift + NOTE: offval is byte offset, must be multiple of 4 + NOTE: maskval is a 32 bit hex number + NOTE: shiftval is a shift value + CMD:= clear | invert | set | add | decrement | retain + := ip | ip6 + | udp | tcp | icmp + CONTROL:= reclassify | pipe | drop | continue | pass | + goto chain + NOTE: if 'ex' is set, extended functionality will be supported (kernel >= 4.11) +For Example usage look at the examples directory +bad action parsing +parse_action: bad value (6:pedit)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-016/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-016/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-016/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-016/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-016/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-016/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-016/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-016/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-017/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-017/cmd.json new file mode 100644 index 000000000..84c39ebab --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-017/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w230-end", + "json": "0", + "words": "actions add action pedit munge foo" + }, + "cmd": "tc actions add action pedit munge foo", + "desc": "negative: opt=plain cmd=ng:w230-end:actions_add_action_pedit_munge_foo: an unknown kind at the end of the line: NEXT_ARG (W230)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-017", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-017/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-017/ip.err new file mode 100644 index 000000000..f7d546177 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-017/ip.err @@ -0,0 +1 @@ +Command line is not complete. Try option "help" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-017/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-017/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-017/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-017/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-017/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-017/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-017/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-017/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-018/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-018/cmd.json new file mode 100644 index 000000000..089a023d9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-018/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w231", + "json": "0", + "words": "actions add action pedit munge abcdefghijklmnopq bar index 1" + }, + "cmd": "tc actions add action pedit munge abcdefghijklmnopq bar index 1", + "desc": "negative: opt=plain cmd=ng:w231:actions_add_action_pedit_munge_abcdefghijklmnopq_bar_index_1: a 17-byte kind: k[16] unterminated (W231)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-018", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-018/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-018/ip.err new file mode 100644 index 000000000..5c47a12e2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-018/ip.err @@ -0,0 +1,21 @@ +Unknown action hence option "bar" is unparsable +bad pedit parsing +Bad pedit construct (abcdefghijklmnopq) +Usage: ... pedit munge [ex] [CONTROL] +Where: MUNGE := | + := [ATC] + OFFSETC:= offset + ATC:= at offmask shift + NOTE: offval is byte offset, must be multiple of 4 + NOTE: maskval is a 32 bit hex number + NOTE: shiftval is a shift value + CMD:= clear | invert | set | add | decrement | retain + := ip | ip6 + | udp | tcp | icmp + CONTROL:= reclassify | pipe | drop | continue | pass | + goto chain + NOTE: if 'ex' is set, extended functionality will be supported (kernel >= 4.11) +For Example usage look at the examples directory +bad action parsing +parse_action: bad value (6:pedit)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-018/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-018/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-018/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-018/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-018/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-018/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-018/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-018/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-019/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-019/cmd.json new file mode 100644 index 000000000..296cbc782 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-019/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w232", + "json": "0", + "words": "actions add action pedit ex munge eth dst set aa index 1" + }, + "cmd": "tc actions add action pedit ex munge eth dst set aa index 1", + "desc": "negative: opt=plain cmd=ng:w232:actions_add_action_pedit_ex_munge_eth_dst_set_aa_index_1: one MAC group (W232)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-019", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-019/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-019/ip.err new file mode 100644 index 000000000..7d27a44ba --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-019/ip.err @@ -0,0 +1,20 @@ +bad pedit parsing +Bad pedit construct (eth) +Usage: ... pedit munge [ex] [CONTROL] +Where: MUNGE := | + := [ATC] + OFFSETC:= offset + ATC:= at offmask shift + NOTE: offval is byte offset, must be multiple of 4 + NOTE: maskval is a 32 bit hex number + NOTE: shiftval is a shift value + CMD:= clear | invert | set | add | decrement | retain + := ip | ip6 + | udp | tcp | icmp + CONTROL:= reclassify | pipe | drop | continue | pass | + goto chain + NOTE: if 'ex' is set, extended functionality will be supported (kernel >= 4.11) +For Example usage look at the examples directory +bad action parsing +parse_action: bad value (9:pedit)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-019/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-019/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-019/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-019/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-019/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-019/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-019/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-019/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-020/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-020/cmd.json new file mode 100644 index 000000000..49c48198a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-020/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w232-p4", + "json": "0", + "words": "actions add action pedit ex munge eth dst set 1.2.3.4 index 1" + }, + "cmd": "tc actions add action pedit ex munge eth dst set 1.2.3.4 index 1", + "desc": "negative: opt=plain cmd=ng:w232-p4:actions_add_action_pedit_ex_munge_eth_dst_set_1.2.3.4_index_1: a dotted MAC is 4 bytes (W232)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-020", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-020/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-020/ip.err new file mode 100644 index 000000000..7d27a44ba --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-020/ip.err @@ -0,0 +1,20 @@ +bad pedit parsing +Bad pedit construct (eth) +Usage: ... pedit munge [ex] [CONTROL] +Where: MUNGE := | + := [ATC] + OFFSETC:= offset + ATC:= at offmask shift + NOTE: offval is byte offset, must be multiple of 4 + NOTE: maskval is a 32 bit hex number + NOTE: shiftval is a shift value + CMD:= clear | invert | set | add | decrement | retain + := ip | ip6 + | udp | tcp | icmp + CONTROL:= reclassify | pipe | drop | continue | pass | + goto chain + NOTE: if 'ex' is set, extended functionality will be supported (kernel >= 4.11) +For Example usage look at the examples directory +bad action parsing +parse_action: bad value (9:pedit)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-020/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-020/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-020/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-020/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-020/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-020/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-020/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-020/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-021/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-021/cmd.json new file mode 100644 index 000000000..73421b57c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-021/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w232-long", + "json": "0", + "words": "actions add action pedit ex munge eth dst set 02:00:00:00:00:01:02 index 1" + }, + "cmd": "tc actions add action pedit ex munge eth dst set 02:00:00:00:00:01:02 index 1", + "desc": "negative: opt=plain cmd=ng:w232-long:actions_add_action_pedit_ex_munge_eth_dst_set_02:00:00:00:00:01:02_index_1: seven MAC groups (W232)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-021", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-021/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-021/ip.err new file mode 100644 index 000000000..7d27a44ba --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-021/ip.err @@ -0,0 +1,20 @@ +bad pedit parsing +Bad pedit construct (eth) +Usage: ... pedit munge [ex] [CONTROL] +Where: MUNGE := | + := [ATC] + OFFSETC:= offset + ATC:= at offmask shift + NOTE: offval is byte offset, must be multiple of 4 + NOTE: maskval is a 32 bit hex number + NOTE: shiftval is a shift value + CMD:= clear | invert | set | add | decrement | retain + := ip | ip6 + | udp | tcp | icmp + CONTROL:= reclassify | pipe | drop | continue | pass | + goto chain + NOTE: if 'ex' is set, extended functionality will be supported (kernel >= 4.11) +For Example usage look at the examples directory +bad action parsing +parse_action: bad value (9:pedit)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-021/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-021/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-021/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-021/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-021/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-021/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-021/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-021/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-022/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-022/cmd.json new file mode 100644 index 000000000..d257e8435 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-022/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w232-bad", + "json": "0", + "words": "actions add action pedit ex munge eth dst set zz:00:00:00:00:01 index 1" + }, + "cmd": "tc actions add action pedit ex munge eth dst set zz:00:00:00:00:01 index 1", + "desc": "negative: opt=plain cmd=ng:w232-bad:actions_add_action_pedit_ex_munge_eth_dst_set_zz:00:00:00:00:01_index_1: a bad group (W232)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-022", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-022/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-022/ip.err new file mode 100644 index 000000000..8981f41ff --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-022/ip.err @@ -0,0 +1,21 @@ +"zz" is invalid lladdr. +bad pedit parsing +Bad pedit construct (eth) +Usage: ... pedit munge [ex] [CONTROL] +Where: MUNGE := | + := [ATC] + OFFSETC:= offset + ATC:= at offmask shift + NOTE: offval is byte offset, must be multiple of 4 + NOTE: maskval is a 32 bit hex number + NOTE: shiftval is a shift value + CMD:= clear | invert | set | add | decrement | retain + := ip | ip6 + | udp | tcp | icmp + CONTROL:= reclassify | pipe | drop | continue | pass | + goto chain + NOTE: if 'ex' is set, extended functionality will be supported (kernel >= 4.11) +For Example usage look at the examples directory +bad action parsing +parse_action: bad value (9:pedit)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-022/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-022/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-022/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-022/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-022/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-022/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-022/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-022/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-023/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-023/cmd.json new file mode 100644 index 000000000..ed0b667d2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-023/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w239", + "json": "0", + "words": "actions add action pedit munge icmp type set 1 index 1" + }, + "cmd": "tc actions add action pedit munge icmp type set 1 index 1", + "desc": "negative: opt=plain cmd=ng:w239:actions_add_action_pedit_munge_icmp_type_set_1_index_1: icmp always fails (W239)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-023", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-023/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-023/ip.err new file mode 100644 index 000000000..1d2307f1e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-023/ip.err @@ -0,0 +1,20 @@ +bad pedit parsing +Bad pedit construct (icmp) +Usage: ... pedit munge [ex] [CONTROL] +Where: MUNGE := | + := [ATC] + OFFSETC:= offset + ATC:= at offmask shift + NOTE: offval is byte offset, must be multiple of 4 + NOTE: maskval is a 32 bit hex number + NOTE: shiftval is a shift value + CMD:= clear | invert | set | add | decrement | retain + := ip | ip6 + | udp | tcp | icmp + CONTROL:= reclassify | pipe | drop | continue | pass | + goto chain + NOTE: if 'ex' is set, extended functionality will be supported (kernel >= 4.11) +For Example usage look at the examples directory +bad action parsing +parse_action: bad value (8:pedit)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-023/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-023/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-023/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-023/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-023/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-023/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-023/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-023/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-024/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-024/cmd.json new file mode 100644 index 000000000..7443f2c27 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-024/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w240-ip6", + "json": "0", + "words": "actions add action pedit munge ip6 src set ::1 index 1" + }, + "cmd": "tc actions add action pedit munge ip6 src set ::1 index 1", + "desc": "negative: opt=plain cmd=ng:w240-ip6:actions_add_action_pedit_munge_ip6_src_set_::1_index_1: ip6 without ex (W240)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-024", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-024/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-024/ip.err new file mode 100644 index 000000000..e25f2177f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-024/ip.err @@ -0,0 +1,20 @@ +bad pedit parsing +Bad pedit construct (ip6) +Usage: ... pedit munge [ex] [CONTROL] +Where: MUNGE := | + := [ATC] + OFFSETC:= offset + ATC:= at offmask shift + NOTE: offval is byte offset, must be multiple of 4 + NOTE: maskval is a 32 bit hex number + NOTE: shiftval is a shift value + CMD:= clear | invert | set | add | decrement | retain + := ip | ip6 + | udp | tcp | icmp + CONTROL:= reclassify | pipe | drop | continue | pass | + goto chain + NOTE: if 'ex' is set, extended functionality will be supported (kernel >= 4.11) +For Example usage look at the examples directory +bad action parsing +parse_action: bad value (8:pedit)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-024/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-024/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-024/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-024/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-024/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-024/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-024/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-024/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-025/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-025/cmd.json new file mode 100644 index 000000000..86c102c12 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-025/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w240-tcp", + "json": "0", + "words": "actions add action pedit munge tcp dport set 80 index 1" + }, + "cmd": "tc actions add action pedit munge tcp dport set 80 index 1", + "desc": "negative: opt=plain cmd=ng:w240-tcp:actions_add_action_pedit_munge_tcp_dport_set_80_index_1: tcp without ex (W240)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-025", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-025/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-025/ip.err new file mode 100644 index 000000000..e0f05848d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-025/ip.err @@ -0,0 +1,20 @@ +bad pedit parsing +Bad pedit construct (tcp) +Usage: ... pedit munge [ex] [CONTROL] +Where: MUNGE := | + := [ATC] + OFFSETC:= offset + ATC:= at offmask shift + NOTE: offval is byte offset, must be multiple of 4 + NOTE: maskval is a 32 bit hex number + NOTE: shiftval is a shift value + CMD:= clear | invert | set | add | decrement | retain + := ip | ip6 + | udp | tcp | icmp + CONTROL:= reclassify | pipe | drop | continue | pass | + goto chain + NOTE: if 'ex' is set, extended functionality will be supported (kernel >= 4.11) +For Example usage look at the examples directory +bad action parsing +parse_action: bad value (8:pedit)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-025/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-025/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-025/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-025/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-025/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-025/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-025/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-025/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-026/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-026/cmd.json new file mode 100644 index 000000000..d6dd02758 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-026/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w240-udp", + "json": "0", + "words": "actions add action pedit munge udp sport set 53 index 1" + }, + "cmd": "tc actions add action pedit munge udp sport set 53 index 1", + "desc": "negative: opt=plain cmd=ng:w240-udp:actions_add_action_pedit_munge_udp_sport_set_53_index_1: udp without ex (W240)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-026", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-026/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-026/ip.err new file mode 100644 index 000000000..423fa1fe9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-026/ip.err @@ -0,0 +1,20 @@ +bad pedit parsing +Bad pedit construct (udp) +Usage: ... pedit munge [ex] [CONTROL] +Where: MUNGE := | + := [ATC] + OFFSETC:= offset + ATC:= at offmask shift + NOTE: offval is byte offset, must be multiple of 4 + NOTE: maskval is a 32 bit hex number + NOTE: shiftval is a shift value + CMD:= clear | invert | set | add | decrement | retain + := ip | ip6 + | udp | tcp | icmp + CONTROL:= reclassify | pipe | drop | continue | pass | + goto chain + NOTE: if 'ex' is set, extended functionality will be supported (kernel >= 4.11) +For Example usage look at the examples directory +bad action parsing +parse_action: bad value (8:pedit)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-026/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-026/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-026/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-026/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-026/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-026/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-026/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-026/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-027/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-027/cmd.json new file mode 100644 index 000000000..0de2deecf --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-027/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w240-eth", + "json": "0", + "words": "actions add action pedit munge eth type set 0x800 index 1" + }, + "cmd": "tc actions add action pedit munge eth type set 0x800 index 1", + "desc": "negative: opt=plain cmd=ng:w240-eth:actions_add_action_pedit_munge_eth_type_set_0x800_index_1: eth without ex (W240)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-027", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-027/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-027/ip.err new file mode 100644 index 000000000..2c9e10fed --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-027/ip.err @@ -0,0 +1,20 @@ +bad pedit parsing +Bad pedit construct (eth) +Usage: ... pedit munge [ex] [CONTROL] +Where: MUNGE := | + := [ATC] + OFFSETC:= offset + ATC:= at offmask shift + NOTE: offval is byte offset, must be multiple of 4 + NOTE: maskval is a 32 bit hex number + NOTE: shiftval is a shift value + CMD:= clear | invert | set | add | decrement | retain + := ip | ip6 + | udp | tcp | icmp + CONTROL:= reclassify | pipe | drop | continue | pass | + goto chain + NOTE: if 'ex' is set, extended functionality will be supported (kernel >= 4.11) +For Example usage look at the examples directory +bad action parsing +parse_action: bad value (8:pedit)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-027/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-027/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-027/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-027/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-027/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-027/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-027/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-027/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-028/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-028/cmd.json new file mode 100644 index 000000000..73ea45b7d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-028/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w240-sport", + "json": "0", + "words": "actions add action pedit ex munge ip sport set 1 index 1" + }, + "cmd": "tc actions add action pedit ex munge ip sport set 1 index 1", + "desc": "negative: opt=plain cmd=ng:w240-sport:actions_add_action_pedit_ex_munge_ip_sport_set_1_index_1: ip sport with ex (W240)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-028", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-028/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-028/ip.err new file mode 100644 index 000000000..8427d4457 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-028/ip.err @@ -0,0 +1,20 @@ +bad pedit parsing +Bad pedit construct (ip) +Usage: ... pedit munge [ex] [CONTROL] +Where: MUNGE := | + := [ATC] + OFFSETC:= offset + ATC:= at offmask shift + NOTE: offval is byte offset, must be multiple of 4 + NOTE: maskval is a 32 bit hex number + NOTE: shiftval is a shift value + CMD:= clear | invert | set | add | decrement | retain + := ip | ip6 + | udp | tcp | icmp + CONTROL:= reclassify | pipe | drop | continue | pass | + goto chain + NOTE: if 'ex' is set, extended functionality will be supported (kernel >= 4.11) +For Example usage look at the examples directory +bad action parsing +parse_action: bad value (9:pedit)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-028/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-028/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-028/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-028/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-028/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-028/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-028/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-028/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-029/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-029/cmd.json new file mode 100644 index 000000000..fbb0eacf6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-029/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w240-icmp", + "json": "0", + "words": "actions add action pedit ex munge ip icmp_type set 1 index 1" + }, + "cmd": "tc actions add action pedit ex munge ip icmp_type set 1 index 1", + "desc": "negative: opt=plain cmd=ng:w240-icmp:actions_add_action_pedit_ex_munge_ip_icmp_type_set_1_index_1: ip icmp_type with ex (W240)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-029", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-029/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-029/ip.err new file mode 100644 index 000000000..8427d4457 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-029/ip.err @@ -0,0 +1,20 @@ +bad pedit parsing +Bad pedit construct (ip) +Usage: ... pedit munge [ex] [CONTROL] +Where: MUNGE := | + := [ATC] + OFFSETC:= offset + ATC:= at offmask shift + NOTE: offval is byte offset, must be multiple of 4 + NOTE: maskval is a 32 bit hex number + NOTE: shiftval is a shift value + CMD:= clear | invert | set | add | decrement | retain + := ip | ip6 + | udp | tcp | icmp + CONTROL:= reclassify | pipe | drop | continue | pass | + goto chain + NOTE: if 'ex' is set, extended functionality will be supported (kernel >= 4.11) +For Example usage look at the examples directory +bad action parsing +parse_action: bad value (9:pedit)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-029/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-029/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-029/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-029/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-029/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-029/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-029/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-029/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-030/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-030/cmd.json new file mode 100644 index 000000000..5e9c2cccc --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-030/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w241", + "json": "0", + "words": "actions add action pedit pedit ex munge ip ttl set 1 index 1" + }, + "cmd": "tc actions add action pedit pedit ex munge ip ttl set 1 index 1", + "desc": "negative: opt=plain cmd=ng:w241:actions_add_action_pedit_pedit_ex_munge_ip_ttl_set_1_index_1: 'ex' must be before first 'munge' (W241)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-030", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-030/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-030/ip.err new file mode 100644 index 000000000..cd7358f41 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-030/ip.err @@ -0,0 +1,19 @@ +'ex' must be before first 'munge' +Usage: ... pedit munge [ex] [CONTROL] +Where: MUNGE := | + := [ATC] + OFFSETC:= offset + ATC:= at offmask shift + NOTE: offval is byte offset, must be multiple of 4 + NOTE: maskval is a 32 bit hex number + NOTE: shiftval is a shift value + CMD:= clear | invert | set | add | decrement | retain + := ip | ip6 + | udp | tcp | icmp + CONTROL:= reclassify | pipe | drop | continue | pass | + goto chain + NOTE: if 'ex' is set, extended functionality will be supported (kernel >= 4.11) +For Example usage look at the examples directory +bad action parsing +parse_action: bad value (10:pedit)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-030/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-030/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-030/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-030/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-030/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-030/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-030/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-030/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-031/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-031/cmd.json new file mode 100644 index 000000000..ccb2261d3 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-031/cmd.json @@ -0,0 +1,99 @@ +{ + "axes": { + "fix": "w242", + "json": "0", + "words": "actions add action pedit pipe index 1" + }, + "cmd": "tc actions add action pedit pipe index 1", + "desc": "negative: opt=plain cmd=ng:w242:actions_add_action_pedit_pipe_index_1: no keys on a create (W242)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "errno": "EINVAL", + "rc": 255, + "refused_by": "kernel" + }, + "id": "tcact2write/ng-031", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-031/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-031/ip.err new file mode 100644 index 000000000..c0dccde37 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-031/ip.err @@ -0,0 +1,2 @@ +Error: act_pedit: Pedit requires keys to be passed. +We have an error talking to the kernel diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-031/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-031/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-031/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-031/ip.pcap new file mode 100644 index 000000000..e8a9f4cd4 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-031/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-031/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-031/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-031/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-032/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-032/cmd.json new file mode 100644 index 000000000..0d52a4626 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-032/cmd.json @@ -0,0 +1,99 @@ +{ + "axes": { + "fix": "w242-ex", + "json": "0", + "words": "actions add action pedit ex pipe index 1" + }, + "cmd": "tc actions add action pedit ex pipe index 1", + "desc": "negative: opt=plain cmd=ng:w242-ex:actions_add_action_pedit_ex_pipe_index_1: no keys with ex: an empty KEYS_EX (W242)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "errno": "EINVAL", + "rc": 255, + "refused_by": "kernel" + }, + "id": "tcact2write/ng-032", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-032/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-032/ip.err new file mode 100644 index 000000000..c0dccde37 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-032/ip.err @@ -0,0 +1,2 @@ +Error: act_pedit: Pedit requires keys to be passed. +We have an error talking to the kernel diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-032/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-032/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-032/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-032/ip.pcap new file mode 100644 index 000000000..1a8fd7cf6 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-032/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-032/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-032/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-032/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-033/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-033/cmd.json new file mode 100644 index 000000000..486ecb923 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-033/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w244", + "json": "0", + "words": "actions add action pedit munge ip ttl set 1 goto chain x index 1" + }, + "cmd": "tc actions add action pedit munge ip ttl set 1 goto chain x index 1", + "desc": "negative: opt=plain cmd=ng:w244:actions_add_action_pedit_munge_ip_ttl_set_1_goto_chain_x_index_1: Illegal \"chain index\" twice (W244)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-033", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-033/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-033/ip.err new file mode 100644 index 000000000..f77eaea2c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-033/ip.err @@ -0,0 +1,11 @@ +Illegal "chain index" +Illegal "chain index" +Usage: ... gact [RAND] [INDEX] +Where: ACTION := reclassify | drop | continue | pass | pipe | + goto chain | jump + RAND := random + RANDTYPE := netrand | determ + VAL : = value not exceeding 10000 + JUMP_COUNT := Absolute jump from start of action list + INDEX := index value used + diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-033/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-033/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-033/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-033/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-033/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-033/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-033/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-033/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-034/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-034/cmd.json new file mode 100644 index 000000000..f71edda26 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-034/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w245", + "json": "0", + "words": "actions add action pedit munge ip ttl set 1 foo index 1" + }, + "cmd": "tc actions add action pedit munge ip ttl set 1 foo index 1", + "desc": "negative: opt=plain cmd=ng:w245:actions_add_action_pedit_munge_ip_ttl_set_1_foo_index_1: an unknown word becomes the next kind (W245)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-034", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-034/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-034/ip.err new file mode 100644 index 000000000..5a96aa6e9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-034/ip.err @@ -0,0 +1,10 @@ +Bad action type foo +Usage: ... gact [RAND] [INDEX] +Where: ACTION := reclassify | drop | continue | pass | pipe | + goto chain | jump + RAND := random + RANDTYPE := netrand | determ + VAL : = value not exceeding 10000 + JUMP_COUNT := Absolute jump from start of action list + INDEX := index value used + diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-034/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-034/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-034/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-034/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-034/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-034/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-034/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-034/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-035/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-035/cmd.json new file mode 100644 index 000000000..7cb1bce84 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-035/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w246", + "json": "0", + "words": "actions add action pedit munge ip src" + }, + "cmd": "tc actions add action pedit munge ip src", + "desc": "negative: opt=plain cmd=ng:w246:actions_add_action_pedit_munge_ip_src: a bare ip src: -1, Bad pedit construct (W246)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-035", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-035/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-035/ip.err new file mode 100644 index 000000000..be0a8a2ad --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-035/ip.err @@ -0,0 +1,20 @@ +bad pedit parsing +Bad pedit construct (ip) +Usage: ... pedit munge [ex] [CONTROL] +Where: MUNGE := | + := [ATC] + OFFSETC:= offset + ATC:= at offmask shift + NOTE: offval is byte offset, must be multiple of 4 + NOTE: maskval is a 32 bit hex number + NOTE: shiftval is a shift value + CMD:= clear | invert | set | add | decrement | retain + := ip | ip6 + | udp | tcp | icmp + CONTROL:= reclassify | pipe | drop | continue | pass | + goto chain + NOTE: if 'ex' is set, extended functionality will be supported (kernel >= 4.11) +For Example usage look at the examples directory +bad action parsing +parse_action: bad value (4:pedit)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-035/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-035/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-035/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-035/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-035/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-035/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-035/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-035/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-036/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-036/cmd.json new file mode 100644 index 000000000..602c5f279 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-036/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w246-set", + "json": "0", + "words": "actions add action pedit munge ip src set" + }, + "cmd": "tc actions add action pedit munge ip src set", + "desc": "negative: opt=plain cmd=ng:w246-set:actions_add_action_pedit_munge_ip_src_set: set with no value: NEXT_ARG (W246)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-036", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-036/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-036/ip.err new file mode 100644 index 000000000..f7d546177 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-036/ip.err @@ -0,0 +1 @@ +Command line is not complete. Try option "help" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-036/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-036/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-036/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-036/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-036/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-036/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-036/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-036/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-037/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-037/cmd.json new file mode 100644 index 000000000..72f0135ac --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-037/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w247", + "json": "0", + "words": "actions add action pedit munge ip ttl set 1 index 0x5" + }, + "cmd": "tc actions add action pedit munge ip ttl set 1 index 0x5", + "desc": "negative: opt=plain cmd=ng:w247:actions_add_action_pedit_munge_ip_ttl_set_1_index_0x5: Pedit: Illegal \"index\" (W247)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-037", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-037/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-037/ip.err new file mode 100644 index 000000000..b4ed5195f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-037/ip.err @@ -0,0 +1,4 @@ +Pedit: Illegal "index" +bad action parsing +parse_action: bad value (8:pedit)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-037/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-037/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-037/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-037/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-037/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-037/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-037/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-037/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-038/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-038/cmd.json new file mode 100644 index 000000000..d4c3a0e97 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-038/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "ped-off", + "json": "0", + "words": "actions add action pedit munge offset 13 u32 set 1 index 1" + }, + "cmd": "tc actions add action pedit munge offset 13 u32 set 1 index 1", + "desc": "negative: opt=plain cmd=ng:ped-off:actions_add_action_pedit_munge_offset_13_u32_set_1_index_1: pack_key32: 32 bit offsets must begin in 32bit boundaries", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-038", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-038/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-038/ip.err new file mode 100644 index 000000000..76f881507 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-038/ip.err @@ -0,0 +1,20 @@ +pack_key32: 32 bit offsets must begin in 32bit boundaries +Bad pedit construct (index) +Usage: ... pedit munge [ex] [CONTROL] +Where: MUNGE := | + := [ATC] + OFFSETC:= offset + ATC:= at offmask shift + NOTE: offval is byte offset, must be multiple of 4 + NOTE: maskval is a 32 bit hex number + NOTE: shiftval is a shift value + CMD:= clear | invert | set | add | decrement | retain + := ip | ip6 + | udp | tcp | icmp + CONTROL:= reclassify | pipe | drop | continue | pass | + goto chain + NOTE: if 'ex' is set, extended functionality will be supported (kernel >= 4.11) +For Example usage look at the examples directory +bad action parsing +parse_action: bad value (9:pedit)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-038/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-038/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-038/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-038/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-038/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-038/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-038/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-038/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-039/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-039/cmd.json new file mode 100644 index 000000000..b8e042457 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-039/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "ped-off16", + "json": "0", + "words": "actions add action pedit munge offset 3 u16 set 1 index 1" + }, + "cmd": "tc actions add action pedit munge offset 3 u16 set 1 index 1", + "desc": "negative: opt=plain cmd=ng:ped-off16:actions_add_action_pedit_munge_offset_3_u16_set_1_index_1: pack_key16 bad index value 3", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-039", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-039/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-039/ip.err new file mode 100644 index 000000000..a81ccfbf9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-039/ip.err @@ -0,0 +1,20 @@ +pack_key16 bad index value 3 +Bad pedit construct (index) +Usage: ... pedit munge [ex] [CONTROL] +Where: MUNGE := | + := [ATC] + OFFSETC:= offset + ATC:= at offmask shift + NOTE: offval is byte offset, must be multiple of 4 + NOTE: maskval is a 32 bit hex number + NOTE: shiftval is a shift value + CMD:= clear | invert | set | add | decrement | retain + := ip | ip6 + | udp | tcp | icmp + CONTROL:= reclassify | pipe | drop | continue | pass | + goto chain + NOTE: if 'ex' is set, extended functionality will be supported (kernel >= 4.11) +For Example usage look at the examples directory +bad action parsing +parse_action: bad value (9:pedit)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-039/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-039/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-039/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-039/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-039/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-039/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-039/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-039/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-040/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-040/cmd.json new file mode 100644 index 000000000..0e8e6aa80 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-040/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "ped-offzz", + "json": "0", + "words": "actions add action pedit munge offset zz u32 set 1 index 1" + }, + "cmd": "tc actions add action pedit munge offset zz u32 set 1 index 1", + "desc": "negative: opt=plain cmd=ng:ped-offzz:actions_add_action_pedit_munge_offset_zz_u32_set_1_index_1: an unparsable offset: Bad pedit construct (zz)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-040", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-040/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-040/ip.err new file mode 100644 index 000000000..7bfbec4f0 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-040/ip.err @@ -0,0 +1,19 @@ +Bad pedit construct (zz) +Usage: ... pedit munge [ex] [CONTROL] +Where: MUNGE := | + := [ATC] + OFFSETC:= offset + ATC:= at offmask shift + NOTE: offval is byte offset, must be multiple of 4 + NOTE: maskval is a 32 bit hex number + NOTE: shiftval is a shift value + CMD:= clear | invert | set | add | decrement | retain + := ip | ip6 + | udp | tcp | icmp + CONTROL:= reclassify | pipe | drop | continue | pass | + goto chain + NOTE: if 'ex' is set, extended functionality will be supported (kernel >= 4.11) +For Example usage look at the examples directory +bad action parsing +parse_action: bad value (9:pedit)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-040/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-040/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-040/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-040/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-040/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-040/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-040/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-040/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-041/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-041/cmd.json new file mode 100644 index 000000000..f4f1d0904 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-041/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "ped-u64", + "json": "0", + "words": "actions add action pedit munge offset 12 u64 set 1 index 1" + }, + "cmd": "tc actions add action pedit munge offset 12 u64 set 1 index 1", + "desc": "negative: opt=plain cmd=ng:ped-u64:actions_add_action_pedit_munge_offset_12_u64_set_1_index_1: no such width", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-041", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-041/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-041/ip.err new file mode 100644 index 000000000..993b6e901 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-041/ip.err @@ -0,0 +1,19 @@ +Bad pedit construct (12) +Usage: ... pedit munge [ex] [CONTROL] +Where: MUNGE := | + := [ATC] + OFFSETC:= offset + ATC:= at offmask shift + NOTE: offval is byte offset, must be multiple of 4 + NOTE: maskval is a 32 bit hex number + NOTE: shiftval is a shift value + CMD:= clear | invert | set | add | decrement | retain + := ip | ip6 + | udp | tcp | icmp + CONTROL:= reclassify | pipe | drop | continue | pass | + goto chain + NOTE: if 'ex' is set, extended functionality will be supported (kernel >= 4.11) +For Example usage look at the examples directory +bad action parsing +parse_action: bad value (9:pedit)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-041/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-041/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-041/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-041/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-041/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-041/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-041/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-041/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-042/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-042/cmd.json new file mode 100644 index 000000000..6a93a8a07 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-042/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "ped-dec", + "json": "0", + "words": "actions add action pedit ex munge ip tos decrement index 1" + }, + "cmd": "tc actions add action pedit ex munge ip tos decrement index 1", + "desc": "negative: opt=plain cmd=ng:ped-dec:actions_add_action_pedit_ex_munge_ip_tos_decrement_index_1: decrement command is not supported for this field", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-042", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-042/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-042/ip.err new file mode 100644 index 000000000..087973c1d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-042/ip.err @@ -0,0 +1,21 @@ +decrement command is not supported for this field +bad pedit parsing +Bad pedit construct (ip) +Usage: ... pedit munge [ex] [CONTROL] +Where: MUNGE := | + := [ATC] + OFFSETC:= offset + ATC:= at offmask shift + NOTE: offval is byte offset, must be multiple of 4 + NOTE: maskval is a 32 bit hex number + NOTE: shiftval is a shift value + CMD:= clear | invert | set | add | decrement | retain + := ip | ip6 + | udp | tcp | icmp + CONTROL:= reclassify | pipe | drop | continue | pass | + goto chain + NOTE: if 'ex' is set, extended functionality will be supported (kernel >= 4.11) +For Example usage look at the examples directory +bad action parsing +parse_action: bad value (8:pedit)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-042/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-042/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-042/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-042/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-042/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-042/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-042/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-042/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-043/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-043/cmd.json new file mode 100644 index 000000000..eefb82579 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-043/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "ped-cmd", + "json": "0", + "words": "actions add action pedit munge offset 12 u32 bogus index 1" + }, + "cmd": "tc actions add action pedit munge offset 12 u32 bogus index 1", + "desc": "negative: opt=plain cmd=ng:ped-cmd:actions_add_action_pedit_munge_offset_12_u32_bogus_index_1: no such command", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-043", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-043/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-043/ip.err new file mode 100644 index 000000000..85ba66261 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-043/ip.err @@ -0,0 +1,19 @@ +Bad pedit construct (bogus) +Usage: ... pedit munge [ex] [CONTROL] +Where: MUNGE := | + := [ATC] + OFFSETC:= offset + ATC:= at offmask shift + NOTE: offval is byte offset, must be multiple of 4 + NOTE: maskval is a 32 bit hex number + NOTE: shiftval is a shift value + CMD:= clear | invert | set | add | decrement | retain + := ip | ip6 + | udp | tcp | icmp + CONTROL:= reclassify | pipe | drop | continue | pass | + goto chain + NOTE: if 'ex' is set, extended functionality will be supported (kernel >= 4.11) +For Example usage look at the examples directory +bad action parsing +parse_action: bad value (8:pedit)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-043/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-043/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-043/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-043/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-043/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-043/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-043/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-043/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-044/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-044/cmd.json new file mode 100644 index 000000000..4aaf84343 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-044/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "ped-nomunge", + "json": "0", + "words": "actions add action pedit offset 12 u32 set 1 index 1" + }, + "cmd": "tc actions add action pedit offset 12 u32 set 1 index 1", + "desc": "negative: opt=plain cmd=ng:ped-nomunge:actions_add_action_pedit_offset_12_u32_set_1_index_1: offset is the next kind after an empty pedit", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-044", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-044/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-044/ip.err new file mode 100644 index 000000000..fa6d2887d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-044/ip.err @@ -0,0 +1,10 @@ +Bad action type offset +Usage: ... gact [RAND] [INDEX] +Where: ACTION := reclassify | drop | continue | pass | pipe | + goto chain | jump + RAND := random + RANDTYPE := netrand | determ + VAL : = value not exceeding 10000 + JUMP_COUNT := Absolute jump from start of action list + INDEX := index value used + diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-044/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-044/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-044/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-044/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-044/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-044/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-044/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-044/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-045/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-045/cmd.json new file mode 100644 index 000000000..9c09258b3 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-045/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w250", + "json": "0", + "words": "actions add action tunnel_key set src_ip bogus dst_ip 10.0.0.2 id 1 index 1" + }, + "cmd": "tc actions add action tunnel_key set src_ip bogus dst_ip 10.0.0.2 id 1 index 1", + "desc": "negative: opt=plain cmd=ng:w250:actions_add_action_tunnel_key_set_src_ip_bogus_dst_ip_10.0.0.2_id_1_index_1: get_addr's message and exit(1); Illegal \"src_ip\" can't be reached (W250)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 1, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-045", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 1, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-045/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-045/ip.err new file mode 100644 index 000000000..ee5fb0964 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-045/ip.err @@ -0,0 +1 @@ +Error: any valid address is expected rather than "bogus". diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-045/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-045/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-045/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-045/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-045/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-045/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-045/ip.rc new file mode 100644 index 000000000..d00491fd7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-045/ip.rc @@ -0,0 +1 @@ +1 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-046/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-046/cmd.json new file mode 100644 index 000000000..1d84c69bc --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-046/cmd.json @@ -0,0 +1,99 @@ +{ + "axes": { + "fix": "w251", + "json": "0", + "words": "actions add action tunnel_key set src_ip any dst_ip 10.0.0.2 id 1 index 1" + }, + "cmd": "tc actions add action tunnel_key set src_ip any dst_ip 10.0.0.2 id 1 index 1", + "desc": "negative: opt=plain cmd=ng:w251:actions_add_action_tunnel_key_set_src_ip_any_dst_ip_10.0.0.2_id_1_index_1: a 0-byte IPV6_SRC (W251)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "errno": "ERANGE", + "rc": 255, + "refused_by": "kernel" + }, + "id": "tcact2write/ng-046", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-046/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-046/ip.err new file mode 100644 index 000000000..cbd5e2052 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-046/ip.err @@ -0,0 +1,2 @@ +Error: Failed to parse nested tunnel key attributes. +We have an error talking to the kernel diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-046/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-046/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-046/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-046/ip.pcap new file mode 100644 index 000000000..e80272cab Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-046/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-046/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-046/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-046/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-047/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-047/cmd.json new file mode 100644 index 000000000..8890c295d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-047/cmd.json @@ -0,0 +1,99 @@ +{ + "axes": { + "fix": "w252", + "json": "0", + "words": "actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 2001:db8::2 id 1 index 1" + }, + "cmd": "tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 2001:db8::2 id 1 index 1", + "desc": "negative: opt=plain cmd=ng:w252:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_2001:db8::2_id_1_index_1: mixed families (W252)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "errno": "EINVAL", + "rc": 255, + "refused_by": "kernel" + }, + "id": "tcact2write/ng-047", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-047/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-047/ip.err new file mode 100644 index 000000000..fc1bfceb1 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-047/ip.err @@ -0,0 +1,2 @@ +Error: Missing either ipv4 or ipv6 src and dst. +We have an error talking to the kernel diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-047/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-047/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-047/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-047/ip.pcap new file mode 100644 index 000000000..86b2e49bb Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-047/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-047/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-047/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-047/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-048/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-048/cmd.json new file mode 100644 index 000000000..e60196e9b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-048/cmd.json @@ -0,0 +1,99 @@ +{ + "axes": { + "fix": "w253", + "json": "0", + "words": "actions add action tunnel_key src_ip 10.0.0.1 dst_ip 10.0.0.2 id 1 index 1" + }, + "cmd": "tc actions add action tunnel_key src_ip 10.0.0.1 dst_ip 10.0.0.2 id 1 index 1", + "desc": "negative: opt=plain cmd=ng:w253:actions_add_action_tunnel_key_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_1_index_1: t_action 0: Unknown tunnel key action (W253)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "errno": "EINVAL", + "rc": 255, + "refused_by": "kernel" + }, + "id": "tcact2write/ng-048", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-048/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-048/ip.err new file mode 100644 index 000000000..d7fbc93e5 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-048/ip.err @@ -0,0 +1,2 @@ +Error: Unknown tunnel key action. +We have an error talking to the kernel diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-048/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-048/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-048/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-048/ip.pcap new file mode 100644 index 000000000..013f8199e Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-048/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-048/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-048/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-048/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-049/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-049/cmd.json new file mode 100644 index 000000000..a0aba87cb --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-049/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w254", + "json": "0", + "words": "actions add action tunnel_key" + }, + "cmd": "tc actions add action tunnel_key", + "desc": "negative: opt=plain cmd=ng:w254:actions_add_action_tunnel_key: a bare tunnel_key: NEXT_ARG (W254)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-049", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-049/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-049/ip.err new file mode 100644 index 000000000..f7d546177 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-049/ip.err @@ -0,0 +1 @@ +Command line is not complete. Try option "help" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-049/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-049/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-049/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-049/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-049/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-049/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-049/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-049/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-050/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-050/cmd.json new file mode 100644 index 000000000..e6bcfdcb5 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-050/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w256-id", + "json": "0", + "words": "actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 0x7 index 1" + }, + "cmd": "tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 0x7 index 1", + "desc": "negative: opt=plain cmd=ng:w256-id:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_0x7_index_1: Illegal \"id\" (W256)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-050", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-050/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-050/ip.err new file mode 100644 index 000000000..8a22f646c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-050/ip.err @@ -0,0 +1,4 @@ +Illegal "id" +bad action parsing +parse_action: bad value (10:tunnel_key)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-050/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-050/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-050/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-050/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-050/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-050/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-050/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-050/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-051/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-051/cmd.json new file mode 100644 index 000000000..f5d40bd3a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-051/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w256-port", + "json": "0", + "words": "actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 dst_port 0x12b5 index 1" + }, + "cmd": "tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 dst_port 0x12b5 index 1", + "desc": "negative: opt=plain cmd=ng:w256-port:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_dst_port_0x12b5_index_1: Illegal \"dst port\" (W256)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-051", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-051/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-051/ip.err new file mode 100644 index 000000000..63ecdad4a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-051/ip.err @@ -0,0 +1,4 @@ +Illegal "dst port" +bad action parsing +parse_action: bad value (12:tunnel_key)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-051/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-051/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-051/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-051/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-051/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-051/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-051/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-051/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-052/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-052/cmd.json new file mode 100644 index 000000000..f9a99fefa --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-052/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w256-index", + "json": "0", + "words": "actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 index 0x1" + }, + "cmd": "tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 index 0x1", + "desc": "negative: opt=plain cmd=ng:w256-index:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_index_0x1: tunnel_key: Illegal \"index\" (W256)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-052", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-052/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-052/ip.err new file mode 100644 index 000000000..163973845 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-052/ip.err @@ -0,0 +1,4 @@ +tunnel_key: Illegal "index" +bad action parsing +parse_action: bad value (10:tunnel_key)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-052/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-052/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-052/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-052/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-052/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-052/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-052/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-052/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-053/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-053/cmd.json new file mode 100644 index 000000000..159b26422 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-053/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w258", + "json": "0", + "words": "actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts 0102::01020304 index 1" + }, + "cmd": "tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts 0102::01020304 index 1", + "desc": "negative: opt=plain cmd=ng:w258:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_geneve_opts_0102::01020304_index_1: strtok merges the empty field: Illegal \"geneve_opts\" (W258)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-053", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-053/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-053/ip.err new file mode 100644 index 000000000..9f0b64211 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-053/ip.err @@ -0,0 +1,4 @@ +Illegal "geneve_opts" +bad action parsing +parse_action: bad value (12:tunnel_key)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-053/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-053/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-053/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-053/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-053/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-053/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-053/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-053/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-054/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-054/cmd.json new file mode 100644 index 000000000..24d0b00b4 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-054/cmd.json @@ -0,0 +1,99 @@ +{ + "axes": { + "fix": "w258-nodata", + "json": "0", + "words": "actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts 0102:80 index 1" + }, + "cmd": "tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts 0102:80 index 1", + "desc": "negative: opt=plain cmd=ng:w258-nodata:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_geneve_opts_0102:80_index_1: no DATA (W258)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "errno": "EINVAL", + "rc": 255, + "refused_by": "kernel" + }, + "id": "tcact2write/ng-054", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-054/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-054/ip.err new file mode 100644 index 000000000..996dfc954 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-054/ip.err @@ -0,0 +1,2 @@ +Error: Missing tunnel key geneve option class, type or data. +We have an error talking to the kernel diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-054/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-054/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-054/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-054/ip.pcap new file mode 100644 index 000000000..84994e49e Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-054/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-054/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-054/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-054/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-055/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-055/cmd.json new file mode 100644 index 000000000..e8a2d9ed5 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-055/cmd.json @@ -0,0 +1,99 @@ +{ + "axes": { + "fix": "w259-1", + "json": "0", + "words": "actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts 0102:80:0 index 1" + }, + "cmd": "tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts 0102:80:0 index 1", + "desc": "negative: opt=plain cmd=ng:w259-1:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_geneve_opts_0102:80:0_index_1: 1 hex char is 0 bytes of DATA: less than 4 bytes long (W259)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "errno": "ERANGE", + "rc": 255, + "refused_by": "kernel" + }, + "id": "tcact2write/ng-055", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-055/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-055/ip.err new file mode 100644 index 000000000..928921e01 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-055/ip.err @@ -0,0 +1,2 @@ +Error: Tunnel key geneve option data is less than 4 bytes long. +We have an error talking to the kernel diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-055/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-055/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-055/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-055/ip.pcap new file mode 100644 index 000000000..1294b5384 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-055/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-055/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-055/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-055/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-056/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-056/cmd.json new file mode 100644 index 000000000..b7407ce6d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-056/cmd.json @@ -0,0 +1,99 @@ +{ + "axes": { + "fix": "w259-7", + "json": "0", + "words": "actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts 0102:80:0011223 index 1" + }, + "cmd": "tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts 0102:80:0011223 index 1", + "desc": "negative: opt=plain cmd=ng:w259-7:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_geneve_opts_0102:80:0011223_index_1: 7 hex chars are 3 bytes: the odd nibble is dropped (W259)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "errno": "ERANGE", + "rc": 255, + "refused_by": "kernel" + }, + "id": "tcact2write/ng-056", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-056/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-056/ip.err new file mode 100644 index 000000000..928921e01 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-056/ip.err @@ -0,0 +1,2 @@ +Error: Tunnel key geneve option data is less than 4 bytes long. +We have an error talking to the kernel diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-056/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-056/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-056/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-056/ip.pcap new file mode 100644 index 000000000..58e8b1833 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-056/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-056/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-056/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-056/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-057/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-057/cmd.json new file mode 100644 index 000000000..db2c14144 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-057/cmd.json @@ -0,0 +1,99 @@ +{ + "axes": { + "fix": "w261", + "json": "0", + "words": "actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 erspan_opts 2::1:16 index 1" + }, + "cmd": "tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 erspan_opts 2::1:16 index 1", + "desc": "negative: opt=plain cmd=ng:w261:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_erspan_opts_2::1:16_index_1: strtok shifts the fields: Missing tunnel key erspan option dir or hwid (W261)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "errno": "EINVAL", + "rc": 255, + "refused_by": "kernel" + }, + "id": "tcact2write/ng-057", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-057/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-057/ip.err new file mode 100644 index 000000000..f44dd3b66 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-057/ip.err @@ -0,0 +1,2 @@ +Error: Missing tunnel key erspan option dir or hwid. +We have an error talking to the kernel diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-057/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-057/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-057/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-057/ip.pcap new file mode 100644 index 000000000..3b23e5288 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-057/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-057/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-057/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-057/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-058/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-058/cmd.json new file mode 100644 index 000000000..3fcc62726 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-058/cmd.json @@ -0,0 +1,99 @@ +{ + "axes": { + "fix": "w260", + "json": "0", + "words": "actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts '' index 1" + }, + "cmd": "tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 geneve_opts '' index 1", + "desc": "negative: opt=plain cmd=ng:w260:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_geneve_opts_''_index_1: an empty ENC_OPTS (W260)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "errno": "EINVAL", + "rc": 255, + "refused_by": "kernel" + }, + "id": "tcact2write/ng-058", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-058/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-058/ip.err new file mode 100644 index 000000000..4af4d3ac5 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-058/ip.err @@ -0,0 +1,2 @@ +Error: Empty list of tunnel options. +We have an error talking to the kernel diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-058/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-058/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-058/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-058/ip.pcap new file mode 100644 index 000000000..661526663 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-058/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-058/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-058/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-058/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-059/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-059/cmd.json new file mode 100644 index 000000000..53fded104 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-059/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w266", + "json": "0", + "words": "actions add action tunnel_key set set src_ip 10.0.0.1 dst_ip 10.0.0.2 index 1" + }, + "cmd": "tc actions add action tunnel_key set set src_ip 10.0.0.1 dst_ip 10.0.0.2 index 1", + "desc": "negative: opt=plain cmd=ng:w266:actions_add_action_tunnel_key_set_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_index_1: unexpected \"set\" - action already specified (W266)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-059", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-059/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-059/ip.err new file mode 100644 index 000000000..83b42a81c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-059/ip.err @@ -0,0 +1,14 @@ +unexpected "set" - action already specified +Usage: tunnel_key unset + tunnel_key set +Where TUNNEL_KEY is a combination of: +id +src_ip (mandatory) +dst_ip (mandatory) +dst_port +geneve_opts | vxlan_opts | erspan_opts +csum | nocsum (default is "csum") +nofrag +bad action parsing +parse_action: bad value (9:tunnel_key)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-059/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-059/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-059/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-059/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-059/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-059/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-059/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-059/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-060/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-060/cmd.json new file mode 100644 index 000000000..e69950a82 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-060/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "tk-noaddr", + "json": "0", + "words": "actions add action tunnel_key set id 1 index 1" + }, + "cmd": "tc actions add action tunnel_key set id 1 index 1", + "desc": "negative: opt=plain cmd=ng:tk-noaddr:actions_add_action_tunnel_key_set_id_1_index_1: set needs tunnel_key parameters", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-060", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-060/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-060/ip.err new file mode 100644 index 000000000..b9a5bb075 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-060/ip.err @@ -0,0 +1,14 @@ +set needs tunnel_key parameters +Usage: tunnel_key unset + tunnel_key set +Where TUNNEL_KEY is a combination of: +id +src_ip (mandatory) +dst_ip (mandatory) +dst_port +geneve_opts | vxlan_opts | erspan_opts +csum | nocsum (default is "csum") +nofrag +bad action parsing +parse_action: bad value (6:tunnel_key)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-060/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-060/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-060/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-060/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-060/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-060/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-060/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-060/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-061/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-061/cmd.json new file mode 100644 index 000000000..45e6b3c41 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-061/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "tk-tos", + "json": "0", + "words": "actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 tos 256 index 1" + }, + "cmd": "tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 tos 256 index 1", + "desc": "negative: opt=plain cmd=ng:tk-tos:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_tos_256_index_1: Illegal \"tos\"", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-061", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-061/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-061/ip.err new file mode 100644 index 000000000..07602d893 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-061/ip.err @@ -0,0 +1,4 @@ +Illegal "tos" +bad action parsing +parse_action: bad value (12:tunnel_key)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-061/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-061/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-061/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-061/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-061/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-061/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-061/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-061/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-062/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-062/cmd.json new file mode 100644 index 000000000..4cfc5f333 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-062/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "tk-vx", + "json": "0", + "words": "actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 vxlan_opts zz index 1" + }, + "cmd": "tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 vxlan_opts zz index 1", + "desc": "negative: opt=plain cmd=ng:tk-vx:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_vxlan_opts_zz_index_1: Illegal \"vxlan_opts\"", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-062", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-062/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-062/ip.err new file mode 100644 index 000000000..32a07d632 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-062/ip.err @@ -0,0 +1,4 @@ +Illegal "vxlan_opts" +bad action parsing +parse_action: bad value (12:tunnel_key)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-062/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-062/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-062/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-062/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-062/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-062/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-062/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-062/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-063/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-063/cmd.json new file mode 100644 index 000000000..716a658d6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-063/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "tk-er", + "json": "0", + "words": "actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 erspan_opts 1:2:3:4:5 index 1" + }, + "cmd": "tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7 erspan_opts 1:2:3:4:5 index 1", + "desc": "negative: opt=plain cmd=ng:tk-er:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id_7_erspan_opts_1:2:3:4:5_index_1: Illegal \"erspan_opts\"", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-063", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-063/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-063/ip.err new file mode 100644 index 000000000..ecb46ba80 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-063/ip.err @@ -0,0 +1,4 @@ +Illegal "erspan_opts" +bad action parsing +parse_action: bad value (12:tunnel_key)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-063/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-063/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-063/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-063/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-063/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-063/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-063/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-063/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-064/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-064/cmd.json new file mode 100644 index 000000000..53ebe81e5 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-064/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "tk-help", + "json": "0", + "words": "actions add action tunnel_key help" + }, + "cmd": "tc actions add action tunnel_key help", + "desc": "negative: opt=plain cmd=ng:tk-help:actions_add_action_tunnel_key_help: the usage, exit(-1)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-064", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-064/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-064/ip.err new file mode 100644 index 000000000..7f10be316 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-064/ip.err @@ -0,0 +1,10 @@ +Usage: tunnel_key unset + tunnel_key set +Where TUNNEL_KEY is a combination of: +id +src_ip (mandatory) +dst_ip (mandatory) +dst_port +geneve_opts | vxlan_opts | erspan_opts +csum | nocsum (default is "csum") +nofrag diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-064/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-064/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-064/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-064/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-064/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-064/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-064/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-064/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-065/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-065/cmd.json new file mode 100644 index 000000000..4e01a494b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-065/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "tk-tail", + "json": "0", + "words": "actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id" + }, + "cmd": "tc actions add action tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id", + "desc": "negative: opt=plain cmd=ng:tk-tail:actions_add_action_tunnel_key_set_src_ip_10.0.0.1_dst_ip_10.0.0.2_id: id with no value: NEXT_ARG", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-065", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-065/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-065/ip.err new file mode 100644 index 000000000..f7d546177 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-065/ip.err @@ -0,0 +1 @@ +Command line is not complete. Try option "help" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-065/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-065/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-065/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-065/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-065/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-065/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-065/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-065/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-066/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-066/cmd.json new file mode 100644 index 000000000..785b16158 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-066/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w268", + "json": "0", + "words": "actions add action ife pipe" + }, + "cmd": "tc actions add action ife pipe", + "desc": "negative: opt=plain cmd=ng:w268:actions_add_action_ife_pipe: IFE requires decode/encode specified, usage, exit(-1) (W268)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-066", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-066/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-066/ip.err new file mode 100644 index 000000000..128ebd0f6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-066/ip.err @@ -0,0 +1,14 @@ +IFE requires decode/encode specified +Usage:... ife {decode|encode} [{ALLOW|USE} ATTR] [dst DMAC] [src SMAC] [type TYPE] [CONTROL] [index INDEX] + ALLOW := Encode direction. Allows encoding specified metadata + e.g "allow mark" + USE := Encode direction. Enforce Static encoding of specified metadata + e.g "use mark 0x12" + ATTR := mark (32-bit), prio (32-bit), tcindex (16-bit) + DMAC := 6 byte Destination MAC address to encode + SMAC := optional 6 byte Source MAC address to encode + TYPE := optional 16 bit ethertype to encode + CONTROL := reclassify|pipe|drop|continue|ok + INDEX := optional IFE table index value used +encode is used for sending IFE packets +decode is used for receiving IFE packets diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-066/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-066/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-066/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-066/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-066/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-066/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-066/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-066/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-067/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-067/cmd.json new file mode 100644 index 000000000..c7d26e7c6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-067/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w269-end", + "json": "0", + "words": "actions add action ife decode ife" + }, + "cmd": "tc actions add action ife decode ife", + "desc": "negative: opt=plain cmd=ng:w269-end:actions_add_action_ife_decode_ife: ife at the end of the line: NEXT_ARG (W269)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-067", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-067/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-067/ip.err new file mode 100644 index 000000000..f7d546177 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-067/ip.err @@ -0,0 +1 @@ +Command line is not complete. Try option "help" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-067/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-067/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-067/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-067/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-067/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-067/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-067/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-067/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-068/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-068/cmd.json new file mode 100644 index 000000000..9dc361a70 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-068/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w191-ife", + "json": "0", + "words": "actions add action ife" + }, + "cmd": "tc actions add action ife", + "desc": "negative: opt=plain cmd=ng:w191-ife:actions_add_action_ife: a bare ife (W269)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-068", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-068/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-068/ip.err new file mode 100644 index 000000000..f7d546177 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-068/ip.err @@ -0,0 +1 @@ +Command line is not complete. Try option "help" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-068/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-068/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-068/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-068/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-068/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-068/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-068/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-068/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-069/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-069/cmd.json new file mode 100644 index 000000000..200d55f53 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-069/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "ife-allow", + "json": "0", + "words": "actions add action ife encode allow foo index 1" + }, + "cmd": "tc actions add action ife encode allow foo index 1", + "desc": "negative: opt=plain cmd=ng:ife-allow:actions_add_action_ife_encode_allow_foo_index_1: Illegal meta define, exit(-1)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-069", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-069/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-069/ip.err new file mode 100644 index 000000000..3ed51950e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-069/ip.err @@ -0,0 +1 @@ +Error: argument "foo" is wrong: Illegal meta define diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-069/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-069/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-069/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-069/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-069/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-069/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-069/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-069/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-070/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-070/cmd.json new file mode 100644 index 000000000..2bdaf9204 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-070/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "ife-use", + "json": "0", + "words": "actions add action ife encode use mark zz index 1" + }, + "cmd": "tc actions add action ife encode use mark zz index 1", + "desc": "negative: opt=plain cmd=ng:ife-use:actions_add_action_ife_encode_use_mark_zz_index_1: ife mark val is invalid", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-070", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-070/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-070/ip.err new file mode 100644 index 000000000..c4dac45b1 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-070/ip.err @@ -0,0 +1 @@ +Error: argument "zz" is wrong: ife mark val is invalid diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-070/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-070/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-070/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-070/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-070/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-070/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-070/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-070/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-071/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-071/cmd.json new file mode 100644 index 000000000..1d93fb906 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-071/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "ife-use-kind", + "json": "0", + "words": "actions add action ife encode use foo 1 index 1" + }, + "cmd": "tc actions add action ife encode use foo 1 index 1", + "desc": "negative: opt=plain cmd=ng:ife-use-kind:actions_add_action_ife_encode_use_foo_1_index_1: Illegal meta use type", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-071", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-071/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-071/ip.err new file mode 100644 index 000000000..65bb5f40b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-071/ip.err @@ -0,0 +1 @@ +Error: argument "foo" is wrong: Illegal meta use type diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-071/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-071/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-071/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-071/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-071/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-071/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-071/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-071/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-072/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-072/cmd.json new file mode 100644 index 000000000..a6061efff --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-072/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "ife-tcindex", + "json": "0", + "words": "actions add action ife encode use tcindex 65536 index 1" + }, + "cmd": "tc actions add action ife encode use tcindex 65536 index 1", + "desc": "negative: opt=plain cmd=ng:ife-tcindex:actions_add_action_ife_encode_use_tcindex_65536_index_1: ife tcindex val is invalid", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-072", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-072/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-072/ip.err new file mode 100644 index 000000000..68e465a63 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-072/ip.err @@ -0,0 +1 @@ +Error: argument "65536" is wrong: ife tcindex val is invalid diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-072/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-072/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-072/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-072/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-072/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-072/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-072/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-072/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-073/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-073/cmd.json new file mode 100644 index 000000000..0a2bdd801 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-073/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "ife-type", + "json": "0", + "words": "actions add action ife encode type zz index 1" + }, + "cmd": "tc actions add action ife encode type zz index 1", + "desc": "negative: opt=plain cmd=ng:ife-type:actions_add_action_ife_encode_type_zz_index_1: ife type is invalid", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-073", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-073/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-073/ip.err new file mode 100644 index 000000000..b81bed4a6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-073/ip.err @@ -0,0 +1 @@ +Error: argument "zz" is wrong: ife type is invalid diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-073/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-073/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-073/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-073/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-073/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-073/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-073/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-073/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-074/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-074/cmd.json new file mode 100644 index 000000000..445018a60 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-074/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "ife-mac", + "json": "0", + "words": "actions add action ife encode dst zz index 1" + }, + "cmd": "tc actions add action ife encode dst zz index 1", + "desc": "negative: opt=plain cmd=ng:ife-mac:actions_add_action_ife_encode_dst_zz_index_1: Invalid mac address", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-074", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-074/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-074/ip.err new file mode 100644 index 000000000..18cacc794 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-074/ip.err @@ -0,0 +1 @@ +Error: argument "zz" is wrong: Invalid mac address diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-074/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-074/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-074/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-074/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-074/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-074/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-074/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-074/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-075/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-075/cmd.json new file mode 100644 index 000000000..af9f89f6f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-075/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "ife-index", + "json": "0", + "words": "actions add action ife encode allow mark index zz" + }, + "cmd": "tc actions add action ife encode allow mark index zz", + "desc": "negative: opt=plain cmd=ng:ife-index:actions_add_action_ife_encode_allow_mark_index_zz: ife: Illegal \"index\"", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-075", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-075/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-075/ip.err new file mode 100644 index 000000000..43d84a0ac --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-075/ip.err @@ -0,0 +1,4 @@ +ife: Illegal "index" +bad action parsing +parse_action: bad value (6:ife)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-075/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-075/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-075/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-075/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-075/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-075/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-075/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-075/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-076/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-076/cmd.json new file mode 100644 index 000000000..5bda06155 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-076/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "ife-help", + "json": "0", + "words": "actions add action ife help" + }, + "cmd": "tc actions add action ife help", + "desc": "negative: opt=plain cmd=ng:ife-help:actions_add_action_ife_help: the usage, exit(-1)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-076", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-076/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-076/ip.err new file mode 100644 index 000000000..64ebf4506 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-076/ip.err @@ -0,0 +1,13 @@ +Usage:... ife {decode|encode} [{ALLOW|USE} ATTR] [dst DMAC] [src SMAC] [type TYPE] [CONTROL] [index INDEX] + ALLOW := Encode direction. Allows encoding specified metadata + e.g "allow mark" + USE := Encode direction. Enforce Static encoding of specified metadata + e.g "use mark 0x12" + ATTR := mark (32-bit), prio (32-bit), tcindex (16-bit) + DMAC := 6 byte Destination MAC address to encode + SMAC := optional 6 byte Source MAC address to encode + TYPE := optional 16 bit ethertype to encode + CONTROL := reclassify|pipe|drop|continue|ok + INDEX := optional IFE table index value used +encode is used for sending IFE packets +decode is used for receiving IFE packets diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-076/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-076/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-076/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-076/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-076/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-076/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-076/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-076/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-077/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-077/cmd.json new file mode 100644 index 000000000..d1af3a65f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-077/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w276", + "json": "0", + "words": "actions add action ct commit nat src addr 1.1.1.1" + }, + "cmd": "tc actions add action ct commit nat src addr 1.1.1.1", + "desc": "negative: opt=plain cmd=ng:w276:actions_add_action_ct_commit_nat_src_addr_1.1.1.1: nat's range as the last words: NEXT_ARG (W276)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-077", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-077/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-077/ip.err new file mode 100644 index 000000000..f7d546177 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-077/ip.err @@ -0,0 +1 @@ +Command line is not complete. Try option "help" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-077/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-077/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-077/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-077/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-077/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-077/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-077/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-077/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-078/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-078/cmd.json new file mode 100644 index 000000000..78bc0e1a6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-078/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w277", + "json": "0", + "words": "actions add action ct nat" + }, + "cmd": "tc actions add action ct nat", + "desc": "negative: opt=plain cmd=ng:w277:actions_add_action_ct_nat: nat as the last word: NEXT_ARG (W277)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-078", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-078/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-078/ip.err new file mode 100644 index 000000000..f7d546177 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-078/ip.err @@ -0,0 +1 @@ +Command line is not complete. Try option "help" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-078/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-078/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-078/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-078/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-078/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-078/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-078/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-078/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-079/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-079/cmd.json new file mode 100644 index 000000000..9232be691 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-079/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w278", + "json": "0", + "words": "actions add action ct commit nat src foo index 1" + }, + "cmd": "tc actions add action ct commit nat src foo index 1", + "desc": "negative: opt=plain cmd=ng:w278:actions_add_action_ct_commit_nat_src_foo_index_1: no addr: the usage, exit(-1) (W278)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-079", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-079/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-079/ip.err new file mode 100644 index 000000000..f55fc69c2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-079/ip.err @@ -0,0 +1,7 @@ +Usage: ct clear + ct commit [force] [zone ZONE] [mark MASKED_MARK] [label MASKED_LABEL] [nat NAT_SPEC] [helper HELPER] + ct [nat] [zone ZONE] +Where: ZONE is the conntrack zone table number + NAT_SPEC is {src|dst} addr addr1[-addr2] [port port1[-port2]] + HELPER is family-proto-name such as ipv4-tcp-ftp + diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-079/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-079/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-079/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-079/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-079/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-079/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-079/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-079/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-080/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-080/cmd.json new file mode 100644 index 000000000..7fa0ce169 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-080/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w279", + "json": "0", + "words": "actions add action ct commit nat src addr bogus index 1" + }, + "cmd": "tc actions add action ct commit nat src addr bogus index 1", + "desc": "negative: opt=plain cmd=ng:w279:actions_add_action_ct_commit_nat_src_addr_bogus_index_1: get_addr's message, exit(1) (W279)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 1, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-080", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 1, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-080/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-080/ip.err new file mode 100644 index 000000000..ee5fb0964 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-080/ip.err @@ -0,0 +1 @@ +Error: any valid address is expected rather than "bogus". diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-080/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-080/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-080/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-080/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-080/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-080/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-080/ip.rc new file mode 100644 index 000000000..d00491fd7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-080/ip.rc @@ -0,0 +1 @@ +1 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-081/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-081/cmd.json new file mode 100644 index 000000000..f8b2792a7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-081/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w279-fam", + "json": "0", + "words": "actions add action ct commit nat src addr 10.0.0.1-2001:db8::1 index 1" + }, + "cmd": "tc actions add action ct commit nat src addr 10.0.0.1-2001:db8::1 index 1", + "desc": "negative: opt=plain cmd=ng:w279-fam:actions_add_action_ct_commit_nat_src_addr_10.0.0.1-2001:db8::1_index_1: the second address takes the first's family (W279)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 1, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-081", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 1, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-081/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-081/ip.err new file mode 100644 index 000000000..e3d5e845b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-081/ip.err @@ -0,0 +1 @@ +Error: inet address is expected rather than "2001:db8::1". diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-081/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-081/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-081/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-081/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-081/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-081/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-081/ip.rc new file mode 100644 index 000000000..d00491fd7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-081/ip.rc @@ -0,0 +1 @@ +1 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-082/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-082/cmd.json new file mode 100644 index 000000000..b91c095be --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-082/cmd.json @@ -0,0 +1,99 @@ +{ + "axes": { + "fix": "w281-any", + "json": "0", + "words": "actions add action ct commit nat src addr any index 1" + }, + "cmd": "tc actions add action ct commit nat src addr any index 1", + "desc": "negative: opt=plain cmd=ng:w281-any:actions_add_action_ct_commit_nat_src_addr_any_index_1: a 0-byte IPV6_MIN (W281)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "errno": "ERANGE", + "rc": 255, + "refused_by": "kernel" + }, + "id": "tcact2write/ng-082", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-082/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-082/ip.err new file mode 100644 index 000000000..9cbd0bd07 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-082/ip.err @@ -0,0 +1,2 @@ +Error: binary attribute size out of range. +We have an error talking to the kernel diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-082/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-082/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-082/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-082/ip.pcap new file mode 100644 index 000000000..c42096412 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-082/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-082/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-082/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-082/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-083/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-083/cmd.json new file mode 100644 index 000000000..b8d500caf --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-083/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w282", + "json": "0", + "words": "actions add action ct commit nat src addr 10.0.0.1 port 80- index 1" + }, + "cmd": "tc actions add action ct commit nat src addr 10.0.0.1 port 80- index 1", + "desc": "negative: opt=plain cmd=ng:w282:actions_add_action_ct_commit_nat_src_addr_10.0.0.1_port_80-_index_1: ct: Illegal nat port range (W282)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-083", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-083/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-083/ip.err new file mode 100644 index 000000000..90a6ab2e7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-083/ip.err @@ -0,0 +1,4 @@ +ct: Illegal nat port range +bad action parsing +parse_action: bad value (10:ct)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-083/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-083/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-083/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-083/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-083/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-083/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-083/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-083/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-084/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-084/cmd.json new file mode 100644 index 000000000..cc7645199 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-084/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w282-hex", + "json": "0", + "words": "actions add action ct commit nat src addr 10.0.0.1 port 0x50 index 1" + }, + "cmd": "tc actions add action ct commit nat src addr 10.0.0.1 port 0x50 index 1", + "desc": "negative: opt=plain cmd=ng:w282-hex:actions_add_action_ct_commit_nat_src_addr_10.0.0.1_port_0x50_index_1: ports are base 10 (W282)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-084", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-084/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-084/ip.err new file mode 100644 index 000000000..90a6ab2e7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-084/ip.err @@ -0,0 +1,4 @@ +ct: Illegal nat port range +bad action parsing +parse_action: bad value (10:ct)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-084/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-084/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-084/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-084/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-084/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-084/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-084/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-084/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-085/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-085/cmd.json new file mode 100644 index 000000000..e1c8023de --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-085/cmd.json @@ -0,0 +1,99 @@ +{ + "axes": { + "fix": "w283", + "json": "0", + "words": "actions add action ct commit helper ipv4-udp-netbios-ns index 1" + }, + "cmd": "tc actions add action ct commit helper ipv4-udp-netbios-ns index 1", + "desc": "negative: opt=plain cmd=ng:w283:actions_add_action_ct_commit_helper_ipv4-udp-netbios-ns_index_1: %[^-] keeps 3 fields: netbios, no such helper (W283)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "errno": "EINVAL", + "rc": 255, + "refused_by": "kernel" + }, + "id": "tcact2write/ng-085", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-085/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-085/ip.err new file mode 100644 index 000000000..5f30eadde --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-085/ip.err @@ -0,0 +1,2 @@ +Error: act_ct: Failed to add helper. +We have an error talking to the kernel diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-085/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-085/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-085/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-085/ip.pcap new file mode 100644 index 000000000..bb9ee72f8 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-085/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-085/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-085/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-085/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-086/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-086/cmd.json new file mode 100644 index 000000000..d8c931f5d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-086/cmd.json @@ -0,0 +1,99 @@ +{ + "axes": { + "fix": "w283-long", + "json": "0", + "words": "actions add action ct commit helper ipv4-tcp-abcdefghijklmnopqrstuv index 1" + }, + "cmd": "tc actions add action ct commit helper ipv4-tcp-abcdefghijklmnopqrstuv index 1", + "desc": "negative: opt=plain cmd=ng:w283-long:actions_add_action_ct_commit_helper_ipv4-tcp-abcdefghijklmnopqrstuv_index_1: a 22-byte name, past the kernel's 16 (W283)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "errno": "ERANGE", + "rc": 255, + "refused_by": "kernel" + }, + "id": "tcact2write/ng-086", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-086/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-086/ip.err new file mode 100644 index 000000000..45252f20b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-086/ip.err @@ -0,0 +1,2 @@ +Error: Attribute failed policy validation. +We have an error talking to the kernel diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-086/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-086/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-086/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-086/ip.pcap new file mode 100644 index 000000000..3dc621c9f Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-086/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-086/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-086/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-086/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-087/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-087/cmd.json new file mode 100644 index 000000000..6aa92d094 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-087/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w284-hex", + "json": "0", + "words": "actions add action ct commit helper ipv4-0x6-ftp index 1" + }, + "cmd": "tc actions add action ct commit helper ipv4-0x6-ftp index 1", + "desc": "negative: opt=plain cmd=ng:w284-hex:actions_add_action_ct_commit_helper_ipv4-0x6-ftp_index_1: ct: Illegal \"helper\" (W284)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-087", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-087/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-087/ip.err new file mode 100644 index 000000000..f6b2838d6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-087/ip.err @@ -0,0 +1,4 @@ +ct: Illegal "helper" +bad action parsing +parse_action: bad value (6:ct)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-087/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-087/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-087/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-087/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-087/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-087/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-087/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-087/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-088/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-088/cmd.json new file mode 100644 index 000000000..87faf9e2d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-088/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w285", + "json": "0", + "words": "actions add action ct commit label 0123456789abcdef0123456789abcdef01 index 1" + }, + "cmd": "tc actions add action ct commit label 0123456789abcdef0123456789abcdef01 index 1", + "desc": "negative: opt=plain cmd=ng:w285:actions_add_action_ct_commit_label_0123456789abcdef0123456789abcdef01_index_1: label too long, exit(-1) (W285)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-088", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-088/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-088/ip.err new file mode 100644 index 000000000..53de5c4c6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-088/ip.err @@ -0,0 +1 @@ +Error: argument "0123456789abcdef0123456789abcdef01" is wrong: 34 Max allowed size 32 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-088/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-088/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-088/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-088/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-088/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-088/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-088/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-088/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-089/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-089/cmd.json new file mode 100644 index 000000000..38f726034 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-089/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w285-mask", + "json": "0", + "words": "actions add action ct commit label 01/0123456789abcdef0123456789abcdef01 index 1" + }, + "cmd": "tc actions add action ct commit label 01/0123456789abcdef0123456789abcdef01 index 1", + "desc": "negative: opt=plain cmd=ng:w285-mask:actions_add_action_ct_commit_label_01/0123456789abcdef0123456789abcdef01_index_1: mask too long, named as the label (W285)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-089", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-089/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-089/ip.err new file mode 100644 index 000000000..0b61be673 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-089/ip.err @@ -0,0 +1 @@ +Error: argument "01" is wrong: 2 Max allowed size 32 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-089/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-089/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-089/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-089/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-089/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-089/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-089/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-089/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-090/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-090/cmd.json new file mode 100644 index 000000000..5bfe96275 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-090/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w286", + "json": "0", + "words": "actions add action ct commit label zz index 1" + }, + "cmd": "tc actions add action ct commit label zz index 1", + "desc": "negative: opt=plain cmd=ng:w286:actions_add_action_ct_commit_label_zz_index_1: ct: labels must be a hex string, then a blank line (W286)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-090", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-090/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-090/ip.err new file mode 100644 index 000000000..f8b60129b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-090/ip.err @@ -0,0 +1,2 @@ +Error: argument "zz" is wrong: ct: labels must be a hex string + diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-090/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-090/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-090/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-090/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-090/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-090/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-090/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-090/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-091/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-091/cmd.json new file mode 100644 index 000000000..21e44f3ef --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-091/cmd.json @@ -0,0 +1,99 @@ +{ + "axes": { + "fix": "w288", + "json": "0", + "words": "actions add action ct commit pipe index 5" + }, + "cmd": "tc actions add action ct commit pipe index 5", + "desc": "negative: opt=plain cmd=ng:w288:actions_add_action_ct_commit_pipe_index_5: index after control is the next kind: Failed to load TC action module (W288)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "errno": "ENOENT", + "rc": 255, + "refused_by": "kernel" + }, + "id": "tcact2write/ng-091", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-091/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-091/ip.err new file mode 100644 index 000000000..cab5603d4 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-091/ip.err @@ -0,0 +1,2 @@ +Error: Failed to load TC action module. +We have an error talking to the kernel diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-091/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-091/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-091/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-091/ip.pcap new file mode 100644 index 000000000..fa26a66ec Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-091/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-091/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-091/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-091/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-092/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-092/cmd.json new file mode 100644 index 000000000..33ca035aa --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-092/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w290-mask", + "json": "0", + "words": "actions add action ct zone 5/1 index 1" + }, + "cmd": "tc actions add action ct zone 5/1 index 1", + "desc": "negative: opt=plain cmd=ng:w290-mask:actions_add_action_ct_zone_5/1_index_1: zone takes no mask: ct: Illegal \"zone\" (W290)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-092", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-092/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-092/ip.err new file mode 100644 index 000000000..842e83b11 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-092/ip.err @@ -0,0 +1,4 @@ +ct: Illegal "zone" +bad action parsing +parse_action: bad value (5:ct)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-092/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-092/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-092/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-092/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-092/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-092/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-092/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-092/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-093/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-093/cmd.json new file mode 100644 index 000000000..ab613acc6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-093/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w292-h", + "json": "0", + "words": "actions add action ct h" + }, + "cmd": "tc actions add action ct h", + "desc": "negative: opt=plain cmd=ng:w292-h:actions_add_action_ct_h: h is help: the usage, exit(-1) (W292)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-093", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-093/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-093/ip.err new file mode 100644 index 000000000..f55fc69c2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-093/ip.err @@ -0,0 +1,7 @@ +Usage: ct clear + ct commit [force] [zone ZONE] [mark MASKED_MARK] [label MASKED_LABEL] [nat NAT_SPEC] [helper HELPER] + ct [nat] [zone ZONE] +Where: ZONE is the conntrack zone table number + NAT_SPEC is {src|dst} addr addr1[-addr2] [port port1[-port2]] + HELPER is family-proto-name such as ipv4-tcp-ftp + diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-093/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-093/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-093/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-093/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-093/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-093/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-093/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-093/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-094/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-094/cmd.json new file mode 100644 index 000000000..d40dc01c4 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-094/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "ct-clear", + "json": "0", + "words": "actions add action ct clear commit index 1" + }, + "cmd": "tc actions add action ct clear commit index 1", + "desc": "negative: opt=plain cmd=ng:ct-clear:actions_add_action_ct_clear_commit_index_1: ct: clear can only be used alone", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-094", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-094/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-094/ip.err new file mode 100644 index 000000000..de43a3cd2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-094/ip.err @@ -0,0 +1,4 @@ +ct: clear can only be used alone +bad action parsing +parse_action: bad value (5:ct)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-094/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-094/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-094/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-094/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-094/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-094/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-094/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-094/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-095/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-095/cmd.json new file mode 100644 index 000000000..91ca76579 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-095/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "ct-both", + "json": "0", + "words": "actions add action ct commit nat src addr 1.1.1.1 nat dst addr 2.2.2.2 index 1" + }, + "cmd": "tc actions add action ct commit nat src addr 1.1.1.1 nat dst addr 2.2.2.2 index 1", + "desc": "negative: opt=plain cmd=ng:ct-both:actions_add_action_ct_commit_nat_src_addr_1.1.1.1_nat_dst_addr_2.2.2.2_index_1: ct: src and dst nat can't be used together", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-095", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-095/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-095/ip.err new file mode 100644 index 000000000..414db711f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-095/ip.err @@ -0,0 +1,4 @@ +ct: src and dst nat can't be used together +bad action parsing +parse_action: bad value (12:ct)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-095/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-095/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-095/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-095/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-095/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-095/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-095/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-095/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-096/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-096/cmd.json new file mode 100644 index 000000000..6537ce028 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-096/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "ct-natonly", + "json": "0", + "words": "actions add action ct commit nat index 1" + }, + "cmd": "tc actions add action ct commit nat index 1", + "desc": "negative: opt=plain cmd=ng:ct-natonly:actions_add_action_ct_commit_nat_index_1: ct: commit and nat must set src or dst", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-096", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-096/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-096/ip.err new file mode 100644 index 000000000..f6d2c15cf --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-096/ip.err @@ -0,0 +1,4 @@ +ct: commit and nat must set src or dst +bad action parsing +parse_action: bad value (5:ct)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-096/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-096/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-096/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-096/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-096/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-096/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-096/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-096/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-097/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-097/cmd.json new file mode 100644 index 000000000..a82e75853 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-097/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "ct-nocommit", + "json": "0", + "words": "actions add action ct nat src addr 1.1.1.1 index 1" + }, + "cmd": "tc actions add action ct nat src addr 1.1.1.1 index 1", + "desc": "negative: opt=plain cmd=ng:ct-nocommit:actions_add_action_ct_nat_src_addr_1.1.1.1_index_1: ct: src or dst is only valid if commit is set", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-097", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-097/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-097/ip.err new file mode 100644 index 000000000..d5617f5b8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-097/ip.err @@ -0,0 +1,4 @@ +ct: src or dst is only valid if commit is set +bad action parsing +parse_action: bad value (7:ct)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-097/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-097/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-097/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-097/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-097/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-097/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-097/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-097/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-098/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-098/cmd.json new file mode 100644 index 000000000..08f294634 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-098/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "ct-mark", + "json": "0", + "words": "actions add action ct commit mark zz index 1" + }, + "cmd": "tc actions add action ct commit mark zz index 1", + "desc": "negative: opt=plain cmd=ng:ct-mark:actions_add_action_ct_commit_mark_zz_index_1: ct: Illegal \"mark\"", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-098", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-098/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-098/ip.err new file mode 100644 index 000000000..b0a5b2573 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-098/ip.err @@ -0,0 +1,4 @@ +ct: Illegal "mark" +bad action parsing +parse_action: bad value (6:ct)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-098/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-098/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-098/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-098/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-098/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-098/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-098/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-098/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-099/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-099/cmd.json new file mode 100644 index 000000000..0fc7d61ba --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-099/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "ct-index", + "json": "0", + "words": "actions add action ct index 0x5" + }, + "cmd": "tc actions add action ct index 0x5", + "desc": "negative: opt=plain cmd=ng:ct-index:actions_add_action_ct_index_0x5: ct: Illegal \"index\"", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-099", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-099/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-099/ip.err new file mode 100644 index 000000000..03ce09c2b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-099/ip.err @@ -0,0 +1,4 @@ +ct: Illegal "index" +bad action parsing +parse_action: bad value (3:ct)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-099/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-099/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-099/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-099/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-099/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-099/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-099/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-099/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-100/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-100/cmd.json new file mode 100644 index 000000000..a2e5e420b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-100/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "ct-helper", + "json": "0", + "words": "actions add action ct commit helper ipv5-tcp-ftp index 1" + }, + "cmd": "tc actions add action ct commit helper ipv5-tcp-ftp index 1", + "desc": "negative: opt=plain cmd=ng:ct-helper:actions_add_action_ct_commit_helper_ipv5-tcp-ftp_index_1: an unknown family", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-100", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-100/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-100/ip.err new file mode 100644 index 000000000..f6b2838d6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-100/ip.err @@ -0,0 +1,4 @@ +ct: Illegal "helper" +bad action parsing +parse_action: bad value (6:ct)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-100/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-100/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-100/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-100/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-100/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-100/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-100/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-100/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-101/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-101/cmd.json new file mode 100644 index 000000000..188862e8b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-101/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "ct-help", + "json": "0", + "words": "actions add action ct help" + }, + "cmd": "tc actions add action ct help", + "desc": "negative: opt=plain cmd=ng:ct-help:actions_add_action_ct_help: the usage, exit(-1)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-101", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-101/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-101/ip.err new file mode 100644 index 000000000..f55fc69c2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-101/ip.err @@ -0,0 +1,7 @@ +Usage: ct clear + ct commit [force] [zone ZONE] [mark MASKED_MARK] [label MASKED_LABEL] [nat NAT_SPEC] [helper HELPER] + ct [nat] [zone ZONE] +Where: ZONE is the conntrack zone table number + NAT_SPEC is {src|dst} addr addr1[-addr2] [port port1[-port2]] + HELPER is family-proto-name such as ipv4-tcp-ftp + diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-101/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-101/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-101/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-101/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-101/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-101/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-101/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-101/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-102/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-102/cmd.json new file mode 100644 index 000000000..04c9ac7a0 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-102/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w191-gate", + "json": "0", + "words": "actions add action gate" + }, + "cmd": "tc actions add action gate", + "desc": "negative: opt=plain cmd=ng:w191-gate:actions_add_action_gate: a bare gate: NEXT_ARG", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-102", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-102/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-102/ip.err new file mode 100644 index 000000000..f7d546177 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-102/ip.err @@ -0,0 +1 @@ +Command line is not complete. Try option "help" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-102/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-102/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-102/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-102/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-102/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-102/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-102/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-102/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-103/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-103/cmd.json new file mode 100644 index 000000000..60f595a7a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-103/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w295-big", + "json": "0", + "words": "actions add action gate sched-entry open 1ms 1 2147483648 index 1" + }, + "cmd": "tc actions add action gate sched-entry open 1ms 1 2147483648 index 1", + "desc": "negative: opt=plain cmd=ng:w295-big:actions_add_action_gate_sched-entry_open_1ms_1_2147483648_index_1: \"maxoctets\" is too large", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-103", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-103/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-103/ip.err new file mode 100644 index 000000000..6ac967cd7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-103/ip.err @@ -0,0 +1,4 @@ +"maxoctets" is too large +bad action parsing +parse_action: bad value (8:gate)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-103/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-103/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-103/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-103/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-103/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-103/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-103/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-103/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-104/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-104/cmd.json new file mode 100644 index 000000000..fc582028c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-104/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w296-index", + "json": "0", + "words": "actions add action gate sched-entry open 1000000 -1 -1 index 0x1" + }, + "cmd": "tc actions add action gate sched-entry open 1000000 -1 -1 index 0x1", + "desc": "negative: opt=plain cmd=ng:w296-index:actions_add_action_gate_sched-entry_open_1000000_-1_-1_index_0x1: index is base 10: invarg, exit(-1) (W296)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-104", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-104/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-104/ip.err new file mode 100644 index 000000000..278860bbf --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-104/ip.err @@ -0,0 +1 @@ +Error: argument "0x1" is wrong: index diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-104/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-104/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-104/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-104/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-104/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-104/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-104/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-104/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-105/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-105/cmd.json new file mode 100644 index 000000000..2f4ed8c97 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-105/cmd.json @@ -0,0 +1,99 @@ +{ + "axes": { + "fix": "w297-half", + "json": "0", + "words": "actions add action gate sched-entry open 0.5 -1 -1 index 1" + }, + "cmd": "tc actions add action gate sched-entry open 0.5 -1 -1 index 1", + "desc": "negative: opt=plain cmd=ng:w297-half:actions_add_action_gate_sched-entry_open_0.5_-1_-1_index_1: interval 0.5 is 0 (W297)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "errno": "EINVAL", + "rc": 255, + "refused_by": "kernel" + }, + "id": "tcact2write/ng-105", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-105/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-105/ip.err new file mode 100644 index 000000000..eae9b545c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-105/ip.err @@ -0,0 +1,2 @@ +Error: Invalid interval for schedule entry. +We have an error talking to the kernel diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-105/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-105/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-105/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-105/ip.pcap new file mode 100644 index 000000000..83a9ef4e2 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-105/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-105/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-105/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-105/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-106/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-106/cmd.json new file mode 100644 index 000000000..b6d3daea2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-106/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w298-ms", + "json": "0", + "words": "actions add action gate base-time -1ms sched-entry open 1000000 -1 -1 index 1" + }, + "cmd": "tc actions add action gate base-time -1ms sched-entry open 1000000 -1 -1 index 1", + "desc": "negative: opt=plain cmd=ng:w298-ms:actions_add_action_gate_base-time_-1ms_sched-entry_open_1000000_-1_-1_index_1: a negative time with a unit: invarg (W298)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-106", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-106/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-106/ip.err new file mode 100644 index 000000000..48ebc82dc --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-106/ip.err @@ -0,0 +1 @@ +Error: argument "-1ms" is wrong: base-time diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-106/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-106/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-106/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-106/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-106/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-106/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-106/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-106/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-107/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-107/cmd.json new file mode 100644 index 000000000..a13c1e424 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-107/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w300", + "json": "0", + "words": "actions add action gate sched-entry opn 1ms index 1" + }, + "cmd": "tc actions add action gate sched-entry opn 1ms index 1", + "desc": "negative: opt=plain cmd=ng:w300:actions_add_action_gate_sched-entry_opn_1ms_index_1: the entry usage and \"sched-entry\" is incomplete (W300)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-107", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-107/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-107/ip.err new file mode 100644 index 000000000..1a66e4b59 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-107/ip.err @@ -0,0 +1,5 @@ +Usage: sched-entry [ ] +"sched-entry" is incomplete +bad action parsing +parse_action: bad value (6:gate)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-107/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-107/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-107/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-107/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-107/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-107/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-107/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-107/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-108/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-108/cmd.json new file mode 100644 index 000000000..0f1539cae --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-108/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w300-end", + "json": "0", + "words": "actions add action gate sched-entry" + }, + "cmd": "tc actions add action gate sched-entry", + "desc": "negative: opt=plain cmd=ng:w300-end:actions_add_action_gate_sched-entry: sched-entry at the end (W300)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-108", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-108/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-108/ip.err new file mode 100644 index 000000000..2712ba77e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-108/ip.err @@ -0,0 +1,5 @@ +Usage: sched-entry [ ] +"sched-entry" is incomplete +bad action parsing +parse_action: bad value (2:gate)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-108/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-108/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-108/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-108/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-108/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-108/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-108/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-108/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-109/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-109/cmd.json new file mode 100644 index 000000000..1894deeb5 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-109/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w300-state", + "json": "0", + "words": "actions add action gate sched-entry open" + }, + "cmd": "tc actions add action gate sched-entry open", + "desc": "negative: opt=plain cmd=ng:w300-state:actions_add_action_gate_sched-entry_open: no interval (W300)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-109", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-109/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-109/ip.err new file mode 100644 index 000000000..cee4881f4 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-109/ip.err @@ -0,0 +1,5 @@ +Usage: sched-entry [ ] +"sched-entry" is incomplete +bad action parsing +parse_action: bad value (3:gate)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-109/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-109/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-109/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-109/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-109/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-109/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-109/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-109/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-110/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-110/cmd.json new file mode 100644 index 000000000..3b7e33fe4 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-110/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w300-int", + "json": "0", + "words": "actions add action gate sched-entry open zz index 1" + }, + "cmd": "tc actions add action gate sched-entry open zz index 1", + "desc": "negative: opt=plain cmd=ng:w300-int:actions_add_action_gate_sched-entry_open_zz_index_1: a bad interval (W300)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-110", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-110/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-110/ip.err new file mode 100644 index 000000000..1a66e4b59 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-110/ip.err @@ -0,0 +1,5 @@ +Usage: sched-entry [ ] +"sched-entry" is incomplete +bad action parsing +parse_action: bad value (6:gate)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-110/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-110/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-110/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-110/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-110/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-110/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-110/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-110/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-111/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-111/cmd.json new file mode 100644 index 000000000..f7ce82961 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-111/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w301", + "json": "0", + "words": "actions add action gate help" + }, + "cmd": "tc actions add action gate help", + "desc": "negative: opt=plain cmd=ng:w301:actions_add_action_gate_help: the usage, exit(-1) (W301)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-111", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-111/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-111/ip.err new file mode 100644 index 000000000..9c2406677 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-111/ip.err @@ -0,0 +1,20 @@ +Usage: gate [ priority PRIO-SPEC ] [ base-time BASE-TIME ] + [ cycle-time CYCLE-TIME ] + [ cycle-time-ext CYCLE-TIME-EXT ] + [ clockid CLOCKID ] [flags FLAGS] + [ sched-entry GATE0 INTERVAL [ INTERNAL-PRIO-VALUE MAX-OCTETS ] ] + [ sched-entry GATE1 INTERVAL [ INTERNAL-PRIO-VALUE MAX-OCTETS ] ] + ...... + [ sched-entry GATEn INTERVAL [ INTERNAL-PRIO-VALUE MAX-OCTETS ] ] + [ CONTROL ] + GATEn := open | close + INTERVAL : nanoseconds period of gate slot + INTERNAL-PRIO-VALUE : internal priority decide which + rx queue number direct to. + default to be -1 which means wildcard. + MAX-OCTETS : maximum number of MSDU octets that are + permitted to pas the gate during the + specified TimeInterval. + default to be -1 which means wildcard. + CONTROL := pipe | drop | continue | pass | + goto chain diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-111/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-111/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-111/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-111/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-111/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-111/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-111/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-111/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-112/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-112/cmd.json new file mode 100644 index 000000000..daafc35c7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-112/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w301-prio", + "json": "0", + "words": "actions add action gate priority zz sched-entry open 1ms index 1" + }, + "cmd": "tc actions add action gate priority zz sched-entry open 1ms index 1", + "desc": "negative: opt=plain cmd=ng:w301-prio:actions_add_action_gate_priority_zz_sched-entry_open_1ms_index_1: invarg, exit(-1) (W301)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-112", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-112/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-112/ip.err new file mode 100644 index 000000000..cd30dd74a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-112/ip.err @@ -0,0 +1 @@ +Error: argument "zz" is wrong: priority diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-112/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-112/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-112/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-112/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-112/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-112/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-112/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-112/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-113/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-113/cmd.json new file mode 100644 index 000000000..fea4e13fc --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-113/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w302-h", + "json": "0", + "words": "actions add action gate h" + }, + "cmd": "tc actions add action gate h", + "desc": "negative: opt=plain cmd=ng:w302-h:actions_add_action_gate_h: h is help (W302)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-113", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-113/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-113/ip.err new file mode 100644 index 000000000..9c2406677 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-113/ip.err @@ -0,0 +1,20 @@ +Usage: gate [ priority PRIO-SPEC ] [ base-time BASE-TIME ] + [ cycle-time CYCLE-TIME ] + [ cycle-time-ext CYCLE-TIME-EXT ] + [ clockid CLOCKID ] [flags FLAGS] + [ sched-entry GATE0 INTERVAL [ INTERNAL-PRIO-VALUE MAX-OCTETS ] ] + [ sched-entry GATE1 INTERVAL [ INTERNAL-PRIO-VALUE MAX-OCTETS ] ] + ...... + [ sched-entry GATEn INTERVAL [ INTERNAL-PRIO-VALUE MAX-OCTETS ] ] + [ CONTROL ] + GATEn := open | close + INTERVAL : nanoseconds period of gate slot + INTERNAL-PRIO-VALUE : internal priority decide which + rx queue number direct to. + default to be -1 which means wildcard. + MAX-OCTETS : maximum number of MSDU octets that are + permitted to pas the gate during the + specified TimeInterval. + default to be -1 which means wildcard. + CONTROL := pipe | drop | continue | pass | + goto chain diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-113/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-113/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-113/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-113/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-113/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-113/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-113/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-113/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-114/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-114/cmd.json new file mode 100644 index 000000000..ef998176a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-114/cmd.json @@ -0,0 +1,99 @@ +{ + "axes": { + "fix": "w303", + "json": "0", + "words": "actions add action gate sched-entry open 1000000 -1 -1 pipe index 5" + }, + "cmd": "tc actions add action gate sched-entry open 1000000 -1 -1 pipe index 5", + "desc": "negative: opt=plain cmd=ng:w303:actions_add_action_gate_sched-entry_open_1000000_-1_-1_pipe_index_5: index after control is the next kind: Failed to load TC action module (W303)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "errno": "ENOENT", + "rc": 255, + "refused_by": "kernel" + }, + "id": "tcact2write/ng-114", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-114/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-114/ip.err new file mode 100644 index 000000000..cab5603d4 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-114/ip.err @@ -0,0 +1,2 @@ +Error: Failed to load TC action module. +We have an error talking to the kernel diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-114/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-114/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-114/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-114/ip.pcap new file mode 100644 index 000000000..3889c50e9 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-114/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-114/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-114/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-114/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-115/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-115/cmd.json new file mode 100644 index 000000000..ae27211ca --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-115/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w303-goto", + "json": "0", + "words": "actions add action gate sched-entry open 1000000 -1 -1 goto chain x" + }, + "cmd": "tc actions add action gate sched-entry open 1000000 -1 -1 goto chain x", + "desc": "negative: opt=plain cmd=ng:w303-goto:actions_add_action_gate_sched-entry_open_1000000_-1_-1_goto_chain_x: Illegal \"chain index\" twice (W303)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-115", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-115/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-115/ip.err new file mode 100644 index 000000000..f77eaea2c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-115/ip.err @@ -0,0 +1,11 @@ +Illegal "chain index" +Illegal "chain index" +Usage: ... gact [RAND] [INDEX] +Where: ACTION := reclassify | drop | continue | pass | pipe | + goto chain | jump + RAND := random + RANDTYPE := netrand | determ + VAL : = value not exceeding 10000 + JUMP_COUNT := Absolute jump from start of action list + INDEX := index value used + diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-115/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-115/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-115/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-115/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-115/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-115/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-115/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-115/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-116/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-116/cmd.json new file mode 100644 index 000000000..2c22ac8e9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-116/cmd.json @@ -0,0 +1,99 @@ +{ + "axes": { + "fix": "w305", + "json": "0", + "words": "actions add action gate index 5" + }, + "cmd": "tc actions add action gate index 5", + "desc": "negative: opt=plain cmd=ng:w305:actions_add_action_gate_index_5: an empty ENTRY_LIST on create (W305)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "errno": "EINVAL", + "rc": 255, + "refused_by": "kernel" + }, + "id": "tcact2write/ng-116", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-116/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-116/ip.err new file mode 100644 index 000000000..e5e2acb2e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-116/ip.err @@ -0,0 +1,2 @@ +Error: The entry list is empty. +We have an error talking to the kernel diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-116/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-116/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-116/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-116/ip.pcap new file mode 100644 index 000000000..3b913cca9 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-116/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-116/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-116/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-116/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-117/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-117/cmd.json new file mode 100644 index 000000000..b9093ac78 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-117/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "gate-big", + "json": "0", + "words": "actions add action gate sched-entry open 4294967296 -1 -1 index 1" + }, + "cmd": "tc actions add action gate sched-entry open 4294967296 -1 -1 index 1", + "desc": "negative: opt=plain cmd=ng:gate-big:actions_add_action_gate_sched-entry_open_4294967296_-1_-1_index_1: \"interval\" is too large", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-117", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-117/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-117/ip.err new file mode 100644 index 000000000..dde52a378 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-117/ip.err @@ -0,0 +1,4 @@ +"interval" is too large +bad action parsing +parse_action: bad value (8:gate)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-117/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-117/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-117/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-117/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-117/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-117/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-117/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-117/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-118/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-118/cmd.json new file mode 100644 index 000000000..f7f535ff9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-118/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "gate-clk", + "json": "0", + "words": "actions add action gate clockid FOO sched-entry open 1ms index 1" + }, + "cmd": "tc actions add action gate clockid FOO sched-entry open 1ms index 1", + "desc": "negative: opt=plain cmd=ng:gate-clk:actions_add_action_gate_clockid_FOO_sched-entry_open_1ms_index_1: an unknown clockid", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-118", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-118/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-118/ip.err new file mode 100644 index 000000000..cb9028735 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-118/ip.err @@ -0,0 +1 @@ +Error: argument "FOO" is wrong: clockid diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-118/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-118/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-118/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-118/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-118/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-118/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-118/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-118/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-119/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-119/cmd.json new file mode 100644 index 000000000..778e03c01 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-119/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "gate-none", + "json": "0", + "words": "actions add action gate priority 2" + }, + "cmd": "tc actions add action gate priority 2", + "desc": "negative: opt=plain cmd=ng:gate-none:actions_add_action_gate_priority_2: gate: must add at least one entry", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-119", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-119/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-119/ip.err new file mode 100644 index 000000000..67551b9a6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-119/ip.err @@ -0,0 +1,4 @@ +gate: must add at least one entry +bad action parsing +parse_action: bad value (3:gate)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-119/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-119/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-119/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-119/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-119/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-119/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-119/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-119/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-120/bpf.txt b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-120/bpf.txt new file mode 100644 index 000000000..e7c284c1e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-120/bpf.txt @@ -0,0 +1,2040 @@ +2039 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-120/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-120/cmd.json new file mode 100644 index 000000000..71ae00558 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-120/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w307-2039", + "json": "0", + "words": "actions add action bpf bytecode-file bpf.txt index 1" + }, + "cmd": "tc actions add action bpf bytecode-file bpf.txt index 1", + "desc": "negative: opt=plain cmd=ng:w307-2039:actions_add_action_bpf_bytecode-file_bpf.txt_index_1: 2039 instructions: PARMS past 16384, addattr_l ERROR (W307)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "errno": "EINVAL", + "rc": 255, + "refused_by": "kernel" + }, + "id": "tcact2write/ng-120", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "{ printf '%s\\n' 2039; i=0; while [ $i -lt 2039 ]; do printf '6 0 0 0\\n'; i=$((i+1)); done; } > bpf.txt" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "{ printf '%s\\n' 2039; i=0; while [ $i -lt 2039 ]; do printf '6 0 0 0\\n'; i=$((i+1)); done; } > bpf.txt", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-120/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-120/ip.err new file mode 100644 index 000000000..1acf19270 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-120/ip.err @@ -0,0 +1,3 @@ +addattr_l ERROR: message exceeded bound of 16384 +RTNETLINK answers: Invalid argument +We have an error talking to the kernel diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-120/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-120/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-120/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-120/ip.pcap new file mode 100644 index 000000000..fe14215bc Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-120/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-120/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-120/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-120/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-121/bpf.txt b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-121/bpf.txt new file mode 100644 index 000000000..62b892e9f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-121/bpf.txt @@ -0,0 +1,2042 @@ +2041 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-121/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-121/cmd.json new file mode 100644 index 000000000..f36f1e384 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-121/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w307-2041", + "json": "0", + "words": "actions add action bpf bytecode-file bpf.txt index 1" + }, + "cmd": "tc actions add action bpf bytecode-file bpf.txt index 1", + "desc": "negative: opt=plain cmd=ng:w307-2041:actions_add_action_bpf_bytecode-file_bpf.txt_index_1: 2041 instructions: PARMS past 16384 (W307)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "errno": "EINVAL", + "rc": 255, + "refused_by": "kernel" + }, + "id": "tcact2write/ng-121", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "{ printf '%s\\n' 2041; i=0; while [ $i -lt 2041 ]; do printf '6 0 0 0\\n'; i=$((i+1)); done; } > bpf.txt" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "{ printf '%s\\n' 2041; i=0; while [ $i -lt 2041 ]; do printf '6 0 0 0\\n'; i=$((i+1)); done; } > bpf.txt", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-121/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-121/ip.err new file mode 100644 index 000000000..1acf19270 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-121/ip.err @@ -0,0 +1,3 @@ +addattr_l ERROR: message exceeded bound of 16384 +RTNETLINK answers: Invalid argument +We have an error talking to the kernel diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-121/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-121/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-121/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-121/ip.pcap new file mode 100644 index 000000000..21940ddd1 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-121/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-121/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-121/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-121/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-122/bpf.txt b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-122/bpf.txt new file mode 100644 index 000000000..cf4b8617d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-122/bpf.txt @@ -0,0 +1,2043 @@ +2042 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-122/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-122/cmd.json new file mode 100644 index 000000000..b0cfa3caa --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-122/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "fix": "w307-2042", + "json": "0", + "words": "actions add action bpf bytecode-file bpf.txt index 1" + }, + "cmd": "tc actions add action bpf bytecode-file bpf.txt index 1", + "desc": "negative: opt=plain cmd=ng:w307-2042:actions_add_action_bpf_bytecode-file_bpf.txt_index_1: 2042: OPS_LEN with no OPS (W307)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "errno": "EINVAL", + "rc": 255, + "refused_by": "kernel" + }, + "id": "tcact2write/ng-122", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "{ printf '%s\\n' 2042; i=0; while [ $i -lt 2042 ]; do printf '6 0 0 0\\n'; i=$((i+1)); done; } > bpf.txt" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "{ printf '%s\\n' 2042; i=0; while [ $i -lt 2042 ]; do printf '6 0 0 0\\n'; i=$((i+1)); done; } > bpf.txt", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-122/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-122/ip.err new file mode 100644 index 000000000..1acf19270 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-122/ip.err @@ -0,0 +1,3 @@ +addattr_l ERROR: message exceeded bound of 16384 +RTNETLINK answers: Invalid argument +We have an error talking to the kernel diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-122/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-122/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-122/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-122/ip.pcap new file mode 100644 index 000000000..ca556501a Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-122/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-122/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-122/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-122/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-123/bpf.txt b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-123/bpf.txt new file mode 100644 index 000000000..ea242299d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-123/bpf.txt @@ -0,0 +1,4098 @@ +4097 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 +6 0 0 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-123/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-123/cmd.json new file mode 100644 index 000000000..712b92bcb --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-123/cmd.json @@ -0,0 +1,103 @@ +{ + "axes": { + "fix": "w307-4097", + "json": "0", + "words": "actions add action bpf bytecode-file bpf.txt index 1" + }, + "cmd": "tc actions add action bpf bytecode-file bpf.txt index 1", + "desc": "negative: opt=plain cmd=ng:w307-4097:actions_add_action_bpf_bytecode-file_bpf.txt_index_1: past BPF_MAXINSNS: no message (W307)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-123", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "{ printf '%s\\n' 4097; i=0; while [ $i -lt 4097 ]; do printf '6 0 0 0\\n'; i=$((i+1)); done; } > bpf.txt" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "{ printf '%s\\n' 4097; i=0; while [ $i -lt 4097 ]; do printf '6 0 0 0\\n'; i=$((i+1)); done; } > bpf.txt", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-123/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-123/ip.err new file mode 100644 index 000000000..2783994cd --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-123/ip.err @@ -0,0 +1,3 @@ +bad action parsing +parse_action: bad value (5:bpf)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-123/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-123/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-123/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-123/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-123/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-123/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-123/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-123/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-124/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-124/cmd.json new file mode 100644 index 000000000..d95689501 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-124/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w308-space", + "json": "0", + "words": "actions add action bpf bytecode '4 ,6 0 0 0' index 1" + }, + "cmd": "tc actions add action bpf bytecode '4 ,6 0 0 0' index 1", + "desc": "negative: opt=plain cmd=ng:w308-space:actions_add_action_bpf_bytecode_'4_,6_0_0_0'_index_1: the header's separator: -EINVAL with no message (W308)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-124", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-124/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-124/ip.err new file mode 100644 index 000000000..2783994cd --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-124/ip.err @@ -0,0 +1,3 @@ +bad action parsing +parse_action: bad value (5:bpf)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-124/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-124/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-124/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-124/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-124/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-124/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-124/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-124/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-125/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-125/cmd.json new file mode 100644 index 000000000..c14b67050 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-125/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w308-zero", + "json": "0", + "words": "actions add action bpf bytecode '0,6 0 0 0' index 1" + }, + "cmd": "tc actions add action bpf bytecode '0,6 0 0 0' index 1", + "desc": "negative: opt=plain cmd=ng:w308-zero:actions_add_action_bpf_bytecode_'0,6_0_0_0'_index_1: a header of 0 (W308)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-125", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-125/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-125/ip.err new file mode 100644 index 000000000..2783994cd --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-125/ip.err @@ -0,0 +1,3 @@ +bad action parsing +parse_action: bad value (5:bpf)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-125/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-125/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-125/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-125/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-125/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-125/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-125/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-125/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-126/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-126/cmd.json new file mode 100644 index 000000000..d04e27b48 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-126/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w309-hex", + "json": "0", + "words": "actions add action bpf bytecode '1,0x6 0 0 0' index 1" + }, + "cmd": "tc actions add action bpf bytecode '1,0x6 0 0 0' index 1", + "desc": "negative: opt=plain cmd=ng:w309-hex:actions_add_action_bpf_bytecode_'1,0x6_0_0_0'_index_1: Error at instruction 0! (W309)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-126", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-126/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-126/ip.err new file mode 100644 index 000000000..a402ff42a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-126/ip.err @@ -0,0 +1,4 @@ +Error at instruction 0! +bad action parsing +parse_action: bad value (5:bpf)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-126/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-126/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-126/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-126/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-126/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-126/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-126/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-126/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-127/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-127/cmd.json new file mode 100644 index 000000000..22d3bcafe --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-127/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w310", + "json": "0", + "words": "actions add action bpf bytecode '1,6 0 0 0, ' index 1" + }, + "cmd": "tc actions add action bpf bytecode '1,6 0 0 0, ' index 1", + "desc": "negative: opt=plain cmd=ng:w310:actions_add_action_bpf_bytecode_'1,6_0_0_0,_'_index_1: Real program length exceeds encoded length parameter! (W310)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-127", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-127/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-127/ip.err new file mode 100644 index 000000000..3c5a57bd7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-127/ip.err @@ -0,0 +1,4 @@ +Real program length exceeds encoded length parameter! +bad action parsing +parse_action: bad value (5:bpf)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-127/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-127/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-127/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-127/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-127/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-127/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-127/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-127/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-128/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-128/cmd.json new file mode 100644 index 000000000..078171913 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-128/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w310-less", + "json": "0", + "words": "actions add action bpf bytecode '2,6 0 0 0' index 1" + }, + "cmd": "tc actions add action bpf bytecode '2,6 0 0 0' index 1", + "desc": "negative: opt=plain cmd=ng:w310-less:actions_add_action_bpf_bytecode_'2,6_0_0_0'_index_1: Parsed program length is less than encoded length parameter! (W310)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-128", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-128/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-128/ip.err new file mode 100644 index 000000000..62c0e53f7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-128/ip.err @@ -0,0 +1,4 @@ +Parsed program length is less than encoded length parameter! +bad action parsing +parse_action: bad value (5:bpf)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-128/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-128/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-128/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-128/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-128/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-128/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-128/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-128/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-129/bpf.txt b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-129/bpf.txt new file mode 100644 index 000000000..a0358b135 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-129/bpf.txt @@ -0,0 +1,3 @@ + +1 +6 0 0 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-129/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-129/cmd.json new file mode 100644 index 000000000..40c67caa0 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-129/cmd.json @@ -0,0 +1,103 @@ +{ + "axes": { + "fix": "w311-blank", + "json": "0", + "words": "actions add action bpf bytecode-file bpf.txt index 1" + }, + "cmd": "tc actions add action bpf bytecode-file bpf.txt index 1", + "desc": "negative: opt=plain cmd=ng:w311-blank:actions_add_action_bpf_bytecode-file_bpf.txt_index_1: a leading blank line: no message (W311)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-129", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "printf '%s' '\n1\n6 0 0 0\n' > bpf.txt" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "printf '%s' '\n1\n6 0 0 0\n' > bpf.txt", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-129/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-129/ip.err new file mode 100644 index 000000000..2783994cd --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-129/ip.err @@ -0,0 +1,3 @@ +bad action parsing +parse_action: bad value (5:bpf)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-129/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-129/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-129/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-129/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-129/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-129/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-129/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-129/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-130/bpf.txt b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-130/bpf.txt new file mode 100644 index 000000000..2f9b1c4c6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-130/bpf.txt @@ -0,0 +1,2 @@ +1 +6 0 0 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-130/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-130/cmd.json new file mode 100644 index 000000000..2452cf93a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-130/cmd.json @@ -0,0 +1,103 @@ +{ + "axes": { + "fix": "w311-crlf", + "json": "0", + "words": "actions add action bpf bytecode-file bpf.txt index 1" + }, + "cmd": "tc actions add action bpf bytecode-file bpf.txt index 1", + "desc": "negative: opt=plain cmd=ng:w311-crlf:actions_add_action_bpf_bytecode-file_bpf.txt_index_1: CRLF: no message (W311)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-130", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "printf '%s' '1\r\n6 0 0 0\r\n' > bpf.txt" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "printf '%s' '1\r\n6 0 0 0\r\n' > bpf.txt", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-130/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-130/ip.err new file mode 100644 index 000000000..2783994cd --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-130/ip.err @@ -0,0 +1,3 @@ +bad action parsing +parse_action: bad value (5:bpf)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-130/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-130/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-130/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-130/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-130/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-130/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-130/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-130/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-131/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-131/cmd.json new file mode 100644 index 000000000..1f72ee06d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-131/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w311-dir", + "json": "0", + "words": "actions add action bpf bytecode-file . index 1" + }, + "cmd": "tc actions add action bpf bytecode-file . index 1", + "desc": "negative: opt=plain cmd=ng:w311-dir:actions_add_action_bpf_bytecode-file_._index_1: a directory: -E2BIG with no message (W311)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-131", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-131/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-131/ip.err new file mode 100644 index 000000000..2783994cd --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-131/ip.err @@ -0,0 +1,3 @@ +bad action parsing +parse_action: bad value (5:bpf)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-131/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-131/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-131/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-131/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-131/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-131/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-131/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-131/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-132/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-132/cmd.json new file mode 100644 index 000000000..b7d30d54c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-132/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w311-none", + "json": "0", + "words": "actions add action bpf bytecode-file nosuch.txt index 1" + }, + "cmd": "tc actions add action bpf bytecode-file nosuch.txt index 1", + "desc": "negative: opt=plain cmd=ng:w311-none:actions_add_action_bpf_bytecode-file_nosuch.txt_index_1: Cannot fopen: No such file or directory (W311)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-132", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-132/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-132/ip.err new file mode 100644 index 000000000..2aedab92d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-132/ip.err @@ -0,0 +1,4 @@ +Cannot fopen: No such file or directory +bad action parsing +parse_action: bad value (5:bpf)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-132/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-132/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-132/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-132/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-132/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-132/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-132/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-132/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-133/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-133/cmd.json new file mode 100644 index 000000000..1298bc9dd --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-133/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w312-two", + "json": "0", + "words": "actions add action bpf bytecode '1,6 0 0 0' bytecode '1,6 0 0 1' index 1" + }, + "cmd": "tc actions add action bpf bytecode '1,6 0 0 0' bytecode '1,6 0 0 1' index 1", + "desc": "negative: opt=plain cmd=ng:w312-two:actions_add_action_bpf_bytecode_'1,6_0_0_0'_bytecode_'1,6_0_0_1'_index_1: a second program word is the next kind (W312)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-133", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-133/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-133/ip.err new file mode 100644 index 000000000..4896fd4b2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-133/ip.err @@ -0,0 +1,10 @@ +Bad action type bytecode +Usage: ... gact [RAND] [INDEX] +Where: ACTION := reclassify | drop | continue | pass | pipe | + goto chain | jump + RAND := random + RANDTYPE := netrand | determ + VAL : = value not exceeding 10000 + JUMP_COUNT := Absolute jump from start of action list + INDEX := index value used + diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-133/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-133/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-133/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-133/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-133/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-133/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-133/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-133/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-134/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-134/cmd.json new file mode 100644 index 000000000..a6c4635b9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-134/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w312-drop", + "json": "0", + "words": "actions add action bpf drop" + }, + "cmd": "tc actions add action bpf drop", + "desc": "negative: opt=plain cmd=ng:w312-drop:actions_add_action_bpf_drop: What mode is \"drop\"? (W312)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-134", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-134/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-134/ip.err new file mode 100644 index 000000000..543aa0c2e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-134/ip.err @@ -0,0 +1,4 @@ +What mode is "drop"? +bad action parsing +parse_action: bad value (2:bpf)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-134/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-134/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-134/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-134/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-134/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-134/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-134/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-134/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-135/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-135/cmd.json new file mode 100644 index 000000000..0ea971462 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-135/cmd.json @@ -0,0 +1,99 @@ +{ + "axes": { + "fix": "w312", + "json": "0", + "words": "actions add action bpf index 5" + }, + "cmd": "tc actions add action bpf index 5", + "desc": "negative: opt=plain cmd=ng:w312:actions_add_action_bpf_index_5: index ends the loop: PARMS only on a create (W312)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "errno": "EINVAL", + "rc": 255, + "refused_by": "kernel" + }, + "id": "tcact2write/ng-135", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-135/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-135/ip.err new file mode 100644 index 000000000..b699adac0 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-135/ip.err @@ -0,0 +1,2 @@ +RTNETLINK answers: Invalid argument +We have an error talking to the kernel diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-135/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-135/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-135/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-135/ip.pcap new file mode 100644 index 000000000..bd018117d Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-135/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-135/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-135/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-135/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-136/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-136/cmd.json new file mode 100644 index 000000000..954abe5ed --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-136/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w313", + "json": "0", + "words": "actions add action bpf" + }, + "cmd": "tc actions add action bpf", + "desc": "negative: opt=plain cmd=ng:w313:actions_add_action_bpf: a bare bpf: NEXT_ARG (W313)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-136", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-136/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-136/ip.err new file mode 100644 index 000000000..f7d546177 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-136/ip.err @@ -0,0 +1 @@ +Command line is not complete. Try option "help" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-136/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-136/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-136/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-136/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-136/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-136/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-136/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-136/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-137/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-137/cmd.json new file mode 100644 index 000000000..5e5e2b6a5 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-137/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w313-help", + "json": "0", + "words": "actions add action bpf help" + }, + "cmd": "tc actions add action bpf help", + "desc": "negative: opt=plain cmd=ng:w313-help:actions_add_action_bpf_help: help returns -1: bad action parsing (W313)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-137", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-137/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-137/ip.err new file mode 100644 index 000000000..db2f32718 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-137/ip.err @@ -0,0 +1,28 @@ +Usage: ... bpf ... [ index INDEX ] + +BPF use case: + bytecode BPF_BYTECODE + bytecode-file FILE + +eBPF use case: + object-file FILE [ section ACT_NAME ] [ export UDS_FILE ] [ verbose ] + object-pinned FILE + +Where BPF_BYTECODE := 's,c t f k,c t f k,c t f k,...' +c,t,f,k and s are decimals; s denotes number of 4-tuples + +Where FILE points to a file containing the BPF_BYTECODE string, +an ELF file containing eBPF map definitions and bytecode, or a +pinned eBPF program. + +Where ACT_NAME refers to the section name containing the +action (default 'action'). + +Where UDS_FILE points to a unix domain socket file in order +to hand off control of all created eBPF maps to an agent. + +Where optionally INDEX points to an existing action, or +explicitly specifies an action index upon creation. +bad action parsing +parse_action: bad value (2:bpf)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-137/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-137/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-137/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-137/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-137/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-137/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-137/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-137/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-138/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-138/cmd.json new file mode 100644 index 000000000..e97fc795c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-138/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w313-index", + "json": "0", + "words": "actions add action bpf bytecode '1,6 0 0 0' index zz" + }, + "cmd": "tc actions add action bpf bytecode '1,6 0 0 0' index zz", + "desc": "negative: opt=plain cmd=ng:w313-index:actions_add_action_bpf_bytecode_'1,6_0_0_0'_index_zz: bpf: Illegal \"index\" (W313)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-138", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-138/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-138/ip.err new file mode 100644 index 000000000..d0ae23a64 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-138/ip.err @@ -0,0 +1,4 @@ +bpf: Illegal "index" +bad action parsing +parse_action: bad value (5:bpf)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-138/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-138/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-138/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-138/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-138/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-138/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-138/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-138/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-139/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-139/cmd.json new file mode 100644 index 000000000..a22e4d256 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-139/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w314-obj", + "json": "0", + "words": "actions add action bpf o nosuch.o index 1" + }, + "cmd": "tc actions add action bpf o nosuch.o index 1", + "desc": "negative: opt=plain cmd=ng:w314-obj:actions_add_action_bpf_o_nosuch.o_index_1: o is object-file: an eBPF load (W314)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-139", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-139/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-139/ip.err new file mode 100644 index 000000000..59ad73d40 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-139/ip.err @@ -0,0 +1,5 @@ +Error opening object nosuch.o: No such file or directory +Cannot initialize ELF context! +bad action parsing +parse_action: bad value (5:bpf)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-139/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-139/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-139/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-139/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-139/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-139/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-139/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-139/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-140/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-140/cmd.json new file mode 100644 index 000000000..4554a848b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-140/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w314-p", + "json": "0", + "words": "actions add action bpf p /sys/fs/bpf/nosuch index 1" + }, + "cmd": "tc actions add action bpf p /sys/fs/bpf/nosuch index 1", + "desc": "negative: opt=plain cmd=ng:w314-p:actions_add_action_bpf_p_/sys/fs/bpf/nosuch_index_1: p is pinned: bpf(2) (W314)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-140", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-140/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-140/ip.err new file mode 100644 index 000000000..44d6b4006 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-140/ip.err @@ -0,0 +1,4 @@ +Couldn't retrieve pinned program '/sys/fs/bpf/nosuch': No such file or directory +bad action parsing +parse_action: bad value (5:bpf)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-140/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-140/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-140/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-140/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-140/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-140/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-140/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-140/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-141/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-141/cmd.json new file mode 100644 index 000000000..729921758 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-141/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w314-fd", + "json": "0", + "words": "actions add action bpf f 3 index 1" + }, + "cmd": "tc actions add action bpf f 3 index 1", + "desc": "negative: opt=plain cmd=ng:w314-fd:actions_add_action_bpf_f_3_index_1: f is fd: pinned, bpf(2) (W314)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-141", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-141/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-141/ip.err new file mode 100644 index 000000000..f58892f02 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-141/ip.err @@ -0,0 +1,4 @@ +Couldn't retrieve pinned program '3': No such file or directory +bad action parsing +parse_action: bad value (5:bpf)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-141/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-141/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-141/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-141/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-141/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-141/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-141/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-141/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-142/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-142/cmd.json new file mode 100644 index 000000000..f11b0b767 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-142/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "ebpf-obj", + "json": "0", + "words": "actions add action bpf object-file nosuch.o index 1" + }, + "cmd": "tc actions add action bpf object-file nosuch.o index 1", + "desc": "negative: opt=plain cmd=ng:ebpf-obj:actions_add_action_bpf_object-file_nosuch.o_index_1: eBPF object-file: tc's answer, refused by name in gotc", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-142", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-142/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-142/ip.err new file mode 100644 index 000000000..59ad73d40 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-142/ip.err @@ -0,0 +1,5 @@ +Error opening object nosuch.o: No such file or directory +Cannot initialize ELF context! +bad action parsing +parse_action: bad value (5:bpf)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-142/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-142/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-142/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-142/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-142/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-142/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-142/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-142/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-143/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-143/cmd.json new file mode 100644 index 000000000..2a54add47 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-143/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "ebpf-pinned", + "json": "0", + "words": "actions add action bpf object-pinned /sys/fs/bpf/nosuch index 1" + }, + "cmd": "tc actions add action bpf object-pinned /sys/fs/bpf/nosuch index 1", + "desc": "negative: opt=plain cmd=ng:ebpf-pinned:actions_add_action_bpf_object-pinned_/sys/fs/bpf/nosuch_index_1: eBPF object-pinned: bpf(2)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-143", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-143/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-143/ip.err new file mode 100644 index 000000000..44d6b4006 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-143/ip.err @@ -0,0 +1,4 @@ +Couldn't retrieve pinned program '/sys/fs/bpf/nosuch': No such file or directory +bad action parsing +parse_action: bad value (5:bpf)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-143/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-143/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-143/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-143/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-143/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-143/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-143/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-143/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-144/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-144/cmd.json new file mode 100644 index 000000000..3f98c3244 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-144/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "ebpf-run", + "json": "0", + "words": "actions add action bpf run obj nosuch.o index 1" + }, + "cmd": "tc actions add action bpf run obj nosuch.o index 1", + "desc": "negative: opt=plain cmd=ng:ebpf-run:actions_add_action_bpf_run_obj_nosuch.o_index_1: eBPF obj after run", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcact2write/ng-144", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-144/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-144/ip.err new file mode 100644 index 000000000..5efd0cb38 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-144/ip.err @@ -0,0 +1,5 @@ +Error opening object nosuch.o: No such file or directory +Cannot initialize ELF context! +bad action parsing +parse_action: bad value (6:bpf)! +Illegal "action" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-144/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-144/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-144/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-144/ip.pcap new file mode 100644 index 000000000..dcb4ca923 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-144/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-144/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-144/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-144/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-145/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-145/cmd.json new file mode 100644 index 000000000..dfba343e5 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-145/cmd.json @@ -0,0 +1,99 @@ +{ + "axes": { + "fix": "w315", + "json": "0", + "words": "filter add dev d0 ingress pref 1 protocol ip handle 1 bpf classid 1:1" + }, + "cmd": "tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf classid 1:1", + "desc": "negative: opt=plain cmd=ng:w315:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_classid_1:1: options but no program: OPS_LEN 0 (W315)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "errno": "EINVAL", + "rc": 2, + "refused_by": "kernel" + }, + "id": "tcact2write/ng-145", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 2, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-145/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-145/ip.err new file mode 100644 index 000000000..b699adac0 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-145/ip.err @@ -0,0 +1,2 @@ +RTNETLINK answers: Invalid argument +We have an error talking to the kernel diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-145/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-145/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-145/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-145/ip.pcap new file mode 100644 index 000000000..c8faf18f0 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-145/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-145/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-145/ip.rc new file mode 100644 index 000000000..0cfbf0888 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-145/ip.rc @@ -0,0 +1 @@ +2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-146/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-146/cmd.json new file mode 100644 index 000000000..e01bd1e81 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-146/cmd.json @@ -0,0 +1,99 @@ +{ + "axes": { + "fix": "w316", + "json": "0", + "words": "filter add dev d0 ingress pref 1 protocol ip handle 1 bpf" + }, + "cmd": "tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf", + "desc": "negative: opt=plain cmd=ng:w316:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf: no words: no OPTIONS (W316)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "errno": "EINVAL", + "rc": 2, + "refused_by": "kernel" + }, + "id": "tcact2write/ng-146", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 2, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-146/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-146/ip.err new file mode 100644 index 000000000..b699adac0 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-146/ip.err @@ -0,0 +1,2 @@ +RTNETLINK answers: Invalid argument +We have an error talking to the kernel diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-146/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-146/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-146/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-146/ip.pcap new file mode 100644 index 000000000..9bb8a834b Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-146/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-146/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-146/ip.rc new file mode 100644 index 000000000..0cfbf0888 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-146/ip.rc @@ -0,0 +1 @@ +2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-147/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-147/cmd.json new file mode 100644 index 000000000..3230fdf0d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-147/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w319", + "json": "0", + "words": "filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' bogus" + }, + "cmd": "tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' bogus", + "desc": "negative: opt=plain cmd=ng:w319:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_bytecode_'1,6_0_0_0'_bogus: What is \"bogus\"?, the usage (W319)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 1, + "refused_by": "ack-then-fail" + }, + "id": "tcact2write/ng-147", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 1, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-147/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-147/ip.err new file mode 100644 index 000000000..d854e76c5 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-147/ip.err @@ -0,0 +1,30 @@ +What is "bogus"? +Usage: ... bpf ... + +BPF use case: + bytecode BPF_BYTECODE + bytecode-file FILE + +eBPF use case: + object-file FILE [ section CLS_NAME ] [ export UDS_FILE ] [ verbose ] [ direct-action ] [ skip_hw | skip_sw ] + object-pinned FILE [ direct-action ] [ skip_hw | skip_sw ] + +Common remaining options: + [ action ACTION_SPEC ] + [ classid CLASSID ] + +Where BPF_BYTECODE := 's,c t f k,c t f k,c t f k,...' +c,t,f,k and s are decimals; s denotes number of 4-tuples + +Where FILE points to a file containing the BPF_BYTECODE string, +an ELF file containing eBPF map definitions and bytecode, or a +pinned eBPF program. + +Where CLS_NAME refers to the section name containing the +classifier (default 'classifier'). + +Where UDS_FILE points to a unix domain socket file in order +to hand off control of all created eBPF maps to an agent. + +ACTION_SPEC := ... look at individual actions +NOTE: CLASSID is parsed as hexadecimal input. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-147/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-147/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-147/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-147/ip.pcap new file mode 100644 index 000000000..a78cae502 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-147/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-147/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-147/ip.rc new file mode 100644 index 000000000..d00491fd7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-147/ip.rc @@ -0,0 +1 @@ +1 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-148/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-148/cmd.json new file mode 100644 index 000000000..897c22a33 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-148/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w319-flowid", + "json": "0", + "words": "filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' flowid zz" + }, + "cmd": "tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' flowid zz", + "desc": "negative: opt=plain cmd=ng:w319-flowid:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_bytecode_'1,6_0_0_0'_flowid_zz: Illegal \"classid\" for flowid (W319)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 1, + "refused_by": "ack-then-fail" + }, + "id": "tcact2write/ng-148", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 1, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-148/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-148/ip.err new file mode 100644 index 000000000..d0f9a5721 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-148/ip.err @@ -0,0 +1 @@ +Illegal "classid" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-148/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-148/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-148/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-148/ip.pcap new file mode 100644 index 000000000..dba992966 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-148/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-148/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-148/ip.rc new file mode 100644 index 000000000..d00491fd7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-148/ip.rc @@ -0,0 +1 @@ +1 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-149/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-149/cmd.json new file mode 100644 index 000000000..0145f6c65 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-149/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "w319-parse", + "json": "0", + "words": "filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0'" + }, + "cmd": "tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0'", + "desc": "negative: opt=plain cmd=ng:w319-parse:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_bytecode_'1,6_0_0': Unable to parse bpf command line (W319)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 1, + "refused_by": "ack-then-fail" + }, + "id": "tcact2write/ng-149", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 1, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-149/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-149/ip.err new file mode 100644 index 000000000..2b68809c6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-149/ip.err @@ -0,0 +1,2 @@ +Error at instruction 0! +Unable to parse bpf command line diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-149/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-149/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-149/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-149/ip.pcap new file mode 100644 index 000000000..5374e6c84 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-149/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-149/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-149/ip.rc new file mode 100644 index 000000000..d00491fd7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-149/ip.rc @@ -0,0 +1 @@ +1 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-150/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-150/cmd.json new file mode 100644 index 000000000..f175f8ee4 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-150/cmd.json @@ -0,0 +1,99 @@ +{ + "axes": { + "fix": "w320", + "json": "0", + "words": "filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' skip_hw skip_sw" + }, + "cmd": "tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' skip_hw skip_sw", + "desc": "negative: opt=plain cmd=ng:w320:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_bytecode_'1,6_0_0_0'_skip_hw_skip_sw: both skip flags (W320)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "errno": "EINVAL", + "rc": 2, + "refused_by": "kernel" + }, + "id": "tcact2write/ng-150", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 2, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-150/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-150/ip.err new file mode 100644 index 000000000..b699adac0 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-150/ip.err @@ -0,0 +1,2 @@ +RTNETLINK answers: Invalid argument +We have an error talking to the kernel diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-150/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-150/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-150/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-150/ip.pcap new file mode 100644 index 000000000..e7cf6152f Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-150/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-150/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-150/ip.rc new file mode 100644 index 000000000..0cfbf0888 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-150/ip.rc @@ -0,0 +1 @@ +2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-151/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-151/cmd.json new file mode 100644 index 000000000..cabb0ef70 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-151/cmd.json @@ -0,0 +1,99 @@ +{ + "axes": { + "fix": "w320-sw", + "json": "0", + "words": "filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' skip_sw" + }, + "cmd": "tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' skip_sw", + "desc": "negative: opt=plain cmd=ng:w320-sw:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_bytecode_'1,6_0_0_0'_skip_sw: skip_sw on a dummy (W320)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "errno": "ENOTSUP", + "rc": 2, + "refused_by": "kernel" + }, + "id": "tcact2write/ng-151", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 2, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-151/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-151/ip.err new file mode 100644 index 000000000..a2cb928af --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-151/ip.err @@ -0,0 +1,2 @@ +RTNETLINK answers: Operation not supported +We have an error talking to the kernel diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-151/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-151/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-151/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-151/ip.pcap new file mode 100644 index 000000000..8116ef7f4 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-151/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-151/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-151/ip.rc new file mode 100644 index 000000000..0cfbf0888 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-151/ip.rc @@ -0,0 +1 @@ +2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-152/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-152/cmd.json new file mode 100644 index 000000000..baa6e29f5 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-152/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "fb-help", + "json": "0", + "words": "filter add dev d0 ingress pref 1 protocol ip handle 1 bpf help" + }, + "cmd": "tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf help", + "desc": "negative: opt=plain cmd=ng:fb-help:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_help: the filter's usage", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 1, + "refused_by": "ack-then-fail" + }, + "id": "tcact2write/ng-152", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 1, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-152/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-152/ip.err new file mode 100644 index 000000000..d62703870 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-152/ip.err @@ -0,0 +1,29 @@ +Usage: ... bpf ... + +BPF use case: + bytecode BPF_BYTECODE + bytecode-file FILE + +eBPF use case: + object-file FILE [ section CLS_NAME ] [ export UDS_FILE ] [ verbose ] [ direct-action ] [ skip_hw | skip_sw ] + object-pinned FILE [ direct-action ] [ skip_hw | skip_sw ] + +Common remaining options: + [ action ACTION_SPEC ] + [ classid CLASSID ] + +Where BPF_BYTECODE := 's,c t f k,c t f k,c t f k,...' +c,t,f,k and s are decimals; s denotes number of 4-tuples + +Where FILE points to a file containing the BPF_BYTECODE string, +an ELF file containing eBPF map definitions and bytecode, or a +pinned eBPF program. + +Where CLS_NAME refers to the section name containing the +classifier (default 'classifier'). + +Where UDS_FILE points to a unix domain socket file in order +to hand off control of all created eBPF maps to an agent. + +ACTION_SPEC := ... look at individual actions +NOTE: CLASSID is parsed as hexadecimal input. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-152/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-152/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-152/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-152/ip.pcap new file mode 100644 index 000000000..99f392103 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-152/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-152/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-152/ip.rc new file mode 100644 index 000000000..d00491fd7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-152/ip.rc @@ -0,0 +1 @@ +1 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-153/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-153/cmd.json new file mode 100644 index 000000000..2aafc4903 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-153/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "fb-obj", + "json": "0", + "words": "filter add dev d0 ingress pref 1 protocol ip handle 1 bpf object-file nosuch.o" + }, + "cmd": "tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf object-file nosuch.o", + "desc": "negative: opt=plain cmd=ng:fb-obj:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_object-file_nosuch.o: eBPF object-file in a filter: tc's answer", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 1, + "refused_by": "ack-then-fail" + }, + "id": "tcact2write/ng-153", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 1, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-153/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-153/ip.err new file mode 100644 index 000000000..756d3125e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-153/ip.err @@ -0,0 +1,3 @@ +Error opening object nosuch.o: No such file or directory +Cannot initialize ELF context! +Unable to load program diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-153/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-153/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-153/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-153/ip.pcap new file mode 100644 index 000000000..1c9227aba Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-153/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-153/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-153/ip.rc new file mode 100644 index 000000000..d00491fd7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-153/ip.rc @@ -0,0 +1 @@ +1 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-154/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-154/cmd.json new file mode 100644 index 000000000..6a75f4314 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-154/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "fb-pinned", + "json": "0", + "words": "filter add dev d0 ingress pref 1 protocol ip handle 1 bpf pinned /sys/fs/bpf/nosuch" + }, + "cmd": "tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf pinned /sys/fs/bpf/nosuch", + "desc": "negative: opt=plain cmd=ng:fb-pinned:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_pinned_/sys/fs/bpf/nosuch: eBPF pinned in a filter: bpf(2)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 1, + "refused_by": "ack-then-fail" + }, + "id": "tcact2write/ng-154", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 1, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-154/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-154/ip.err new file mode 100644 index 000000000..5902c1d86 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-154/ip.err @@ -0,0 +1,2 @@ +Couldn't retrieve pinned program '/sys/fs/bpf/nosuch': No such file or directory +Unable to parse bpf command line diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-154/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-154/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-154/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-154/ip.pcap new file mode 100644 index 000000000..316d7f050 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-154/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-154/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-154/ip.rc new file mode 100644 index 000000000..d00491fd7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-154/ip.rc @@ -0,0 +1 @@ +1 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-155/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-155/cmd.json new file mode 100644 index 000000000..94e77017f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-155/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "fb-action", + "json": "0", + "words": "filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' action bogus" + }, + "cmd": "tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0' action bogus", + "desc": "negative: opt=plain cmd=ng:fb-action:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_bytecode_'1,6_0_0_0'_action_bogus: Bad action type bogus: gact's usage, exit(-1)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "ack-then-fail" + }, + "id": "tcact2write/ng-155", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-155/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-155/ip.err new file mode 100644 index 000000000..b4f8bc48c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-155/ip.err @@ -0,0 +1,10 @@ +Bad action type bogus +Usage: ... gact [RAND] [INDEX] +Where: ACTION := reclassify | drop | continue | pass | pipe | + goto chain | jump + RAND := random + RANDTYPE := netrand | determ + VAL : = value not exceeding 10000 + JUMP_COUNT := Absolute jump from start of action list + INDEX := index value used + diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-155/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-155/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-155/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-155/ip.pcap new file mode 100644 index 000000000..0833ffe21 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-155/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-155/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-155/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-155/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-156/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-156/cmd.json new file mode 100644 index 000000000..74b7046a7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-156/cmd.json @@ -0,0 +1,98 @@ +{ + "axes": { + "fix": "fb-ops", + "json": "0", + "words": "filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0,6 0 0 0'" + }, + "cmd": "tc filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode '1,6 0 0 0,6 0 0 0'", + "desc": "negative: opt=plain cmd=ng:fb-ops:filter_add_dev_d0_ingress_pref_1_protocol_ip_handle_1_bpf_bytecode_'1,6_0_0_0,6_0_0_0': an encoded length of 1 with two instructions", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 1, + "refused_by": "ack-then-fail" + }, + "id": "tcact2write/ng-156", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 1, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-156/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-156/ip.err new file mode 100644 index 000000000..438fe3e4b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-156/ip.err @@ -0,0 +1,2 @@ +Real program length exceeds encoded length parameter! +Unable to parse bpf command line diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-156/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-156/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-156/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-156/ip.pcap new file mode 100644 index 000000000..92e209412 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-156/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-156/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-156/ip.rc new file mode 100644 index 000000000..d00491fd7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-156/ip.rc @@ -0,0 +1 @@ +1 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-157/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-157/cmd.json new file mode 100644 index 000000000..594782b7f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-157/cmd.json @@ -0,0 +1,99 @@ +{ + "axes": { + "fix": "w248", + "json": "0", + "words": "actions add action pedit ex munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 index 1 action pedit ex munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 index 2 action pedit ex munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 index 3" + }, + "cmd": "tc actions add action pedit ex munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 index 1 action pedit ex munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 index 2 action pedit ex munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 munge offset 0 u32 set 1 index 3", + "desc": "negative: opt=plain cmd=ng:w248:actions_add_action_pedit_ex_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_index_1_action_pedit_ex_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_index_2_action_pedit_ex_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_munge_offset_0_u32_set_1_index_3: three 128-key ex actions pass 16384: the errors are ignored and a malformed nest is sent (W248)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "errno": "EINVAL", + "rc": 255, + "refused_by": "kernel" + }, + "id": "tcact2write/ng-157", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-157/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-157/ip.err new file mode 100644 index 000000000..86096063d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-157/ip.err @@ -0,0 +1,3 @@ +addattr_l ERROR: message exceeded bound of 16384 +Error: act_pedit: Not enough extended keys to parse. +We have an error talking to the kernel diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-157/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-157/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-157/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-157/ip.pcap new file mode 100644 index 000000000..273be89d0 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-157/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-157/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-157/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-157/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-158/b.txt b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-158/b.txt new file mode 100644 index 000000000..b18a715d9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-158/b.txt @@ -0,0 +1,2 @@ +actions add action ife pipe +actions add action gact pass index 2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-158/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-158/cmd.json new file mode 100644 index 000000000..9dbdd422b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-158/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "batch": "ife-exit", + "fix": "w268-force", + "json": "0", + "words": "-force -batch b.txt" + }, + "cmd": "tc -force -batch b.txt", + "desc": "negative: opt=plain cmd=ng:w268-force:batch:ife-exit: ife's usage exit ends -force (W268)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "ack-then-fail" + }, + "id": "tcact2write/ng-158", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "printf '%s\\n' 'actions add action ife pipe' 'actions add action gact pass index 2' > b.txt" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "printf '%s\\n' 'actions add action ife pipe' 'actions add action gact pass index 2' > b.txt", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-158/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-158/ip.err new file mode 100644 index 000000000..128ebd0f6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-158/ip.err @@ -0,0 +1,14 @@ +IFE requires decode/encode specified +Usage:... ife {decode|encode} [{ALLOW|USE} ATTR] [dst DMAC] [src SMAC] [type TYPE] [CONTROL] [index INDEX] + ALLOW := Encode direction. Allows encoding specified metadata + e.g "allow mark" + USE := Encode direction. Enforce Static encoding of specified metadata + e.g "use mark 0x12" + ATTR := mark (32-bit), prio (32-bit), tcindex (16-bit) + DMAC := 6 byte Destination MAC address to encode + SMAC := optional 6 byte Source MAC address to encode + TYPE := optional 16 bit ethertype to encode + CONTROL := reclassify|pipe|drop|continue|ok + INDEX := optional IFE table index value used +encode is used for sending IFE packets +decode is used for receiving IFE packets diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-158/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-158/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-158/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-158/ip.pcap new file mode 100644 index 000000000..ba56bdd9a Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-158/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-158/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-158/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-158/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-159/b.txt b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-159/b.txt new file mode 100644 index 000000000..081a7ea07 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-159/b.txt @@ -0,0 +1,2 @@ +actions add action tunnel_key set src_ip bogus dst_ip 10.0.0.2 id 1 index 1 +actions add action gact pass index 2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-159/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-159/cmd.json new file mode 100644 index 000000000..2d1b13791 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-159/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "batch": "addr-exit", + "fix": "w250-force", + "json": "0", + "words": "-force -batch b.txt" + }, + "cmd": "tc -force -batch b.txt", + "desc": "negative: opt=plain cmd=ng:w250-force:batch:addr-exit: get_addr's exit(1) ends -force (W250)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 1, + "refused_by": "ack-then-fail" + }, + "id": "tcact2write/ng-159", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "printf '%s\\n' 'actions add action tunnel_key set src_ip bogus dst_ip 10.0.0.2 id 1 index 1' 'actions add action gact pass index 2' > b.txt" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "printf '%s\\n' 'actions add action tunnel_key set src_ip bogus dst_ip 10.0.0.2 id 1 index 1' 'actions add action gact pass index 2' > b.txt", + "rc": 0 + } + ], + "rc": 1, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-159/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-159/ip.err new file mode 100644 index 000000000..ee5fb0964 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-159/ip.err @@ -0,0 +1 @@ +Error: any valid address is expected rather than "bogus". diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-159/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-159/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-159/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-159/ip.pcap new file mode 100644 index 000000000..e728167a4 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-159/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-159/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-159/ip.rc new file mode 100644 index 000000000..d00491fd7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-159/ip.rc @@ -0,0 +1 @@ +1 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-160/b.txt b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-160/b.txt new file mode 100644 index 000000000..a68aa2764 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-160/b.txt @@ -0,0 +1,2 @@ +actions add action ct clear commit index 1 +actions add action gact pass index 2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-160/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-160/cmd.json new file mode 100644 index 000000000..fb209ace5 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-160/cmd.json @@ -0,0 +1,104 @@ +{ + "axes": { + "batch": "return", + "fix": "ct-force", + "json": "0", + "words": "-force -batch b.txt" + }, + "cmd": "tc -force -batch b.txt", + "desc": "negative: opt=plain cmd=ng:ct-force:batch:return: ct returns -1, so -force carries on", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 1, + "refused_by": "ack-then-fail" + }, + "id": "tcact2write/ng-160", + "modules": [ + "sch_htb", + "sch_ingress", + "cls_basic", + "cls_cgroup", + "cls_flow", + "cls_fw", + "cls_matchall", + "cls_route", + "cls_u32", + "act_gact", + "act_police", + "act_mirred", + "act_skbedit", + "act_vlan", + "act_csum", + "act_nat", + "act_simple", + "act_connmark", + "act_ctinfo", + "act_sample", + "act_skbmod", + "act_mpls", + "act_pedit", + "act_tunnel_key", + "act_ife", + "act_ct", + "act_gate", + "act_bpf", + "cls_bpf", + "act_meta_mark", + "act_meta_skbprio", + "act_meta_skbtcindex" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 clsact", + "tc qdisc add dev d1 root handle 1: htb", + "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "tc qdisc add dev d1 ingress_block 10 clsact", + "printf '%s\\n' 'actions add action ct clear commit index 1' 'actions add action gact pass index 2' > b.txt" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 clsact", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: htb", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:1 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc class add dev d1 parent 1: classid 1:2 htb rate 1mbit", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 ingress_block 10 clsact", + "rc": 0 + }, + { + "cmd": "printf '%s\\n' 'actions add action ct clear commit index 1' 'actions add action gact pass index 2' > b.txt", + "rc": 0 + } + ], + "rc": 1, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-160/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-160/ip.err new file mode 100644 index 000000000..f5f76c68c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-160/ip.err @@ -0,0 +1,5 @@ +ct: clear can only be used alone +bad action parsing +parse_action: bad value (5:ct)! +Illegal "action" +Command failed b.txt:1 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-160/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-160/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-160/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-160/ip.pcap new file mode 100644 index 000000000..e805f8783 Binary files /dev/null and b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-160/ip.pcap differ diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-160/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-160/ip.rc new file mode 100644 index 000000000..d00491fd7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcact2write/ng-160/ip.rc @@ -0,0 +1 @@ +1 diff --git a/pkg/xtcpnl/xtcpnl_parse_bench_test.go b/pkg/xtcpnl/xtcpnl_parse_bench_test.go index 0cc03a8ba..a53c5148e 100644 --- a/pkg/xtcpnl/xtcpnl_parse_bench_test.go +++ b/pkg/xtcpnl/xtcpnl_parse_bench_test.go @@ -820,7 +820,7 @@ func TestParseBenchAllocs(t *testing.T) { }{ {description: "corner: ParseRule allocates nothing on its bare picks, and four times on the largest, a workbench rule whose from, to, iif and oif it copies", name: "ParseRule", expected: "0/32: smallest 0, typical 0, largest 4"}, {description: "corner: ParseNewStats allocates nothing on its header-only picks, and twice on the largest, a workbench bare show of a bridge whose AF_MPLS afstats and bridge VLAN xstats it appends", name: "ParseNewStats", expected: "0/92: smallest 0, typical 0, largest 2"}, - {description: "corner: ParseNlMsgErr allocates nothing on any pick; the largest, tcematch's W151 refusal, echoes a 16 KiB request and carries no extended-ack TLVs", name: "ParseNlMsgErr", expected: "0/2: smallest 0, typical 0, largest 0"}, + {description: "corner: ParseNlMsgErr allocates nothing on its bare ACK picks, and once on the largest, tcact2write's W248 pedit refusal, which echoes a 16 KiB request and copies its extended-ack message", name: "ParseNlMsgErr", expected: "0/2: smallest 0, typical 0, largest 1"}, {description: "corner: ParseNsid allocates nothing on any pick", name: "ParseNsid", expected: "0/88: smallest 0, typical 0, largest 0"}, {description: "corner: ParseNexthopBucket allocates nothing on any pick", name: "ParseNexthopBucket", expected: "0/116: smallest 0, typical 0, largest 0"}, {description: "corner: ParseLinkToken allocates nothing on any pick, its token aliasing the body", name: "ParseLinkToken", expected: "0/16: smallest 0, typical 0, largest 0"}, diff --git a/pkg/xtcpnl/xtcpnl_rtattr_encode.go b/pkg/xtcpnl/xtcpnl_rtattr_encode.go index b499c7625..e785f654e 100644 --- a/pkg/xtcpnl/xtcpnl_rtattr_encode.go +++ b/pkg/xtcpnl/xtcpnl_rtattr_encode.go @@ -272,6 +272,14 @@ func (a *AttrBuilder) BeginNest(atype uint16) (NestMark, error) { return m, nil } +// Mark is the nest a failed addattr_nest returns: NLMSG_TAIL, with no +// header written there. EndNest on it then sets the rta_len of whatever +// attribute was written at the mark since, to everything from there to the +// cursor, as addattr_nest_end does to tc's message (the broken nest of +// gotc's W293); with nothing written since, EndNest is ErrNestNotOpen and +// changes nothing, as tc's write lands past nlmsg_len. +func (a *AttrBuilder) Mark() NestMark { return NestMark{off: a.n} } + // EndNest closes the nest m opened, iproute2's addattr_nest_end: rta_len // becomes everything from the nest header to the cursor, inner padding // included, because every inner attribute already advanced the cursor by its diff --git a/pkg/xtcpnl/xtcpnl_rtattr_encode_test.go b/pkg/xtcpnl/xtcpnl_rtattr_encode_test.go index b32e872e9..96947c56d 100644 --- a/pkg/xtcpnl/xtcpnl_rtattr_encode_test.go +++ b/pkg/xtcpnl/xtcpnl_rtattr_encode_test.go @@ -349,6 +349,92 @@ func TestAttrBuilderReset(t *testing.T) { } } +// TestAttrBuilderMark is the nest a failed addattr_nest returns: no header +// at the tail, which EndNest then patches into whatever was written there +// (gotc's broken gate entry, W293). The positive bytes are tc's own, in +// gotc's replay of tcact2write ec-197..ec-199; these rows are the builder's +// edges. +// +// go test ./pkg/xtcpnl/ -run TestAttrBuilderMark +func TestAttrBuilderMark(t *testing.T) { + tests := []struct { + description string + steps func(a *AttrBuilder) error + expected []byte + expectedErr error + }{ + { + description: "corner: EndNest on a Mark sets the next attribute's rta_len to everything after the mark", + steps: func(a *AttrBuilder) error { + m := a.Mark() + if err := a.PutU32(1, 7); err != nil { + return err + } + if err := a.PutU8(2, 1); err != nil { + return err + } + return a.EndNest(m) + }, + // The first attribute's rta_len becomes 8+8: it now spans the second. + expected: append(append([]byte{16, 0, 1, 0}, le32(7)...), rtattr(2, []byte{1})...), + }, + { + description: "negative: EndNest on a Mark with nothing written since is ErrNestNotOpen and changes nothing", + steps: func(a *AttrBuilder) error { + if err := a.PutU8(2, 1); err != nil { + return err + } + return a.EndNest(a.Mark()) + }, + expected: rtattr(2, []byte{1}), + expectedErr: ErrNestNotOpen, + }, + { + description: "boundary: a Mark on a full buffer is at its end, and EndNest on it is ErrNestNotOpen", + steps: func(a *AttrBuilder) error { + if err := a.PutU32(1, 7); err != nil { + return err + } + if err := a.PutU16(3, 2); err != nil { + return err + } + return a.EndNest(a.Mark()) + }, + expected: append(rtattr(1, le32(7)), rtattr(3, []byte{2, 0})...), + expectedErr: ErrNestNotOpen, + }, + { + description: "corner: a Mark inside a real nest patches the attribute at the mark to its aligned span (5 becomes 8); the nest's own length is kept", + steps: func(a *AttrBuilder) error { + n, err := a.BeginNest(5) + if err != nil { + return err + } + m := a.Mark() + if err := a.PutU8(2, 9); err != nil { + return err + } + if err := a.EndNest(m); err != nil { + return err + } + return a.EndNest(n) + }, + expected: []byte{12, 0, 5, 0, 8, 0, 2, 0, 9, 0, 0, 0}, + }, + } + for _, tc := range tests { + t.Run(tc.description, func(t *testing.T) { + ab := NewAttrBuilder(make([]byte, 16)) + if err := tc.steps(&ab); !errors.Is(err, tc.expectedErr) { + t.Fatalf("err = %v, want %v", err, tc.expectedErr) + } + if got := ab.Bytes(); !bytes.Equal(got, tc.expected) { + t.Fatalf("Bytes() = % x, want % x", got, tc.expected) + } + }) + } +} + // ---- the read-only invariant ------------------------------------------------- // TestIsGetRequestType checks the arithmetic GET predicate, including the two diff --git a/pkg/xtcpnl/xtcpnl_tc_act2encode_test.go b/pkg/xtcpnl/xtcpnl_tc_act2encode_test.go new file mode 100644 index 000000000..5b1c54270 --- /dev/null +++ b/pkg/xtcpnl/xtcpnl_tc_act2encode_test.go @@ -0,0 +1,289 @@ +package xtcpnl + +import ( + "bytes" + "math" + "reflect" + "testing" + + "golang.org/x/sys/unix" +) + +const tdTcact2write = "testdata/7_3_1/ws/tcact2write/" + +// tcAct2Struct decodes the struct one attribute of a kind's options +// carries, returning that attribute's type with the struct, so that +// Append(decode(opts)) can be held against the attribute tc sent. +type tcAct2Struct struct { + attr func(t testing.TB, opts []byte) uint16 + decode func(t testing.TB, opts []byte) tcActEnc +} + +// tcBpfInsns is a cBPF program as one encoder: the instructions laid out +// back to back, as OPS carries them. +type tcBpfInsns []TcBpfInsn + +func (p tcBpfInsns) Append(b []byte) []byte { + for _, x := range p { + b = x.Append(b) + } + return b +} + +func tcAct2Structs() map[string]tcAct2Struct { + must := func(t testing.TB, err error) { + t.Helper() + if err != nil { + t.Fatal(err) + } + } + fixed := func(a uint16) func(testing.TB, []byte) uint16 { + return func(testing.TB, []byte) uint16 { return a } + } + // ops reads OPS_LEN instructions from OPS, as the read side does. + ops := func(lenAttr, opsAttr uint16) func(t testing.TB, o []byte) tcActEnc { + return func(t testing.TB, o []byte) tcActEnc { + n := tcAttr(t, o, lenAttr) + if len(n) != 2 { + t.Fatalf("OPS_LEN is % x", n) + } + p := ParseTcBpfOps(tcAttr(t, o, opsAttr), uint16(n[0])|uint16(n[1])<<8) + if p.Short { + t.Fatal("OPS is shorter than OPS_LEN") + } + return tcBpfInsns(p.Insns) + } + } + return map[string]tcAct2Struct{ + "pedit": { + attr: func(t testing.TB, o []byte) uint16 { + if tcAttr(t, o, TcaPeditParms) == nil { + return TcaPeditParmsEx + } + return TcaPeditParms + }, + decode: func(t testing.TB, o []byte) tcActEnc { + p, err := ParseTcPedit(o) + must(t, err) + if p.KeysShort { + t.Fatal("pedit's keys run past PARMS") + } + return TcPeditSel{TcGen: p.P, Nkeys: p.Nkeys, Flags: p.Flags, Keys: p.Keys} + }, + }, + "tunnel_key": {attr: fixed(TcaTunnelKeyParms), decode: func(t testing.TB, o []byte) tcActEnc { + p, err := ParseTcTunnelKey(o) + must(t, err) + return TcTunnelKey{TcGen: p.P, TAction: p.TAction} + }}, + "ife": {attr: fixed(TcaIfeParms), decode: func(t testing.TB, o []byte) tcActEnc { + p, err := ParseTcIfe(o) + must(t, err) + return TcIfe{TcGen: p.P, Flags: p.Flags} + }}, + "bpf-ops": {attr: fixed(TcaActBpfOps), decode: ops(TcaActBpfOpsLen, TcaActBpfOps)}, + "cls-bpf-ops": {attr: fixed(TcaBpfOps), decode: ops(TcaBpfOpsLen, TcaBpfOps)}, + } +} + +// tcFilterCapturedOptions is the TCA_OPTIONS of a row's first +// RTM_NEWTFILTER request. +func tcFilterCapturedOptions(t testing.TB, dir, id string) []byte { + t.Helper() + for _, m := range pcapNlMsgs(t, dir+id+"/ip.pcap") { + if m.h.Flags&unix.NLM_F_REQUEST == 0 || m.h.Type != unix.RTM_NEWTFILTER { + continue + } + opts := tcAttr(t, m.body[TcMsgSizeCst:], TcaOptions) + if opts == nil { + t.Fatalf("%s: no TCA_OPTIONS", id) + } + return opts + } + t.Fatalf("%s: no filter write in the capture", id) + return nil +} + +// TestAppendTcAct2Structs is the structs of increment 13's kinds against +// tc (gotc 23P): each captured payload decoded by the read side and laid +// out again by Append is the bytes tc 7.2.0 sent, padding included. The +// hand-built rows are decode(Append(x)) == x. +// +// go test ./pkg/xtcpnl/ -run TestAppendTcAct2Structs +func TestAppendTcAct2Structs(t *testing.T) { + structs := tcAct2Structs() + captured := []struct { + description string + id string // the tcact2write row + kind string + filter bool // the row is a filter write: the struct is in TCA_OPTIONS + expected int // the attribute's payload length + }{ + {"positive: pedit munge offset 12 u32 set 0x1 (PARMS, one key)", "ec-001", "pedit", false, TcPeditSelSizeCst + TcPeditKeySizeCst}, + {"positive: pedit with two raw keys", "ec-047", "pedit", false, TcPeditSelSizeCst + 2*TcPeditKeySizeCst}, + {"positive: pedit ex munge ip src (PARMS_EX)", "ec-065", "pedit", false, TcPeditSelSizeCst + TcPeditKeySizeCst}, + {"positive: pedit ex munge ip6 src, four keys", "ec-069", "pedit", false, TcPeditSelSizeCst + 4*TcPeditKeySizeCst}, + {"positive: pedit at/offmask/shift (W216's positional form)", "ec-089", "pedit", false, TcPeditSelSizeCst + TcPeditKeySizeCst}, + {"positive: tunnel_key set v4 with every scalar", "ec-112", "tunnel_key", false, TcTunnelKeySizeCst}, + {"positive: tunnel_key unset", "ec-007", "tunnel_key", false, TcTunnelKeySizeCst}, + {"positive: ife encode with type, dst, src and use mark", "ec-132", "ife", false, TcIfeSizeCst}, + {"positive: ife decode", "ec-135", "ife", false, TcIfeSizeCst}, + {"positive: bpf action, the four-instruction program", "ec-213", "bpf-ops", false, 4 * TcBpfInsnSizeCst}, + {"positive: bpf filter, the four-instruction program", "ec-239", "cls-bpf-ops", true, 4 * TcBpfInsnSizeCst}, + {"positive: bpf filter from bytecode-file", "ec-247", "cls-bpf-ops", true, 4 * TcBpfInsnSizeCst}, + {"negative: tunnel_key with no set/unset sends t_action 0 (W253)", "ng-048", "tunnel_key", false, TcTunnelKeySizeCst}, + {"boundary: pedit with 128 keys (W220)", "ec-088", "pedit", false, TcPeditSelSizeCst + 128*TcPeditKeySizeCst}, + {"boundary: bpf action with 2038 instructions (W307)", "ec-222", "bpf-ops", false, 2038 * TcBpfInsnSizeCst}, + {"boundary: tunnel_key tos 255 ttl 255", "ec-124", "tunnel_key", false, TcTunnelKeySizeCst}, + {"corner: ife's tail padding as tc zeroes it (W275)", "ec-133", "ife", false, TcIfeSizeCst}, + {"corner: ife index alone, flags 0 (W267)", "ec-138", "ife", false, TcIfeSizeCst}, + {"corner: pedit eth dst invert, two keys of 0xff (W223)", "ec-091", "pedit", false, TcPeditSelSizeCst + 2*TcPeditKeySizeCst}, + {"corner: bpf header 65537 wraps to one instruction (W308)", "ec-223", "bpf-ops", false, TcBpfInsnSizeCst}, + {"corner: bpf fields wrap (W309)", "ec-225", "bpf-ops", false, TcBpfInsnSizeCst}, + } + for _, tc := range captured { + t.Run(tc.description, func(t *testing.T) { + s := structs[tc.kind] + var opts []byte + if tc.filter { + opts = tcFilterCapturedOptions(t, tdTcact2write, tc.id) + } else { + opts = tcActCapturedOptionsIn(t, tdTcact2write, tc.id) + } + want := tcAttr(t, opts, s.attr(t, opts)) + if len(want) != tc.expected { + t.Fatalf("tc's attribute is %d bytes, want %d", len(want), tc.expected) + } + if got := s.decode(t, opts).Append(nil); !bytes.Equal(got, want) { + t.Errorf("Append(decode(attr)) = % x\ntc sent % x", got, want) + } + }) + } + + gen := TcGen{Index: 7, Capab: 1, Action: 3 /* TC_ACT_PIPE */, Refcnt: 2, Bindcnt: 3} + maxGen := TcGen{Index: math.MaxUint32, Capab: math.MaxUint32, Action: math.MinInt32, + Refcnt: math.MaxInt32, Bindcnt: -1} + key := TcPeditKey{Mask: 0xff00ffff, Val: 0x00400000, Off: 8, At: 4, Offmask: 0xf, Shift: 2} + maxKey := TcPeditKey{Mask: math.MaxUint32, Val: math.MaxUint32, Off: math.MaxUint32, At: math.MaxUint32, + Offmask: math.MaxUint32, Shift: math.MaxUint32} + keys128 := make([]TcPeditKey, 128) + for i := range keys128 { + keys128[i] = TcPeditKey{Mask: uint32(i), Val: 1, Off: uint32(4 * i)} + } + roundTrip := []struct { + description string + kind string + x tcActEnc + expected int // the bytes Append writes + }{ + {"positive: tc_pedit_sel with one key", "pedit", TcPeditSel{TcGen: gen, Nkeys: 1, Keys: []TcPeditKey{key}}, + TcPeditSelSizeCst + TcPeditKeySizeCst}, + {"positive: tc_tunnel_key set", "tunnel_key", TcTunnelKey{TcGen: gen, TAction: TcaTunnelKeyActSet}, TcTunnelKeySizeCst}, + {"positive: tc_ife encode", "ife", TcIfe{TcGen: gen, Flags: IfeEncode}, TcIfeSizeCst}, + {"positive: a cBPF program of two instructions", "bpf-ops", tcBpfInsns{{Code: 0x28, K: 12}, {Code: 6, Jt: 1, Jf: 2, + K: 0x40000}}, 2 * TcBpfInsnSizeCst}, + {"negative: tunnel_key's t_action 0, sent when neither set nor unset is given (W253)", "tunnel_key", + TcTunnelKey{TcGen: gen}, TcTunnelKeySizeCst}, + {"boundary: tc_pedit_sel with 128 keys (tc's MAX_OFFS)", "pedit", TcPeditSel{Nkeys: 128, Keys: keys128}, + TcPeditSelSizeCst + 128*TcPeditKeySizeCst}, + {"boundary: every pedit field at its extreme", "pedit", TcPeditSel{TcGen: maxGen, Nkeys: 1, Flags: math.MaxUint8, + Keys: []TcPeditKey{maxKey}}, TcPeditSelSizeCst + TcPeditKeySizeCst}, + {"boundary: tunnel_key's t_action at its extremes", "tunnel_key", TcTunnelKey{TcGen: maxGen, TAction: math.MinInt32}, + TcTunnelKeySizeCst}, + {"boundary: ife flags, all 16 bits", "ife", TcIfe{TcGen: maxGen, Flags: math.MaxUint16}, TcIfeSizeCst}, + {"boundary: a sock_filter with every field at its extreme", "bpf-ops", tcBpfInsns{{Code: math.MaxUint16, + Jt: math.MaxUint8, Jf: math.MaxUint8, K: math.MaxUint32}}, TcBpfInsnSizeCst}, + {"corner: zero tc_pedit_sel, no keys", "pedit", TcPeditSel{}, TcPeditSelSizeCst}, + {"corner: zero tc_tunnel_key", "tunnel_key", TcTunnelKey{}, TcTunnelKeySizeCst}, + {"corner: zero tc_ife", "ife", TcIfe{}, TcIfeSizeCst}, + {"corner: a zero sock_filter", "bpf-ops", tcBpfInsns{{}}, TcBpfInsnSizeCst}, + } + for _, tc := range roundTrip { + t.Run(tc.description, func(t *testing.T) { + s := structs[tc.kind] + b := tc.x.Append([]byte{0xaa}) + if len(b)-1 != tc.expected { + t.Fatalf("Append wrote %d bytes, want %d", len(b)-1, tc.expected) + } + if b[0] != 0xaa { + t.Fatal("Append changed what was already in the slice") + } + if tcAllZero(tc.x) && !bytes.Equal(b[1:], make([]byte, tc.expected)) { + t.Errorf("zero struct laid out as % x, want all zero", b[1:]) + } + ab := NewAttrBuilder(make([]byte, 4096)) + if tc.kind == "bpf-ops" { + n := len(tc.x.(tcBpfInsns)) + if err := ab.PutU16(TcaActBpfOpsLen, uint16(n)); err != nil { + t.Fatal(err) + } + } + if err := ab.PutBytes(s.attr(t, nil), b[1:]); err != nil { + t.Fatal(err) + } + if got := s.decode(t, ab.Bytes()); !reflect.DeepEqual(got, tc.x) { + t.Errorf("decode(Append(x)) = %+v, want %+v", got, tc.x) + } + }) + } +} + +// tcAllZero is whether x is its type's zero value, a program counting as +// zero when each of its instructions is. +func tcAllZero(x tcActEnc) bool { + if p, ok := x.(tcBpfInsns); ok { + for _, i := range p { + if i != (TcBpfInsn{}) { + return false + } + } + return true + } + return reflect.ValueOf(x).IsZero() +} + +// TestAppendTcAct2StructsEdges is what the struct table does not show: +// Append into a full slice, ife's padding, pedit's key count against its +// keys, and an instruction's host byte order. +// +// go test ./pkg/xtcpnl/ -run TestAppendTcAct2StructsEdges +func TestAppendTcAct2StructsEdges(t *testing.T) { + tests := []struct { + description string + got []byte + expected []byte + }{ + {"negative: a full destination grows and keeps its bytes", + TcTunnelKey{TAction: 1}.Append([]byte("abc")), + append(append([]byte("abc"), make([]byte, TcGactSizeCst)...), 1, 0, 0, 0)}, + {"boundary: pedit's 2 bytes of padding after nkeys and flags are zero", + TcPeditSel{Nkeys: 1, Flags: 2}.Append(nil), + append(make([]byte, TcGactSizeCst), 1, 2, 0, 0)}, + {"corner: TcIfe{Flags: 1} is 24 bytes, the last two zero (W275)", + TcIfe{Flags: 1}.Append(nil), + append(make([]byte, TcGactSizeCst), 1, 0, 0, 0)}, + {"corner: Nkeys is sent as given, not counted from Keys", + TcPeditSel{Nkeys: 3}.Append(nil), + append(make([]byte, TcGactSizeCst), 3, 0, 0, 0)}, + {"corner: sock_filter is host order: code, jt, jf, then k", + TcBpfInsn{Code: 0x0102, Jt: 3, Jf: 4, K: 0x05060708}.Append(nil), + []byte{0x02, 0x01, 3, 4, 0x08, 0x07, 0x06, 0x05}}, + } + for _, tc := range tests { + t.Run(tc.description, func(t *testing.T) { + if !bytes.Equal(tc.got, tc.expected) { + t.Errorf("got % x, want % x", tc.got, tc.expected) + } + }) + } +} + +// BenchmarkAppendTcPeditSel lays out pedit's largest selector, 128 keys. +func BenchmarkAppendTcPeditSel(b *testing.B) { + s := TcPeditSel{Nkeys: 128, Keys: make([]TcPeditKey, 128)} + buf := make([]byte, 0, TcPeditSelSizeCst+128*TcPeditKeySizeCst) + b.ReportAllocs() + for b.Loop() { + buf = s.Append(buf[:0]) + } +} diff --git a/pkg/xtcpnl/xtcpnl_tc_actencode.go b/pkg/xtcpnl/xtcpnl_tc_actencode.go index dd08226e0..8d19a922d 100644 --- a/pkg/xtcpnl/xtcpnl_tc_actencode.go +++ b/pkg/xtcpnl/xtcpnl_tc_actencode.go @@ -63,3 +63,68 @@ func (s TcSkbmod) Append(b []byte) []byte { b = append(s.TcGen.Append(b), 0, 0, 0, 0) return appendU64(b, s.Flags) } + +// The parms structs of increment 13's kinds (gotc 23P). ct, gate and the +// bpf action's parms are plain tc_gen (tc_ct.h:40, tc_gate.h:9, +// tc_bpf.h:11), which TcGen.Append lays out as is. + +// Append lays out k, struct tc_pedit_key (tc_pedit.h:52): mask, val, off, +// at, offmask, shift. Val and Mask are as the host reads them; pack_key32 +// and its kin (tc/m_pedit.c:153) store them in network order already. +func (k TcPeditKey) Append(b []byte) []byte { + b = appendU32(appendU32(appendU32(b, k.Mask), k.Val), k.Off) + return appendU32(appendU32(appendU32(b, k.At), k.Offmask), k.Shift) +} + +// TcPeditSel is struct tc_pedit_sel (tc_pedit.h:61) with its keys, as +// m_pedit.c:697-703 sends it in PARMS or PARMS_EX: sizeof(sel.sel) plus +// nkeys keys. Nkeys is its own field, as on the read side (TcPeditOpt); +// tc always sends len(Keys). +type TcPeditSel struct { + TcGen + Nkeys uint8 + Flags uint8 + Keys []TcPeditKey +} + +// Append lays out s: tc_gen, nkeys, flags, the two bytes of padding that +// align keys[] to 4 (zero: m_pedit.c:626 starts from `= {}`), then each +// key. +func (s TcPeditSel) Append(b []byte) []byte { + b = append(s.TcGen.Append(b), s.Nkeys, s.Flags, 0, 0) + for _, k := range s.Keys { + b = k.Append(b) + } + return b +} + +// TcTunnelKey is struct tc_tunnel_key (tc_tunnel_key.h:15): tc_gen and +// t_action (TcaTunnelKeyActSet or TcaTunnelKeyActRelease, 0 when tc sends +// neither, W253). +type TcTunnelKey struct { + TcGen + TAction int32 +} + +// Append lays out t, 24 bytes. +func (t TcTunnelKey) Append(b []byte) []byte { return appendS32(t.TcGen.Append(b), t.TAction) } + +// TcIfe is struct tc_ife (tc_ife.h:13): tc_gen and flags (IfeEncode or 0). +type TcIfe struct { + TcGen + Flags uint16 +} + +// Append lays out i: tc_gen, flags, and the two bytes of tail padding the +// struct's 4-byte alignment adds. m_ife.c:53 zeroes the struct with +// `= { 0 }`, so tc sends zeros there (W275, as W214 for connmark). +func (i TcIfe) Append(b []byte) []byte { + return append(appendU16(i.TcGen.Append(b), i.Flags), 0, 0) +} + +// Append lays out x, struct sock_filter (filter.h:24): code, jt, jf, k, +// in host order, as bpf_parse_ops (lib/bpf_legacy.c:320) fills it and the +// kernel copies it. +func (x TcBpfInsn) Append(b []byte) []byte { + return appendU32(append(appendU16(b, x.Code), x.Jt, x.Jf), x.K) +} diff --git a/pkg/xtcpnl/xtcpnl_tc_actencode_test.go b/pkg/xtcpnl/xtcpnl_tc_actencode_test.go index 017d30c98..5124afd60 100644 --- a/pkg/xtcpnl/xtcpnl_tc_actencode_test.go +++ b/pkg/xtcpnl/xtcpnl_tc_actencode_test.go @@ -17,7 +17,13 @@ const tdTcactwrite = "testdata/7_3_1/ws/tcactwrite/" // the nlmsghdr rebuilt so seq and pid read 0. func tcActCapturedReq(t testing.TB, id string) []byte { t.Helper() - for _, m := range pcapNlMsgs(t, tdTcactwrite+id+"/ip.pcap") { + return tcActCapturedReqIn(t, tdTcactwrite, id) +} + +// tcActCapturedReqIn is tcActCapturedReq for a row of the corpus in dir. +func tcActCapturedReqIn(t testing.TB, dir, id string) []byte { + t.Helper() + for _, m := range pcapNlMsgs(t, dir+id+"/ip.pcap") { if m.h.Flags&unix.NLM_F_REQUEST == 0 || (m.h.Type != unix.RTM_NEWACTION && m.h.Type != unix.RTM_DELACTION) { continue @@ -51,7 +57,14 @@ func tcAttr(t testing.TB, attrs []byte, typ uint16) []byte { // row's first action write: TAB, order 1, OPTIONS. func tcActCapturedOptions(t testing.TB, id string) []byte { t.Helper() - req := tcActCapturedReq(t, id) + return tcActCapturedOptionsIn(t, tdTcactwrite, id) +} + +// tcActCapturedOptionsIn is tcActCapturedOptions for a row of the corpus +// in dir. +func tcActCapturedOptionsIn(t testing.TB, dir, id string) []byte { + t.Helper() + req := tcActCapturedReqIn(t, dir, id) tab := tcAttr(t, req[NlMsgHdrSizeCst+TcaMsgSizeCst:], TcaRootTab) opts := tcAttr(t, tcAttr(t, tab, 1), TcaActOptions) if opts == nil { diff --git a/tools/nlcapgen/main.go b/tools/nlcapgen/main.go index d0ae9653d..370931768 100644 --- a/tools/nlcapgen/main.go +++ b/tools/nlcapgen/main.go @@ -145,32 +145,33 @@ var families = map[string]func() []*space{ "ethtool": func() []*space { return []*space{ethRingSpace(), ethChanSpace(), ethPauseSpace(), ethFecSpace(), ethCoalSpace(), ethShowSpace()} }, - "devlink": func() []*space { return []*space{devlinkSpace()} }, - "vdpa": func() []*space { return []*space{vdpaSpace()} }, - "fou": func() []*space { return []*space{fouSpace()} }, - "mptcp": func() []*space { return []*space{mptcpSpace()} }, - "tipc": func() []*space { return []*space{tipcSpace()} }, - "bridge": func() []*space { return []*space{bridgeSpace()} }, - "bridgex": func() []*space { return []*space{bridgexSpace()} }, - "bridgefdb": func() []*space { return []*space{bridgefdbSpace()} }, - "bridgemdb": func() []*space { return []*space{bridgemdbSpace()} }, - "tunnel": func() []*space { return []*space{tunnelSpace()} }, - "tuntap": func() []*space { return []*space{tuntapSpace()} }, - "tcqdisc": func() []*space { return []*space{tcqdiscSpace()} }, - "tcclass": func() []*space { return []*space{tcclassSpace()} }, - "tcfilter": func() []*space { return []*space{tcfilterSpace()} }, - "tcflower": func() []*space { return []*space{tcflowerSpace()} }, - "tcaction": func() []*space { return []*space{tcactionSpace()} }, - "tcaction2": func() []*space { return []*space{tcaction2Space()} }, - "tcmonitor": func() []*space { return []*space{tcmonitorSpace()} }, - "tcsched": func() []*space { return []*space{tcschedSpace()} }, - "tcaqm": func() []*space { return []*space{tcaqmSpace()} }, - "tcqwrite": func() []*space { return []*space{tcqwriteSpace()} }, - "tcswrite": func() []*space { return []*space{tcswriteSpace()} }, - "tcawrite": func() []*space { return []*space{tcawriteSpace()} }, - "tcfwrite": func() []*space { return []*space{tcfwriteSpace()} }, - "tcematch": func() []*space { return []*space{tcematchSpace()} }, - "tcactwrite": func() []*space { return []*space{tcactwriteSpace()} }, + "devlink": func() []*space { return []*space{devlinkSpace()} }, + "vdpa": func() []*space { return []*space{vdpaSpace()} }, + "fou": func() []*space { return []*space{fouSpace()} }, + "mptcp": func() []*space { return []*space{mptcpSpace()} }, + "tipc": func() []*space { return []*space{tipcSpace()} }, + "bridge": func() []*space { return []*space{bridgeSpace()} }, + "bridgex": func() []*space { return []*space{bridgexSpace()} }, + "bridgefdb": func() []*space { return []*space{bridgefdbSpace()} }, + "bridgemdb": func() []*space { return []*space{bridgemdbSpace()} }, + "tunnel": func() []*space { return []*space{tunnelSpace()} }, + "tuntap": func() []*space { return []*space{tuntapSpace()} }, + "tcqdisc": func() []*space { return []*space{tcqdiscSpace()} }, + "tcclass": func() []*space { return []*space{tcclassSpace()} }, + "tcfilter": func() []*space { return []*space{tcfilterSpace()} }, + "tcflower": func() []*space { return []*space{tcflowerSpace()} }, + "tcaction": func() []*space { return []*space{tcactionSpace()} }, + "tcaction2": func() []*space { return []*space{tcaction2Space()} }, + "tcmonitor": func() []*space { return []*space{tcmonitorSpace()} }, + "tcsched": func() []*space { return []*space{tcschedSpace()} }, + "tcaqm": func() []*space { return []*space{tcaqmSpace()} }, + "tcqwrite": func() []*space { return []*space{tcqwriteSpace()} }, + "tcswrite": func() []*space { return []*space{tcswriteSpace()} }, + "tcawrite": func() []*space { return []*space{tcawriteSpace()} }, + "tcfwrite": func() []*space { return []*space{tcfwriteSpace()} }, + "tcematch": func() []*space { return []*space{tcematchSpace()} }, + "tcactwrite": func() []*space { return []*space{tcactwriteSpace()} }, + "tcact2write": func() []*space { return []*space{tcact2writeSpace()} }, } // namedFamilies are families of named rows, written out as they are diff --git a/tools/nlcapgen/matrix_tcact2write.go b/tools/nlcapgen/matrix_tcact2write.go new file mode 100644 index 000000000..6208b2723 --- /dev/null +++ b/tools/nlcapgen/matrix_tcact2write.go @@ -0,0 +1,610 @@ +package main + +import ( + "slices" + "strconv" + "strings" +) + +// The second action write space (gotc 23C): `tc actions add|change| +// replace|delete|flush` of the six kinds increment 22 left (pedit, +// tunnel_key, ife, ct, gate and bpf), standalone and inside filters, and +// the bpf filter's writes (cBPF), in one corpus directory, ws/tcact2write. +// +// tc's side is tc/m_pedit.c with p_ip.c, p_ip6.c, p_icmp.c, p_tcp.c, +// p_udp.c and p_eth.c, m_tunnel_key.c, m_ife.c, m_ct.c, m_gate.c, m_bpf.c, +// f_bpf.c and lib/bpf_legacy.c's cBPF parser, at v7.2.0; the frame is +// increment 22's (m_action.c). The kernel's side is act_pedit.c, +// act_tunnel_key.c, act_ife.c, act_ct.c, act_gate.c, act_bpf.c and +// cls_bpf.c. +// +// The rows pin the plan's leads (docs/netlink/upstream/ +// iproute2-tc-action-write.md, W216-W320): pedit's positional at (W216), +// offmask's base (W217), the word its error names (W218), bad pedit +// parsing (W219), the 128-key limit (W220), pack_key8's message (W221), +// retain on long fields (W222), invert as set (W223), preserve and retain +// (W224), prefixes (W225-W227), the usage (W228), its dead messages +// (W229), unknown kinds (W230, W231), MACs (W232), addresses (W233, +// W234), negative offsets (W235), icmp_code (W236), dsfield and +// precedence (W237), flow_lbl (W238), icmp (W239), the ex rules (W240), +// pedit pedit (W241), no keys (W242), control before index (W243), goto +// (W244), an unknown word (W245), exits (W246), index's base (W247), a +// filter past 16384 (W248) and ex add (W249); tunnel_key's get_addr exit +// (W250), any (W251), mixed families (W252), no set or unset (W253), the +// bare kind (W254), prefixes (W255), bases (W256, W257), geneve's fields +// (W258-W260), erspan's (W261), two option kinds (W262), NO_CSUM (W263), +// index (W264), strtok's NULs (W265) and the usage (W266); ife's index +// alone (W267), no mode (W268), the kind loop (W269), prefixes (W270), use +// 0 and METALST's order (W271), bases (W272), decode's dropped words +// (W273), TYPE's order (W274) and padding (W275); ct's trailing nat +// (W276, W277), its usage exit (W278), get_addr (W279), the 63-byte copy +// (W280), any (W281), ports (W282), helpers (W283, W284), labels +// (W285-W287), index after control (W288), clear and force (W289), zone +// (W290), NULs (W291) and prefixes (W292); gate's 1024-byte nest bound +// (W293), its uninitialised maxoctets (W294) and partial ones (W295), +// bases (W296), strtod times (W297), negative base-time (W298), 0 as unset +// (W299), entry errors (W300, W301), prefixes (W302), control (W303), +// closed entries (W304), an empty list (W305) and no schedule checks +// (W306); bpf's 16384 bound (W307), the header (W308), instruction text +// (W309, W310), bytecode-file (W311), index (W312), the bare kind (W313), +// mode prefixes (W314), and the filter's missing program (W315), missing +// options (W316), order (W317), prefixes (W318), messages (W319) and skip +// flags (W320). +// +// Only cBPF is written: object-file, object-pinned and fd reach bpf(2) or +// libbpf, so those rows record tc's own answer and gotc refuses them by +// name. Determinism: explicit indexes, fixed MACs, no packets, a gate +// base-time in the past. + +// tcA2Modules are increment 22's modules, cls_bpf and ife's three meta +// modules. An ife with no METALST asks the kernel to use every meta kind +// loaded, and is refused (EINVAL, no extack) when none is, so the meta +// modules are loaded up front rather than by whichever encode row runs +// first. act_ct loads its ftp helper on demand. +var tcA2Modules = append(slices.Clone(tcActWriteModules), "cls_bpf", "act_meta_mark", "act_meta_skbprio", "act_meta_skbtcindex") + +// tcA2Kinds are the six kinds, in the plan's order. +var tcA2Kinds = []string{"pedit", "tunnel_key", "ife", "ct", "gate", "bpf"} + +// tcA2One is one valid action of each kind, without its index. +var tcA2One = map[string]string{ + "pedit": "pedit munge offset 12 u32 set 0x1", + "tunnel_key": "tunnel_key unset", + "ife": "ife decode", + "ct": "ct commit", + "gate": "gate sched-entry open 1000000 -1 -1", + "bpf": "bpf bytecode '1,6 0 0 0'", +} + +// tcA2Two is a second form of each kind, for change and replace. +var tcA2Two = map[string]string{ + "pedit": "pedit ex munge ip ttl add 1", + "tunnel_key": "tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 7", + "ife": "ife encode allow mark", + "ct": "ct commit zone 5", + "gate": "gate base-time 1000 sched-entry close 2000000", + "bpf": "bpf bytecode '1,6 0 0 4294967295'", +} + +// tcA2Prog is a four-instruction cBPF program: accept IPv4, drop the rest. +const tcA2Prog = "4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0" + +// tcA2Keys is n raw pedit keys. +func tcA2Keys(n int) string { + return strings.Repeat(" munge offset 0 u32 set 1", n) +} + +// tcA2Entries is n open gate entries of 32 bytes each. +func tcA2Entries(n int) string { + return strings.Repeat(" sched-entry open 1000 -1 -1", n) +} + +// tcA2File is a pre step writing s to bpf.txt in the row's directory. +func tcA2File(s string) string { return "printf '%s' " + shq(s) + " > bpf.txt" } + +// tcA2FileN is a pre step writing a bytecode file of header hdr and n +// one-instruction lines. +func tcA2FileN(hdr, n int) string { + return "{ printf '%s\\n' " + strconv.Itoa(hdr) + "; i=0; while [ $i -lt " + strconv.Itoa(n) + + " ]; do printf '6 0 0 0\\n'; i=$((i+1)); done; } > bpf.txt" +} + +// tcA2Nat62 and tcA2Nat63 are v6 nat ranges of 62 and 63 bytes: ct's +// SPRINT_BUF copy keeps 63, so the second is left unterminated (W280). +const ( + tcA2Nat62 = "2001:0db8:0000:0000:0000:0000:0000:0001-2001:0db8:0000:0000::9" + tcA2Nat63 = "2001:0db8:0000:0000:0000:0000:0000:0001-2001:0db8:0000:0000::09" +) + +// tcact2writeSpace: the action writes of the six kinds and the bpf +// filter's writes. +func tcact2writeSpace() *space { + var cmds []value + rb := map[string][]readback{} + add := func(kind brKind, fix string, r readback, words string, pre []string) { + val := bc(kind, fix, words, pre) + cmds = append(cmds, val) + rb[val.Name] = []readback{r} + } + base := tcFwriteBase + a := func(kind brKind, fix, k, words string) { + add(kind, fix, tcAwRb(k), "actions add action "+words, base) + } + // af is a standalone add with a pre step (bpf.txt). + af := func(kind brKind, fix, k, words, file string) { + add(kind, fix, tcAwRb(k), "actions add action "+words, tcAwPre(file)) + } + + // The verb grid: each kind's add, change, replace, delete and flush. + for _, k := range tcA2Kinds { + one, two := tcA2One[k], tcA2Two[k] + made := tcAwPre("tc actions add action " + one + " index 1") + a(brPos, "v-add", k, one+" index 1") + add(brPos, "v-change", tcAwRb(k), "actions change action "+two+" index 1", made) + add(brPos, "v-replace", tcAwRb(k), "actions replace action "+two+" index 1", made) + add(brPos, "v-replace-new", tcAwRb(k), "actions replace action "+two+" index 2", base) + add(brPos, "v-delete", tcAwRb(k), "actions delete action "+k+" index 1", made) + add(brPos, "v-flush", tcAwRb(k), "actions flush action "+k, + tcAwPre("tc actions add action "+one+" index 1", "tc actions add action "+one+" index 2")) + } + + // pedit: raw offsets, every command, every layered field. + p := func(kind brKind, fix, words string) { a(kind, fix, "pedit", words) } + p(brPos, "ped", "pedit munge offset 0 u8 set 0x1 index 1") + p(brPos, "ped", "pedit munge offset 1 u8 set 0x1 index 1") + p(brPos, "ped", "pedit munge offset 3 u8 set 0x1 index 1") + p(brPos, "ped", "pedit munge offset 2 u16 set 0x1 index 1") + p(brPos, "ped", "pedit munge offset 12 u16 set 0x0800 retain 0xff00 index 1") + p(brPos, "ped", "pedit munge offset 12 u32 at 0 f 2 set 0x1 index 1") + p(brPos, "ped", "pedit munge offset 12 u32 clear index 1") + p(brPos, "ped", "pedit munge offset 12 u32 invert index 1") + p(brPos, "ped", "pedit munge offset 12 u32 preserve index 1") + p(brPos, "ped", "pedit munge offset 12 u32 set 0x1 drop index 1") + p(brPos, "ped", "pedit munge offset 12 u32 set 0x1 munge offset 16 u32 set 0x2 pipe index 1") + p(brPos, "ped", "pedit ex munge offset 12 u32 add 1 index 1") + for _, f := range []string{"src set 10.0.0.1", "dst set 10.0.0.2", "tos set 0x10", "dsfield set 0x10", "ihl set 5", + "ttl set 64", "protocol set 17", "precedence set 0x20", "nofrag set 0", "firstfrag set 0", "ce set 0x80", + "df set 0x40", "mf set 0x20", "dport set 80", "sport set 53", "icmp_type set 8"} { + p(brPos, "ped-ip", "pedit munge ip "+f+" index 1") + } + for _, f := range []string{"ip src set 10.0.0.1", "ip ttl decrement", "ip ttl add 1", "ip tos set 0x10 retain 0xf0", + "ip6 src set 2001:db8::1", "ip6 dst set 2001:db8::2", "ip6 flow_lbl set 0x12345", "ip6 payload_len set 100", + "ip6 nexthdr set 6", "ip6 hoplimit set 64", "ip6 hoplimit decrement", "ip6 traffic_class set 0x10", + "tcp sport set 80", "tcp dport set 443", "tcp flags set 0x02", "udp sport set 53", "udp dport set 67", + "eth dst set 02:00:00:00:00:09", "eth src set 02:00:00:00:00:0a", "eth type set 0x0800"} { + p(brPos, "ped-ex", "pedit ex munge "+f+" index 1") + } + p(brPos, "ped-ex", "pedit ex munge ip ttl set 10 munge ip6 hoplimit set 10 munge tcp dport set 80 munge eth type set 0x86dd index 1") + p(brBoundary, "ped", "pedit munge ip ttl set 255 index 1") + p(brBoundary, "ped", "pedit munge ip dport set 65535 index 1") + p(brBoundary, "w220", "pedit"+tcA2Keys(128)+" index 1") + p(brCorner, "w216-at", "pedit munge offset 12 u32 at 4 0xff 24 set 1 index 1") + p(brCorner, "w217", "pedit munge offset 12 u32 at 0x4 10 2 set 1 index 1") + p(brCorner, "w223", "pedit ex munge eth dst invert index 1") + p(brCorner, "w223-ip6", "pedit ex munge ip6 dst invert index 1") + p(brCorner, "w224", "pedit munge offset 12 u32 preserve retain 0xff index 1") + p(brCorner, "w224-set", "pedit munge offset 12 u32 set 0x1234 retain 0xff index 1") + p(brCorner, "w227", "pedit munge offset 12 u32 a 0 f 0 set 1 index 1") + p(brCorner, "w227-u", "pedit munge offset 12 u set 1 index 1") + p(brCorner, "w227-u1", "pedit munge offset 12 u1 set 1 index 1") + p(brCorner, "w232-junk", "pedit ex munge eth dst set 02:00:00:00:00:01junk index 1") + p(brCorner, "w233", "pedit munge ip src set 10.0.0.1/8 index 1") + p(brCorner, "w233-legacy", "pedit munge ip src set 010.1 index 1") + p(brCorner, "w233-any", "pedit munge ip dst set any index 1") + p(brCorner, "w234", "pedit ex munge ip6 src set any index 1") + p(brCorner, "w234-len", "pedit ex munge ip6 src set 2001:db8::1/64 index 1") + p(brCorner, "w235", "pedit munge offset -4 u32 set 1 index 1") + p(brCorner, "w236", "pedit munge ip icmp_code set 3 index 1") + p(brCorner, "w237-d", "pedit munge ip d set 1 index 1") + p(brCorner, "w237-p", "pedit munge ip p set 1 index 1") + p(brCorner, "w238", "pedit ex munge ip6 flow_lbl set 0xfffff index 1") + p(brCorner, "w243", "pedit munge ip ttl set 1 index 5 pipe") + p(brCorner, "w249", "pedit ex munge ip6 src add ::1 index 1") + p(brCorner, "w249-eth", "pedit ex munge eth dst add 00:00:00:00:00:01 index 1") + + // tunnel_key. + tk := func(kind brKind, fix, words string) { a(kind, fix, "tunnel_key", words) } + const tkSet = "tunnel_key set src_ip 10.0.0.1 dst_ip 10.0.0.2 " + tk(brPos, "tk", tkSet+"id 7 dst_port 4789 tos 0x10 ttl 64 index 1") + tk(brPos, "tk", "tunnel_key set src_ip 2001:db8::1 dst_ip 2001:db8::2 id 8 dst_port 6081 index 1") + tk(brPos, "tk", tkSet+"id 7 nocsum nofrag index 1") + tk(brPos, "tk", tkSet+"id 7 csum index 1") + tk(brPos, "tk", tkSet+"index 1") + tk(brPos, "tk", tkSet+"id 7 geneve_opts 0102:80:00880022 index 1") + tk(brPos, "tk", "tunnel_key set src_ip 2001:db8::1 dst_ip 2001:db8::2 id 8 geneve_opts 0102:80:00880022,0103:81:00a000b0,0104:82:0011223344556677 index 1") + tk(brPos, "tk", tkSet+"id 9 vxlan_opts 4660 index 1") + tk(brPos, "tk", tkSet+"id 10 erspan_opts 1:12:0:0 index 1") + tk(brPos, "tk", tkSet+"id 11 erspan_opts 2:0:1:7 index 1") + tk(brPos, "tk", "tunnel_key unset drop index 1") + tk(brPos, "tk", tkSet+"id 7 pipe index 1") + tk(brBoundary, "tk", tkSet+"id 7 tos 255 ttl 255 index 1") + tk(brBoundary, "tk", tkSet+"id 4294967295 dst_port 65535 index 1") + tk(brCorner, "w255", "tunnel_key s src_ip 10.0.0.1 d 10.0.0.2 i 7 t 1 n index 1") + tk(brCorner, "w257", tkSet+"id 7 tos 1a ttl 010 index 1") + tk(brCorner, "w259-8", tkSet+"id 7 geneve_opts 0102:80:00112233 index 1") + tk(brCorner, "w262", tkSet+"id 7 geneve_opts 0102:80:00880022 vxlan_opts 4660 index 1") + tk(brCorner, "w263", "tunnel_key unset src_ip 10.0.0.1 dst_ip 10.0.0.2 nocsum index 1") + tk(brCorner, "w264", "tunnel_key unset index 5 pipe") + + // ife. + fe := func(kind brKind, fix, words string) { a(kind, fix, "ife", words) } + fe(brPos, "w274", "ife encode type 0xED3E dst 02:00:00:00:00:01 src 02:00:00:00:00:02 use mark 7 index 1") // TYPE in host order + fe(brPos, "w275", "ife encode allow mark allow prio allow tcindex index 1") // tc_ife's padding + fe(brPos, "ife", "ife encode use prio 5 use tcindex 3 index 1") + fe(brPos, "ife", "ife decode index 1") + fe(brPos, "ife", "ife encode allow mark drop index 1") + fe(brBoundary, "ife", "ife encode use mark 4294967295 use tcindex 65535 index 1") + fe(brCorner, "w267", "ife index 5") + fe(brCorner, "w269", "ife ife i decode index 1") + fe(brCorner, "w270", "ife e a mark ds 02:00:00:00:00:01 t 0x1234 index 1") + fe(brCorner, "w270-last", "ife encode decode index 1") + fe(brCorner, "w271", "ife encode use mark 0 index 1") + fe(brCorner, "w271-order", "ife encode use tcindex 1 use mark 2 allow prio index 1") + fe(brCorner, "w271-over", "ife encode allow mark use mark 9 index 1") + fe(brCorner, "w272", "ife encode use mark 010 index 0x5") + fe(brCorner, "w273", "ife decode dst 02:00:00:00:00:01 type 0x1234 allow mark index 1") + fe(brCorner, "w196-ife", "ife encode dst 02:00:00:00:00:01junk allow mark index 1") + fe(brCorner, "w196-ife-x", "ife encode dst 0x2:1aa:00:00:00:01 allow mark index 1") + + // ct. + c := func(kind brKind, fix, words string) { a(kind, fix, "ct", words) } + c(brPos, "ct", "ct index 1") + c(brPos, "ct", "ct commit force index 1") + c(brPos, "ct", "ct clear index 1") + c(brPos, "ct", "ct zone 5 index 1") + c(brPos, "ct", "ct commit zone 404 mark 0x42/0xf0 label 12312300000000000000000000000001/ffffffff000000000000000000000001 index 1") + c(brPos, "ct", "ct commit mark 5 index 1") + c(brPos, "ct", "ct commit label 0102 index 1") + c(brPos, "ct", "ct commit nat src addr 10.0.0.1-10.0.0.9 port 1000-2000 index 1") + c(brPos, "ct", "ct commit nat dst addr 10.0.0.1 port 80 index 1") + c(brPos, "ct", "ct commit nat dst addr 2001:db8::1 index 1") + c(brPos, "ct", "ct commit nat src addr 2001:db8::1-2001:db8::9 port 80-90 index 1") + c(brPos, "ct", "ct nat index 1") + c(brPos, "ct", "ct nat zone 3 index 1") + c(brPos, "ct", "ct commit helper ipv4-tcp-ftp index 1") + c(brPos, "ct", "ct commit helper ipv6-tcp-ftp index 1") + c(brPos, "ct", "ct commit index 1 drop") + c(brBoundary, "ct", "ct zone 65535 index 1") + c(brBoundary, "w285-32", "ct commit label 0123456789abcdef0123456789abcdef index 1") + c(brBoundary, "w280-62", "ct commit nat src addr "+tcA2Nat62+" index 1") + c(brCorner, "w280", "ct commit nat src addr "+tcA2Nat63+" index 1") // unterminated: gotc refuses by name + c(brCorner, "w281", "ct commit nat src addr 10.0.0.1 index 1") + c(brCorner, "w282", "ct commit nat src addr 10.0.0.1 port 2000-1000 index 1") + c(brCorner, "w284", "ct commit helper ipv4-6-ftp index 1") + c(brCorner, "w287-odd", "ct commit label 00g index 1") + c(brCorner, "w287-0", "ct commit label 0 index 1") + c(brCorner, "w289", "ct clear zone 5 mark 1 index 1") + c(brCorner, "w289-force", "ct force index 1") + c(brCorner, "w290", "ct zone 010 index 1") + c(brCorner, "w292", "ct co z 5 m 1 index 1") + c(brCorner, "w292-c", "ct c index 1") + + // gate. + g := func(kind brKind, fix, words string) { a(kind, fix, "gate", words) } + g(brPos, "gate", "gate priority 2 clockid CLOCK_TAI base-time 200000000000ns cycle-time 300000000ns cycle-time-ext 1000ns"+ + " sched-entry open 100000000ns 3 8000 sched-entry close 100000000ns -1 -1 sched-entry open 100000000ns 1 -1 index 1") + g(brPos, "gate", "gate sched-entry close 100000000ns index 1") + g(brPos, "gate", "gate sched-entry open 1ms index 1") + g(brPos, "gate", "gate sched-entry open 1us -1 -1 index 1") + g(brPos, "gate", "gate sched-entry open 1000000 3 8k index 1") + for _, ck := range []string{"CLOCK_TAI", "CLOCK_REALTIME", "CLOCK_MONOTONIC", "CLOCK_BOOTTIME", "tai", "clock_boottime"} { + g(brPos, "gate-clk", "gate clockid "+ck+" sched-entry open 1000000 -1 -1 index 1") + } + g(brPos, "gate", "gate base-time 1 cycle-time 2000000 sched-entry open 1000000 -1 -1 sched-entry close 1000000 index 1") + g(brPos, "gate", "gate flags 1 sched-entry open 1000000 -1 -1 index 1") + g(brPos, "gate", "gate sched-entry open 1000000 -1 -1 index 1 drop") + g(brBoundary, "gate", "gate sched-entry open 4294967295 -1 -1 index 1") + g(brBoundary, "gate", "gate sched-entry open 4294967295ns -1 -1 index 1") + g(brBoundary, "gate", "gate sched-entry open 1000 2147483647 2147483647 index 1") + g(brBoundary, "w293-30", "gate"+tcA2Entries(30)+" index 1") + g(brCorner, "w293-31", "gate"+tcA2Entries(31)+" index 1") + g(brCorner, "w293-40", "gate"+tcA2Entries(40)+" index 1") + g(brCorner, "w293-close", "gate"+strings.Repeat(" sched-entry close 1000", 36)+" index 1") + // W294 has no row: a numeric ipv followed by a word that isn't a + // size reads get_size's uninitialised sz64, a stack value that + // changes from run to run (three runs sent 0x33874a91, 0x4c352a91 + // and 0x7fec5a91, or refused it as "maxoctets" too large). gotc + // refuses it by name; its unit test pins that. + g(brCorner, "w295", "gate sched-entry open 1ms 1 1.5 index 1") + g(brCorner, "w295-0kb", "gate sched-entry open 1ms 1 0kb index 1") + g(brCorner, "w296", "gate priority 0x2 sched-entry open 0x10 0x3 0x10 index 1") + g(brCorner, "w296-time", "gate base-time 0x10 cycle-time 1.5 sched-entry open 1000000 -1 -1 index 1") + // UB casts tc sends and the kernel accepts; gotc refuses them by name. + g(brCorner, "w297-inf", "gate base-time inf sched-entry open 1000000 -1 -1 index 1") + g(brCorner, "w297-nan", "gate base-time nan sched-entry open 1000000 -1 -1 index 1") + g(brCorner, "w297-big", "gate cycle-time 1e30 sched-entry open 1000000 -1 -1 index 1") + g(brCorner, "w297-frac", "gate base-time 1.9ns sched-entry open 1000000 -1 -1 index 1") + g(brCorner, "w298", "gate base-time -1 sched-entry open 1000000 -1 -1 index 1") + g(brCorner, "w299", "gate priority -1 flags 0 base-time 0 cycle-time 0 sched-entry open 1000000 -1 -1 index 1") + g(brCorner, "w302", "gate p 2 c 2000000 sched-entry open 1000000 -1 -1 index 1") + g(brCorner, "w304", "gate sched-entry close 1000000 3 8000 index 1") + g(brCorner, "w306", "gate cycle-time 1000 sched-entry open 1000000 -1 -1 sched-entry open 1000000 -1 -1 index 1") + + // bpf: the action. + b := func(kind brKind, fix, words string) { a(kind, fix, "bpf", words) } + b(brPos, "bpf", "bpf bytecode '"+tcA2Prog+"' index 1") + b(brPos, "bpf", "bpf bc '1,6 0 0 0' index 1") + b(brPos, "bpf", "bpf run bytecode '1,6 0 0 0' index 1") + b(brPos, "bpf", "bpf bytecode '1,6 0 0 0' drop index 1") + b(brPos, "bpf", "bpf bytecode '1,6 0 0 0,' index 1") + af(brPos, "bpf-file", "bpf", "bpf bytecode-file bpf.txt index 1", tcA2File("4\n40 0 0 12\n21 0 1 2048\n6 0 0 262144\n6 0 0 0\n")) + af(brPos, "bpf-file", "bpf", "bpf bcf bpf.txt index 1", tcA2File("1,6 0 0 0")) + af(brPos, "bpf-file", "bpf", "bpf bytecode-file bpf.txt index 1", tcA2File("2,\t6 0 0 0\n\n6 0 0 1\n")) + af(brCorner, "w311-dash", "bpf", "bpf bytecode-file - index 1", "printf '1,6 0 0 0' > ./-") + af(brBoundary, "w307-2038", "bpf", "bpf bytecode-file bpf.txt index 1", tcA2FileN(2038, 2038)) + b(brCorner, "w308", "bpf bytecode '65537,6 0 0 0' index 1") + b(brCorner, "w309", "bpf bytecode '1,6 0 0 0xffff' index 1") + b(brCorner, "w309-wrap", "bpf bytecode '1,65542 256 0 4294967296' index 1") + b(brCorner, "w314", "bpf b '1,6 0 0 0' index 1") + + // Inside filters: a matchall carrying each kind. + for _, k := range tcA2Kinds { + add(brPos, "f-"+k, tcFwRbE, tcFwM+"action "+tcA2One[k], base) + } + add(brPos, "f-list", tcFwRbE, tcFwM+"action pedit ex munge ip ttl add 1 action ct commit zone 3"+ + " action gate sched-entry open 1ms action tunnel_key unset action ife decode action bpf bytecode '1,6 0 0 0'", base) + add(brPos, "f-bind", tcFwRbE, tcFwM+"action ct index 1", tcAwPre("tc actions add action ct commit index 1")) + add(brCorner, "w242-bind", tcFwRbE, tcFwM+"action pedit index 1", tcAwPre("tc actions add action "+tcA2One["pedit"]+" index 1")) + add(brCorner, "w305-bind", tcFwRbE, tcFwM+"action gate index 1", tcAwPre("tc actions add action "+tcA2One["gate"]+" index 1")) + add(brCorner, "w312-bind", tcFwRbE, tcFwM+"action bpf index 1", tcAwPre("tc actions add action "+tcA2One["bpf"]+" index 1")) + add(brCorner, "w248-2", tcFwRbE, tcFwM+"action pedit ex"+tcA2Keys(128)+" action pedit ex"+tcA2Keys(128), base) + + // The bpf filter. + const fb = tcFwI + "pref 1 protocol ip handle 1 bpf " + madeF := tcAwPre("tc " + fb + "bytecode '1,6 0 0 0' classid 1:1") + add(brPos, "fb", tcFwRbI, fb+"bytecode '"+tcA2Prog+"' classid 1:1", base) + add(brPos, "fb", tcFwRbI, fb+"bytecode '1,6 0 0 0' da skip_hw", base) + add(brPos, "fb", tcFwRbI, fb+"bytecode '1,6 0 0 4294967295' action gact pass", base) + add(brPos, "fb", tcFwRbI, fb+"bytecode '1,6 0 0 4294967295' police rate 1mbit burst 10k drop", base) + add(brPos, "fb", tcFwRbI, fb+"run bytecode '1,6 0 0 0' flowid 1:2", base) + add(brPos, "fb", tcFwRbI, fb+"bc '1,6 0 0 0' direct-action", base) + add(brPos, "fb", tcFwRbI, fb+"flowid 1:1 bytecode '1,6 0 0 0'", base) + add(brPos, "fb", tcFwRbI, fb+"bytecode '1,6 0 0 0' action pedit ex munge ip ttl add 1 action ct commit", base) + add(brPos, "fb-file", tcFwRbI, fb+"bytecode-file bpf.txt classid 1:1", tcAwPre(tcA2File(tcA2Prog))) + add(brPos, "fb-v", tcFwRbI, strings.Replace(fb, "filter add", "filter change", 1)+"bytecode '1,6 0 0 1' classid 1:2", madeF) + add(brPos, "fb-v", tcFwRbI, strings.Replace(fb, "filter add", "filter replace", 1)+"bytecode '1,6 0 0 1' classid 1:2", madeF) + add(brPos, "fb-v", tcFwRbI, strings.Replace(fb, "filter add", "filter replace", 1)+"bytecode '1,6 0 0 1'", base) + add(brPos, "fb-v", tcFwRbI, "filter delete dev d0 ingress pref 1 protocol ip handle 1 bpf", madeF) + add(brPos, "fb-p", tcFwRbP, tcFwP+"pref 1 protocol ip handle 7 bpf bytecode '1,6 0 0 0' classid 1:2", base) + add(brCorner, "w317", tcFwRbI, fb+"classid 1:1 bytecode '1,6 0 0 0' classid 1:2 da action gact pass", base) + add(brCorner, "w318", tcFwRbI, fb+"bytecode '1,6 0 0 0' s f 1:1", base) + + // Batches: NULs tc writes into a line buffer, which a later simple's + // 32-byte copy shows (W189); the exits that end a -force batch; and + // bytecode-file in a batch. + batch := func(kind brKind, fix, name string, r readback, pre []string, lines ...string) { + cmds = append(cmds, bb(kind, fix, name, "", false, batchFile(lines...), pre)) + rb[cmds[len(cmds)-1].Name] = []readback{r} + } + batch(brCorner, "w232-batch", "eth-colons", tcAwRb("simple"), base, + "actions add action pedit ex munge eth dst set 02:00:00:00:00:01 index 1", + "actions add action simple sdata x") + batch(brCorner, "w265-batch", "strtok", tcAwRb("simple"), base, + "actions add action tunnel_key geneve_opts 0102:80:00880022,0103:81:00a000b0 set src_ip 10.0.0.1 dst_ip 10.0.0.2 id 1 index 1", + "actions add action simple sdata x") + batch(brCorner, "w291-batch", "slash", tcAwRb("simple"), base, + "actions add action ct commit mark 0x1/0xff label 01/ff index 1", + "actions add action simple sdata x") + batch(brPos, "bpf-batch", "file", tcFwRbI, tcAwPre(tcA2File("1,6 0 0 0")), + "actions add action bpf bytecode-file bpf.txt index 1", + "filter add dev d0 ingress pref 1 protocol ip handle 1 bpf bytecode-file bpf.txt action bpf index 1") + + // The refusals. + ack255 := expect{RC: intp(255), RefusedBy: refAckThenFail} + ack1 := expect{RC: intp(1), RefusedBy: refAckThenFail} + tool1 := expect{RC: intp(1), RefusedBy: refIproute2} + k := func(errno string) expect { return expect{RC: intp(255), Errno: errno, RefusedBy: refKernel} } + kf := func(errno string) expect { return expect{RC: intp(2), Errno: errno, RefusedBy: refKernel} } + aB := func(fix, words string, exp expect, why string) badValue { + return brBad(fix, "actions add action "+words, base, exp, why) + } + fB := func(fix, words string, exp expect, why string) badValue { + return brBad(fix, fb+words, base, exp, why) + } + bad := []badValue{ + // pedit. + aB("w191-ped", "pedit", tcTool, "a bare pedit: NEXT_ARG (W246)"), + aB("w216", "pedit munge offset 12 u32 at 0 offmask f shift 0 set 1 index 1", tcTool, + "the man page's at form: Bad pedit construct (12) (W216)"), + aB("w218", "pedit munge offset 2 u32 set 1", tcTool, "a failed pack at the end of the line: Bad pedit construct ((null)) (W218)"), + aB("w218-idx", "pedit munge offset 2 u32 set 1 index 1", tcTool, "the same with index after: (index) (W218)"), + aB("w219", "pedit munge ip foo set 1 index 1", tcTool, "bad pedit parsing, then Bad pedit construct (ip) (W219)"), + aB("w220-129", "pedit"+tcA2Keys(129)+" index 1", tcTool, "key 129: pack_key returns -1 with no message of its own (W220)"), + aB("w221", "pedit munge ip ttl set 256 index 1", tcTool, "pack_key8 bad value (val 100 mask 0 (W221)"), + aB("w221-16", "pedit munge ip dport set 65536 index 1", tcTool, "pack_key16 bad value (W221)"), + aB("w222", "pedit ex munge eth dst preserve index 1", tcTool, "retain is not supported for fields longer the 32 bits (W222)"), + aB("w222-ip6", "pedit ex munge ip6 src set ::1 retain 0xff index 1", tcTool, "the same for ip6 (W222)"), + aB("w225", "pedit munge ip ttl set 5 r", tcTool, "r is retain: NEXT_ARG (W225)"), + aB("w226", "pedit munge ip ttl set 5 p", tcTool, "p is pedit: NEXT_ARG (W226)"), + aB("w228", "pedit help", tcTool, "the usage, exit(-1) (W228)"), + aB("w229", "pedit munge ip ttl add 1 index 1", tcTool, "Non extended mode. only 'set' command is supported (W229)"), + aB("w229-dec", "pedit munge ip ttl decrement index 1", tcTool, "decrement without ex (W229)"), + aB("w230", "pedit munge foo bar index 1", tcTool, "Unknown action hence option \"bar\" is unparsable (W230)"), + aB("w230-end", "pedit munge foo", tcTool, "an unknown kind at the end of the line: NEXT_ARG (W230)"), + aB("w231", "pedit munge abcdefghijklmnopq bar index 1", tcTool, "a 17-byte kind: k[16] unterminated (W231)"), + aB("w232", "pedit ex munge eth dst set aa index 1", tcTool, "one MAC group (W232)"), + aB("w232-p4", "pedit ex munge eth dst set 1.2.3.4 index 1", tcTool, "a dotted MAC is 4 bytes (W232)"), + aB("w232-long", "pedit ex munge eth dst set 02:00:00:00:00:01:02 index 1", tcTool, "seven MAC groups (W232)"), + aB("w232-bad", "pedit ex munge eth dst set zz:00:00:00:00:01 index 1", tcTool, "a bad group (W232)"), + aB("w239", "pedit munge icmp type set 1 index 1", tcTool, "icmp always fails (W239)"), + aB("w240-ip6", "pedit munge ip6 src set ::1 index 1", tcTool, "ip6 without ex (W240)"), + aB("w240-tcp", "pedit munge tcp dport set 80 index 1", tcTool, "tcp without ex (W240)"), + aB("w240-udp", "pedit munge udp sport set 53 index 1", tcTool, "udp without ex (W240)"), + aB("w240-eth", "pedit munge eth type set 0x800 index 1", tcTool, "eth without ex (W240)"), + aB("w240-sport", "pedit ex munge ip sport set 1 index 1", tcTool, "ip sport with ex (W240)"), + aB("w240-icmp", "pedit ex munge ip icmp_type set 1 index 1", tcTool, "ip icmp_type with ex (W240)"), + aB("w241", "pedit pedit ex munge ip ttl set 1 index 1", tcTool, "'ex' must be before first 'munge' (W241)"), + aB("w242", "pedit pipe index 1", k("EINVAL"), "no keys on a create (W242)"), + aB("w242-ex", "pedit ex pipe index 1", k("EINVAL"), "no keys with ex: an empty KEYS_EX (W242)"), + aB("w244", "pedit munge ip ttl set 1 goto chain x index 1", tcTool, "Illegal \"chain index\" twice (W244)"), + aB("w245", "pedit munge ip ttl set 1 foo index 1", tcTool, "an unknown word becomes the next kind (W245)"), + aB("w246", "pedit munge ip src", tcTool, "a bare ip src: -1, Bad pedit construct (W246)"), + aB("w246-set", "pedit munge ip src set", tcTool, "set with no value: NEXT_ARG (W246)"), + aB("w247", "pedit munge ip ttl set 1 index 0x5", tcTool, "Pedit: Illegal \"index\" (W247)"), + aB("ped-off", "pedit munge offset 13 u32 set 1 index 1", tcTool, "pack_key32: 32 bit offsets must begin in 32bit boundaries"), + aB("ped-off16", "pedit munge offset 3 u16 set 1 index 1", tcTool, "pack_key16 bad index value 3"), + aB("ped-offzz", "pedit munge offset zz u32 set 1 index 1", tcTool, "an unparsable offset: Bad pedit construct (zz)"), + aB("ped-u64", "pedit munge offset 12 u64 set 1 index 1", tcTool, "no such width"), + aB("ped-dec", "pedit ex munge ip tos decrement index 1", tcTool, "decrement command is not supported for this field"), + aB("ped-cmd", "pedit munge offset 12 u32 bogus index 1", tcTool, "no such command"), + aB("ped-nomunge", "pedit offset 12 u32 set 1 index 1", tcTool, "offset is the next kind after an empty pedit"), + // tunnel_key. + aB("w250", "tunnel_key set src_ip bogus dst_ip 10.0.0.2 id 1 index 1", tool1, + "get_addr's message and exit(1); Illegal \"src_ip\" can't be reached (W250)"), + aB("w251", "tunnel_key set src_ip any dst_ip 10.0.0.2 id 1 index 1", k("ERANGE"), "a 0-byte IPV6_SRC (W251)"), + aB("w252", "tunnel_key set src_ip 10.0.0.1 dst_ip 2001:db8::2 id 1 index 1", k("EINVAL"), "mixed families (W252)"), + aB("w253", "tunnel_key src_ip 10.0.0.1 dst_ip 10.0.0.2 id 1 index 1", k("EINVAL"), "t_action 0: Unknown tunnel key action (W253)"), + aB("w254", "tunnel_key", tcTool, "a bare tunnel_key: NEXT_ARG (W254)"), + aB("w256-id", tkSet+"id 0x7 index 1", tcTool, "Illegal \"id\" (W256)"), + aB("w256-port", tkSet+"id 7 dst_port 0x12b5 index 1", tcTool, "Illegal \"dst port\" (W256)"), + aB("w256-index", tkSet+"id 7 index 0x1", tcTool, "tunnel_key: Illegal \"index\" (W256)"), + aB("w258", tkSet+"id 7 geneve_opts 0102::01020304 index 1", tcTool, "strtok merges the empty field: Illegal \"geneve_opts\" (W258)"), + aB("w258-nodata", tkSet+"id 7 geneve_opts 0102:80 index 1", k("EINVAL"), "no DATA (W258)"), + aB("w259-1", tkSet+"id 7 geneve_opts 0102:80:0 index 1", k("ERANGE"), "1 hex char is 0 bytes of DATA: less than 4 bytes long (W259)"), + aB("w259-7", tkSet+"id 7 geneve_opts 0102:80:0011223 index 1", k("ERANGE"), "7 hex chars are 3 bytes: the odd nibble is dropped (W259)"), + aB("w261", tkSet+"id 7 erspan_opts 2::1:16 index 1", k("EINVAL"), "strtok shifts the fields: Missing tunnel key erspan option dir or hwid (W261)"), + aB("w260", tkSet+"id 7 geneve_opts '' index 1", k("EINVAL"), "an empty ENC_OPTS (W260)"), + aB("w266", "tunnel_key set set src_ip 10.0.0.1 dst_ip 10.0.0.2 index 1", tcTool, "unexpected \"set\" - action already specified (W266)"), + aB("tk-noaddr", "tunnel_key set id 1 index 1", tcTool, "set needs tunnel_key parameters"), + aB("tk-tos", tkSet+"id 7 tos 256 index 1", tcTool, "Illegal \"tos\""), + aB("tk-vx", tkSet+"id 7 vxlan_opts zz index 1", tcTool, "Illegal \"vxlan_opts\""), + aB("tk-er", tkSet+"id 7 erspan_opts 1:2:3:4:5 index 1", tcTool, "Illegal \"erspan_opts\""), + aB("tk-help", "tunnel_key help", tcTool, "the usage, exit(-1)"), + aB("tk-tail", tkSet+"id", tcTool, "id with no value: NEXT_ARG"), + // ife. + aB("w268", "ife pipe", tcTool, "IFE requires decode/encode specified, usage, exit(-1) (W268)"), + aB("w269-end", "ife decode ife", tcTool, "ife at the end of the line: NEXT_ARG (W269)"), + aB("w191-ife", "ife", tcTool, "a bare ife (W269)"), + aB("ife-allow", "ife encode allow foo index 1", tcTool, "Illegal meta define, exit(-1)"), + aB("ife-use", "ife encode use mark zz index 1", tcTool, "ife mark val is invalid"), + aB("ife-use-kind", "ife encode use foo 1 index 1", tcTool, "Illegal meta use type"), + aB("ife-tcindex", "ife encode use tcindex 65536 index 1", tcTool, "ife tcindex val is invalid"), + aB("ife-type", "ife encode type zz index 1", tcTool, "ife type is invalid"), + aB("ife-mac", "ife encode dst zz index 1", tcTool, "Invalid mac address"), + aB("ife-index", "ife encode allow mark index zz", tcTool, "ife: Illegal \"index\""), + aB("ife-help", "ife help", tcTool, "the usage, exit(-1)"), + // ct. + aB("w276", "ct commit nat src addr 1.1.1.1", tcTool, "nat's range as the last words: NEXT_ARG (W276)"), + aB("w277", "ct nat", tcTool, "nat as the last word: NEXT_ARG (W277)"), + aB("w278", "ct commit nat src foo index 1", tcTool, "no addr: the usage, exit(-1) (W278)"), + aB("w279", "ct commit nat src addr bogus index 1", tool1, "get_addr's message, exit(1) (W279)"), + aB("w279-fam", "ct commit nat src addr 10.0.0.1-2001:db8::1 index 1", tool1, "the second address takes the first's family (W279)"), + aB("w281-any", "ct commit nat src addr any index 1", k("ERANGE"), "a 0-byte IPV6_MIN (W281)"), + aB("w282", "ct commit nat src addr 10.0.0.1 port 80- index 1", tcTool, "ct: Illegal nat port range (W282)"), + aB("w282-hex", "ct commit nat src addr 10.0.0.1 port 0x50 index 1", tcTool, "ports are base 10 (W282)"), + aB("w283", "ct commit helper ipv4-udp-netbios-ns index 1", k("EINVAL"), "%[^-] keeps 3 fields: netbios, no such helper (W283)"), + aB("w283-long", "ct commit helper ipv4-tcp-abcdefghijklmnopqrstuv index 1", k("ERANGE"), "a 22-byte name, past the kernel's 16 (W283)"), + aB("w284-hex", "ct commit helper ipv4-0x6-ftp index 1", tcTool, "ct: Illegal \"helper\" (W284)"), + aB("w285", "ct commit label 0123456789abcdef0123456789abcdef01 index 1", tcTool, "label too long, exit(-1) (W285)"), + aB("w285-mask", "ct commit label 01/0123456789abcdef0123456789abcdef01 index 1", tcTool, "mask too long, named as the label (W285)"), + aB("w286", "ct commit label zz index 1", tcTool, "ct: labels must be a hex string, then a blank line (W286)"), + aB("w288", "ct commit pipe index 5", k("ENOENT"), "index after control is the next kind: Failed to load TC action module (W288)"), + aB("w290-mask", "ct zone 5/1 index 1", tcTool, "zone takes no mask: ct: Illegal \"zone\" (W290)"), + aB("w292-h", "ct h", tcTool, "h is help: the usage, exit(-1) (W292)"), + aB("ct-clear", "ct clear commit index 1", tcTool, "ct: clear can only be used alone"), + aB("ct-both", "ct commit nat src addr 1.1.1.1 nat dst addr 2.2.2.2 index 1", tcTool, "ct: src and dst nat can't be used together"), + aB("ct-natonly", "ct commit nat index 1", tcTool, "ct: commit and nat must set src or dst"), + aB("ct-nocommit", "ct nat src addr 1.1.1.1 index 1", tcTool, "ct: src or dst is only valid if commit is set"), + aB("ct-mark", "ct commit mark zz index 1", tcTool, "ct: Illegal \"mark\""), + aB("ct-index", "ct index 0x5", tcTool, "ct: Illegal \"index\""), + aB("ct-helper", "ct commit helper ipv5-tcp-ftp index 1", tcTool, "an unknown family"), + aB("ct-help", "ct help", tcTool, "the usage, exit(-1)"), + // gate. + aB("w191-gate", "gate", tcTool, "a bare gate: NEXT_ARG"), + aB("w295-big", "gate sched-entry open 1ms 1 2147483648 index 1", tcTool, "\"maxoctets\" is too large"), + aB("w296-index", "gate sched-entry open 1000000 -1 -1 index 0x1", tcTool, "index is base 10: invarg, exit(-1) (W296)"), + aB("w297-half", "gate sched-entry open 0.5 -1 -1 index 1", k("EINVAL"), "interval 0.5 is 0 (W297)"), + aB("w298-ms", "gate base-time -1ms sched-entry open 1000000 -1 -1 index 1", tcTool, "a negative time with a unit: invarg (W298)"), + aB("w300", "gate sched-entry opn 1ms index 1", tcTool, "the entry usage and \"sched-entry\" is incomplete (W300)"), + aB("w300-end", "gate sched-entry", tcTool, "sched-entry at the end (W300)"), + aB("w300-state", "gate sched-entry open", tcTool, "no interval (W300)"), + aB("w300-int", "gate sched-entry open zz index 1", tcTool, "a bad interval (W300)"), + aB("w301", "gate help", tcTool, "the usage, exit(-1) (W301)"), + aB("w301-prio", "gate priority zz sched-entry open 1ms index 1", tcTool, "invarg, exit(-1) (W301)"), + aB("w302-h", "gate h", tcTool, "h is help (W302)"), + aB("w303", "gate sched-entry open 1000000 -1 -1 pipe index 5", k("ENOENT"), "index after control is the next kind: Failed to load TC action module (W303)"), + aB("w303-goto", "gate sched-entry open 1000000 -1 -1 goto chain x", tcTool, "Illegal \"chain index\" twice (W303)"), + aB("w305", "gate index 5", k("EINVAL"), "an empty ENTRY_LIST on create (W305)"), + aB("gate-big", "gate sched-entry open 4294967296 -1 -1 index 1", tcTool, "\"interval\" is too large"), + aB("gate-clk", "gate clockid FOO sched-entry open 1ms index 1", tcTool, "an unknown clockid"), + aB("gate-none", "gate priority 2", tcTool, "gate: must add at least one entry"), + // bpf: the action. + aB("w307-2039", "bpf bytecode-file bpf.txt index 1", k("EINVAL"), "2039 instructions: PARMS past 16384, addattr_l ERROR (W307)"), + aB("w307-2041", "bpf bytecode-file bpf.txt index 1", k("EINVAL"), "2041 instructions: PARMS past 16384 (W307)"), + aB("w307-2042", "bpf bytecode-file bpf.txt index 1", k("EINVAL"), "2042: OPS_LEN with no OPS (W307)"), + aB("w307-4097", "bpf bytecode-file bpf.txt index 1", tcTool, "past BPF_MAXINSNS: no message (W307)"), + aB("w308-space", "bpf bytecode '4 ,6 0 0 0' index 1", tcTool, "the header's separator: -EINVAL with no message (W308)"), + aB("w308-zero", "bpf bytecode '0,6 0 0 0' index 1", tcTool, "a header of 0 (W308)"), + aB("w309-hex", "bpf bytecode '1,0x6 0 0 0' index 1", tcTool, "Error at instruction 0! (W309)"), + aB("w310", "bpf bytecode '1,6 0 0 0, ' index 1", tcTool, "Real program length exceeds encoded length parameter! (W310)"), + aB("w310-less", "bpf bytecode '2,6 0 0 0' index 1", tcTool, "Parsed program length is less than encoded length parameter! (W310)"), + aB("w311-blank", "bpf bytecode-file bpf.txt index 1", tcTool, "a leading blank line: no message (W311)"), + aB("w311-crlf", "bpf bytecode-file bpf.txt index 1", tcTool, "CRLF: no message (W311)"), + aB("w311-dir", "bpf bytecode-file . index 1", tcTool, "a directory: -E2BIG with no message (W311)"), + aB("w311-none", "bpf bytecode-file nosuch.txt index 1", tcTool, "Cannot fopen: No such file or directory (W311)"), + aB("w312-two", "bpf bytecode '1,6 0 0 0' bytecode '1,6 0 0 1' index 1", tcTool, "a second program word is the next kind (W312)"), + aB("w312-drop", "bpf drop", tcTool, "What mode is \"drop\"? (W312)"), + aB("w312", "bpf index 5", k("EINVAL"), "index ends the loop: PARMS only on a create (W312)"), + aB("w313", "bpf", tcTool, "a bare bpf: NEXT_ARG (W313)"), + aB("w313-help", "bpf help", tcTool, "help returns -1: bad action parsing (W313)"), + aB("w313-index", "bpf bytecode '1,6 0 0 0' index zz", tcTool, "bpf: Illegal \"index\" (W313)"), + aB("w314-obj", "bpf o nosuch.o index 1", tcTool, "o is object-file: an eBPF load (W314)"), + aB("w314-p", "bpf p /sys/fs/bpf/nosuch index 1", tcTool, "p is pinned: bpf(2) (W314)"), + aB("w314-fd", "bpf f 3 index 1", tcTool, "f is fd: pinned, bpf(2) (W314)"), + aB("ebpf-obj", "bpf object-file nosuch.o index 1", tcTool, "eBPF object-file: tc's answer, refused by name in gotc"), + aB("ebpf-pinned", "bpf object-pinned /sys/fs/bpf/nosuch index 1", tcTool, "eBPF object-pinned: bpf(2)"), + aB("ebpf-run", "bpf run obj nosuch.o index 1", tcTool, "eBPF obj after run"), + // bpf: the filter. + fB("w315", "classid 1:1", kf("EINVAL"), "options but no program: OPS_LEN 0 (W315)"), + brBad("w316", tcFwI+"pref 1 protocol ip handle 1 bpf", base, kf("EINVAL"), "no words: no OPTIONS (W316)"), + fB("w319", "bytecode '1,6 0 0 0' bogus", ack1, "What is \"bogus\"?, the usage (W319)"), + fB("w319-flowid", "bytecode '1,6 0 0 0' flowid zz", ack1, "Illegal \"classid\" for flowid (W319)"), + fB("w319-parse", "bytecode '1,6 0 0'", ack1, "Unable to parse bpf command line (W319)"), + fB("w320", "bytecode '1,6 0 0 0' skip_hw skip_sw", kf("EINVAL"), "both skip flags (W320)"), + fB("w320-sw", "bytecode '1,6 0 0 0' skip_sw", kf("ENOTSUP"), "skip_sw on a dummy (W320)"), + fB("fb-help", "help", ack1, "the filter's usage"), + fB("fb-obj", "object-file nosuch.o", ack1, "eBPF object-file in a filter: tc's answer"), + fB("fb-pinned", "pinned /sys/fs/bpf/nosuch", ack1, "eBPF pinned in a filter: bpf(2)"), + fB("fb-action", "bytecode '1,6 0 0 0' action bogus", ack255, "Bad action type bogus: gact's usage, exit(-1)"), + fB("fb-ops", "bytecode '1,6 0 0 0,6 0 0 0'", ack1, "an encoded length of 1 with two instructions"), + brBad("w248", "actions add action pedit ex"+tcA2Keys(128)+" index 1 action pedit ex"+tcA2Keys(128)+ + " index 2 action pedit ex"+tcA2Keys(128)+" index 3", base, k("EINVAL"), + "three 128-key ex actions pass 16384: the errors are ignored and a malformed nest is sent (W248)"), + // The batches whose exit ends a -force run. + bbBad("w268-force", "ife-exit", "-force", false, batchFile( + "actions add action ife pipe", + "actions add action gact pass index 2"), base, ack255, "ife's usage exit ends -force (W268)"), + bbBad("w250-force", "addr-exit", "-force", false, batchFile( + "actions add action tunnel_key set src_ip bogus dst_ip 10.0.0.2 id 1 index 1", + "actions add action gact pass index 2"), base, ack1, "get_addr's exit(1) ends -force (W250)"), + bbBad("ct-force", "return", "-force", false, batchFile( + "actions add action ct clear commit index 1", + "actions add action gact pass index 2"), base, ack1, "ct returns -1, so -force carries on"), + } + // The bad rows that read bpf.txt carry its pre step. + files := map[string]string{ + "w307-2039": tcA2FileN(2039, 2039), + "w307-2041": tcA2FileN(2041, 2041), + "w307-2042": tcA2FileN(2042, 2042), + "w307-4097": tcA2FileN(4097, 4097), + "w311-blank": tcA2File("\n1\n6 0 0 0\n"), + "w311-crlf": tcA2File("1\r\n6 0 0 0\r\n"), + } + for i := range bad { + if f, ok := files[bad[i].Value.Facts["fix"]]; ok { + bad[i].Value.Pre = tcAwPre(f) + } + } + sp := &space{ + Name: "tcact2write", + Axes: []axis{{Name: "opt", Values: []value{v("plain", "", f("json", "0"))}}, {Name: "cmd", Values: cmds}}, + Bad: slices.Clone(bad), + } + sp.NegBase = func([]value) bool { return true } + sp.Build = func(vals []value) row { + r := tcBuildMods(tcA2Modules, vals) + r.Readback = rb[vals[len(vals)-1].Name] + return r + } + return sp +} diff --git a/tools/nlcapgen/matrix_tcact2write_test.go b/tools/nlcapgen/matrix_tcact2write_test.go new file mode 100644 index 000000000..6d41500bc --- /dev/null +++ b/tools/nlcapgen/matrix_tcact2write_test.go @@ -0,0 +1,288 @@ +package main + +import ( + "bytes" + "strconv" + "strings" + "testing" +) + +// TestTcAct2WriteSpace pins the second action write space (gotc 23C): each +// kind's verb grid and keywords, the bpf filter's verbs, a row for every +// lead, the eBPF refusals, the size bounds and the batches. +// +// go test ./tools/nlcapgen/ -run TestTcAct2WriteSpace +func TestTcAct2WriteSpace(t *testing.T) { + rows, err := matrixRows(families["tcact2write"](), matrixOpts{Seed: 1}) + if err != nil { + t.Fatal(err) + } + if err := checkRows(rows); err != nil { + t.Fatal(err) + } + const want = 418 + if len(rows) != want { + t.Errorf("%d rows, want %d", len(rows), want) + } + fixes := map[string]bool{} + byCmd := map[string]bool{} + for _, r := range rows { + if !strings.HasPrefix(r.ID, "tcact2write/") { + t.Errorf("%s: not in tcact2write/", r.ID) + } + if r.InitNS || r.Serial || r.Proto != "route" { + t.Errorf("%s: initns %t serial %t proto %q", r.ID, r.InitNS, r.Serial, r.Proto) + } + for _, m := range r.Modules { + if !tdcGuestModules[m] { + t.Errorf("%s: module %s is not one the guest has", r.ID, m) + } + } + all := r.Cmd + "\n" + strings.Join(preCmds(r), "\n") + if strings.Contains(all, "dev lo") || strings.Contains(all, "-netns") || strings.Contains(all, "dev eth") { + t.Errorf("%s: writes outside its dummies: %q", r.ID, r.Cmd) + } + if r.Expect.RefusedBy == refNone && len(r.Readback) == 0 { + t.Errorf("%s: a positive write with no readback", r.ID) + } + k := r.Cmd + "|" + r.Axes["fix"] + "|" + strings.Join(preCmds(r), ";") + if byCmd[k] { + t.Errorf("%s: %q twice", r.ID, k) + } + byCmd[k] = true + fixes[r.Axes["fix"]] = true + } + has := func(sub string) bool { + for _, r := range rows { + if strings.Contains(r.Cmd, sub) || strings.Contains(strings.Join(preCmds(r), "\n"), sub) { + return true + } + } + return false + } + + // Every kind has the full verb grid. + for _, k := range tcA2Kinds { + for _, verb := range []string{"actions add action ", "actions change action ", "actions replace action "} { + if !has(verb + k + " ") { + t.Errorf("%s: no %q row", k, verb) + } + } + for _, sub := range []string{"actions delete action " + k + " index 1", "actions flush action " + k, "matchall action " + k} { + if !has(sub) { + t.Errorf("%s: no %q row", k, sub) + } + } + } + for _, fix := range []string{"v-add", "v-change", "v-replace", "v-replace-new", "v-delete", "v-flush"} { + if !fixes[fix] { + t.Errorf("no %s row", fix) + } + } + + // A row for every lead, W216-W320. W294 alone has none: its outcome + // is an uninitialised stack value, so gotc's unit test pins it. + for n := 216; n <= 320; n++ { + if n == 294 { + continue + } + p := "w" + strconv.Itoa(n) + var found bool + for f := range fixes { + found = found || f == p || strings.HasPrefix(f, p+"-") + } + if !found { + t.Errorf("lead W%d: no row", n) + } + } + if fixes["w294"] { + t.Error("lead W294: a row, but its outcome isn't reproducible") + } + + tests := []struct { + description string + sub string // a substring some row's command (or pre step) holds + expected bool + }{ + // pedit: raw offsets and every command. + {"positive: pedit u8", "offset 0 u8 set 0x1", true}, + {"positive: pedit u16", "offset 2 u16 set 0x1", true}, + {"positive: pedit u32 at", "u32 at 0 f 2 set", true}, + {"positive: pedit clear", "u32 clear", true}, + {"positive: pedit invert", "u32 invert", true}, + {"positive: pedit preserve", "u32 preserve", true}, + {"positive: pedit retain", "retain 0xff00", true}, + {"positive: pedit ex add", "pedit ex munge offset 12 u32 add 1", true}, + {"positive: pedit decrement", "ip ttl decrement", true}, + // pedit: every layered field. + {"positive: ip src", "munge ip src set", true}, + {"positive: ip dst", "munge ip dst set", true}, + {"positive: ip tos", "ip tos set", true}, + {"positive: ip dsfield", "ip dsfield set", true}, + {"positive: ip ihl", "ip ihl set", true}, + {"positive: ip protocol", "ip protocol set", true}, + {"positive: ip precedence", "ip precedence set", true}, + {"positive: ip nofrag", "ip nofrag set", true}, + {"positive: ip firstfrag", "ip firstfrag set", true}, + {"positive: ip ce", "ip ce set", true}, + {"positive: ip df", "ip df set", true}, + {"positive: ip mf", "ip mf set", true}, + {"positive: ip dport", "munge ip dport set 80", true}, + {"positive: ip sport", "munge ip sport set 53", true}, + {"positive: ip icmp_type", "ip icmp_type set 8", true}, + {"positive: ip6 src", "ip6 src set 2001:db8::1", true}, + {"positive: ip6 flow_lbl", "ip6 flow_lbl set 0x12345", true}, + {"positive: ip6 payload_len", "ip6 payload_len", true}, + {"positive: ip6 nexthdr", "ip6 nexthdr", true}, + {"positive: ip6 hoplimit", "ip6 hoplimit set", true}, + {"positive: ip6 traffic_class", "ip6 traffic_class", true}, + {"positive: tcp sport", "tcp sport", true}, + {"positive: tcp dport", "tcp dport set 443", true}, + {"positive: tcp flags", "tcp flags", true}, + {"positive: udp sport", "udp sport set 53 index", true}, + {"positive: udp dport", "udp dport", true}, + {"positive: eth dst", "eth dst set 02:00:00:00:00:09", true}, + {"positive: eth src", "eth src set", true}, + {"positive: eth type", "eth type set 0x0800", true}, + // tunnel_key. + {"positive: tunnel_key v4 with every scalar", "id 7 dst_port 4789 tos 0x10 ttl 64", true}, + {"positive: tunnel_key v6", "src_ip 2001:db8::1 dst_ip 2001:db8::2", true}, + {"positive: tunnel_key nocsum nofrag", "nocsum nofrag", true}, + {"positive: tunnel_key csum", "id 7 csum index", true}, + {"positive: tunnel_key geneve several", "0103:81:00a000b0,0104:82", true}, + {"positive: tunnel_key vxlan", "vxlan_opts 4660", true}, + {"positive: tunnel_key erspan v1", "erspan_opts 1:12:0:0", true}, + {"positive: tunnel_key erspan v2", "erspan_opts 2:0:1:7", true}, + {"positive: tunnel_key unset", "tunnel_key unset", true}, + // ife. + {"positive: ife encode with type and MACs", "type 0xED3E dst 02:00:00:00:00:01 src 02:00:00:00:00:02 use mark 7", true}, + {"positive: ife allow each", "allow mark allow prio allow tcindex", true}, + {"positive: ife use prio and tcindex", "use prio 5 use tcindex 3", true}, + {"positive: ife decode", "ife decode index 1", true}, + // ct. + {"positive: ct commit force", "ct commit force", true}, + {"positive: ct clear", "ct clear index", true}, + {"positive: ct zone mark label", "zone 404 mark 0x42/0xf0 label", true}, + {"positive: ct nat src v4 range ports", "nat src addr 10.0.0.1-10.0.0.9 port 1000-2000", true}, + {"positive: ct nat dst v6", "nat dst addr 2001:db8::1", true}, + {"positive: ct nat v6 range", "2001:db8::1-2001:db8::9 port 80-90", true}, + {"positive: ct helper v4", "helper ipv4-tcp-ftp", true}, + {"positive: ct helper v6", "helper ipv6-tcp-ftp", true}, + // gate. + {"positive: gate every scalar", "priority 2 clockid CLOCK_TAI base-time 200000000000ns cycle-time 300000000ns cycle-time-ext 1000ns", true}, + {"positive: gate ipv and maxoctets", "open 100000000ns 3 8000", true}, + {"positive: gate size suffix", "3 8k", true}, + {"positive: gate CLOCK_REALTIME", "clockid CLOCK_REALTIME", true}, + {"positive: gate CLOCK_MONOTONIC", "clockid CLOCK_MONOTONIC", true}, + {"positive: gate CLOCK_BOOTTIME", "clockid CLOCK_BOOTTIME", true}, + {"positive: gate clockid without the prefix", "clockid tai", true}, + {"positive: gate flags", "gate flags 1", true}, + // bpf. + {"positive: bpf bytecode", "bpf bytecode '" + tcA2Prog + "'", true}, + {"positive: bpf bc", "bpf bc '", true}, + {"positive: bpf run", "bpf run bytecode", true}, + {"positive: bpf bytecode-file", "bpf bytecode-file bpf.txt", true}, + {"positive: bpf bcf", "bpf bcf bpf.txt", true}, + {"positive: bpf filter classid", "bpf bytecode '" + tcA2Prog + "' classid 1:1", true}, + {"positive: bpf filter da skip_hw", "da skip_hw", true}, + {"positive: bpf filter action", "bpf bytecode '1,6 0 0 4294967295' action gact pass", true}, + {"positive: bpf filter police", "bpf bytecode '1,6 0 0 4294967295' police rate", true}, + {"positive: bpf filter change", "filter change dev d0 ingress pref 1 protocol ip handle 1 bpf", true}, + {"positive: bpf filter replace", "filter replace dev d0 ingress pref 1 protocol ip handle 1 bpf", true}, + {"positive: bpf filter delete", "filter delete dev d0 ingress pref 1 protocol ip handle 1 bpf", true}, + // eBPF only as refusals. + {"negative: eBPF object-file", "bpf object-file nosuch.o", true}, + {"negative: eBPF object-pinned", "bpf object-pinned /sys/fs/bpf/nosuch", true}, + {"negative: eBPF pinned in a filter", "bpf pinned /sys/fs/bpf/nosuch", true}, + // Boundaries. + {"boundary: 128 pedit keys", "pedit" + tcA2Keys(128) + " index 1", true}, + {"boundary: 129 pedit keys", "pedit" + tcA2Keys(129) + " index 1", true}, + {"boundary: 30 gate entries", "gate" + tcA2Entries(30) + " index 1", true}, + {"boundary: 31 gate entries", "gate" + tcA2Entries(31) + " index 1", true}, + {"boundary: 40 gate entries", "gate" + tcA2Entries(40) + " index 1", true}, + {"boundary: 2038 bpf instructions", tcA2FileN(2038, 2038), true}, + {"boundary: 2039 bpf instructions", tcA2FileN(2039, 2039), true}, + {"boundary: 2042 bpf instructions", tcA2FileN(2042, 2042), true}, + {"boundary: 4097 bpf instructions", tcA2FileN(4097, 4097), true}, + {"boundary: the 62-byte nat range", tcA2Nat62 + " index", true}, + {"boundary: the 63-byte nat range", tcA2Nat63 + " index", true}, + {"boundary: interval at the u32 limit", "open 4294967295 -1", true}, + {"boundary: interval past it", "open 4294967296 -1", true}, + {"boundary: tos 255", "tos 255 ttl 255", true}, + {"boundary: tos 256", "tos 256", true}, + // Negatives. + {"negative: no show or list command is captured", "actions ls", false}, + {"negative: no get command is captured", "actions get", false}, + {"negative: no host device", "dev eth0", false}, + } + for _, tc := range tests { + t.Run(tc.description, func(t *testing.T) { + if got := has(tc.sub); got != tc.expected { + t.Errorf("a row with %q: %t, want %t", tc.sub, got, tc.expected) + } + }) + } + + // The eBPF rows are refusals, never positive writes. + for _, r := range rows { + for _, w := range []string{"object-file", "object-pinned", " pinned ", "bpf o ", "bpf p ", "bpf f ", " obj "} { + if strings.Contains(r.Cmd, w) && r.Expect.RefusedBy == refNone { + t.Errorf("%s: an eBPF form %q as a positive write", r.ID, w) + } + } + } + + // The batches carry their lines, with -force where the lead needs it. + batches := []struct { + description string + fix string + force bool + }{ + {"corner: W232's MAC colons", "w232-batch", false}, + {"corner: W265's strtok NULs", "w265-batch", false}, + {"corner: W291's slashes", "w291-batch", false}, + {"corner: bytecode-file in a batch", "bpf-batch", false}, + {"corner: W268's usage exit ends -force", "w268-force", true}, + {"corner: W250's exit(1) ends -force", "w250-force", true}, + {"corner: a -1 return carries on", "ct-force", true}, + } + for _, tc := range batches { + t.Run(tc.description, func(t *testing.T) { + var found bool + for _, r := range rows { + if r.Axes["fix"] != tc.fix { + continue + } + found = true + if !strings.Contains(r.Cmd, "-batch") { + t.Errorf("%s: not a batch: %q", r.ID, r.Cmd) + } + if got := strings.Contains(r.Cmd, "-force"); got != tc.force { + t.Errorf("%s: -force %t, want %t", r.ID, got, tc.force) + } + pre := preCmds(r) + if n := strings.Count(pre[len(pre)-1], "' '") + 1; n < 2 { + t.Errorf("%s: %d lines, want 2 or more", r.ID, n) + } + } + if !found { + t.Errorf("no %s row", tc.fix) + } + }) + } + + // Generation is deterministic. + var a, b bytes.Buffer + for i, buf := range []*bytes.Buffer{&a, &b} { + rs, err := matrixRows(families["tcact2write"](), matrixOpts{Seed: 1}) + if err != nil { + t.Fatalf("run %d: %v", i, err) + } + if err := writeRows(buf, nil, rs); err != nil { + t.Fatal(err) + } + } + if !bytes.Equal(a.Bytes(), b.Bytes()) { + t.Error("two generations differ") + } +} diff --git a/tools/nlcapgen/tdc.go b/tools/nlcapgen/tdc.go index dd50bbf01..11814a855 100644 --- a/tools/nlcapgen/tdc.go +++ b/tools/nlcapgen/tdc.go @@ -95,7 +95,7 @@ var tdcGuestModules = map[string]bool{} func init() { for _, m := range strings.Fields(`act_bpf act_connmark act_csum act_ctinfo act_ct act_gact - act_gate act_ife act_mirred act_mpls act_nat act_pedit act_police act_sample act_simple + act_gate act_ife act_meta_mark act_meta_skbprio act_meta_skbtcindex act_mirred act_mpls act_nat act_pedit act_police act_sample act_simple act_skbedit act_skbmod act_tunnel_key act_vlan cls_basic cls_bpf cls_cgroup cls_flower cls_flow cls_fw cls_matchall cls_route cls_u32 em_canid em_cmp em_ipset em_meta em_nbyte em_text em_u32 sch_cake sch_cbs sch_choke sch_codel