From 460d57766a863757446daedca4d9b4be8139b12d Mon Sep 17 00:00:00 2001 From: randomizedcoder Date: Fri, 4 Dec 2026 23:52:35 -0800 Subject: [PATCH 1/8] feat(gobridge): 26X - gobridge_write groundwork, dry-run delivery, live GET guard (V115) - gobridge_write tag wired as gotc_write is: versions.nix (optInOnlyTags, gobridgeWriteTags), flavor-tags, govulncheck, the golangci tag lists and a focused-gobridge-write test. pkg/xtcpnl's BuildWriteRequest builds under it. The default gobridge stays untagged. - no-write-encoders: internal/gobridge joins writePkgs; a completeness loop ties the tag to *_write.go names; a positive control on cmd/gobridge with the tag (a per-daemon one waits for 26P); the default debug gobridge must link no write builder. - send_write.go (tagged): gotc's deliverWrite/writeOut, second copy. Replay answers with the recorded ack (NAK -> retCode(-1)); live goes to GOBRIDGE_WRITE_OUT or ErrWriteNotApplied. write_off.go keeps link set and mst set refused by name. - LiveSource.Talk refuses anything but an RTM_GET* in every build. - upstream/iproute2-bridge-write.md: B77-B90 and K18-K24, predicted. Co-Authored-By: Claude Opus 5.5 --- .golangci-comprehensive.yml | 1 + .golangci-quick.yml | 1 + .golangci.yml | 1 + docs/netlink/gobridge-status.md | 17 +- .../netlink/upstream/iproute2-bridge-write.md | 184 ++++++++++++++++++ internal/gobridge/gobridge.go | 2 + internal/gobridge/send_write.go | 79 ++++++++ internal/gobridge/send_write_test.go | 163 ++++++++++++++++ internal/gobridge/source.go | 16 ++ internal/gobridge/write_off.go | 10 + internal/gobridge/write_test.go | 127 ++++++++++++ nix/checks/flavor-tags.nix | 1 + nix/checks/govulncheck.nix | 3 +- nix/checks/no-write-encoders.nix | 39 +++- nix/default.nix | 2 + nix/tests/focused-quality.nix | 12 ++ nix/versions.nix | 10 +- pkg/xtcpnl/xtcpnl_write_request.go | 5 +- 18 files changed, 662 insertions(+), 11 deletions(-) create mode 100644 docs/netlink/upstream/iproute2-bridge-write.md create mode 100644 internal/gobridge/send_write.go create mode 100644 internal/gobridge/send_write_test.go create mode 100644 internal/gobridge/write_off.go create mode 100644 internal/gobridge/write_test.go diff --git a/.golangci-comprehensive.yml b/.golangci-comprehensive.yml index 3c05b265a..aff29eb88 100644 --- a/.golangci-comprehensive.yml +++ b/.golangci-comprehensive.yml @@ -41,6 +41,7 @@ run: - dest_file - goip_write - gotc_write + - gobridge_write - treatment formatters: diff --git a/.golangci-quick.yml b/.golangci-quick.yml index 4934b5d0f..641ac11c6 100644 --- a/.golangci-quick.yml +++ b/.golangci-quick.yml @@ -35,6 +35,7 @@ run: - dest_file - goip_write - gotc_write + - gobridge_write - treatment formatters: diff --git a/.golangci.yml b/.golangci.yml index fac3246fd..1e463852b 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -32,6 +32,7 @@ run: - dest_file - goip_write - gotc_write + - gobridge_write - treatment formatters: diff --git a/docs/netlink/gobridge-status.md b/docs/netlink/gobridge-status.md index 17daf5f8a..408a540f2 100644 --- a/docs/netlink/gobridge-status.md +++ b/docs/netlink/gobridge-status.md @@ -89,6 +89,13 @@ 25L is done: on the workbench, gobridge beside `bridge` 7.2.0 on every `brmonitor` row, live rows side by side, is identical on 44 of 44 in two batches, and `bridge` matches its corpus on 44 of 44 (V114). +- **Increment 26, writes (`link set`, `mst set`):** in progress on `gobridge/link-write`. 26X + is done: a `gobridge_write` tag wired as `gotc_write` is (versions, flavor-tags, govulncheck, + golangci, a focused test, no-write-encoders), gotc's dry-run delivery copied into + `send_write.go` (`GOBRIDGE_WRITE_OUT`, `ErrWriteNotApplied`), `LiveSource.Talk` refusing + anything but a GET in every build, and + [upstream/iproute2-bridge-write.md](upstream/iproute2-bridge-write.md) holding the sweep's + leads B77-B90 and K18-K24, all predicted (V115). ## Contents @@ -114,7 +121,8 @@ | 6 — bridge | wsreplay → capture → parser → tests → `gobridge` clone → bug hunt | done | V096, DOC031, V097, V098, V099, DOC032, V100, V402 | | 6X — bridge, the rest | batch, force, netns, family, router ports: capture → parser → clone → bug hunt → live | done | V101, V102, V103, DOC033, V104 | | 7 — fdb and mdb | readbacks → capture → parser → clone → bug hunt → live | done | V105, V106, V107, V108, DOC034, V109 | -| 25 — monitor | groundwork → capture → parser → clone → bug hunt → live | in progress | V110 | +| 25 — monitor | groundwork → capture → parser → clone → bug hunt → live | done | V110, V111, V112, V113, DOC035, V114 | +| 26 — writes: link set, mst set | groundwork → capture → encoders → clone → bug hunt → live | in progress | V115 | ## Task checklist @@ -143,6 +151,12 @@ | [x] | 25R | gobridge `monitor.go`, `source_monitor.go`; corpus, unit, fuzz, mutants | done | V113 | | [x] | 25B | B58+ and K10+ completed, HEAD checked | done | DOC038 | | [x] | 25L | live diff of every `brmonitor` row | done | V114 | +| [x] | 26X | `gobridge_write` tag and checks; dry-run delivery; the live GET guard; the write doc's predicted leads | done | V115 | +| [ ] | 26C | `matrix_brlinkwrite.go`, accepted, boundary, refused and batch rows, two batches | not started | V116 | +| [ ] | 26P | `BrPortProtinfo`, `BrAfSpecFlags`, `BrMstEntry`; `BuildBrLinkWriteRequest`; `TestWsBrLinkWrite` | not started | V117 | +| [ ] | 26W | gobridge `link_write.go`, `mst_write.go`; corpus, unit, fuzz, mutants | not started | V118 | +| [ ] | 26B | B77+ and K18+ completed, HEAD checked | not started | DOC036 | +| [ ] | 26L | live diff of every `brlinkwrite` row | not started | V119 | ## Verification ledger @@ -172,6 +186,7 @@ | V113 | 25R | **Code:** `internal/gobridge/monitor.go` is bridge/monitor.c. `doMonitor` first closes the socket main or batch opened (B63: `closeRth` swaps in a source whose every send is EBADF, and a later dump prints `Cannot send dump request: Bad file descriptor` and exits 1). `monitorArgs` is do_monitor's loop in its order: file, link, fdb, mdb and vlan by prefix, vni and all exactly, help by prefix (B59). A selector zeroes the mask, `all` restores ~RTMGRP_TC and sets vlan, vni and the banner, so the last of them wins (B60); the usage exits -1 and hides `file`'s argument (B72). `monitorFile` is fopen (`Cannot fopen: `, exit -1) then `nlmon.ReadFile` with every record handed to acceptMsg and no ll_init_map, so a name the cache lacks is an RTM_GETLINK on the main source (B66) and the selectors are ignored (B65). `monitorLive` is rtnl_open on the mask (exit 1), the BRVLAN and TUNNEL joins (`Failed to add bridge vlan group to list` or `Failed to add bridge vni group to list`, exit 1), ll_init_map on the monitor's socket, then `Listen`, flushing after each message. `acceptMsg` dispatches on `xtcpnl.BrEventKind` to `printLinkinfo`, `printFdb`, the new `printMdbMon` (one parse, the header, one "Deleted ", the entries then the router ports), `printVlanRtm(m, true, false)` and `printVnifilterRtm`; NLMSG_TSTAMP prints `nlmon.TstampText`, anything else is dropped (B73). `printHeaders` (the `-t` stamp, then the label once `prefixBanner` is set) is called by each printer after its filters (B62, B64, B69, B75); `-j` prints text, as no JSON object is opened (B61); `printVlanRtm`'s monitor flag resets the current port without closing it (B70). **Runner state:** `timestamp` is a counter that `-t` raises and every show zeroes (B64), `prefixBanner` is never reset (B62), `now` is `nlmon.NowFunc("GOBRIDGE_NOW")`, and `mainSrc` keeps main's source for ll_link_get once rth is closed. `out.flush` is rtnl_listen's fflush. **Source:** `source_monitor.go` has a live `Subscribe` (rtnl_open's buffers, extended acks, `NETLINK_ADD_MEMBERSHIP` for groups past 32) and a replay one that plays a capture's notifications and answers the monitor's own dump from it; `ReplaySource` keeps its capture path. `imports_test.go` allows `internal/nlmon`. The package doc, gobridge.md and `errNotImplemented` drop monitor. **Tests:** `TestGobridgeMonitorCorpus` replays all 44 rows (18 live through the replay `Subscribe`, each first checked to have its trigger after the dump's NLMSG_DONE; the rest as they ran, in their own directory), stdout, stderr and rc equal with stamps masked, with `GOBRIDGE_NOW` fixed and `time.Local` set to UTC for the TSTAMP's ctime, the counts (44, 18) pinned. `TestGobridgeMonitorUnit` 31 rows over a fake subscription: positive 8 (a bare monitor's NEW and DEL of each object, `all`'s banners, the masks and joins of `link`, `vlan`, `fdb mdb vni`, `all link`, `link all`, a file of every object), negative 11 (`f`, `a`, `vn`, `fdbx`, `help`, `h`, a bare `file`, a missing file, the socket failing to open, BRVLAN or TUNNEL failing to join), boundary 4 (an empty file, one record, a record cut short, a length under the header's), corner 8 (B65, B61, B75, B67 with B73, B69, B62, B63, B64). **Fuzz:** `FuzzGobridgeMonitorFile` (file bytes and a selector index), 60 s twice under `systemd-run --user --scope -p MemoryMax=6G` with `-timeout 300s`: 90,345 and 44,340 executions, no failure. The rate dropped to 0/s for stretches while the host's load average was 87; the 105 cached inputs each run in at most 0.32 s, so no input hangs. Its seed `8ef34ef20cf93c8e` is the B20 crash below; the oracle accepts rc 0, 1, 2, 255, 134 and 139. **Mutants:** 8 of 8 killed, each under the memory cap: a bare monitor joining BRVLAN, `f` as fdb, the banner reset per line, a show not zeroing `-t`, file mode honouring the selectors, AF_UNSPEC links dropped, the vlan monitor flag ignored, the stamp printed before the filters. **Coverage:** `internal/gobridge` 82.6%; the live socket's methods are 0%, as gotc's are. **Bugs found:** B20 extended: `bridge monitor file F` reaches print_vlan_rtm's NULL read from a 36-byte crafted RTM_NEWVLAN with no `ENTRY_INFO`; the fuzz found it, and nixpkgs' `bridge` 7.2.0 exits 139 on it with no output. Recorded in [upstream/iproute2-bridge-print-paths.md](upstream/iproute2-bridge-print-paths.md) (an "Extended in increment 25" line on B20) and [upstream/iproute2-bridge-monitor.md](upstream/iproute2-bridge-monitor.md) (B65's section). No corpus mismatch turned out to be bridge's. Gates: `go test ./internal/gobridge/ ./internal/nlmon/ ./internal/goip/ ./internal/gotc/ ./pkg/xtcpnl/ ./tools/nlcapgen/`, `go vet`, `gofmt -s`, `CGO_ENABLED=0 go build ./...`, `nix build .#gobridge`. | | DOC038 | 25B | **Doc:** [upstream/iproute2-bridge-monitor.md](upstream/iproute2-bridge-monitor.md), still "Not submitted to netdev", is completed. A new "HEAD check" section covers both trees. **iproute2:** the mirror's `main` is `d7e038f99479` (2026-12-02), 98 commits past v7.2.0. `bridge/monitor.c`, `link.c`, `fdb.c`, `mdb.c`, `vlan.c`, `lib/ll_map.c` and `man/man8/bridge.8` are byte-identical. In `lib/utils.c`, the print_timestamp functions are unchanged. `include/libnetlink.h` changes only in an unrelated helper and a cast. Each of `lib/libnetlink.c`'s four commits was checked against every lead: `255cac0a` (connect), `9a5e7be5` (sequence counter), `9bfcf248` (non-kernel senders dropped) and `c6d58ffb` (rtnl_listen's malformed message becomes `!!!Remnant of size N`, still exit 1; that path is live only and no row reaches it). `rtnl_close` still sets fd -1. Every B lead is present; B71 stays dropped. The one `bridge/` commit, `1392041d`, fixes vni.c's "Dump ternminated". That is half of B3, so print-paths.md's B3 and its "Still present" section now say so; `mst.c`'s "Cannon send" remains. **Linux:** torvalds `master` is `007722b8211f` (2026-12-03). Since v7.4-rc4, `net/bridge/` has `da4a53461d46` (br_mdb.c source-list rollback on a failed add or replace; K14's rows are successful operations) and `75dc1bad7897` (netfilter). `vxlan_vnifilter.c` and the two uapi headers have no commits. Every K note is unchanged. **Summary:** the "At HEAD" column is filled: 18 present, B71 —, 8 unchanged. The status block now covers 25P and 25R. [upstream/iproute2-bridge-print-paths.md](upstream/iproute2-bridge-print-paths.md) points to the new doc from its contents and its reachability list. Its extension lines are on B20 (25R) and B28/B29 and B30 (25C). **Checklist** (`doc035chk.py`, grep over both docs), 12 checks, all passing. Positive 1: every B58-B76 and K10-K17 has a summary row and an entry. Negative 3: each confirmed, corrected or new lead names an ec or ng row; no row is outside the range; every row has its At HEAD answer. Boundary 3: B and K are contiguous; the dropped lead gives a reason. Corner 5: B20, B28, B29 and B30 each have their "Extended in increment 25" line, and print-paths points to the new doc. Four mutated copies of the doc (a removed row, a row with no pinning row, a dropped lead without a reason, an unfilled At HEAD) each fail it. **Docs:** [gobridge.md](gobridge.md) gains "Increment 25": the task table and how the clone is put together. **Bug-class candidates** for the user are unchanged: the shared-handle close (B63), the mode switch that drops selectors (B65) and an absent attribute printed as zero (B76). bug-classes.md is untouched. Gates: the checklist, kernel-citation-audit at `2cfd0d936`. | | V114 | 25L | **Live diff:** on the running workbench VM (kernel 7.3.1, `bridge` 7.2.0 at `/nix/store/x1pwsbz5…-iproute2-7.2.0`; boot `335e7396`, started 2026-12-03 23:58 by another workbench user; not rebooted, the VM being shared), the nix-built `gobridge` (`/nix/store/q793jqi3…-gobridge-0.2.1`, built from `112dd7576`) beside `bridge`, as root over the workbench's ssh key. The script is generated from `brmonitor.rows.jsonl`. Each row gets a fresh netns with `lo` up and `nlmon0` up at ifindex 2, as the capture's namespaces have, then the row's `pre` steps in its own directory. **Live rows (18):** both monitors start in the netns; the script waits until each pid has a NETLINK_ROUTE socket (found by inode in `/proc//net/netlink`) with Dump 0 and Rmem 0 and a thread blocked in recvmsg (gobridge's link dump reads with recvfrom, so recvmsg is its listen), then 0.5 s, then runs the trigger once with `bash -c`, waits for the row's ERE in both outputs, then 0.3 s, then SIGTERMs both. Both exit 143. **File, batch and negative rows (26):** `bridge`, then `gobridge`, with the row's own `m.bin` and `b.txt`. **Result:** stdout, stderr and rc identical on 44 of 44, `Timestamp: … usec` masked, in two batches (C and D); every live row passed the readiness check, and no trigger failed. Batch D's outputs equal batch C's. `bridge` against the 25C corpus: 44 of 44 identical (live rows' rc aside, which the helper reports as 0), in both batches. That corpus is batch 5, captured on this same boot, so this repeats it on one boot rather than confirming the K notes on a second boot as the plan asked; a second boot would have meant rebooting the shared VM. V111's batch 1 is the cross-boot check for the 26 live and argument rows. **Earlier batches:** batch A's readiness check read the root namespace's `/proc/net/netlink`, so it never passed and each live row ran on the 0.5 s sleep alone (44 of 44 identical anyway); A2 and B, with the check fixed, ran without `nlmon0`, so every ifindex was one lower than in the corpus: gobridge and `bridge` still agreed on 44 of 44, and `bridge` differed from the corpus on 20 rows, all through ifindexes. Those 20 include B66 live: in file mode a record's br0 (ifindex 3) is named `d1`, the netns's ifindex 3, so `bridge monitor file m.bin` prints `master d1`, and gobridge does the same. **Guest:** its system closure had been garbage-collected on the host under the running VM (no `sed`, `awk`, `seq`, `readlink`, `sort`, `timeout` or `bash` on its PATH), so the script put host-built coreutils, gawk, gnused, bash, gnugrep and diffutils store paths first on PATH (the guest shares the host's /nix/store). Left as found: no namespaces, no core files, the script's result directories removed, no module loaded or removed (bridge, vxlan, nlmon, dummy were already loaded), VM still running as it was. **Bugs found:** none new. B66 is also seen with the ifindexes shifted, recorded in [upstream/iproute2-bridge-monitor.md](upstream/iproute2-bridge-monitor.md) (B66's entry and the status block); no lead or K note behaved differently live. | +| V115 | 26X | **Tag:** `gobridge_write`, in `nix/versions.nix`'s `optInOnlyTags` and a new `gobridgeWriteTags`; `nix/checks/flavor-tags.nix` fails a full flavor carrying it; `govulncheck`'s tag set and the three golangci build-tag lists include it; `focused-gobridge-write` (`nix/tests/focused-quality.nix`, `nix/default.nix`) runs `internal/gobridge`, `pkg/xtcpnl` and `pkg/cint` with it. `pkg/xtcpnl/xtcpnl_write_request.go` (`BuildWriteRequest`) builds under it. The default `gobridge` stays untagged. **no-write-encoders:** `writePkgs` gains `internal/gobridge`; a completeness loop fails when a gobridge file's `//go:build gobridge_write` and its `*_write.go` name disagree (`write_off.go`, the stub, matches neither); `cmd/gobridge`'s listing with `gobridge_write` must name a further write file (`send_write.go`; a per-daemon control waits for 26P's gobridge_write-only xtcpnl builder, since the `treatment` xtcp2 already compiles `xtcpnl_write_request.go`); and `go tool nm` on the default debug `gobridge` must find no write builder. **Code:** `internal/gobridge/send_write.go` (tagged) is gotc's `deliverWrite`/`writeOut`, the second copy (a third moves them to a shared package): a build error is `errNotImplemented`; a replay answers with the recorded ack, a NAK `retCode(-1)` after rtnl_talk's report; a `LiveSource` writes the request to `GOBRIDGE_WRITE_OUT`, truncated by the run's first write, or is `ErrWriteNotApplied` (rc 1). `write_off.go` (untagged) keeps link set and mst set refused by name; `writesBuilt` is set in both. `LiveSource.Talk` refuses a request that is not an RTM_GET* (`isGetRequest`, type ≥ RTM_BASE and 2 mod 4) in every build. **Tests** (each row with description and expected): `TestGobridgeIsGetRequest` 16 rows (every get gobridge sends; SETLINK, NEWNEIGH, DELMDB, NEWVLAN; type 0, 0xffff, 0xfffe, 14; short and empty requests, NLMSG_DONE); `TestGobridgeLiveTalkRefusesWrites` 5 rows (fd -1, so a send would be EBADF, not the refusal); `TestGobridgeWriteRefusedUntagged` 8 rows (link set, change, `s`, bare, bad words, mst set, `mst s` (B88), a `-force` batch ended by the refusal), skipped when tagged; `TestGobridgeWriteOut` (tagged) 12 rows (live write to the file and never the socket, three writes appended, replay ack; unset and empty variable, an unwritable path, a replay NAK with `RTNETLINK answers`, an extack NAK, a build error; junk truncated by the first write; a replay leaves the file alone; an unscripted replay's error). `go test ./internal/gobridge/ ./pkg/xtcpnl/` passes untagged and with `-tags gobridge_write`; `CGO_ENABLED=0 go build ./...` both ways. **Doc:** [upstream/iproute2-bridge-write.md](upstream/iproute2-bridge-write.md), "Not submitted to netdev", with B77-B90 and K18-K24 predicted, each cited to v7.2.0 lines read with `git show`. Reading the source refined four predictions before any capture: `priority 40000` wraps negative and is dropped (B79), `state 128` likewise (B80), `mst set … state ""` prints "Error: invalid MSTI" (B86), and `mst set` range-checks its state where `link set` does not (B80). | | V402 | 6C | **Fresh-boot batches — the 6C gate's last task (and 7C's conditional).** Two batches, each on its own fresh boot of the workbench VM (kernel 7.3.1, iproute2 7.2.0; `nlcap-ws down` then `up`, the guest's `is-system-running` running before the first row), each running all four `ws/bridge*` row files through `nlcap-ws batch`, the committed corpus untouched. **Boot 1:** the batch the boot's own start rejected, re-run once the boot settled — 113 (`bridge`), 63 (`bridgex`), 94 (`bridgefdb`), 74 (`bridgemdb`), 344 of 344 OK. **Boot 2:** a second down+up — 344 of 344. **`nlcapgen verdiff` against the corpus:** `bridge` 0 differences (113 rows), `bridgex` 6 (the `brrtr -s` timer rows ec-021/022/023, pw-021/022/023, V101's allow-list), `bridgefdb` 0 (94), `bridgemdb` 6 (the temp-entry timer rows ec-005/006/008, pw-005/006/008 — V108's rows and their `-j -s`/`-s -o` twins). Boot 1 against boot 2 directly: the same profile, 0/6/0/6, the same rows. **A body-level pass** (a throwaway `tmp-bodydiff`, deleted; the corpus vs each boot's pcaps, message by message, seq and pid zeroed): every differing message is one of V097's two named classes — the `br` fixture's link replies at `IFLA_BRPORT_FORWARD_DELAY_TIMER` (offsets 360/364 of the 420-488-byte messages, 33 rows), and the NLMSG_ERROR bodies' echoed request seq (offsets 24, 28-30 and 60 in the 40-, 72- and 96-byte error shapes; `0x6b03d2bc` against `0x6b129194`, minutes apart; 28 rows). 58 rows (boot 1) and 61 rows (boot 2) differ in any body at all; every other byte of every other message is identical. The stats counters and the vxlan random source port, the 6C gate's own expected exceptions, never moved. **The first fresh-boot attempt failed 34 of 113 rows:** the batch fired 24 s after qemu started, `up` returning at ssh and the guest's systemd still settling, and the first wave's rows crosstalked at their ns lifecycle ("Cannot open network namespace" immediately after `NLCAP_NS_OK wsN"; "Cannot create namespace file: File exists" after ns-add's own cleanup; ec-010's pre step 0 creating br0 and pre step 1 finding it gone; "Cannot find device nlmon0"; `NLCAP_CAP_NOBIND`, datagrams=0). The mechanism was not pinned down; the wait is measured. A batch the same boot ran two hours later was 113 of 113, and a concurrent session's batch on the same boot (a `brmonitor` corpus, 44 rows, all OK) confirms the settled guest. `xtcp2-nlcap-ws up` now waits for `is-system-running` (running or degraded) before `NLCAP_WS_UP`, warning past the timeout. **The arc's disk:** the kernel closure was GC'd twice mid-arc (nothing pinned `nix build --no-link`, the store 98-99% full; the `linux-7.3.1` build needs ~35 GB and failed twice at 31-36 GB free), and two CLI attempts were killed at their own command timeouts (600 s and 2400 s against the ~45-min kernel rebuild); the closure is now rooted at `/tmp/gobridge-vm-root`. Gates: the batch's own, and `nlcap-ws`, `nix-fmt`, `test-goip-docs`, `netlink-audit`, `lint-baseline`. | ## Decision log diff --git a/docs/netlink/upstream/iproute2-bridge-write.md b/docs/netlink/upstream/iproute2-bridge-write.md new file mode 100644 index 000000000..404ce9d9d --- /dev/null +++ b/docs/netlink/upstream/iproute2-bridge-write.md @@ -0,0 +1,184 @@ +# iproute2 `bridge` writes: `link set` and `mst set` narrow their numbers, send an empty container, and disagree on errors + +**Status (2026-12-04, increment 26, 26X):** + +- **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. +- **Every lead and kernel note below is predicted.** They come from the plan's bug-class sweep, read against the + source. 26C (V116) confirms, corrects or drops each one against a `ws/brlinkwrite` row, and 26B (DOC036) adds the + HEAD check and completes this doc. Later write increments (27 vlan, 28 vni, 29 fdb, 30 mdb) add their sections here. +- **Source:** + - Line numbers are iproute2 **v7.2.0** (`880505966c17`, 2026-08-17): `bridge/link.c` (`brlink_modify`, 332-639; + `parse_stp_state`, 82-95; `do_link`, 688-708), `bridge/mst.c` (`mst_set`, 164-242; `do_mst`, 244-263) and + `lib/utils.c` (`__parse_one_of`, 1795-1815; `parse_on_off`, 1830-1836; `nodev`, 844-848), read with + `git show v7.2.0:`. That is the version the corpus is captured with. +- **How they were found:** in increment 26 ([gobridge.md](../gobridge.md), [gobridge-status.md](../gobridge-status.md)). + - The numbers continue [iproute2-bridge-monitor.md](iproute2-bridge-monitor.md) (B58–B76, K10–K17) and + [iproute2-bridge-print-paths.md](iproute2-bridge-print-paths.md) (B1–B57, K1–K9), so B and K stay unique across + the bridge docs. + - 26X (V115) read the source for the write groundwork. Four predictions were refined against the code before any + capture; each refinement is marked "26X" in its entry. +- **Kernel cross-check:** `net/bridge/br_netlink.c`, `br_mst.c`, `br_stp_if.c` and `net/core/rtnetlink.c` at + v7.4-rc4. +- **Corpus:** `pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/` (26C), cited as `brlinkwrite/` once captured. +- **Exit codes**, as the leads use them: `usage()`, `NEXT_ARG()` and `invarg()` call `exit(-1)`, rc 255, which ends a + batch even under `-force`. A `return -1` from the command is rc 255 alone, and "Command failed" in a batch, which + `-force` carries past. `parse_on_off`'s failure is a `return -EINVAL`, rc 234 alone, and also carried past by + `-force`. A kernel NAK is `rtnl_talk` failing, then `return -1`. + +## Contents + +- [Summary](#summary) +- [B77–B80, B83, B87. Narrowed numbers](#b77b80-b83-b87-narrowed-numbers) +- [B81, B82. The containers](#b81-b82-the-containers) +- [B84, B85, B90. Argument errors](#b84-b85-b90-argument-errors) +- [B86, B88. `mst set`'s checks and dispatch](#b86-b88-mst-sets-checks-and-dispatch) +- [B89. Device texts](#b89-device-texts) +- [K18–K24. Kernel notes](#k18k24-kernel-notes) +- [Bug-class candidates](#bug-class-candidates) + +## Summary + +**L** is `bridge link set`, **M** is `bridge mst set`. "Pinned by" and "At HEAD" are filled in by 26C and 26B. + +| Lead | Where (v7.2.0) | Class | What | Pinned by | Status | At HEAD | gobridge | +|---|---|---|---|---|---|---|---| +| B77 | link.c:355, 414-416, 557 | C9, C11 | `mcast_router` is `atoi` into `__s8`: `abc` sends 0, `200` is dropped, `300` sends 44 | — | predicted | — | refused (26W copies) | +| B78 | link.c:367, 436-438, 578 | C9 | `cost` is `atoi` into `__u32` and sent only when `> 0`: `0` and `x` send nothing, `-1` sends 0xffffffff | — | predicted | — | refused (26W copies) | +| B79 | link.c:368, 439-441, 581 | C9, C11 | `priority` is `atoi` into `__s16`: `70000` sends 4464; a negative and `40000` are dropped | — | predicted | — | refused (26W copies) | +| B80 | link.c:369, 442-454, 584 | C9, C11 | `state` is `strtol` into `__s8` with no range: `200`, `128` and `-1` are dropped, `300` sends 44; only a non-number is checked | — | predicted | — | refused (26W copies) | +| B81 | link.c:455-466 | C9 | `hwmode` assigns `flags = BRIDGE_FLAGS_SELF`, wiping an earlier `master` | — | predicted | — | refused (26W copies) | +| B82 | link.c:543-544, 616 | C9, C11 | `IFLA_PROTINFO` is always sent: `L dev d1` sends an empty nest and exits 0 | — | predicted | — | refused (26W copies) | +| B83 | link.c:359, 432-435, 569 | C9 | `mcast_max_groups` is `get_s32`: a negative is dropped silently; `4294967295` is `invarg` | — | predicted | — | refused (26W copies) | +| B84 | utils.c:1795-1815; link.c `return ret` arms | C8, C16 | a bad on/off value returns `-EINVAL`, rc 234, so `-force` carries on | — | predicted | — | refused (26W copies) | +| B85 | link.c:523-525 | C9, C16 | an unknown word is `usage()`, rc 255, ending a `-force` batch; `mst set` ignores unknown words | — | predicted | — | refused (26W copies) | +| B86 | mst.c:207-211 | C9 | the MSTI check tests `*s` (state), not `*m`: `msti ""` sends MSTI 0, and `state ""` prints "invalid MSTI" | — | predicted | — | refused (26W copies) | +| B87 | mst.c:178, 207 | C9, C11 | `msti` is `strtol` into `__u16`: `-1` sends 65535, `70000` sends 4464 | — | predicted | — | refused (26W copies) | +| B88 | mst.c:244-249 | C9, C16 | `set` is prefix-matched before `show`, so `bridge mst s` is a set; `do_mst` never zeroes `timestamp` | — | predicted | — | refused by name (`mst s`, TestGobridgeWriteRefusedUntagged) | +| B89 | link.c:510-514, 534-537; mst.c:204-205 | C10 | three texts for a missing device: `Cannot find bridge device "X"`, `Error: device X does not exist`, `Cannot find device "X"` | — | predicted | — | refused (26W copies) | +| B90 | link.c:528-531 | C9 | `dev` is checked after the loop: `L cost 5` parses every word, then prints "Device is a required argument." | — | predicted | — | refused (26W copies) | + +## B77–B80, B83, B87. Narrowed numbers + +`brlink_modify` keeps each value in the narrowest signed type that holds its "unset" sentinel (`-1`), and reads it +with `atoi` or `strtol`, neither of which says whether the number fits. The send tests the sentinel with `>= 0`, so a +value that wraps negative is dropped and one that wraps positive is sent as the wrapped value. Nothing is printed +either way. + +- **B77, `mcast_router`** (link.c:355 `__s8 mcast_router = -1`, 414-416 `mcast_router = atoi(*argv)`, 557 + `if (mcast_router >= 0)`): + - **Trigger:** `bridge link set dev d1 mcast_router abc`; `… mcast_router 200`; `… mcast_router 300`. + - **Predicted:** `abc` is `atoi` 0, sent as `IFLA_BRPORT_MULTICAST_ROUTER` 0 (router port disabled), rc 0. `200` is + -56, dropped: an empty PROTINFO (B82), rc 0. `300` is 44, sent; the kernel's `br_multicast_set_port_router` + refuses a type above `MDB_RTR_TYPE_TEMP` (3), so a NAK (K22's family, pinned in 26C). +- **B78, `cost`** (link.c:367 `__u32 cost = 0`, 436-438 `cost = atoi(*argv)`, 578 `if (cost > 0)`): + - **Trigger:** `… cost 0`; `… cost x`; `… cost -1`. + - **Predicted:** `0` and `x` send no `IFLA_BRPORT_COST`, rc 0, nothing changed. `-1` is 0xffffffff, sent; the + kernel's `br_stp_set_path_cost` refuses above `BR_MAX_PATH_COST` (K22). +- **B79, `priority`** (link.c:368 `__s16 priority = -1`, 439-441, 581 `if (priority >= 0)`): + - **Trigger:** `… priority 70000`; `… priority -1`; `… priority 40000`. + - **Predicted:** `70000` is 4464, sent, and the kernel refuses it above `BR_MAX_PORT_PRIORITY` (63, K22). `-1` and + `40000` (-25536 as `__s16`) are dropped, rc 0. (26X: `40000` added from the source.) +- **B80, `state`** (link.c:369 `__s8 state = -1`, 442-454, 584 `if (state >= 0)`): + - **Trigger:** `… state 200`; `… state 128`; `… state -1`; `… state 300`; `… state bogus`. + - **Predicted:** `strtol` succeeds on every number, so `parse_stp_state` is never consulted and no range is checked. + `200` (-56), `128` (-128) and `-1` are dropped, rc 0. `300` is 44, sent, and the kernel refuses a state above + `BR_STATE_BLOCKING` (4). Only `bogus` reaches `parse_stp_state`, -1, "Error: invalid STP port state", rc 255. + `mst set` checks `state < 0 || state > UINT8_MAX` (mst.c:218), so the two commands disagree on the same word. + (26X: `128` added.) +- **B83, `mcast_max_groups`** (link.c:359 `__s32 max_groups = -1`, 432-435 `get_s32`, 569 `if (max_groups >= 0)`): + - **Trigger:** `… mcast_max_groups -1`; `… mcast_max_groups 4294967295`; `… mcast_max_groups 0`. + - **Predicted:** `-1` parses and is dropped, rc 0. `4294967295` overflows `get_s32`: `invarg`, "Error: argument + "4294967295" is wrong: invalid mcast_max_groups", rc 255. The attribute is a u32 (`IFLA_BRPORT_MCAST_MAX_GROUPS`), + so its upper half is unreachable. `0` is sent (no limit). +- **B87, `msti`** (mst.c:178 `__u16 msti`, 207 `msti = strtol(m, &endptr, 10)`): + - **Trigger:** `bridge mst set dev d1 msti -1 state 3`; `… msti 70000 state 3`. + - **Predicted:** 65535 and 4464 are sent as `IFLA_BRIDGE_MST_ENTRY_MSTI`; the kernel answers for an MSTI no VLAN + maps to (K24). + +**gobridge:** refused by name in the default build. 26W copies each narrowing, pinned by `TestGobridgeLinkWrite`'s +and `TestGobridgeMstWrite`'s boundary rows. + +## B81, B82. The containers + +- **B81, `hwmode` wipes `master`** (link.c:455-466): + - `hwmode` sets `flags = BRIDGE_FLAGS_SELF` where `self` and `master` OR into it (467-470). + - **Trigger:** `bridge link set dev d1 master hwmode vepa`. + - **Predicted:** `IFLA_BRIDGE_FLAGS` is `SELF` (2) alone, so the request goes to the port driver's + `ndo_bridge_setlink`, which a veth or dummy port lacks: EOPNOTSUPP (K18), rc 255. The reverse order, + `hwmode vepa master`, sends `SELF|MASTER`. A bad mode prints `Mode argument must be "vepa" or "veb".`, rc 255 + (a return, so `-force` carries on). +- **B82, an empty PROTINFO** (link.c:543-544, 616): + - `addattr_nest(IFLA_PROTINFO | NLA_F_NESTED)` runs whatever was given. + - **Trigger:** `bridge link set dev d1`; `bridge link set dev d1 self`. + - **Predicted:** a 4-byte `IFLA_PROTINFO` with no attributes; `br_setlink` parses it, sets nothing, and acks, rc 0. + With `self`, the empty PROTINFO goes to the port driver beside `IFLA_AF_SPEC`. + - `IFLA_AF_SPEC` (623-633) is sent only with a mode or flags, and without `NLA_F_NESTED`, where `mst set`'s + `MST_ENTRY` sets it by hand (mst.c:234): two conventions in one tool. + +## B84, B85, B90. Argument errors + +- **B84, on/off failures return** (lib/utils.c:1795-1815; every `if (ret) return ret;` arm of link.c:379-507): + - **Trigger:** `bridge link set dev d1 hairpin maybe`; in a batch, `-force -batch` with that line, then + `link set dev d1 hairpin on`. + - **Predicted:** `Error: argument of "hairpin" must be one of "off", "on", not "maybe"`, rc 234 (`-EINVAL` returned + from main). In the batch, "Command failed -:1", the second line runs, and the batch's rc is 1. +- **B85, unknown words** (link.c:523-525 `else usage();`): + - **Trigger:** `bridge link set dev d1 bogus on`; in a `-force` batch, that line then a good one. + - **Predicted:** the full usage text, rc 255, and the batch ends (an `exit`). `mst set` ignores an unknown word + unless it is a prefix of `help` (mst.c:191-193), so `bridge mst set dev d1 bogus msti 5 state 3` sets. +- **B90, `dev` last** (link.c:528-531): + - **Trigger:** `bridge link set cost 5`; `bridge link set cost 5 hairpin maybe`. + - **Predicted:** "Device is a required argument.", rc 255, after every word has parsed: in the second, the hairpin + error wins, rc 234. + +## B86, B88. `mst set`'s checks and dispatch + +- **B86, the MSTI check reads the state** (mst.c:207-211): + - `if (!(*s != '\0' && *endptr == '\0'))` follows `strtol(m, &endptr, 10)`; `*s` should be `*m`. + - **Trigger:** `bridge mst set dev d1 msti "" state 3`; `… msti 5 state ""`. + - **Predicted:** the first sends MSTI 0, which the kernel refuses or ignores (pinned in 26C). The second prints + "Error: invalid MSTI" for a valid MSTI, rc 255. (26X: the second trigger added from the source.) +- **B88, `mst s`** (mst.c:244-249): + - `do_mst` tests `matches(*argv, "set")` before `show`, so `s` is set; `vlan s` (vlan.c) is show. + - `do_mst` never zeroes `timestamp`, unlike the five shows B64 lists, so `-t -batch` with `mst show` then a + monitor line keeps the stamps (26B adds an extension line on B64). + - **Trigger:** `bridge mst s dev d1 msti 5 state 3`. + - **Predicted:** a set. gobridge already matches this in the default build: it is refused as `bridge mst set` + (`TestGobridgeWriteRefusedUntagged`, "corner: mst s is set"). + +## B89. Device texts + +- link.c:534-537: the port is looked up with `ll_name_to_index` and a miss prints `Cannot find bridge device "X"`. +- link.c:510-514: a `backup_port` miss prints `Error: device X does not exist`. +- mst.c:204-205: a miss is `nodev(d)`, `Cannot find device "X"` (lib/utils.c:844-848), as every show prints. +- **Trigger:** `bridge link set dev nosuch cost 5`; `bridge link set dev d1 backup_port nosuch`; + `bridge mst set dev nosuch msti 5 state 3`. +- **Predicted:** the three texts, each rc 255, after `ll_init_map`'s dump and the `ll_link_get` request. + +## K18–K24. Kernel notes + +linux v7.4-rc4. Each is predicted and is pinned against a 26C row. + +- **K18:** `self` on a veth or dummy port reaches `rtnl_bridge_setlink` (net/core/rtnetlink.c) for a device with no + `ndo_bridge_setlink`: EOPNOTSUPP. +- **K19:** `mab on` without `locked on` and learning on: `br_setport` (net/bridge/br_netlink.c) refuses with the extack + "Bridge port must be locked and have learning enabled when MAB is enabled". +- **K20:** `mst set` while the bridge's `mst_enabled` is 0: `br_mst_set_state` (net/bridge/br_mst.c) refuses with + EBUSY, "Can't modify MST state when MST is disabled". +- **K21:** `state` while kernel STP is on: EBUSY; a non-disabled state on a port that is down: ENETDOWN + (`br_set_port_state` in br_netlink.c). +- **K22:** the range checks the narrowing reaches: `br_stp_set_path_cost` (net/bridge/br_stp_if.c, ERANGE above + `BR_MAX_PATH_COST`) and `br_stp_set_port_priority` (ERANGE above `BR_MAX_PORT_PRIORITY`), and + `br_multicast_set_port_router` for a type above 3. +- **K23:** `bridge link set dev br0` (the bridge, not a port): `br_setlink` with no port, EINVAL or EOPNOTSUPP, to be + pinned. +- **K24:** an MSTI no VLAN maps to: `br_mst_set_state`'s answer (ENOENT predicted), to be pinned. + +## Bug-class candidates + +For the user's review; [bug-classes.md](bug-classes.md) is untouched. + +- **An always-sent empty container** (B82): a nest opened before knowing whether anything goes in it. +- **C narrowing that wraps or drops silently** (B77, B79, B80, B87): `atoi` or `strtol` stored in a type narrower than + the input, with a sign test standing in for "set". diff --git a/internal/gobridge/gobridge.go b/internal/gobridge/gobridge.go index 5098187e7..6233812b4 100644 --- a/internal/gobridge/gobridge.go +++ b/internal/gobridge/gobridge.go @@ -93,6 +93,8 @@ type runner struct { now func() time.Time // print_timestamp's clock mainSrc Source // the source main opened, which a live monitor subscribes on rthClosed bool // do_monitor has closed rth (B63) + + wroteOut bool // GOBRIDGE_WRITE_OUT truncated by this run's first write } func (r *runner) errf(format string, a ...any) { diff --git a/internal/gobridge/send_write.go b/internal/gobridge/send_write.go new file mode 100644 index 000000000..51f9ebe9a --- /dev/null +++ b/internal/gobridge/send_write.go @@ -0,0 +1,79 @@ +//go:build gobridge_write + +// gobridge_write builds gobridge's link set and mst set. Without the tag +// gobridge refuses every write (write_off.go), as it did before increment +// 26. + +package gobridge + +import ( + "errors" + "fmt" + "os" +) + +// gobridge never applies a write (gobridge.md, increment 26: dry-run, as +// gotc's increment 17 and goip's decision 5). A replay source compares the +// request with bridge's, byte for byte, and answers with the kernel's +// recorded ack; on the kernel socket the request goes to the file +// GOBRIDGE_WRITE_OUT names, and without it gobridge refuses +// (ErrWriteNotApplied). +// +// This is the second copy of gotc's deliverWrite and writeOut (qwrite.go); +// a third (vlan or vni writes, increments 27-28) moves them to a shared +// package first. + +// ErrWriteNotApplied is a write with no replay and no GOBRIDGE_WRITE_OUT. +var ErrWriteNotApplied = errors.New("gobridge never applies a write; set " + writeOutEnvCst + + " to receive the request it would send") + +// writeOutEnvCst names the file the requests of a run are written to, one +// after another. +const writeOutEnvCst = "GOBRIDGE_WRITE_OUT" + +// writesBuilt is whether this build lays out link and mst writes. +const writesBuilt = true + +// deliverWrite sends a built request, or reports the build's error: to a +// replay, which matches it with bridge's and answers with the kernel's +// recorded ack, or, on the kernel socket, to GOBRIDGE_WRITE_OUT. A NAK is +// rtnl_talk failing, and brlink_modify and mst_set return -1 for it (255, +// or "Command failed" in a batch). +func (r *runner) deliverWrite(req []byte, err error) error { + if err != nil { + return fmt.Errorf("%w: a request bridge would truncate or cannot be laid out: %w", errNotImplemented, err) + } + if _, live := r.src.(*LiveSource); live { + return r.writeOut(req) + } + if _, ok, err := r.talkAnswer(req, nil); err != nil || !ok { + if err != nil { + return err + } + return retCode(-1) + } + return nil +} + +// writeOut appends req to GOBRIDGE_WRITE_OUT, which a run's first write +// truncates. +func (r *runner) writeOut(req []byte) error { + path, ok := os.LookupEnv(writeOutEnvCst) + if !ok || path == "" { + return ErrWriteNotApplied + } + flag := os.O_WRONLY | os.O_CREATE | os.O_APPEND + if !r.wroteOut { + flag |= os.O_TRUNC + } + f, err := os.OpenFile(path, flag, 0o600) + if err != nil { + return fmt.Errorf("gobridge: %s: %w", writeOutEnvCst, err) + } + _, werr := f.Write(req) + if err := errors.Join(werr, f.Close()); err != nil { + return fmt.Errorf("gobridge: %s: %w", writeOutEnvCst, err) + } + r.wroteOut = true + return nil +} diff --git a/internal/gobridge/send_write_test.go b/internal/gobridge/send_write_test.go new file mode 100644 index 000000000..533570d61 --- /dev/null +++ b/internal/gobridge/send_write_test.go @@ -0,0 +1,163 @@ +//go:build gobridge_write + +package gobridge + +import ( + "bytes" + "errors" + "io/fs" + "os" + "path/filepath" + "testing" + + "github.com/randomizedcoder/xtcp2/pkg/xtcpnl" + "golang.org/x/sys/unix" +) + +// setlinkReq is a bare RTM_SETLINK for PF_BRIDGE ifindex, REQUEST|ACK: +// 16 bytes of nlmsghdr and 16 of ifinfomsg. +func setlinkReq(t *testing.T, seq, ifindex uint32) []byte { + t.Helper() + ifi := make([]byte, 16) + ifi[0] = unix.AF_BRIDGE + copy(ifi[4:8], u32(ifindex)) + req, err := xtcpnl.BuildWriteRequest(unix.RTM_SETLINK, unix.NLM_F_ACK, seq, ifi, nil) + if err != nil { + t.Fatalf("BuildWriteRequest: %v", err) + } + return req +} + +// ackTLV is an NLMSG_ERROR with errno and an extack message, capped. +func ackTLV(errno unix.Errno, msg string) Msg { + body := cat(u32(negErrno(errno)), make([]byte, nlHeaderLen), + at(unix.NLMSGERR_ATTR_MSG, append([]byte(msg), 0)...)) + return Msg{Type: unix.NLMSG_ERROR, Flags: unix.NLM_F_ACK_TLVS | unix.NLM_F_CAPPED, Body: body} +} + +// TestGobridgeWriteOut is deliverWrite: the kernel socket's path goes to +// GOBRIDGE_WRITE_OUT or is ErrWriteNotApplied, never to the socket (fd -1 +// would fail the send); a replay answers with the recorded ack and leaves +// the file alone. +func TestGobridgeWriteOut(t *testing.T) { + ptr := func(s string) *string { return &s } + unwritable := filepath.Join(t.TempDir(), "nonexistent", "x") + type want struct { + err error // errors.Is; nil for success + rc int // retCode, when err is nil and the write NAKed; 0 otherwise + stderr string // the NAK's report + file []uint32 // the seqs the file holds, in order; nil: file untouched + } + tests := []struct { + description string + env *string // GOBRIDGE_WRITE_OUT: nil unset, "f" the test's file + junk bool // the file starts with junk + live bool // a LiveSource, else a replay + replies []Reply + seqs []uint32 // one write each + buildErr error + expected want + }{ + // Positive. + {"positive: a live write goes to the file, not the socket", ptr("f"), false, true, nil, + []uint32{1}, nil, want{file: []uint32{1}}}, + {"positive: a batch's writes append in order", ptr("f"), false, true, nil, + []uint32{1, 2, 3}, nil, want{file: []uint32{1, 2, 3}}}, + {"positive: a replay ack is success", nil, false, false, []Reply{rep(nlErr(0))}, + []uint32{1}, nil, want{}}, + // Negative. + {"negative: GOBRIDGE_WRITE_OUT unset is ErrWriteNotApplied", nil, false, true, nil, + []uint32{1}, nil, want{err: ErrWriteNotApplied}}, + {"negative: GOBRIDGE_WRITE_OUT empty is ErrWriteNotApplied", ptr(""), false, true, nil, + []uint32{1}, nil, want{err: ErrWriteNotApplied}}, + {"negative: an unwritable path is gobridge's error", &unwritable, false, true, nil, + []uint32{1}, nil, want{err: fs.ErrNotExist}}, + {"negative: a replay NAK is -1 with rtnl_talk's report", nil, false, false, []Reply{rep(nlErr(unix.EOPNOTSUPP))}, + []uint32{1}, nil, want{rc: -1, stderr: "RTNETLINK answers: Operation not supported\n"}}, + {"negative: a replay extack NAK prints the extack instead", nil, false, false, + []Reply{rep(ackTLV(unix.EBUSY, "Can't modify MST state when MST is disabled"))}, + []uint32{1}, nil, want{rc: -1, stderr: "Error: Can't modify MST state when MST is disabled.\n"}}, + {"negative: a build error is not implemented, nothing written", ptr("f"), false, true, nil, + []uint32{1}, xtcpnl.ErrNotAnAdmittedWrite, want{err: errNotImplemented}}, + // Boundary. + {"boundary: the run's first write truncates junk", ptr("f"), true, true, nil, + []uint32{7}, nil, want{file: []uint32{7}}}, + // Corner. + {"corner: a replay never touches the file, even with the variable set", ptr("f"), true, false, + []Reply{rep(nlErr(0))}, []uint32{1}, nil, want{file: []uint32{}}}, + {"corner: a replay with nothing scripted returns the source's error", nil, false, false, nil, + []uint32{1}, nil, want{err: errScript}}, + } + for _, tc := range tests { + t.Run(tc.description, func(t *testing.T) { + path := filepath.Join(t.TempDir(), "w.bin") + junk := []byte("junk from an earlier run") + if tc.junk { + if err := os.WriteFile(path, junk, 0o600); err != nil { + t.Fatal(err) + } + } + switch { + case tc.env == nil: + t.Setenv(writeOutEnvCst, "") + if err := os.Unsetenv(writeOutEnvCst); err != nil { + t.Fatal(err) + } + case *tc.env == "f": + t.Setenv(writeOutEnvCst, path) + default: + t.Setenv(writeOutEnvCst, *tc.env) + } + var errb bytes.Buffer + r := &runner{stderr: &errb} + if tc.live { + r.src = &LiveSource{fd: -1} + } else { + r.src = &fakeSource{replies: tc.replies} + } + var err error + for _, seq := range tc.seqs { + if err = r.deliverWrite(setlinkReq(t, seq, 4), tc.buildErr); err != nil { + break + } + } + + var rc retCode + switch { + case tc.expected.err != nil: + if !errors.Is(err, tc.expected.err) { + t.Fatalf("err %v, want %v", err, tc.expected.err) + } + case tc.expected.rc != 0: + if !errors.As(err, &rc) || int(rc) != tc.expected.rc { + t.Fatalf("err %v, want retCode(%d)", err, tc.expected.rc) + } + case err != nil: + t.Fatalf("err %v, want nil", err) + } + if errb.String() != tc.expected.stderr { + t.Errorf("stderr %q, want %q", errb.String(), tc.expected.stderr) + } + + got, rerr := os.ReadFile(path) + switch { + case tc.expected.file == nil: + if !errors.Is(rerr, fs.ErrNotExist) { + t.Errorf("file %q %v, want none", got, rerr) + } + case len(tc.expected.file) == 0: + if !bytes.Equal(got, junk) { + t.Errorf("file %q, want the junk untouched", got) + } + default: + var wantb []byte + for _, s := range tc.expected.file { + wantb = append(wantb, setlinkReq(t, s, 4)...) + } + if !bytes.Equal(got, wantb) { + t.Errorf("file\n got %x\n want %x", got, wantb) + } + } + }) + } +} diff --git a/internal/gobridge/source.go b/internal/gobridge/source.go index 11daad0cc..0c4528d20 100644 --- a/internal/gobridge/source.go +++ b/internal/gobridge/source.go @@ -1,6 +1,7 @@ package gobridge import ( + "encoding/binary" "errors" "fmt" @@ -72,6 +73,9 @@ func (s *LiveSource) Close() error { return unix.Close(s.fd) } // Talk sends req and reads until the dump's NLMSG_DONE or NLMSG_ERROR, or a // get's one reply. func (s *LiveSource) Talk(req []byte) (Reply, error) { + if !isGetRequest(req) { + return Reply{}, fmt.Errorf("%w: refusing to send a request that is not a get or dump", errLive) + } if err := unix.Sendto(s.fd, req, 0, &unix.SockaddrNetlink{Family: unix.AF_NETLINK}); err != nil { return Reply{}, fmt.Errorf("%w: send: %w", errLive, err) } @@ -93,3 +97,15 @@ func (s *LiveSource) Talk(req []byte) (Reply, error) { // nlHeaderLen is the nlmsghdr length. const nlHeaderLen = xtcpnl.NlMsgHdrSizeCst + +// isGetRequest reports whether req is an rtnetlink RTM_GET*: every get +// type is 2 mod 4 (RTM_BASE is 16, and each object's NEW, DEL, GET, SET +// come in fours). The kernel socket never carries a write, whatever the +// build (increment 26: writes are dry-run, as gotc's). +func isGetRequest(req []byte) bool { + if len(req) < nlHeaderLen { + return false + } + t := binary.LittleEndian.Uint16(req[4:6]) + return t >= unix.RTM_BASE && t%4 == unix.RTM_GETLINK%4 +} diff --git a/internal/gobridge/write_off.go b/internal/gobridge/write_off.go new file mode 100644 index 000000000..80f49b55f --- /dev/null +++ b/internal/gobridge/write_off.go @@ -0,0 +1,10 @@ +//go:build !gobridge_write + +package gobridge + +// Without gobridge_write gobridge cannot lay out a write: link set and mst +// set are refused by name, as every other bridge write is (send_write.go is +// the tagged build's). + +// writesBuilt is whether this build lays out link and mst writes. +const writesBuilt = false diff --git a/internal/gobridge/write_test.go b/internal/gobridge/write_test.go new file mode 100644 index 000000000..4b2253d59 --- /dev/null +++ b/internal/gobridge/write_test.go @@ -0,0 +1,127 @@ +package gobridge + +import ( + "bytes" + "encoding/binary" + "errors" + "strings" + "testing" + + "golang.org/x/sys/unix" +) + +// reqHdr is a bare nlmsghdr of the type, the length isGetRequest needs. +func reqHdr(typ uint16) []byte { + b := make([]byte, nlHeaderLen) + binary.LittleEndian.PutUint32(b[0:4], nlHeaderLen) + binary.LittleEndian.PutUint16(b[4:6], typ) + return b +} + +// TestGobridgeIsGetRequest is the kernel socket's guard: only RTM_GET* +// goes out, whatever the build. +func TestGobridgeIsGetRequest(t *testing.T) { + tests := []struct { + description string + req []byte + expected bool + }{ + // Positive: every get gobridge's reads send. + {"positive: RTM_GETLINK (ll_init_map, link and mst show)", reqHdr(unix.RTM_GETLINK), true}, + {"positive: RTM_GETNEIGH (fdb show and get)", reqHdr(unix.RTM_GETNEIGH), true}, + {"positive: RTM_GETMDB (mdb show and get)", reqHdr(unix.RTM_GETMDB), true}, + {"positive: RTM_GETVLAN (vlan show -d, global show)", reqHdr(unix.RTM_GETVLAN), true}, + {"positive: RTM_GETTUNNEL (vni show)", reqHdr(unix.RTM_GETTUNNEL), true}, + // Negative: the writes bridge sends. + {"negative: RTM_SETLINK (link set, mst set)", reqHdr(unix.RTM_SETLINK), false}, + {"negative: RTM_NEWNEIGH (fdb add)", reqHdr(unix.RTM_NEWNEIGH), false}, + {"negative: RTM_DELMDB (mdb del)", reqHdr(unix.RTM_DELMDB), false}, + {"negative: RTM_NEWVLAN (vlan global set)", reqHdr(unix.RTM_NEWVLAN), false}, + // Boundary. + {"boundary: type 0 is under RTM_BASE", reqHdr(0), false}, + {"boundary: type 0xffff (3 mod 4)", reqHdr(0xffff), false}, + {"boundary: type 0xfffe (2 mod 4) passes the arithmetic", reqHdr(0xfffe), true}, + {"boundary: RTM_BASE-2 (14) is 2 mod 4 but under RTM_BASE", reqHdr(unix.RTM_BASE - 2), false}, + // Corner. + {"corner: a request one byte short of a header", make([]byte, nlHeaderLen-1), false}, + {"corner: an empty request", nil, false}, + {"corner: NLMSG_DONE (3)", reqHdr(unix.NLMSG_DONE), false}, + } + for _, tc := range tests { + t.Run(tc.description, func(t *testing.T) { + t.Parallel() + if got := isGetRequest(tc.req); got != tc.expected { + t.Errorf("isGetRequest = %t, want %t", got, tc.expected) + } + }) + } +} + +// TestGobridgeLiveTalkRefusesWrites is the guard in LiveSource.Talk: a +// write is refused before the send. The fd is -1, so a send would fail +// with EBADF instead of the refusal. +func TestGobridgeLiveTalkRefusesWrites(t *testing.T) { + tests := []struct { + description string + req []byte + expected string // a substring of the error + }{ + {"positive: RTM_GETLINK reaches the send (EBADF on fd -1)", reqHdr(unix.RTM_GETLINK), "send:"}, + {"negative: RTM_SETLINK is refused unsent", reqHdr(unix.RTM_SETLINK), "refusing to send"}, + {"negative: RTM_DELNEIGH is refused unsent", reqHdr(unix.RTM_DELNEIGH), "refusing to send"}, + {"boundary: a short request is refused unsent", make([]byte, 4), "refusing to send"}, + {"corner: an empty request is refused unsent", nil, "refusing to send"}, + } + for _, tc := range tests { + t.Run(tc.description, func(t *testing.T) { + t.Parallel() + s := &LiveSource{fd: -1} + _, err := s.Talk(tc.req) + if !errors.Is(err, errLive) || !strings.Contains(err.Error(), tc.expected) { + t.Errorf("Talk = %v, want errLive containing %q", err, tc.expected) + } + }) + } +} + +// TestGobridgeWriteRefusedUntagged is the default build: link set and mst +// set are refused by name after ll_init_map's one dump, as before +// increment 26. +func TestGobridgeWriteRefusedUntagged(t *testing.T) { + if writesBuilt { + t.Skip("gobridge_write lays out link set and mst set") + } + type want struct { + stderr string + rc, reqs int + } + const linkSet = "gobridge: not implemented: bridge link set\n" + const mstSet = "gobridge: not implemented: bridge mst set\n" + tests := []struct { + description string + args string + expected want + }{ + {"positive: link set", "link set dev d1 cost 5", want{linkSet, 255, 1}}, + {"positive: mst set", "mst set dev d1 msti 5 state 3", want{mstSet, 255, 1}}, + {"negative: link change is set's alias", "link change dev d1 hairpin on", want{linkSet, 255, 1}}, + {"negative: a write with bad words is still refused, not parsed", "link set dev d1 bogus", want{linkSet, 255, 1}}, + {"boundary: link set with no words", "link set", want{linkSet, 255, 1}}, + {"boundary: link s is set by prefix", "link s dev d1", want{linkSet, 255, 1}}, + {"corner: mst s is set, matched before show (B88)", "mst s dev d1 msti 5 state 3", want{mstSet, 255, 1}}, + {"corner: -force -batch, a refusal ends the batch", "-force -batch -", want{mstSet, 255, 1}}, + } + for _, tc := range tests { + t.Run(tc.description, func(t *testing.T) { + t.Parallel() + src := &fakeSource{replies: []Reply{cache(), cache()}} + var out, errb bytes.Buffer + cfg := config{src: src, stdin: strings.NewReader("mst set dev d1 msti 5 state 3\nlink show\n")} + rc := run(cfg, strings.Fields(tc.args), &out, &errb) + got := want{errb.String(), rc, len(src.reqs)} + if got != tc.expected || out.Len() != 0 { + t.Errorf("bridge %s\n got %#v stdout %q\n want %#v", tc.args, got, out.String(), tc.expected) + } + }) + } +} diff --git a/nix/checks/flavor-tags.nix b/nix/checks/flavor-tags.nix index c84012895..af19319ac 100644 --- a/nix/checks/flavor-tags.nix +++ b/nix/checks/flavor-tags.nix @@ -63,6 +63,7 @@ pkgs.runCommand "xtcp2-flavor-tags" has_tag "$t" capture && { echo "FAIL: full flavor carries capture (tags: $t)"; fail=1; } has_tag "$t" goip_write && { echo "FAIL: full flavor carries goip_write (tags: $t)"; fail=1; } has_tag "$t" gotc_write && { echo "FAIL: full flavor carries gotc_write (tags: $t)"; fail=1; } + has_tag "$t" gobridge_write && { echo "FAIL: full flavor carries gobridge_write (tags: $t)"; fail=1; } t=$(tags_of ${binaries.xtcp2-capture}) has_tag "$t" capture || { echo "FAIL: xtcp2-capture lacks capture (tags: $t)"; fail=1; } diff --git a/nix/checks/govulncheck.nix b/nix/checks/govulncheck.nix index 73465b27c..a7f72bb36 100644 --- a/nix/checks/govulncheck.nix +++ b/nix/checks/govulncheck.nix @@ -8,7 +8,7 @@ # does not call is reported but does not fail. # # Two passes: no build tags (the min flavor), and every destination, -# enrichment, goip_write and gotc_write tag, so code behind a tag is scanned too. +# enrichment, goip_write, gotc_write and gobridge_write tag, so code behind a tag is scanned too. # # The snapshot ages; `nix run .#govulncheck-fresh` checks the working tree # against the live database, and moving the pin in nix/lib/govulndb.nix brings @@ -26,6 +26,7 @@ let ++ map (e: "enrich_${e}") versions.allEnrichmentFeatures ++ versions.goipWriteTags ++ versions.gotcWriteTags + ++ versions.gobridgeWriteTags ); # Reachable findings accepted for now, each with why and what removes it. diff --git a/nix/checks/no-write-encoders.nix b/nix/checks/no-write-encoders.nix index cc2b07465..49ef9747f 100644 --- a/nix/checks/no-write-encoders.nix +++ b/nix/checks/no-write-encoders.nix @@ -3,7 +3,8 @@ # The daemons, xtcp2 and go-link-monitor, must not be able to build a netlink # mutation: goip's write verbs and pkg/xtcpnl's write builders compile only # with the goip_write tag, which cmd/goip and cmd/goip-parity alone carry, and -# gotc's tc write builder only with gotc_write, which no daemon carries. +# gotc's tc write builder only with gotc_write, which no daemon carries, and +# gobridge's link and mst writes only with gobridge_write, which neither does. # # One exemption: a build with the `treatment` tag embeds the route treatment # actuator (internal/goip/actuate), which encodes routes and rules. It may @@ -18,11 +19,13 @@ # built with, names no write file of internal/goip, pkg/xtcpnl or # pkg/nlparity, bar treatmentFiles under `treatment` (which must # all be named, or the list is stale). The same listing with -# goip_write must name more. +# goip_write or gotc_write must name more, and cmd/gobridge's +# with gobridge_write. # symbols `go tool nm` on xtcp2-debug (unstripped, treatment) and # go-link-monitor finds no write builder, no Encode*InfoData and # no goip write arm, bar treatmentSyms under `treatment`. goip, -# built with goip_write, must have BuildWriteRequest. The slim +# built with goip_write, must have BuildWriteRequest; the default +# gobridge, built without gobridge_write, must not. The slim # xtcp2 is stripped, so it gets the files and no_exec proofs only. # no_exec no package in either daemon's deps imports os/exec, bar the # third-party ones in execAllowed: the daemons never run a @@ -70,14 +73,17 @@ let ]; treatmentSyms = "pkg/xtcpnl[.](BuildWriteRequest|BuildRouteWriteRequest|BuildRuleWriteRequest)$"; - # 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)$"; + # The files goip_write, gotc_write and gobridge_write gate, in the packages + # that hold them. + writePkgs = "^github.com/randomizedcoder/xtcp2/(internal/goip|internal/gotc|internal/gobridge|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, 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|cbpf|inet|units)[.]go$"; + # gobridge's write files are all named *_write.go; the gobridge control in + # the script fails when the tag and the name disagree. writeFiles = "${gotcWriteFiles}|(_write[a-z0-9_]*|_flush|_restore|link_property|stats_set)[.]go$"; # minio-go's process credential provider (the s3parquet destination) runs @@ -126,6 +132,18 @@ pkgs.runCommand "xtcp2-no-write-encoders" fi done + # internal/gobridge likewise: a file carries gobridge_write exactly when + # its name matches writeFiles (write_off.go, the untagged stub, does not). + for f in internal/gobridge/*.go; do + case $f in *_test.go) continue ;; esac + b=''${f##*/} + want=0; grep -qx '//go:build gobridge_write' "$f" && want=1 + got=0; printf '%s\n' "$b" | grep -qE '${writeFiles}' && got=1 + if [ "$want" != "$got" ]; then + echo "FAIL: internal/gobridge/$b: gobridge_write tag $want, writeFiles match $got; name it *_write.go or drop the tag"; fail=1 + fi + done + # has_tag TAGS TAG: TAGS (comma-separated, as go version -m prints them) # includes TAG. has_tag() { @@ -178,8 +196,17 @@ pkgs.runCommand "xtcp2-no-write-encoders" echo "FAIL: goip lacks xtcpnl.BuildWriteRequest; goip_write is not wired"; fail=1 fi + # gobridge's control: with gobridge_write, cmd/gobridge compiles more write + # files than without (send_write.go at least), so the pattern sees them. + if [ "$(write_files ./cmd/gobridge gobridge_write | wc -l)" -le "$(write_files ./cmd/gobridge "" | wc -l)" ]; then + echo "FAIL: gobridge with gobridge_write names no further write file; the pattern is stale"; fail=1 + fi + if [ -n "$(go tool nm ${binaries.byVariant.debug.gobridge}/bin/gobridge | grep -E '${writeSyms}' || true)" ]; then + echo "FAIL: the default gobridge links a write builder; gobridge_write leaked into its tags"; fail=1 + fi + [ "$fail" = 0 ] || exit 1 echo "ok: ${ lib.concatMapStringsSep " " (d: d.name) daemons - } carry no write encoders (bar treatment's route and rule builders) and no unlisted os/exec; goip has them" > $out + } carry no write encoders (bar treatment's route and rule builders) and no unlisted os/exec; goip has them; the default gobridge does not" > $out '' diff --git a/nix/default.nix b/nix/default.nix index fe8e028c3..2d8503736 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -407,6 +407,7 @@ let "$FLAKE_REF#test-focused-asn-locality" \ "$FLAKE_REF#test-focused-goip" \ "$FLAKE_REF#test-focused-gotc-write" \ + "$FLAKE_REF#test-focused-gobridge-write" \ "$FLAKE_REF#test-focused-gordma" \ "$FLAKE_REF#test-focused-xtcp-enrich" \ "$FLAKE_REF#test-focused-xtcp-treatment" @@ -1182,6 +1183,7 @@ in test-focused-asn-locality = tests.focused.focused-asn-locality; test-focused-goip = tests.focused.focused-goip; test-focused-gotc-write = tests.focused.focused-gotc-write; + test-focused-gobridge-write = tests.focused.focused-gobridge-write; test-focused-gordma = tests.focused.focused-gordma; test-focused-xtcp-enrich = tests.focused.focused-xtcp-enrich; test-focused-xtcp-treatment = tests.focused.focused-xtcp-treatment; diff --git a/nix/tests/focused-quality.nix b/nix/tests/focused-quality.nix index bdb2c4132..b209e302c 100644 --- a/nix/tests/focused-quality.nix +++ b/nix/tests/focused-quality.nix @@ -84,6 +84,18 @@ in ]; }; + # With gobridge_write: gobridge's link and mst writes and pkg/xtcpnl's bridge + # write builder build only so. The untagged half runs in the default + # `go test`. + focused-gobridge-write = mkFocusedTest "gobridge-write" { + tags = lib.concatStringsSep " " versions.gobridgeWriteTags; + paths = [ + "./internal/gobridge/..." + "./pkg/xtcpnl/..." + "./pkg/cint/..." + ]; + }; + # gordma's corpus replay reads pkg/xtcpnl/testdata/*/rdma, which the # vendored source carries. focused-gordma = mkFocusedTest "gordma" { diff --git a/nix/versions.nix b/nix/versions.nix index 4c48ccb4d..5a59b4544 100644 --- a/nix/versions.nix +++ b/nix/versions.nix @@ -148,12 +148,14 @@ # `goip_write` compiles in goip's write verbs (the netlink request # encoders); only goip and goip-parity carry it (goipWriteTags below). # `gotc_write` compiles in gotc's qdisc, class, filter and chain writes - # (gotcWriteTags). + # (gotcWriteTags). `gobridge_write` compiles in gobridge's link and mst + # writes (gobridgeWriteTags). # nix/checks/flavor-tags.nix fails if one of these reaches a flavor. optInOnlyTags = [ "capture" "goip_write" "gotc_write" + "gobridge_write" ]; # goip's write path: internal/goip's write verbs and pkg/xtcpnl's write @@ -167,6 +169,12 @@ # without it and refuses writes. gotcWriteTags = [ "gotc_write" ]; + # gobridge's write path: internal/gobridge's link set and mst set and + # pkg/xtcpnl's bridge write builder. Dry-run like gotc's: a write goes to a + # replay or to GOBRIDGE_WRITE_OUT, never to a live socket. The default + # gobridge is built without it and refuses writes. + gobridgeWriteTags = [ "gobridge_write" ]; + # Enrichment flavors — the third build axis, alongside buildVariants and # destinationFlavors. Each maps to a list of `enrich_` build tags. # diff --git a/pkg/xtcpnl/xtcpnl_write_request.go b/pkg/xtcpnl/xtcpnl_write_request.go index e2973d883..aa61434de 100644 --- a/pkg/xtcpnl/xtcpnl_write_request.go +++ b/pkg/xtcpnl/xtcpnl_write_request.go @@ -1,9 +1,10 @@ -//go:build goip_write || treatment || gotc_write +//go:build goip_write || treatment || gotc_write || gobridge_write // goip_write builds this for goip's write verbs. treatment builds it, and only // the route and rule builders, for internal/goip/actuate; link, address, nsid, // genl and xfrm writes stay goip_write-only (FP-8b). gotc_write builds it for -// gotc's qdisc and class writes (xtcpnl_tc_write.go). +// gotc's qdisc and class writes (xtcpnl_tc_write.go). gobridge_write builds it +// for gobridge's link set and mst set (xtcpnl_bridge_write.go). package xtcpnl From 52d4f4f8bf89f82767df534c89f90bdedaf243b7 Mon Sep 17 00:00:00 2001 From: randomizedcoder Date: Sat, 5 Dec 2026 00:08:59 -0800 Subject: [PATCH 2/8] feat(nlcapgen): 26C - brlinkwrite capture space, 141 rows, two batches (V116) - matrix_brlinkwrite.go: bridge link set and mst set over five fixtures (brl, brlstp, brldown, brmst, brmstoff). 92 accepted writes, each with a readback (bridge -d link show / bridge mst show dev d1), 46 refusals and 3 -force batches. - Captured on the workbench (kernel 7.3.1, bridge 7.2.0), batch A and B identical in rc/stderr/stdout/readbacks; bodies differ only in the forward-delay timer and ll_init_map's ifi_flags (V097's classes). - upstream/iproute2-bridge-write.md: B77-B90 and K18-K22 confirmed, K23/K24 corrected, K25 (br_setport applies flags before the range checks, so a refused write is partly applied) and K26 new. - TestBrLinkWriteSpace pins every lead and K note to a row. Co-Authored-By: Claude Opus 5.5 --- docs/netlink/gobridge-status.md | 9 +- .../netlink/upstream/iproute2-bridge-write.md | 216 ++++++++------ nix/microvms/workbench/brlinkwrite.rows.jsonl | 144 ++++++++++ .../7_3_1/ws/brlinkwrite/ec-001/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-001/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-001/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-001/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-001/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-001/link.out | 4 + .../ec-001/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-002/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-002/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-002/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-002/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-002/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-002/link.out | 4 + .../ec-002/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-003/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-003/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-003/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-003/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-003/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-003/link.out | 4 + .../ec-003/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-004/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-004/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-004/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-004/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-004/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-004/link.out | 4 + .../ec-004/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-005/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-005/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-005/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-005/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-005/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-005/link.out | 4 + .../ec-005/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-006/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-006/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-006/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-006/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-006/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-006/link.out | 4 + .../ec-006/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-007/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-007/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-007/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-007/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-007/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-007/link.out | 4 + .../ec-007/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-008/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-008/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-008/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-008/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-008/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-008/link.out | 4 + .../ec-008/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-009/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-009/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-009/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-009/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-009/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-009/link.out | 4 + .../ec-009/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-010/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-010/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-010/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-010/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-010/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-010/link.out | 4 + .../ec-010/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-011/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-011/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-011/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-011/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-011/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-011/link.out | 4 + .../ec-011/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-012/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-012/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-012/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-012/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-012/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-012/link.out | 4 + .../ec-012/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-013/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-013/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-013/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-013/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-013/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-013/link.out | 4 + .../ec-013/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-014/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-014/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-014/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-014/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-014/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-014/link.out | 4 + .../ec-014/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-015/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-015/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-015/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-015/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-015/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-015/link.out | 4 + .../ec-015/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-016/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-016/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-016/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-016/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-016/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-016/link.out | 4 + .../ec-016/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-017/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-017/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-017/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-017/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-017/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-017/link.out | 4 + .../ec-017/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-018/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-018/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-018/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-018/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-018/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-018/link.out | 4 + .../ec-018/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-019/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-019/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-019/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-019/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-019/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-019/link.out | 4 + .../ec-019/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-020/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-020/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-020/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-020/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-020/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-020/link.out | 4 + .../ec-020/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-021/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-021/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-021/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-021/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-021/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-021/link.out | 4 + .../ec-021/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-022/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-022/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-022/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-022/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-022/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-022/link.out | 4 + .../ec-022/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-023/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-023/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-023/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-023/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-023/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-023/link.out | 4 + .../ec-023/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-024/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-024/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-024/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-024/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-024/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-024/link.out | 4 + .../ec-024/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-025/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-025/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-025/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-025/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-025/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-025/link.out | 4 + .../ec-025/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-026/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-026/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-026/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-026/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-026/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-026/link.out | 4 + .../ec-026/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-027/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-027/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-027/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-027/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-027/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-027/link.out | 4 + .../ec-027/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-028/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-028/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-028/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-028/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-028/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-028/link.out | 4 + .../ec-028/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-029/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-029/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-029/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-029/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-029/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-029/link.out | 4 + .../ec-029/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-030/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-030/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-030/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-030/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-030/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-030/link.out | 4 + .../ec-030/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-031/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-031/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-031/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-031/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-031/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-031/link.out | 4 + .../ec-031/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-032/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-032/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-032/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-032/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-032/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-032/link.out | 4 + .../ec-032/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-033/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-033/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-033/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-033/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-033/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-033/link.out | 4 + .../ec-033/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-034/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-034/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-034/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-034/ip.pcap | Bin 0 -> 544 bytes .../7_3_1/ws/brlinkwrite/ec-034/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-034/link.out | 4 + .../ec-034/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-035/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-035/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-035/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-035/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-035/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-035/link.out | 4 + .../ec-035/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-036/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-036/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-036/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-036/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-036/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-036/link.out | 4 + .../ec-036/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-037/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-037/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-037/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-037/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-037/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-037/link.out | 4 + .../ec-037/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-038/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-038/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-038/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-038/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-038/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-038/link.out | 4 + .../ec-038/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-039/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-039/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-039/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-039/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-039/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-039/link.out | 4 + .../ec-039/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-040/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-040/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-040/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-040/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-040/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-040/link.out | 4 + .../ec-040/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-041/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-041/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-041/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-041/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-041/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-041/link.out | 4 + .../ec-041/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-042/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-042/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-042/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-042/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-042/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-042/link.out | 4 + .../ec-042/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-043/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-043/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-043/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-043/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-043/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-043/link.out | 4 + .../ec-043/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-044/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-044/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-044/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-044/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-044/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-044/link.out | 4 + .../ec-044/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-045/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-045/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-045/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-045/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-045/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-045/link.out | 4 + .../ec-045/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-046/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-046/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-046/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-046/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-046/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-046/link.out | 4 + .../ec-046/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-047/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-047/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-047/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-047/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-047/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-047/link.out | 4 + .../ec-047/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-048/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-048/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-048/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-048/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-048/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-048/link.out | 4 + .../ec-048/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-049/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-049/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-049/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-049/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-049/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-049/link.out | 4 + .../ec-049/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-050/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-050/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-050/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-050/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-050/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-050/link.out | 4 + .../ec-050/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-051/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-051/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-051/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-051/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-051/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-051/link.out | 4 + .../ec-051/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-052/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-052/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-052/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-052/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-052/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-052/link.out | 4 + .../ec-052/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-053/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-053/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-053/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-053/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-053/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-053/link.out | 4 + .../ec-053/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-054/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-054/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-054/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-054/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-054/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-054/link.out | 4 + .../ec-054/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-055/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-055/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-055/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-055/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-055/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-055/link.out | 4 + .../ec-055/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-056/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-056/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-056/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-056/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-056/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-056/link.out | 4 + .../ec-056/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-057/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-057/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-057/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-057/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-057/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-057/link.out | 4 + .../ec-057/netlink_route_link.pcap | Bin 0 -> 1380 bytes .../7_3_1/ws/brlinkwrite/ec-058/cmd.json | 58 ++++ .../7_3_1/ws/brlinkwrite/ec-058/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-058/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-058/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-058/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-058/link.out | 4 + .../ec-058/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-059/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-059/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-059/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-059/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-059/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-059/link.out | 4 + .../ec-059/netlink_route_link.pcap | Bin 0 -> 1380 bytes .../7_3_1/ws/brlinkwrite/ec-060/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-060/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-060/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-060/ip.pcap | Bin 0 -> 540 bytes .../7_3_1/ws/brlinkwrite/ec-060/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-060/link.out | 4 + .../ec-060/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-061/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-061/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-061/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-061/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-061/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-061/link.out | 4 + .../ec-061/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-062/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-062/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-062/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-062/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-062/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-062/link.out | 4 + .../ec-062/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-063/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-063/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-063/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-063/ip.pcap | Bin 0 -> 576 bytes .../7_3_1/ws/brlinkwrite/ec-063/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-063/link.out | 4 + .../ec-063/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-064/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-064/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-064/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-064/ip.pcap | Bin 0 -> 560 bytes .../7_3_1/ws/brlinkwrite/ec-064/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-064/link.out | 4 + .../ec-064/netlink_route_link.pcap | Bin 0 -> 1388 bytes .../7_3_1/ws/brlinkwrite/ec-065/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-065/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-065/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-065/ip.pcap | Bin 0 -> 520 bytes .../7_3_1/ws/brlinkwrite/ec-065/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-065/link.out | 4 + .../ec-065/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-066/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-066/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-066/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-066/ip.pcap | Bin 0 -> 540 bytes .../7_3_1/ws/brlinkwrite/ec-066/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-066/link.out | 4 + .../ec-066/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-067/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-067/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-067/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-067/ip.pcap | Bin 0 -> 520 bytes .../7_3_1/ws/brlinkwrite/ec-067/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-067/link.out | 4 + .../ec-067/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-068/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-068/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-068/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-068/ip.pcap | Bin 0 -> 520 bytes .../7_3_1/ws/brlinkwrite/ec-068/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-068/link.out | 4 + .../ec-068/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-069/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-069/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-069/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-069/ip.pcap | Bin 0 -> 520 bytes .../7_3_1/ws/brlinkwrite/ec-069/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-069/link.out | 4 + .../ec-069/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-070/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-070/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-070/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-070/ip.pcap | Bin 0 -> 520 bytes .../7_3_1/ws/brlinkwrite/ec-070/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-070/link.out | 4 + .../ec-070/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-071/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-071/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-071/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-071/ip.pcap | Bin 0 -> 520 bytes .../7_3_1/ws/brlinkwrite/ec-071/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-071/link.out | 4 + .../ec-071/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-072/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-072/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-072/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-072/ip.pcap | Bin 0 -> 520 bytes .../7_3_1/ws/brlinkwrite/ec-072/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-072/link.out | 4 + .../ec-072/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-073/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-073/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-073/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-073/ip.pcap | Bin 0 -> 520 bytes .../7_3_1/ws/brlinkwrite/ec-073/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-073/link.out | 4 + .../ec-073/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-074/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-074/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-074/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-074/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ec-074/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-074/link.out | 4 + .../ec-074/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-075/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-075/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-075/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-075/ip.pcap | Bin 0 -> 520 bytes .../7_3_1/ws/brlinkwrite/ec-075/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-075/link.out | 4 + .../ec-075/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-076/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ec-076/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-076/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-076/ip.pcap | Bin 0 -> 520 bytes .../7_3_1/ws/brlinkwrite/ec-076/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-076/link.out | 4 + .../ec-076/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-077/cmd.json | 63 ++++ .../7_3_1/ws/brlinkwrite/ec-077/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-077/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-077/ip.pcap | Bin 0 -> 544 bytes .../7_3_1/ws/brlinkwrite/ec-077/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-077/mst.out | 5 + .../brlinkwrite/ec-077/netlink_route_mst.pcap | Bin 0 -> 1456 bytes .../7_3_1/ws/brlinkwrite/ec-078/cmd.json | 63 ++++ .../7_3_1/ws/brlinkwrite/ec-078/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-078/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-078/ip.pcap | Bin 0 -> 544 bytes .../7_3_1/ws/brlinkwrite/ec-078/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-078/mst.out | 5 + .../brlinkwrite/ec-078/netlink_route_mst.pcap | Bin 0 -> 1456 bytes .../7_3_1/ws/brlinkwrite/ec-079/cmd.json | 63 ++++ .../7_3_1/ws/brlinkwrite/ec-079/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-079/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-079/ip.pcap | Bin 0 -> 544 bytes .../7_3_1/ws/brlinkwrite/ec-079/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-079/mst.out | 5 + .../brlinkwrite/ec-079/netlink_route_mst.pcap | Bin 0 -> 1456 bytes .../7_3_1/ws/brlinkwrite/ec-080/cmd.json | 63 ++++ .../7_3_1/ws/brlinkwrite/ec-080/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-080/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-080/ip.pcap | Bin 0 -> 544 bytes .../7_3_1/ws/brlinkwrite/ec-080/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-080/mst.out | 5 + .../brlinkwrite/ec-080/netlink_route_mst.pcap | Bin 0 -> 1456 bytes .../7_3_1/ws/brlinkwrite/ec-081/cmd.json | 63 ++++ .../7_3_1/ws/brlinkwrite/ec-081/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-081/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-081/ip.pcap | Bin 0 -> 544 bytes .../7_3_1/ws/brlinkwrite/ec-081/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-081/mst.out | 5 + .../brlinkwrite/ec-081/netlink_route_mst.pcap | Bin 0 -> 1456 bytes .../7_3_1/ws/brlinkwrite/ec-082/cmd.json | 63 ++++ .../7_3_1/ws/brlinkwrite/ec-082/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-082/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-082/ip.pcap | Bin 0 -> 544 bytes .../7_3_1/ws/brlinkwrite/ec-082/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-082/mst.out | 5 + .../brlinkwrite/ec-082/netlink_route_mst.pcap | Bin 0 -> 1456 bytes .../7_3_1/ws/brlinkwrite/ec-083/cmd.json | 63 ++++ .../7_3_1/ws/brlinkwrite/ec-083/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-083/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-083/ip.pcap | Bin 0 -> 544 bytes .../7_3_1/ws/brlinkwrite/ec-083/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-083/mst.out | 5 + .../brlinkwrite/ec-083/netlink_route_mst.pcap | Bin 0 -> 1456 bytes .../7_3_1/ws/brlinkwrite/ec-084/cmd.json | 63 ++++ .../7_3_1/ws/brlinkwrite/ec-084/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-084/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-084/ip.pcap | Bin 0 -> 544 bytes .../7_3_1/ws/brlinkwrite/ec-084/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-084/mst.out | 5 + .../brlinkwrite/ec-084/netlink_route_mst.pcap | Bin 0 -> 1456 bytes .../7_3_1/ws/brlinkwrite/ec-085/cmd.json | 63 ++++ .../7_3_1/ws/brlinkwrite/ec-085/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-085/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-085/ip.pcap | Bin 0 -> 544 bytes .../7_3_1/ws/brlinkwrite/ec-085/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-085/mst.out | 5 + .../brlinkwrite/ec-085/netlink_route_mst.pcap | Bin 0 -> 1456 bytes .../7_3_1/ws/brlinkwrite/ec-086/cmd.json | 63 ++++ .../7_3_1/ws/brlinkwrite/ec-086/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-086/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-086/ip.pcap | Bin 0 -> 544 bytes .../7_3_1/ws/brlinkwrite/ec-086/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-086/mst.out | 5 + .../brlinkwrite/ec-086/netlink_route_mst.pcap | Bin 0 -> 1456 bytes .../7_3_1/ws/brlinkwrite/ec-087/cmd.json | 63 ++++ .../7_3_1/ws/brlinkwrite/ec-087/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-087/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-087/ip.pcap | Bin 0 -> 544 bytes .../7_3_1/ws/brlinkwrite/ec-087/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-087/mst.out | 5 + .../brlinkwrite/ec-087/netlink_route_mst.pcap | Bin 0 -> 1456 bytes .../7_3_1/ws/brlinkwrite/ec-088/cmd.json | 63 ++++ .../7_3_1/ws/brlinkwrite/ec-088/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-088/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-088/ip.pcap | Bin 0 -> 544 bytes .../7_3_1/ws/brlinkwrite/ec-088/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-088/mst.out | 5 + .../brlinkwrite/ec-088/netlink_route_mst.pcap | Bin 0 -> 1456 bytes .../7_3_1/ws/brlinkwrite/ec-089/cmd.json | 63 ++++ .../7_3_1/ws/brlinkwrite/ec-089/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-089/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-089/ip.pcap | Bin 0 -> 544 bytes .../7_3_1/ws/brlinkwrite/ec-089/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-089/mst.out | 5 + .../brlinkwrite/ec-089/netlink_route_mst.pcap | Bin 0 -> 1456 bytes .../7_3_1/ws/brlinkwrite/ec-090/cmd.json | 63 ++++ .../7_3_1/ws/brlinkwrite/ec-090/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-090/ip.out | 0 .../7_3_1/ws/brlinkwrite/ec-090/ip.pcap | Bin 0 -> 544 bytes .../7_3_1/ws/brlinkwrite/ec-090/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-090/mst.out | 5 + .../brlinkwrite/ec-090/netlink_route_mst.pcap | Bin 0 -> 1456 bytes .../7_3_1/ws/brlinkwrite/ec-091/b.txt | 2 + .../7_3_1/ws/brlinkwrite/ec-091/cmd.json | 59 ++++ .../7_3_1/ws/brlinkwrite/ec-091/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-091/ip.out | 1 + .../7_3_1/ws/brlinkwrite/ec-091/ip.pcap | Bin 0 -> 1524 bytes .../7_3_1/ws/brlinkwrite/ec-091/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-091/link.out | 4 + .../ec-091/netlink_route_link.pcap | Bin 0 -> 1372 bytes .../7_3_1/ws/brlinkwrite/ec-092/b.txt | 2 + .../7_3_1/ws/brlinkwrite/ec-092/cmd.json | 69 +++++ .../7_3_1/ws/brlinkwrite/ec-092/ip.err | 0 .../7_3_1/ws/brlinkwrite/ec-092/ip.out | 5 + .../7_3_1/ws/brlinkwrite/ec-092/ip.pcap | Bin 0 -> 1616 bytes .../7_3_1/ws/brlinkwrite/ec-092/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ec-092/mst.out | 5 + .../brlinkwrite/ec-092/netlink_route_mst.pcap | Bin 0 -> 1456 bytes .../7_3_1/ws/brlinkwrite/ng-001/cmd.json | 48 ++++ .../7_3_1/ws/brlinkwrite/ng-001/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-001/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-001/ip.pcap | Bin 0 -> 564 bytes .../7_3_1/ws/brlinkwrite/ng-001/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-002/cmd.json | 48 ++++ .../7_3_1/ws/brlinkwrite/ng-002/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-002/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-002/ip.pcap | Bin 0 -> 580 bytes .../7_3_1/ws/brlinkwrite/ng-002/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-003/cmd.json | 48 ++++ .../7_3_1/ws/brlinkwrite/ng-003/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-003/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-003/ip.pcap | Bin 0 -> 580 bytes .../7_3_1/ws/brlinkwrite/ng-003/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-004/cmd.json | 48 ++++ .../7_3_1/ws/brlinkwrite/ng-004/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-004/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-004/ip.pcap | Bin 0 -> 580 bytes .../7_3_1/ws/brlinkwrite/ng-004/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-005/cmd.json | 49 ++++ .../7_3_1/ws/brlinkwrite/ng-005/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-005/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-005/ip.pcap | Bin 0 -> 636 bytes .../7_3_1/ws/brlinkwrite/ng-005/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-006/cmd.json | 48 ++++ .../7_3_1/ws/brlinkwrite/ng-006/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-006/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-006/ip.pcap | Bin 0 -> 556 bytes .../7_3_1/ws/brlinkwrite/ng-006/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-007/cmd.json | 48 ++++ .../7_3_1/ws/brlinkwrite/ng-007/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-007/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-007/ip.pcap | Bin 0 -> 556 bytes .../7_3_1/ws/brlinkwrite/ng-007/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-008/cmd.json | 48 ++++ .../7_3_1/ws/brlinkwrite/ng-008/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-008/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-008/ip.pcap | Bin 0 -> 556 bytes .../7_3_1/ws/brlinkwrite/ng-008/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-009/cmd.json | 48 ++++ .../7_3_1/ws/brlinkwrite/ng-009/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-009/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-009/ip.pcap | Bin 0 -> 556 bytes .../7_3_1/ws/brlinkwrite/ng-009/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-010/cmd.json | 48 ++++ .../7_3_1/ws/brlinkwrite/ng-010/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-010/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-010/ip.pcap | Bin 0 -> 556 bytes .../7_3_1/ws/brlinkwrite/ng-010/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-011/cmd.json | 48 ++++ .../7_3_1/ws/brlinkwrite/ng-011/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-011/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-011/ip.pcap | Bin 0 -> 556 bytes .../7_3_1/ws/brlinkwrite/ng-011/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-012/cmd.json | 48 ++++ .../7_3_1/ws/brlinkwrite/ng-012/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-012/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-012/ip.pcap | Bin 0 -> 556 bytes .../7_3_1/ws/brlinkwrite/ng-012/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-013/cmd.json | 48 ++++ .../7_3_1/ws/brlinkwrite/ng-013/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-013/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-013/ip.pcap | Bin 0 -> 556 bytes .../7_3_1/ws/brlinkwrite/ng-013/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-014/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ng-014/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-014/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-014/ip.pcap | Bin 0 -> 556 bytes .../7_3_1/ws/brlinkwrite/ng-014/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-015/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ng-015/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-015/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-015/ip.pcap | Bin 0 -> 556 bytes .../7_3_1/ws/brlinkwrite/ng-015/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-016/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ng-016/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-016/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-016/ip.pcap | Bin 0 -> 556 bytes .../7_3_1/ws/brlinkwrite/ng-016/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-017/cmd.json | 48 ++++ .../7_3_1/ws/brlinkwrite/ng-017/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-017/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-017/ip.pcap | Bin 0 -> 556 bytes .../7_3_1/ws/brlinkwrite/ng-017/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-018/cmd.json | 54 ++++ .../7_3_1/ws/brlinkwrite/ng-018/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-018/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-018/ip.pcap | Bin 0 -> 644 bytes .../7_3_1/ws/brlinkwrite/ng-018/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-019/cmd.json | 59 ++++ .../7_3_1/ws/brlinkwrite/ng-019/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-019/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-019/ip.pcap | Bin 0 -> 660 bytes .../7_3_1/ws/brlinkwrite/ng-019/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-020/cmd.json | 59 ++++ .../7_3_1/ws/brlinkwrite/ng-020/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-020/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-020/ip.pcap | Bin 0 -> 660 bytes .../7_3_1/ws/brlinkwrite/ng-020/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-021/cmd.json | 59 ++++ .../7_3_1/ws/brlinkwrite/ng-021/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-021/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-021/ip.pcap | Bin 0 -> 660 bytes .../7_3_1/ws/brlinkwrite/ng-021/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-022/cmd.json | 59 ++++ .../7_3_1/ws/brlinkwrite/ng-022/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-022/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-022/ip.pcap | Bin 0 -> 660 bytes .../7_3_1/ws/brlinkwrite/ng-022/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-023/cmd.json | 59 ++++ .../7_3_1/ws/brlinkwrite/ng-023/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-023/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-023/ip.pcap | Bin 0 -> 660 bytes .../7_3_1/ws/brlinkwrite/ng-023/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-024/cmd.json | 59 ++++ .../7_3_1/ws/brlinkwrite/ng-024/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-024/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-024/ip.pcap | Bin 0 -> 660 bytes .../7_3_1/ws/brlinkwrite/ng-024/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-025/cmd.json | 47 +++ .../7_3_1/ws/brlinkwrite/ng-025/ip.err | 25 ++ .../7_3_1/ws/brlinkwrite/ng-025/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-025/ip.pcap | Bin 0 -> 384 bytes .../7_3_1/ws/brlinkwrite/ng-025/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-026/cmd.json | 47 +++ .../7_3_1/ws/brlinkwrite/ng-026/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-026/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-026/ip.pcap | Bin 0 -> 384 bytes .../7_3_1/ws/brlinkwrite/ng-026/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-027/cmd.json | 47 +++ .../7_3_1/ws/brlinkwrite/ng-027/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-027/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-027/ip.pcap | Bin 0 -> 384 bytes .../7_3_1/ws/brlinkwrite/ng-027/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-028/cmd.json | 47 +++ .../7_3_1/ws/brlinkwrite/ng-028/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-028/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-028/ip.pcap | Bin 0 -> 384 bytes .../7_3_1/ws/brlinkwrite/ng-028/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-029/cmd.json | 47 +++ .../7_3_1/ws/brlinkwrite/ng-029/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-029/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-029/ip.pcap | Bin 0 -> 384 bytes .../7_3_1/ws/brlinkwrite/ng-029/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-030/cmd.json | 47 +++ .../7_3_1/ws/brlinkwrite/ng-030/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-030/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-030/ip.pcap | Bin 0 -> 384 bytes .../7_3_1/ws/brlinkwrite/ng-030/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-031/cmd.json | 47 +++ .../7_3_1/ws/brlinkwrite/ng-031/ip.err | 25 ++ .../7_3_1/ws/brlinkwrite/ng-031/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-031/ip.pcap | Bin 0 -> 384 bytes .../7_3_1/ws/brlinkwrite/ng-031/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-032/cmd.json | 47 +++ .../7_3_1/ws/brlinkwrite/ng-032/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-032/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-032/ip.pcap | Bin 0 -> 384 bytes .../7_3_1/ws/brlinkwrite/ng-032/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-033/cmd.json | 47 +++ .../7_3_1/ws/brlinkwrite/ng-033/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-033/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-033/ip.pcap | Bin 0 -> 384 bytes .../7_3_1/ws/brlinkwrite/ng-033/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-034/cmd.json | 47 +++ .../7_3_1/ws/brlinkwrite/ng-034/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-034/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-034/ip.pcap | Bin 0 -> 384 bytes .../7_3_1/ws/brlinkwrite/ng-034/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-035/cmd.json | 48 ++++ .../7_3_1/ws/brlinkwrite/ng-035/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-035/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-035/ip.pcap | Bin 0 -> 572 bytes .../7_3_1/ws/brlinkwrite/ng-035/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-036/cmd.json | 48 ++++ .../7_3_1/ws/brlinkwrite/ng-036/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-036/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-036/ip.pcap | Bin 0 -> 572 bytes .../7_3_1/ws/brlinkwrite/ng-036/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-037/cmd.json | 58 ++++ .../7_3_1/ws/brlinkwrite/ng-037/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-037/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-037/ip.pcap | Bin 0 -> 572 bytes .../7_3_1/ws/brlinkwrite/ng-037/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-038/cmd.json | 57 ++++ .../7_3_1/ws/brlinkwrite/ng-038/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-038/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-038/ip.pcap | Bin 0 -> 384 bytes .../7_3_1/ws/brlinkwrite/ng-038/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-039/cmd.json | 57 ++++ .../7_3_1/ws/brlinkwrite/ng-039/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-039/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-039/ip.pcap | Bin 0 -> 384 bytes .../7_3_1/ws/brlinkwrite/ng-039/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-040/cmd.json | 57 ++++ .../7_3_1/ws/brlinkwrite/ng-040/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-040/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-040/ip.pcap | Bin 0 -> 384 bytes .../7_3_1/ws/brlinkwrite/ng-040/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-041/cmd.json | 57 ++++ .../7_3_1/ws/brlinkwrite/ng-041/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-041/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-041/ip.pcap | Bin 0 -> 384 bytes .../7_3_1/ws/brlinkwrite/ng-041/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-042/cmd.json | 57 ++++ .../7_3_1/ws/brlinkwrite/ng-042/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-042/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-042/ip.pcap | Bin 0 -> 384 bytes .../7_3_1/ws/brlinkwrite/ng-042/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-043/cmd.json | 57 ++++ .../7_3_1/ws/brlinkwrite/ng-043/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-043/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-043/ip.pcap | Bin 0 -> 384 bytes .../7_3_1/ws/brlinkwrite/ng-043/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-044/cmd.json | 57 ++++ .../7_3_1/ws/brlinkwrite/ng-044/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-044/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-044/ip.pcap | Bin 0 -> 384 bytes .../7_3_1/ws/brlinkwrite/ng-044/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-045/cmd.json | 57 ++++ .../7_3_1/ws/brlinkwrite/ng-045/ip.err | 2 + .../7_3_1/ws/brlinkwrite/ng-045/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-045/ip.pcap | Bin 0 -> 384 bytes .../7_3_1/ws/brlinkwrite/ng-045/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-046/cmd.json | 57 ++++ .../7_3_1/ws/brlinkwrite/ng-046/ip.err | 1 + .../7_3_1/ws/brlinkwrite/ng-046/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-046/ip.pcap | Bin 0 -> 384 bytes .../7_3_1/ws/brlinkwrite/ng-046/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-047/b.txt | 2 + .../7_3_1/ws/brlinkwrite/ng-047/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ng-047/ip.err | 2 + .../7_3_1/ws/brlinkwrite/ng-047/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-047/ip.pcap | Bin 0 -> 528 bytes .../7_3_1/ws/brlinkwrite/ng-047/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-048/b.txt | 2 + .../7_3_1/ws/brlinkwrite/ng-048/cmd.json | 53 ++++ .../7_3_1/ws/brlinkwrite/ng-048/ip.err | 25 ++ .../7_3_1/ws/brlinkwrite/ng-048/ip.out | 0 .../7_3_1/ws/brlinkwrite/ng-048/ip.pcap | Bin 0 -> 384 bytes .../7_3_1/ws/brlinkwrite/ng-048/ip.rc | 1 + .../7_3_1/ws/brlinkwrite/ng-049/b.txt | 2 + .../7_3_1/ws/brlinkwrite/ng-049/cmd.json | 54 ++++ .../7_3_1/ws/brlinkwrite/ng-049/ip.err | 2 + .../7_3_1/ws/brlinkwrite/ng-049/ip.out | 2 + .../7_3_1/ws/brlinkwrite/ng-049/ip.pcap | Bin 0 -> 1560 bytes .../7_3_1/ws/brlinkwrite/ng-049/ip.rc | 1 + tools/nlcapgen/main.go | 5 +- tools/nlcapgen/matrix_brlinkwrite.go | 269 ++++++++++++++++++ tools/nlcapgen/matrix_brlinkwrite_test.go | 212 ++++++++++++++ 900 files changed, 9012 insertions(+), 89 deletions(-) create mode 100644 nix/microvms/workbench/brlinkwrite.rows.jsonl create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-001/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-001/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-001/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-001/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-001/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-001/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-001/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-002/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-002/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-002/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-002/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-002/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-002/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-002/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-003/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-003/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-003/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-003/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-003/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-003/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-003/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-004/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-004/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-004/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-004/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-004/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-004/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-004/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-005/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-005/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-005/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-005/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-005/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-005/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-005/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-006/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-006/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-006/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-006/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-006/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-006/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-006/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-007/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-007/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-007/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-007/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-007/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-007/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-007/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-008/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-008/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-008/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-008/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-008/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-008/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-008/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-009/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-009/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-009/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-009/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-009/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-009/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-009/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-010/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-010/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-010/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-010/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-010/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-010/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-010/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-011/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-011/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-011/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-011/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-011/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-011/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-011/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-012/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-012/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-012/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-012/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-012/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-012/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-012/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-013/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-013/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-013/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-013/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-013/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-013/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-013/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-014/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-014/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-014/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-014/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-014/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-014/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-014/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-015/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-015/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-015/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-015/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-015/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-015/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-015/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-016/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-016/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-016/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-016/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-016/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-016/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-016/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-017/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-017/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-017/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-017/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-017/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-017/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-017/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-018/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-018/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-018/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-018/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-018/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-018/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-018/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-019/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-019/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-019/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-019/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-019/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-019/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-019/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-020/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-020/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-020/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-020/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-020/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-020/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-020/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-021/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-021/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-021/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-021/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-021/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-021/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-021/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-022/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-022/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-022/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-022/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-022/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-022/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-022/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-023/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-023/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-023/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-023/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-023/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-023/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-023/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-024/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-024/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-024/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-024/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-024/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-024/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-024/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-025/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-025/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-025/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-025/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-025/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-025/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-025/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-026/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-026/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-026/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-026/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-026/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-026/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-026/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-027/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-027/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-027/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-027/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-027/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-027/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-027/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-028/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-028/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-028/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-028/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-028/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-028/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-028/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-029/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-029/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-029/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-029/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-029/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-029/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-029/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-030/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-030/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-030/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-030/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-030/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-030/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-030/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-031/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-031/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-031/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-031/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-031/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-031/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-031/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-032/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-032/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-032/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-032/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-032/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-032/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-032/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-033/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-033/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-033/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-033/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-033/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-033/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-033/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-034/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-034/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-034/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-034/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-034/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-034/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-034/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-035/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-035/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-035/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-035/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-035/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-035/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-035/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-036/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-036/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-036/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-036/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-036/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-036/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-036/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-037/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-037/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-037/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-037/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-037/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-037/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-037/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-038/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-038/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-038/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-038/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-038/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-038/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-038/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-039/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-039/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-039/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-039/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-039/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-039/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-039/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-040/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-040/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-040/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-040/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-040/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-040/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-040/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-041/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-041/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-041/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-041/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-041/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-041/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-041/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-042/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-042/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-042/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-042/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-042/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-042/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-042/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-043/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-043/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-043/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-043/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-043/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-043/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-043/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-044/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-044/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-044/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-044/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-044/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-044/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-044/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-045/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-045/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-045/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-045/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-045/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-045/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-045/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-046/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-046/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-046/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-046/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-046/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-046/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-046/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-047/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-047/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-047/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-047/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-047/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-047/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-047/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-048/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-048/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-048/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-048/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-048/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-048/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-048/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-049/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-049/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-049/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-049/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-049/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-049/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-049/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-050/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-050/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-050/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-050/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-050/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-050/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-050/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-051/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-051/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-051/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-051/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-051/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-051/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-051/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-052/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-052/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-052/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-052/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-052/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-052/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-052/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-053/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-053/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-053/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-053/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-053/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-053/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-053/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-054/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-054/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-054/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-054/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-054/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-054/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-054/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-055/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-055/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-055/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-055/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-055/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-055/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-055/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-056/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-056/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-056/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-056/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-056/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-056/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-056/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-057/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-057/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-057/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-057/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-057/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-057/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-057/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-058/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-058/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-058/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-058/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-058/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-058/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-058/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-059/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-059/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-059/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-059/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-059/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-059/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-059/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-060/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-060/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-060/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-060/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-060/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-060/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-060/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-061/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-061/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-061/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-061/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-061/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-061/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-061/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-062/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-062/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-062/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-062/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-062/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-062/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-062/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-063/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-063/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-063/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-063/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-063/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-063/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-063/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-064/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-064/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-064/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-064/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-064/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-064/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-064/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-065/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-065/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-065/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-065/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-065/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-065/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-065/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-066/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-066/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-066/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-066/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-066/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-066/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-066/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-067/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-067/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-067/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-067/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-067/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-067/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-067/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-068/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-068/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-068/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-068/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-068/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-068/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-068/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-069/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-069/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-069/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-069/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-069/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-069/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-069/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-070/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-070/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-070/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-070/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-070/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-070/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-070/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-071/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-071/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-071/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-071/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-071/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-071/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-071/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-072/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-072/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-072/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-072/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-072/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-072/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-072/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-073/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-073/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-073/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-073/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-073/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-073/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-073/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-074/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-074/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-074/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-074/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-074/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-074/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-074/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-075/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-075/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-075/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-075/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-075/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-075/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-075/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-076/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-076/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-076/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-076/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-076/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-076/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-076/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-077/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-077/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-077/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-077/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-077/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-077/mst.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-077/netlink_route_mst.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-078/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-078/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-078/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-078/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-078/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-078/mst.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-078/netlink_route_mst.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-079/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-079/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-079/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-079/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-079/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-079/mst.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-079/netlink_route_mst.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-080/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-080/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-080/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-080/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-080/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-080/mst.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-080/netlink_route_mst.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-081/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-081/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-081/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-081/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-081/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-081/mst.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-081/netlink_route_mst.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-082/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-082/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-082/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-082/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-082/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-082/mst.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-082/netlink_route_mst.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-083/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-083/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-083/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-083/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-083/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-083/mst.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-083/netlink_route_mst.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-084/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-084/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-084/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-084/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-084/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-084/mst.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-084/netlink_route_mst.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-085/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-085/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-085/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-085/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-085/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-085/mst.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-085/netlink_route_mst.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-086/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-086/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-086/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-086/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-086/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-086/mst.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-086/netlink_route_mst.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-087/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-087/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-087/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-087/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-087/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-087/mst.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-087/netlink_route_mst.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-088/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-088/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-088/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-088/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-088/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-088/mst.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-088/netlink_route_mst.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-089/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-089/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-089/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-089/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-089/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-089/mst.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-089/netlink_route_mst.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-090/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-090/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-090/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-090/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-090/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-090/mst.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-090/netlink_route_mst.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-091/b.txt create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-091/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-091/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-091/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-091/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-091/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-091/link.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-091/netlink_route_link.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-092/b.txt create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-092/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-092/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-092/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-092/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-092/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-092/mst.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-092/netlink_route_mst.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-001/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-001/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-001/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-001/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-001/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-002/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-002/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-002/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-002/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-002/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-003/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-003/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-003/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-003/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-003/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-004/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-004/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-004/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-004/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-004/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-005/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-005/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-005/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-005/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-005/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-006/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-006/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-006/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-006/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-006/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-007/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-007/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-007/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-007/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-007/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-008/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-008/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-008/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-008/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-008/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-009/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-009/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-009/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-009/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-009/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-010/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-010/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-010/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-010/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-010/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-011/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-011/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-011/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-011/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-011/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-012/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-012/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-012/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-012/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-012/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-013/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-013/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-013/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-013/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-013/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-014/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-014/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-014/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-014/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-014/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-015/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-015/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-015/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-015/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-015/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-016/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-016/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-016/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-016/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-016/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-017/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-017/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-017/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-017/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-017/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-018/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-018/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-018/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-018/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-018/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-019/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-019/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-019/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-019/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-019/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-020/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-020/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-020/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-020/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-020/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-021/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-021/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-021/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-021/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-021/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-022/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-022/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-022/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-022/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-022/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-023/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-023/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-023/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-023/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-023/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-024/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-024/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-024/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-024/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-024/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-025/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-025/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-025/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-025/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-025/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-026/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-026/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-026/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-026/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-026/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-027/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-027/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-027/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-027/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-027/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-028/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-028/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-028/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-028/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-028/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-029/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-029/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-029/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-029/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-029/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-030/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-030/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-030/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-030/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-030/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-031/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-031/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-031/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-031/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-031/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-032/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-032/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-032/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-032/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-032/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-033/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-033/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-033/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-033/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-033/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-034/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-034/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-034/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-034/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-034/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-035/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-035/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-035/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-035/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-035/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-036/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-036/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-036/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-036/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-036/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-037/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-037/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-037/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-037/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-037/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-038/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-038/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-038/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-038/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-038/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-039/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-039/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-039/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-039/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-039/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-040/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-040/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-040/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-040/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-040/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-041/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-041/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-041/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-041/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-041/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-042/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-042/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-042/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-042/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-042/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-043/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-043/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-043/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-043/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-043/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-044/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-044/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-044/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-044/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-044/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-045/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-045/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-045/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-045/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-045/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-046/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-046/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-046/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-046/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-046/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-047/b.txt create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-047/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-047/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-047/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-047/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-047/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-048/b.txt create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-048/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-048/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-048/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-048/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-048/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-049/b.txt create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-049/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-049/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-049/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-049/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-049/ip.rc create mode 100644 tools/nlcapgen/matrix_brlinkwrite.go create mode 100644 tools/nlcapgen/matrix_brlinkwrite_test.go diff --git a/docs/netlink/gobridge-status.md b/docs/netlink/gobridge-status.md index 408a540f2..65bda424e 100644 --- a/docs/netlink/gobridge-status.md +++ b/docs/netlink/gobridge-status.md @@ -96,6 +96,10 @@ anything but a GET in every build, and [upstream/iproute2-bridge-write.md](upstream/iproute2-bridge-write.md) holding the sweep's leads B77-B90 and K18-K24, all predicted (V115). + 26C is done: `ws/brlinkwrite`, 141 rows (92 accepted writes each with a readback, 46 + refusals, 3 `-force` batches), two batches on one boot identical in rc, stderr, stdout and + readbacks. B77-B90 and K18-K22 confirmed, K23 and K24 corrected, K25 (a refused write is + partly applied) and K26 new (V116). ## Contents @@ -122,7 +126,7 @@ | 6X — bridge, the rest | batch, force, netns, family, router ports: capture → parser → clone → bug hunt → live | done | V101, V102, V103, DOC033, V104 | | 7 — fdb and mdb | readbacks → capture → parser → clone → bug hunt → live | done | V105, V106, V107, V108, DOC034, V109 | | 25 — monitor | groundwork → capture → parser → clone → bug hunt → live | done | V110, V111, V112, V113, DOC035, V114 | -| 26 — writes: link set, mst set | groundwork → capture → encoders → clone → bug hunt → live | in progress | V115 | +| 26 — writes: link set, mst set | groundwork → capture → encoders → clone → bug hunt → live | in progress | V115, V116 | ## Task checklist @@ -152,7 +156,7 @@ | [x] | 25B | B58+ and K10+ completed, HEAD checked | done | DOC038 | | [x] | 25L | live diff of every `brmonitor` row | done | V114 | | [x] | 26X | `gobridge_write` tag and checks; dry-run delivery; the live GET guard; the write doc's predicted leads | done | V115 | -| [ ] | 26C | `matrix_brlinkwrite.go`, accepted, boundary, refused and batch rows, two batches | not started | V116 | +| [x] | 26C | `matrix_brlinkwrite.go`, accepted, boundary, refused and batch rows, two batches | done | V116 | | [ ] | 26P | `BrPortProtinfo`, `BrAfSpecFlags`, `BrMstEntry`; `BuildBrLinkWriteRequest`; `TestWsBrLinkWrite` | not started | V117 | | [ ] | 26W | gobridge `link_write.go`, `mst_write.go`; corpus, unit, fuzz, mutants | not started | V118 | | [ ] | 26B | B77+ and K18+ completed, HEAD checked | not started | DOC036 | @@ -187,6 +191,7 @@ | DOC038 | 25B | **Doc:** [upstream/iproute2-bridge-monitor.md](upstream/iproute2-bridge-monitor.md), still "Not submitted to netdev", is completed. A new "HEAD check" section covers both trees. **iproute2:** the mirror's `main` is `d7e038f99479` (2026-12-02), 98 commits past v7.2.0. `bridge/monitor.c`, `link.c`, `fdb.c`, `mdb.c`, `vlan.c`, `lib/ll_map.c` and `man/man8/bridge.8` are byte-identical. In `lib/utils.c`, the print_timestamp functions are unchanged. `include/libnetlink.h` changes only in an unrelated helper and a cast. Each of `lib/libnetlink.c`'s four commits was checked against every lead: `255cac0a` (connect), `9a5e7be5` (sequence counter), `9bfcf248` (non-kernel senders dropped) and `c6d58ffb` (rtnl_listen's malformed message becomes `!!!Remnant of size N`, still exit 1; that path is live only and no row reaches it). `rtnl_close` still sets fd -1. Every B lead is present; B71 stays dropped. The one `bridge/` commit, `1392041d`, fixes vni.c's "Dump ternminated". That is half of B3, so print-paths.md's B3 and its "Still present" section now say so; `mst.c`'s "Cannon send" remains. **Linux:** torvalds `master` is `007722b8211f` (2026-12-03). Since v7.4-rc4, `net/bridge/` has `da4a53461d46` (br_mdb.c source-list rollback on a failed add or replace; K14's rows are successful operations) and `75dc1bad7897` (netfilter). `vxlan_vnifilter.c` and the two uapi headers have no commits. Every K note is unchanged. **Summary:** the "At HEAD" column is filled: 18 present, B71 —, 8 unchanged. The status block now covers 25P and 25R. [upstream/iproute2-bridge-print-paths.md](upstream/iproute2-bridge-print-paths.md) points to the new doc from its contents and its reachability list. Its extension lines are on B20 (25R) and B28/B29 and B30 (25C). **Checklist** (`doc035chk.py`, grep over both docs), 12 checks, all passing. Positive 1: every B58-B76 and K10-K17 has a summary row and an entry. Negative 3: each confirmed, corrected or new lead names an ec or ng row; no row is outside the range; every row has its At HEAD answer. Boundary 3: B and K are contiguous; the dropped lead gives a reason. Corner 5: B20, B28, B29 and B30 each have their "Extended in increment 25" line, and print-paths points to the new doc. Four mutated copies of the doc (a removed row, a row with no pinning row, a dropped lead without a reason, an unfilled At HEAD) each fail it. **Docs:** [gobridge.md](gobridge.md) gains "Increment 25": the task table and how the clone is put together. **Bug-class candidates** for the user are unchanged: the shared-handle close (B63), the mode switch that drops selectors (B65) and an absent attribute printed as zero (B76). bug-classes.md is untouched. Gates: the checklist, kernel-citation-audit at `2cfd0d936`. | | V114 | 25L | **Live diff:** on the running workbench VM (kernel 7.3.1, `bridge` 7.2.0 at `/nix/store/x1pwsbz5…-iproute2-7.2.0`; boot `335e7396`, started 2026-12-03 23:58 by another workbench user; not rebooted, the VM being shared), the nix-built `gobridge` (`/nix/store/q793jqi3…-gobridge-0.2.1`, built from `112dd7576`) beside `bridge`, as root over the workbench's ssh key. The script is generated from `brmonitor.rows.jsonl`. Each row gets a fresh netns with `lo` up and `nlmon0` up at ifindex 2, as the capture's namespaces have, then the row's `pre` steps in its own directory. **Live rows (18):** both monitors start in the netns; the script waits until each pid has a NETLINK_ROUTE socket (found by inode in `/proc//net/netlink`) with Dump 0 and Rmem 0 and a thread blocked in recvmsg (gobridge's link dump reads with recvfrom, so recvmsg is its listen), then 0.5 s, then runs the trigger once with `bash -c`, waits for the row's ERE in both outputs, then 0.3 s, then SIGTERMs both. Both exit 143. **File, batch and negative rows (26):** `bridge`, then `gobridge`, with the row's own `m.bin` and `b.txt`. **Result:** stdout, stderr and rc identical on 44 of 44, `Timestamp: … usec` masked, in two batches (C and D); every live row passed the readiness check, and no trigger failed. Batch D's outputs equal batch C's. `bridge` against the 25C corpus: 44 of 44 identical (live rows' rc aside, which the helper reports as 0), in both batches. That corpus is batch 5, captured on this same boot, so this repeats it on one boot rather than confirming the K notes on a second boot as the plan asked; a second boot would have meant rebooting the shared VM. V111's batch 1 is the cross-boot check for the 26 live and argument rows. **Earlier batches:** batch A's readiness check read the root namespace's `/proc/net/netlink`, so it never passed and each live row ran on the 0.5 s sleep alone (44 of 44 identical anyway); A2 and B, with the check fixed, ran without `nlmon0`, so every ifindex was one lower than in the corpus: gobridge and `bridge` still agreed on 44 of 44, and `bridge` differed from the corpus on 20 rows, all through ifindexes. Those 20 include B66 live: in file mode a record's br0 (ifindex 3) is named `d1`, the netns's ifindex 3, so `bridge monitor file m.bin` prints `master d1`, and gobridge does the same. **Guest:** its system closure had been garbage-collected on the host under the running VM (no `sed`, `awk`, `seq`, `readlink`, `sort`, `timeout` or `bash` on its PATH), so the script put host-built coreutils, gawk, gnused, bash, gnugrep and diffutils store paths first on PATH (the guest shares the host's /nix/store). Left as found: no namespaces, no core files, the script's result directories removed, no module loaded or removed (bridge, vxlan, nlmon, dummy were already loaded), VM still running as it was. **Bugs found:** none new. B66 is also seen with the ifindexes shifted, recorded in [upstream/iproute2-bridge-monitor.md](upstream/iproute2-bridge-monitor.md) (B66's entry and the status block); no lead or K note behaved differently live. | | V115 | 26X | **Tag:** `gobridge_write`, in `nix/versions.nix`'s `optInOnlyTags` and a new `gobridgeWriteTags`; `nix/checks/flavor-tags.nix` fails a full flavor carrying it; `govulncheck`'s tag set and the three golangci build-tag lists include it; `focused-gobridge-write` (`nix/tests/focused-quality.nix`, `nix/default.nix`) runs `internal/gobridge`, `pkg/xtcpnl` and `pkg/cint` with it. `pkg/xtcpnl/xtcpnl_write_request.go` (`BuildWriteRequest`) builds under it. The default `gobridge` stays untagged. **no-write-encoders:** `writePkgs` gains `internal/gobridge`; a completeness loop fails when a gobridge file's `//go:build gobridge_write` and its `*_write.go` name disagree (`write_off.go`, the stub, matches neither); `cmd/gobridge`'s listing with `gobridge_write` must name a further write file (`send_write.go`; a per-daemon control waits for 26P's gobridge_write-only xtcpnl builder, since the `treatment` xtcp2 already compiles `xtcpnl_write_request.go`); and `go tool nm` on the default debug `gobridge` must find no write builder. **Code:** `internal/gobridge/send_write.go` (tagged) is gotc's `deliverWrite`/`writeOut`, the second copy (a third moves them to a shared package): a build error is `errNotImplemented`; a replay answers with the recorded ack, a NAK `retCode(-1)` after rtnl_talk's report; a `LiveSource` writes the request to `GOBRIDGE_WRITE_OUT`, truncated by the run's first write, or is `ErrWriteNotApplied` (rc 1). `write_off.go` (untagged) keeps link set and mst set refused by name; `writesBuilt` is set in both. `LiveSource.Talk` refuses a request that is not an RTM_GET* (`isGetRequest`, type ≥ RTM_BASE and 2 mod 4) in every build. **Tests** (each row with description and expected): `TestGobridgeIsGetRequest` 16 rows (every get gobridge sends; SETLINK, NEWNEIGH, DELMDB, NEWVLAN; type 0, 0xffff, 0xfffe, 14; short and empty requests, NLMSG_DONE); `TestGobridgeLiveTalkRefusesWrites` 5 rows (fd -1, so a send would be EBADF, not the refusal); `TestGobridgeWriteRefusedUntagged` 8 rows (link set, change, `s`, bare, bad words, mst set, `mst s` (B88), a `-force` batch ended by the refusal), skipped when tagged; `TestGobridgeWriteOut` (tagged) 12 rows (live write to the file and never the socket, three writes appended, replay ack; unset and empty variable, an unwritable path, a replay NAK with `RTNETLINK answers`, an extack NAK, a build error; junk truncated by the first write; a replay leaves the file alone; an unscripted replay's error). `go test ./internal/gobridge/ ./pkg/xtcpnl/` passes untagged and with `-tags gobridge_write`; `CGO_ENABLED=0 go build ./...` both ways. **Doc:** [upstream/iproute2-bridge-write.md](upstream/iproute2-bridge-write.md), "Not submitted to netdev", with B77-B90 and K18-K24 predicted, each cited to v7.2.0 lines read with `git show`. Reading the source refined four predictions before any capture: `priority 40000` wraps negative and is dropped (B79), `state 128` likewise (B80), `mst set … state ""` prints "Error: invalid MSTI" (B86), and `mst set` range-checks its state where `link set` does not (B80). | +| V116 | 26C | **Rows:** `tools/nlcapgen/matrix_brlinkwrite.go` generates `nix/microvms/workbench/brlinkwrite.rows.jsonl`, family `brlinkwrite` (registered in `nlcapgen/main.go`): 141 rows, plain only (a write prints nothing), proto route, module `bridge`, each in its own namespace. **Fixtures** (fixed MACs, `addrgenmode none` before up): `brl` (br0 `vlan_filtering 1`, dummy ports d1 and d2); `brlstp` (the same with `stp_state 1`); `brldown` (d1 down); `brmst` (`mst_enabled 1` at creation, vid 10 and 20 on d1 and br0, vid 10 mapped to MSTI 5); `brmstoff` (the same VLANs, MST off). **Accepted (92):** each of the 17 on/off words on and off (`mab on` only with `locked on learning on`), cost/priority/mcast_router/mcast_max_groups in range, each STP state by name and number, `backup_port`, `nobackup_port`, `backup_nhid`, `master`, `change`, `link s`, two multi-word requests, `dev d1` alone (B82), `dev br0 self cost 5` (K23), the ten narrowing boundaries that send nothing or a value the kernel takes, mst set with each state by name and number, `mst s` (B88), an ignored unknown word, MSTI 1 and 4094 (K24), and a set-then-show batch for each. Each has one readback: `bridge -d link show`, or `bridge mst show dev d1` on `brmst`. **Refused (49):** 24 by the kernel (K18-K24, the wraps it range-checks, the MST policy), 22 by bridge (usage, rc 234, the device texts, required arguments, invalid MSTI and state, NEXT_ARG, invarg), and three `-force` batches (rc 234 carries on, usage ends it, and a partly applied NAK). **Before the capture:** reading the kernel (`rtnl_bridge_setlink`, `br_setlink`, `br_setport`, `br_mst_process`, `br_mst_nl_policy`) corrected K24 (an unmapped MSTI is acked, not ENOENT) and moved the MSTI wraps' outcome from K24 to the policy. **Capture:** the workbench VM was off; booted (kernel 7.3.1, `bridge` 7.2.0), batch A to the scratchpad and batch B to the corpus, 141/141 rc as expected each, then powered off again (no cores, no namespaces left). `TestWsCorpusRows` then failed six rows: the MST policy's range refusal is ERANGE, not EINVAL (extack "integer out of range" as predicted). The six expectations were corrected and batch B re-run; the partial-apply batch gained `-d` (a plain `link show` does not print `hairpin`) and that one row was re-run in both batches. **Determinism:** `ip.rc`, `ip.err`, `ip.out` and every readback are identical in A and B on all 141 rows. Message types and flags are identical; bodies differ only in RTM_NEWLINK: `IFLA_BRPORT_FORWARD_DELAY_TIMER` (a live timer, 188 messages) and `ifi_flags` in `ll_init_map`'s AF_UNSPEC dump (linkwatch timing, 67), V097's two classes. **Requests**, decoded from each `ip.pcap`: REQUEST\|ACK; PROTINFO always with `NLA_F_NESTED` and empty when nothing is set (B82); AF_SPEC without it, FLAGS 2 for `master hwmode` (B81) and 3 for the reverse; `IFLA_BRIDGE_MST` without it and `MST_ENTRY` with it; `mcast_router abc` sends 0, `cost -1` 0xffffffff, `priority 70000` 0x1170, `state 300` and `mcast_router 300` 0x2c, `msti -1` 0xffff, `msti ""` 0 (B77-B80, B86, B87); the `-force` rc 234 batch sends its second line and the usage batch sends nothing (B84, B85). **Leads:** [upstream/iproute2-bridge-write.md](upstream/iproute2-bridge-write.md), each entry now with its rows: B77-B90 confirmed (B88's timestamp half source only); K18-K22 confirmed (K20's extack has `NL_SET_ERR_MSG_MOD`'s `bridge: ` prefix; K21's ENETDOWN covers `disabled` too on a port that is not running); K23 corrected (bare `dev br0` is EOPNOTSUPP for want of a master; with `self` the bridge acks and drops PROTINFO); K24 corrected (acked, nothing changes). **New:** K25, `br_setport` applies the port flags before range-checking cost, priority and state, so `hairpin on cost 70000` is refused with ERANGE and leaves hairpin on (ng-049's `-d` show); K26, a VLAN moved to a fresh MSTI starts disabled on every port (documented in `br_mst_vlan_sync_state`). **Tests:** `TestBrLinkWriteSpace` (row count; route proto; no row or pre step leaving its namespace; one readback per accepted row, the right one, none on a refusal; no duplicate; every brlink_modify keyword in an accepted row bar `self` and `hwmode`, which a dummy refuses; 41 table rows, each with description and expected, pinning every lead and K note to a row with its rc, refuser and errno, the boundary edges and the four batches; B82's row; deterministic generation). `go test ./pkg/xtcpnl/` (`TestWsCorpusRows` over all 141), `./internal/gobridge/`, `./tools/nlcapgen/` and `./internal/wsreplay/` pass. Corpus: 141 row dirs, 3.2 MB. | | V402 | 6C | **Fresh-boot batches — the 6C gate's last task (and 7C's conditional).** Two batches, each on its own fresh boot of the workbench VM (kernel 7.3.1, iproute2 7.2.0; `nlcap-ws down` then `up`, the guest's `is-system-running` running before the first row), each running all four `ws/bridge*` row files through `nlcap-ws batch`, the committed corpus untouched. **Boot 1:** the batch the boot's own start rejected, re-run once the boot settled — 113 (`bridge`), 63 (`bridgex`), 94 (`bridgefdb`), 74 (`bridgemdb`), 344 of 344 OK. **Boot 2:** a second down+up — 344 of 344. **`nlcapgen verdiff` against the corpus:** `bridge` 0 differences (113 rows), `bridgex` 6 (the `brrtr -s` timer rows ec-021/022/023, pw-021/022/023, V101's allow-list), `bridgefdb` 0 (94), `bridgemdb` 6 (the temp-entry timer rows ec-005/006/008, pw-005/006/008 — V108's rows and their `-j -s`/`-s -o` twins). Boot 1 against boot 2 directly: the same profile, 0/6/0/6, the same rows. **A body-level pass** (a throwaway `tmp-bodydiff`, deleted; the corpus vs each boot's pcaps, message by message, seq and pid zeroed): every differing message is one of V097's two named classes — the `br` fixture's link replies at `IFLA_BRPORT_FORWARD_DELAY_TIMER` (offsets 360/364 of the 420-488-byte messages, 33 rows), and the NLMSG_ERROR bodies' echoed request seq (offsets 24, 28-30 and 60 in the 40-, 72- and 96-byte error shapes; `0x6b03d2bc` against `0x6b129194`, minutes apart; 28 rows). 58 rows (boot 1) and 61 rows (boot 2) differ in any body at all; every other byte of every other message is identical. The stats counters and the vxlan random source port, the 6C gate's own expected exceptions, never moved. **The first fresh-boot attempt failed 34 of 113 rows:** the batch fired 24 s after qemu started, `up` returning at ssh and the guest's systemd still settling, and the first wave's rows crosstalked at their ns lifecycle ("Cannot open network namespace" immediately after `NLCAP_NS_OK wsN"; "Cannot create namespace file: File exists" after ns-add's own cleanup; ec-010's pre step 0 creating br0 and pre step 1 finding it gone; "Cannot find device nlmon0"; `NLCAP_CAP_NOBIND`, datagrams=0). The mechanism was not pinned down; the wait is measured. A batch the same boot ran two hours later was 113 of 113, and a concurrent session's batch on the same boot (a `brmonitor` corpus, 44 rows, all OK) confirms the settled guest. `xtcp2-nlcap-ws up` now waits for `is-system-running` (running or degraded) before `NLCAP_WS_UP`, warning past the timeout. **The arc's disk:** the kernel closure was GC'd twice mid-arc (nothing pinned `nix build --no-link`, the store 98-99% full; the `linux-7.3.1` build needs ~35 GB and failed twice at 31-36 GB free), and two CLI attempts were killed at their own command timeouts (600 s and 2400 s against the ~45-min kernel rebuild); the closure is now rooted at `/tmp/gobridge-vm-root`. Gates: the batch's own, and `nlcap-ws`, `nix-fmt`, `test-goip-docs`, `netlink-audit`, `lint-baseline`. | ## Decision log diff --git a/docs/netlink/upstream/iproute2-bridge-write.md b/docs/netlink/upstream/iproute2-bridge-write.md index 404ce9d9d..f20eb8676 100644 --- a/docs/netlink/upstream/iproute2-bridge-write.md +++ b/docs/netlink/upstream/iproute2-bridge-write.md @@ -1,12 +1,12 @@ # iproute2 `bridge` writes: `link set` and `mst set` narrow their numbers, send an empty container, and disagree on errors -**Status (2026-12-04, increment 26, 26X):** +**Status (2026-12-05, increment 26, through 26C):** - **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. -- **Every lead and kernel note below is predicted.** They come from the plan's bug-class sweep, read against the - source. 26C (V116) confirms, corrects or drops each one against a `ws/brlinkwrite` row, and 26B (DOC036) adds the - HEAD check and completes this doc. Later write increments (27 vlan, 28 vni, 29 fdb, 30 mdb) add their sections here. +- **Settled against the corpus.** 26C (V116) captured 141 `ws/brlinkwrite` rows and settled every lead and kernel + note: B77–B90 confirmed, K18–K22 confirmed, K23 and K24 corrected, and K25 and K26 new. 26B (DOC036) adds the HEAD + check. Later write increments (27 vlan, 28 vni, 29 fdb, 30 mdb) add their sections here. - **Source:** - Line numbers are iproute2 **v7.2.0** (`880505966c17`, 2026-08-17): `bridge/link.c` (`brlink_modify`, 332-639; `parse_stp_state`, 82-95; `do_link`, 688-708), `bridge/mst.c` (`mst_set`, 164-242; `do_mst`, 244-263) and @@ -16,11 +16,16 @@ - The numbers continue [iproute2-bridge-monitor.md](iproute2-bridge-monitor.md) (B58–B76, K10–K17) and [iproute2-bridge-print-paths.md](iproute2-bridge-print-paths.md) (B1–B57, K1–K9), so B and K stay unique across the bridge docs. - - 26X (V115) read the source for the write groundwork. Four predictions were refined against the code before any - capture; each refinement is marked "26X" in its entry. -- **Kernel cross-check:** `net/bridge/br_netlink.c`, `br_mst.c`, `br_stp_if.c` and `net/core/rtnetlink.c` at - v7.4-rc4. -- **Corpus:** `pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/` (26C), cited as `brlinkwrite/` once captured. + - 26X (V115) read the source for the write groundwork, which refined four predictions before any capture (marked + "26X"). + - 26C (V116) read the kernel side before the capture, which corrected K24 and named the policy's errno, then ran + every row twice on one boot. Each entry gives its rows and keeps the prediction where the capture differed. +- **Kernel cross-check:** `net/core/rtnetlink.c` (`rtnl_bridge_setlink`, 5695-5773), `net/bridge/br_netlink.c` + (`br_set_port_state`, 915-934; `br_setport`, 951; `br_setlink`, 1111), `br_mst.c` (`br_mst_nl_policy`, 297-304; + `br_mst_process`, 336), `br_stp_if.c` and `br_multicast.c` (`br_multicast_set_port_router`, 4619) at v7.4-rc4 + (`b6a9fa34ce41`), read with `git show`. +- **Corpus:** `pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/`, cited as `brlinkwrite/`. Each row's request is read + from its `ip.pcap`, and each accepted write has a readback (`bridge -d link show` or `bridge mst show dev d1`). - **Exit codes**, as the leads use them: `usage()`, `NEXT_ARG()` and `invarg()` call `exit(-1)`, rc 255, which ends a batch even under `-force`. A `return -1` from the command is rc 255 alone, and "Command failed" in a batch, which `-force` carries past. `parse_on_off`'s failure is a `return -EINVAL`, rc 234 alone, and also carried past by @@ -34,67 +39,74 @@ - [B84, B85, B90. Argument errors](#b84-b85-b90-argument-errors) - [B86, B88. `mst set`'s checks and dispatch](#b86-b88-mst-sets-checks-and-dispatch) - [B89. Device texts](#b89-device-texts) -- [K18–K24. Kernel notes](#k18k24-kernel-notes) +- [K18–K26. Kernel notes](#k18k26-kernel-notes) - [Bug-class candidates](#bug-class-candidates) ## Summary -**L** is `bridge link set`, **M** is `bridge mst set`. "Pinned by" and "At HEAD" are filled in by 26C and 26B. +**L** is `bridge link set`, **M** is `bridge mst set`. "At HEAD" is filled in by 26B. | Lead | Where (v7.2.0) | Class | What | Pinned by | Status | At HEAD | gobridge | |---|---|---|---|---|---|---|---| -| B77 | link.c:355, 414-416, 557 | C9, C11 | `mcast_router` is `atoi` into `__s8`: `abc` sends 0, `200` is dropped, `300` sends 44 | — | predicted | — | refused (26W copies) | -| B78 | link.c:367, 436-438, 578 | C9 | `cost` is `atoi` into `__u32` and sent only when `> 0`: `0` and `x` send nothing, `-1` sends 0xffffffff | — | predicted | — | refused (26W copies) | -| B79 | link.c:368, 439-441, 581 | C9, C11 | `priority` is `atoi` into `__s16`: `70000` sends 4464; a negative and `40000` are dropped | — | predicted | — | refused (26W copies) | -| B80 | link.c:369, 442-454, 584 | C9, C11 | `state` is `strtol` into `__s8` with no range: `200`, `128` and `-1` are dropped, `300` sends 44; only a non-number is checked | — | predicted | — | refused (26W copies) | -| B81 | link.c:455-466 | C9 | `hwmode` assigns `flags = BRIDGE_FLAGS_SELF`, wiping an earlier `master` | — | predicted | — | refused (26W copies) | -| B82 | link.c:543-544, 616 | C9, C11 | `IFLA_PROTINFO` is always sent: `L dev d1` sends an empty nest and exits 0 | — | predicted | — | refused (26W copies) | -| B83 | link.c:359, 432-435, 569 | C9 | `mcast_max_groups` is `get_s32`: a negative is dropped silently; `4294967295` is `invarg` | — | predicted | — | refused (26W copies) | -| B84 | utils.c:1795-1815; link.c `return ret` arms | C8, C16 | a bad on/off value returns `-EINVAL`, rc 234, so `-force` carries on | — | predicted | — | refused (26W copies) | -| B85 | link.c:523-525 | C9, C16 | an unknown word is `usage()`, rc 255, ending a `-force` batch; `mst set` ignores unknown words | — | predicted | — | refused (26W copies) | -| B86 | mst.c:207-211 | C9 | the MSTI check tests `*s` (state), not `*m`: `msti ""` sends MSTI 0, and `state ""` prints "invalid MSTI" | — | predicted | — | refused (26W copies) | -| B87 | mst.c:178, 207 | C9, C11 | `msti` is `strtol` into `__u16`: `-1` sends 65535, `70000` sends 4464 | — | predicted | — | refused (26W copies) | -| B88 | mst.c:244-249 | C9, C16 | `set` is prefix-matched before `show`, so `bridge mst s` is a set; `do_mst` never zeroes `timestamp` | — | predicted | — | refused by name (`mst s`, TestGobridgeWriteRefusedUntagged) | -| B89 | link.c:510-514, 534-537; mst.c:204-205 | C10 | three texts for a missing device: `Cannot find bridge device "X"`, `Error: device X does not exist`, `Cannot find device "X"` | — | predicted | — | refused (26W copies) | -| B90 | link.c:528-531 | C9 | `dev` is checked after the loop: `L cost 5` parses every word, then prints "Device is a required argument." | — | predicted | — | refused (26W copies) | +| B77 | link.c:355, 414-416, 557 | C9, C11 | `mcast_router` is `atoi` into `__s8`: `abc` sends 0, `200` is dropped, `300` sends 44 | ec-074, ec-075, ng-013 | confirmed | — | refused (26W copies) | +| B78 | link.c:367, 436-438, 578 | C9 | `cost` is `atoi` into `__u32`, sent only when `> 0`: `0` and `x` send nothing, `-1` sends 0xffffffff | ec-067, ec-068, ng-007 | confirmed | — | refused (26W copies) | +| B79 | link.c:368, 439-441, 581 | C9, C11 | `priority` is `atoi` into `__s16`: `70000` sends 4464; `-1` and `40000` are dropped | ec-069, ec-070, ng-009 | confirmed | — | refused (26W copies) | +| B80 | link.c:369, 442-454, 584 | C9, C11 | `state` is `strtol` into `__s8` with no range: `200`, `128` and `-1` are dropped, `300` sends 44 | ec-071–ec-073, ng-011, ng-027 | confirmed | — | refused (26W copies) | +| B81 | link.c:455-466 | C9 | `hwmode` assigns `flags = BRIDGE_FLAGS_SELF`, wiping an earlier `master` | ng-003, ng-004 | confirmed | — | refused (26W copies) | +| B82 | link.c:543-544, 616 | C9, C11 | `IFLA_PROTINFO` is always sent: `L dev d1` sends an empty nest and exits 0 | ec-065, ng-001 | confirmed | — | refused (26W copies) | +| B83 | link.c:359, 432-435, 569 | C9 | `mcast_max_groups` is `get_s32`: a negative is dropped; `4294967295` is `invarg` | ec-076, ng-029 | confirmed | — | refused (26W copies) | +| B84 | utils.c:1795-1815; link.c `return ret` arms | C8, C16 | a bad on/off value returns `-EINVAL`, rc 234, so `-force` carries on | ng-026, ng-033, ng-047 | confirmed | — | refused (26W copies) | +| B85 | link.c:523-525 | C9, C16 | an unknown word is `usage()`, rc 255, ending a `-force` batch; `mst set` ignores unknown words | ng-025, ng-031, ng-048, ec-088 | confirmed | — | refused (26W copies) | +| B86 | mst.c:207-211 | C9 | the MSTI check tests `*s` (state), not `*m`: `msti ""` sends MSTI 0, and `state ""` prints "invalid MSTI" | ng-022, ng-041 | confirmed | — | refused (26W copies) | +| B87 | mst.c:178, 207 | C9, C11 | `msti` is `strtol` into `__u16`: `-1` sends 65535, `70000` sends 4464 | ng-020, ng-021 | confirmed | — | refused (26W copies) | +| B88 | mst.c:244-249 | C9, C16 | `set` is prefix-matched before `show`, so `bridge mst s` is a set; `do_mst` never zeroes `timestamp` | ec-087; source only for the stamp | confirmed | — | refused by name (`mst s`, TestGobridgeWriteRefusedUntagged) | +| B89 | link.c:510-514, 534-537; mst.c:204-205 | C10 | three texts for a missing device: `Cannot find bridge device "X"`, `Error: device X does not exist`, `Cannot find device "X"` | ng-035, ng-036, ng-037 | confirmed | — | refused (26W copies) | +| B90 | link.c:528-531 | C9 | `dev` is checked after the loop: `L cost 5` parses every word, then prints "Device is a required argument." | ng-032, ng-033 | confirmed | — | refused (26W copies) | ## B77–B80, B83, B87. Narrowed numbers `brlink_modify` keeps each value in the narrowest signed type that holds its "unset" sentinel (`-1`), and reads it with `atoi` or `strtol`, neither of which says whether the number fits. The send tests the sentinel with `>= 0`, so a value that wraps negative is dropped and one that wraps positive is sent as the wrapped value. Nothing is printed -either way. +either way. Each value below is read from the row's `ip.pcap`. - **B77, `mcast_router`** (link.c:355 `__s8 mcast_router = -1`, 414-416 `mcast_router = atoi(*argv)`, 557 `if (mcast_router >= 0)`): - **Trigger:** `bridge link set dev d1 mcast_router abc`; `… mcast_router 200`; `… mcast_router 300`. - - **Predicted:** `abc` is `atoi` 0, sent as `IFLA_BRPORT_MULTICAST_ROUTER` 0 (router port disabled), rc 0. `200` is - -56, dropped: an empty PROTINFO (B82), rc 0. `300` is 44, sent; the kernel's `br_multicast_set_port_router` - refuses a type above `MDB_RTR_TYPE_TEMP` (3), so a NAK (K22's family, pinned in 26C). + - **Seen:** `abc` sends `IFLA_BRPORT_MULTICAST_ROUTER` 0, rc 0, and the readback has `mcast_router 0`: the port's + router setting is turned off by a typo (ec-074). `200` sends an empty PROTINFO, rc 0, unchanged at 1 (ec-075). + `300` sends 44, and `br_multicast_set_port_router` refuses it: `RTNETLINK answers: Invalid argument`, rc 255 + (ng-013). + - **Status:** confirmed. - **B78, `cost`** (link.c:367 `__u32 cost = 0`, 436-438 `cost = atoi(*argv)`, 578 `if (cost > 0)`): - **Trigger:** `… cost 0`; `… cost x`; `… cost -1`. - - **Predicted:** `0` and `x` send no `IFLA_BRPORT_COST`, rc 0, nothing changed. `-1` is 0xffffffff, sent; the - kernel's `br_stp_set_path_cost` refuses above `BR_MAX_PATH_COST` (K22). + - **Seen:** `0` and `x` send an empty PROTINFO, rc 0, cost still 100 (ec-067, ec-068). `-1` sends 0xffffffff and + the kernel answers ERANGE, `Numerical result out of range`, rc 255 (ng-007, K22). + - **Status:** confirmed. - **B79, `priority`** (link.c:368 `__s16 priority = -1`, 439-441, 581 `if (priority >= 0)`): - **Trigger:** `… priority 70000`; `… priority -1`; `… priority 40000`. - - **Predicted:** `70000` is 4464, sent, and the kernel refuses it above `BR_MAX_PORT_PRIORITY` (63, K22). `-1` and - `40000` (-25536 as `__s16`) are dropped, rc 0. (26X: `40000` added from the source.) + - **Seen:** `70000` sends 0x1170 (4464), ERANGE, rc 255 (ng-009). `-1` and `40000` (-25536 as `__s16`) send an + empty PROTINFO, rc 0, priority still 32 (ec-069, ec-070). + - **Status:** confirmed (26X added `40000`). - **B80, `state`** (link.c:369 `__s8 state = -1`, 442-454, 584 `if (state >= 0)`): - **Trigger:** `… state 200`; `… state 128`; `… state -1`; `… state 300`; `… state bogus`. - - **Predicted:** `strtol` succeeds on every number, so `parse_stp_state` is never consulted and no range is checked. - `200` (-56), `128` (-128) and `-1` are dropped, rc 0. `300` is 44, sent, and the kernel refuses a state above - `BR_STATE_BLOCKING` (4). Only `bogus` reaches `parse_stp_state`, -1, "Error: invalid STP port state", rc 255. - `mst set` checks `state < 0 || state > UINT8_MAX` (mst.c:218), so the two commands disagree on the same word. - (26X: `128` added.) + - **Seen:** `200`, `128` and `-1` send an empty PROTINFO, rc 0, the port still forwarding (ec-071–ec-073). `300` + sends 0x2c (44), and `br_set_port_state` refuses it, `Invalid argument`, rc 255 (ng-011). Only `bogus` prints + `Error: invalid STP port state`, rc 255, with no SETLINK (ng-027). `mst set` checks `state < 0 || state > + UINT8_MAX` (mst.c:218): its `state -1` and `state 256` are refused by bridge (ng-043, ng-042), where `link set` + silently drops `-1`. + - **Status:** confirmed (26X added `128`). - **B83, `mcast_max_groups`** (link.c:359 `__s32 max_groups = -1`, 432-435 `get_s32`, 569 `if (max_groups >= 0)`): - - **Trigger:** `… mcast_max_groups -1`; `… mcast_max_groups 4294967295`; `… mcast_max_groups 0`. - - **Predicted:** `-1` parses and is dropped, rc 0. `4294967295` overflows `get_s32`: `invarg`, "Error: argument - "4294967295" is wrong: invalid mcast_max_groups", rc 255. The attribute is a u32 (`IFLA_BRPORT_MCAST_MAX_GROUPS`), - so its upper half is unreachable. `0` is sent (no limit). + - **Trigger:** `… mcast_max_groups -1`; `… mcast_max_groups 4294967295`. + - **Seen:** `-1` sends an empty PROTINFO, rc 0 (ec-076). `4294967295` is `Error: argument "4294967295" is wrong: + invalid mcast_max_groups`, rc 255, with no SETLINK (ng-029). The attribute is a u32, so its upper half cannot be + set. `0` and `9` are sent and acked (ec-045, ec-046). + - **Status:** confirmed. - **B87, `msti`** (mst.c:178 `__u16 msti`, 207 `msti = strtol(m, &endptr, 10)`): - **Trigger:** `bridge mst set dev d1 msti -1 state 3`; `… msti 70000 state 3`. - - **Predicted:** 65535 and 4464 are sent as `IFLA_BRIDGE_MST_ENTRY_MSTI`; the kernel answers for an MSTI no VLAN - maps to (K24). + - **Seen:** 0xffff (65535) and 0x1170 (4464) are sent as `IFLA_BRIDGE_MST_ENTRY_MSTI`. The kernel's policy + (`br_mst_nl_policy`, MSTI 1–4094) refuses both: `Error: integer out of range.`, ERANGE, rc 255 (ng-020, ng-021). + - **Status:** confirmed. The plan predicted the kernel's answer through K24; it is the policy instead. **gobridge:** refused by name in the default build. 26W copies each narrowing, pinned by `TestGobridgeLinkWrite`'s and `TestGobridgeMstWrite`'s boundary rows. @@ -103,49 +115,61 @@ and `TestGobridgeMstWrite`'s boundary rows. - **B81, `hwmode` wipes `master`** (link.c:455-466): - `hwmode` sets `flags = BRIDGE_FLAGS_SELF` where `self` and `master` OR into it (467-470). - - **Trigger:** `bridge link set dev d1 master hwmode vepa`. - - **Predicted:** `IFLA_BRIDGE_FLAGS` is `SELF` (2) alone, so the request goes to the port driver's - `ndo_bridge_setlink`, which a veth or dummy port lacks: EOPNOTSUPP (K18), rc 255. The reverse order, - `hwmode vepa master`, sends `SELF|MASTER`. A bad mode prints `Mode argument must be "vepa" or "veb".`, rc 255 - (a return, so `-force` carries on). + - **Trigger:** `bridge link set dev d1 master hwmode vepa`; `… hwmode vepa master`. + - **Seen:** the first sends `IFLA_BRIDGE_FLAGS` 2 (SELF alone) and `IFLA_BRIDGE_MODE` 1, so the request goes only + to the dummy's missing `ndo_bridge_setlink`: `Operation not supported`, rc 255 (ng-003). The reverse order sends + FLAGS 3: `rtnl_bridge_setlink` runs the bridge's half first, then fails on SELF (ng-004), so whatever the master + half applied stays applied (K25's shape). A bad mode prints `Mode argument must be "vepa" or "veb".`, rc 255 + (ng-028). + - **Status:** confirmed. - **B82, an empty PROTINFO** (link.c:543-544, 616): - `addattr_nest(IFLA_PROTINFO | NLA_F_NESTED)` runs whatever was given. - **Trigger:** `bridge link set dev d1`; `bridge link set dev d1 self`. - - **Predicted:** a 4-byte `IFLA_PROTINFO` with no attributes; `br_setlink` parses it, sets nothing, and acks, rc 0. - With `self`, the empty PROTINFO goes to the port driver beside `IFLA_AF_SPEC`. + - **Seen:** a 4-byte `IFLA_PROTINFO` with `NLA_F_NESTED` and nothing in it; `br_setlink` parses it, sets nothing, + and acks, rc 0 (ec-065). With `self`, the empty nest goes beside `IFLA_AF_SPEC` (ng-001). Every boundary row that + narrows to nothing (ec-067–ec-073, ec-075, ec-076) is the same empty request, acked. - `IFLA_AF_SPEC` (623-633) is sent only with a mode or flags, and without `NLA_F_NESTED`, where `mst set`'s - `MST_ENTRY` sets it by hand (mst.c:234): two conventions in one tool. + `MST_ENTRY` sets it by hand (mst.c:234) and its `IFLA_BRIDGE_MST` does not: three conventions in one tool, all + seen in the corpus. + - **Status:** confirmed. ## B84, B85, B90. Argument errors - **B84, on/off failures return** (lib/utils.c:1795-1815; every `if (ret) return ret;` arm of link.c:379-507): - - **Trigger:** `bridge link set dev d1 hairpin maybe`; in a batch, `-force -batch` with that line, then + - **Trigger:** `bridge link set dev d1 hairpin maybe`; `-force -batch` with that line, then `link set dev d1 hairpin on`. - - **Predicted:** `Error: argument of "hairpin" must be one of "off", "on", not "maybe"`, rc 234 (`-EINVAL` returned - from main). In the batch, "Command failed -:1", the second line runs, and the batch's rc is 1. + - **Seen:** `Error: argument of "hairpin" must be one of "off", "on", not "maybe"`, rc 234 (ng-026). In the batch, + `Command failed b.txt:1`, then the second line's SETLINK (`IFLA_BRPORT_MODE` 1) is sent and acked, rc 1 (ng-047). + - **Status:** confirmed. - **B85, unknown words** (link.c:523-525 `else usage();`): - - **Trigger:** `bridge link set dev d1 bogus on`; in a `-force` batch, that line then a good one. - - **Predicted:** the full usage text, rc 255, and the batch ends (an `exit`). `mst set` ignores an unknown word - unless it is a prefix of `help` (mst.c:191-193), so `bridge mst set dev d1 bogus msti 5 state 3` sets. + - **Trigger:** `bridge link set dev d1 bogus on`; `… help`; in a `-force` batch, the first then a good line. + - **Seen:** the full usage text, rc 255, no SETLINK (ng-025, ng-031). The batch ends at line 1 with no SETLINK at + all (ng-048). `bridge mst set dev d1 bogus msti 5 state 3` ignores `bogus` and sets (ec-088). + - **Status:** confirmed. - **B90, `dev` last** (link.c:528-531): - **Trigger:** `bridge link set cost 5`; `bridge link set cost 5 hairpin maybe`. - - **Predicted:** "Device is a required argument.", rc 255, after every word has parsed: in the second, the hairpin - error wins, rc 234. + - **Seen:** "Device is a required argument.", rc 255 (ng-032); in the second the hairpin error wins, rc 234 (ng-033). + - **Status:** confirmed. ## B86, B88. `mst set`'s checks and dispatch - **B86, the MSTI check reads the state** (mst.c:207-211): - `if (!(*s != '\0' && *endptr == '\0'))` follows `strtol(m, &endptr, 10)`; `*s` should be `*m`. - **Trigger:** `bridge mst set dev d1 msti "" state 3`; `… msti 5 state ""`. - - **Predicted:** the first sends MSTI 0, which the kernel refuses or ignores (pinned in 26C). The second prints - "Error: invalid MSTI" for a valid MSTI, rc 255. (26X: the second trigger added from the source.) + - **Seen:** the first sends MSTI 0, which the kernel's policy refuses: `Error: integer out of range.`, ERANGE, + rc 255 (ng-022). Without the policy, MSTI 0 would be the CST's. The second prints "Error: invalid MSTI" for a valid + MSTI, rc 255, no SETLINK (ng-041). A real bad MSTI gets the same text (ng-040). + - **Status:** confirmed (26X added the second trigger). - **B88, `mst s`** (mst.c:244-249): - `do_mst` tests `matches(*argv, "set")` before `show`, so `s` is set; `vlan s` (vlan.c) is show. - `do_mst` never zeroes `timestamp`, unlike the five shows B64 lists, so `-t -batch` with `mst show` then a - monitor line keeps the stamps (26B adds an extension line on B64). + monitor line keeps the stamps. That half is source only: no row runs a monitor after `mst` (26B adds an extension + line on B64). - **Trigger:** `bridge mst s dev d1 msti 5 state 3`. - - **Predicted:** a set. gobridge already matches this in the default build: it is refused as `bridge mst set` + - **Seen:** a set: MSTI 5 state 3 sent and acked, and the readback has d1 forwarding in MSTI 5 (ec-087). gobridge + already matches this in the default build: it is refused as `bridge mst set` (`TestGobridgeWriteRefusedUntagged`, "corner: mst s is set"). + - **Status:** confirmed. ## B89. Device texts @@ -154,26 +178,46 @@ and `TestGobridgeMstWrite`'s boundary rows. - mst.c:204-205: a miss is `nodev(d)`, `Cannot find device "X"` (lib/utils.c:844-848), as every show prints. - **Trigger:** `bridge link set dev nosuch cost 5`; `bridge link set dev d1 backup_port nosuch`; `bridge mst set dev nosuch msti 5 state 3`. -- **Predicted:** the three texts, each rc 255, after `ll_init_map`'s dump and the `ll_link_get` request. - -## K18–K24. Kernel notes - -linux v7.4-rc4. Each is predicted and is pinned against a 26C row. - -- **K18:** `self` on a veth or dummy port reaches `rtnl_bridge_setlink` (net/core/rtnetlink.c) for a device with no - `ndo_bridge_setlink`: EOPNOTSUPP. -- **K19:** `mab on` without `locked on` and learning on: `br_setport` (net/bridge/br_netlink.c) refuses with the extack - "Bridge port must be locked and have learning enabled when MAB is enabled". -- **K20:** `mst set` while the bridge's `mst_enabled` is 0: `br_mst_set_state` (net/bridge/br_mst.c) refuses with - EBUSY, "Can't modify MST state when MST is disabled". -- **K21:** `state` while kernel STP is on: EBUSY; a non-disabled state on a port that is down: ENETDOWN - (`br_set_port_state` in br_netlink.c). -- **K22:** the range checks the narrowing reaches: `br_stp_set_path_cost` (net/bridge/br_stp_if.c, ERANGE above - `BR_MAX_PATH_COST`) and `br_stp_set_port_priority` (ERANGE above `BR_MAX_PORT_PRIORITY`), and - `br_multicast_set_port_router` for a type above 3. -- **K23:** `bridge link set dev br0` (the bridge, not a port): `br_setlink` with no port, EINVAL or EOPNOTSUPP, to be - pinned. -- **K24:** an MSTI no VLAN maps to: `br_mst_set_state`'s answer (ENOENT predicted), to be pinned. +- **Seen:** the three texts, each rc 255, each after `ll_link_get`'s RTM_GETLINK draws the kernel's ENODEV, and none + sends a SETLINK (ng-035, ng-036, ng-037). +- **Status:** confirmed. + +## K18–K26. Kernel notes + +linux v7.4-rc4 (`b6a9fa34ce41`), each against its rows. + +- **K18, confirmed:** `self` on a dummy port: `rtnl_bridge_setlink` (rtnetlink.c:5695-5773) calls the device's own + `ndo_bridge_setlink`, which a dummy lacks: EOPNOTSUPP, `Operation not supported` (ng-001, ng-002; `hwmode` is + `self`). +- **K19, confirmed:** `mab on` without `locked on`: `br_setport` refuses with EINVAL and the extack "Bridge port must + be locked and have learning enabled when MAB is enabled" (ng-005). With `locked on learning on mab on` in one + request it is accepted, because the check is on the flags after the whole request is applied (ec-034). +- **K20, confirmed:** `mst set` with MST off: `br_mst_process` refuses with EBUSY. The extack is set with + `NL_SET_ERR_MSG_MOD`, so bridge prints `Error: bridge: Can't modify MST state when MST is disabled.` (ng-018). +- **K21, confirmed:** a state while kernel STP runs: EBUSY (ng-014). A state on a port that is down: ENETDOWN, and + `disabled` too, because the port is not running at all; the "only disabled is allowed" arm is for a running port + without carrier (ng-015, ng-016; `br_set_port_state`, br_netlink.c:915-934). +- **K22, confirmed:** `br_stp_set_path_cost` (ERANGE above 65535, ng-006, ng-007) and `br_stp_set_port_priority` + (ERANGE above 63, ng-008, ng-009). `br_set_port_state` refuses a state above 4 with EINVAL (ng-010, ng-011) and + `br_multicast_set_port_router` a type above 3 with EINVAL (ng-012, ng-013). +- **K23, corrected:** predicted "EINVAL or EOPNOTSUPP". `bridge link set dev br0 cost 5` sends no flags, so + `rtnl_bridge_setlink` looks for br0's master, finds none, and answers EOPNOTSUPP (ng-017). With `self` the bridge's + own `br_setlink` runs: it has no port, so it skips PROTINFO (`if (p && protinfo)`, br_netlink.c:1134) and acks, + rc 0, with the cost dropped (ec-066). +- **K24, corrected:** predicted ENOENT. `br_mst_set_state` walks the port's VLANs for the MSTI and sets none when no + VLAN maps to it, then returns 0: `msti 4094` is acked and nothing changes (ec-090). MSTI 0 and anything above 4094 + never get there: `br_mst_nl_policy` refuses them with ERANGE (ng-019–ng-022), as it does a state above 4 (ng-023, + ng-024). +- **K25, new: a refused write is partly applied.** `br_setport` applies every port flag (hairpin, learning, flood, + locked, …) first, then the cost, priority and state, returning at the first range error. `link set dev d1 hairpin + on cost 70000` is refused with ERANGE, yet the `-d link show` after it in the batch has `hairpin on` + (ng-049). Nothing tells the caller which half landed. B81's reverse order (ng-004) is the same shape one level up, + in `rtnl_bridge_setlink`'s master-then-self sequence. Not a standalone defect report yet: a candidate for + `kernel-.md` in 26B if the HEAD check shows it unchanged. +- **K26, new (documented behavior):** a VLAN moved into an MSTI that no other VLAN of the port is in starts + `disabled` on every port (`br_mst_vlan_sync_state`, br_mst.c:136-154, says so in a comment). The `brmst` fixture's + d1 is `disabled` in MSTI 5 before any `mst set` (ec-090's readback), so mapping a VLAN to a fresh MSTI stops its + traffic until a state is set. ## Bug-class candidates @@ -181,4 +225,6 @@ For the user's review; [bug-classes.md](bug-classes.md) is untouched. - **An always-sent empty container** (B82): a nest opened before knowing whether anything goes in it. - **C narrowing that wraps or drops silently** (B77, B79, B80, B87): `atoi` or `strtol` stored in a type narrower than - the input, with a sign test standing in for "set". + the input, with a sign test standing in for "set". These rows show it (ec-069–ec-075, ng-009, ng-011, ng-013, + ng-020, ng-021). +- **A refusal after a partial apply** (K25, kernel side): validation interleaved with mutation. diff --git a/nix/microvms/workbench/brlinkwrite.rows.jsonl b/nix/microvms/workbench/brlinkwrite.rows.jsonl new file mode 100644 index 000000000..b05cc78dc --- /dev/null +++ b/nix/microvms/workbench/brlinkwrite.rows.jsonl @@ -0,0 +1,144 @@ +# Generated by `nlcapgen matrix -family brlinkwrite -seed 1 -random 0`. +# Do not edit; regenerate. tools/nlcapgen/matrix.go explains the strategies. +# 141 rows. +{"id":"brlinkwrite/ec-001","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_guard_on","cmd":"bridge link set dev d1 guard on","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 guard on"}} +{"id":"brlinkwrite/ec-002","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_guard_off","cmd":"bridge link set dev d1 guard off","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 guard off"}} +{"id":"brlinkwrite/ec-003","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_hairpin_on","cmd":"bridge link set dev d1 hairpin on","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 hairpin on"}} +{"id":"brlinkwrite/ec-004","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_hairpin_off","cmd":"bridge link set dev d1 hairpin off","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 hairpin off"}} +{"id":"brlinkwrite/ec-005","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_fastleave_on","cmd":"bridge link set dev d1 fastleave on","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 fastleave on"}} +{"id":"brlinkwrite/ec-006","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_fastleave_off","cmd":"bridge link set dev d1 fastleave off","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 fastleave off"}} +{"id":"brlinkwrite/ec-007","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_root_block_on","cmd":"bridge link set dev d1 root_block on","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 root_block on"}} +{"id":"brlinkwrite/ec-008","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_root_block_off","cmd":"bridge link set dev d1 root_block off","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 root_block off"}} +{"id":"brlinkwrite/ec-009","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_learning_on","cmd":"bridge link set dev d1 learning on","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 learning on"}} +{"id":"brlinkwrite/ec-010","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_learning_off","cmd":"bridge link set dev d1 learning off","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 learning off"}} +{"id":"brlinkwrite/ec-011","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_learning_sync_on","cmd":"bridge link set dev d1 learning_sync on","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 learning_sync on"}} +{"id":"brlinkwrite/ec-012","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_learning_sync_off","cmd":"bridge link set dev d1 learning_sync off","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 learning_sync off"}} +{"id":"brlinkwrite/ec-013","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_flood_on","cmd":"bridge link set dev d1 flood on","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 flood on"}} +{"id":"brlinkwrite/ec-014","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_flood_off","cmd":"bridge link set dev d1 flood off","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 flood off"}} +{"id":"brlinkwrite/ec-015","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_mcast_flood_on","cmd":"bridge link set dev d1 mcast_flood on","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 mcast_flood on"}} +{"id":"brlinkwrite/ec-016","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_mcast_flood_off","cmd":"bridge link set dev d1 mcast_flood off","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 mcast_flood off"}} +{"id":"brlinkwrite/ec-017","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_bcast_flood_on","cmd":"bridge link set dev d1 bcast_flood on","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 bcast_flood on"}} +{"id":"brlinkwrite/ec-018","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_bcast_flood_off","cmd":"bridge link set dev d1 bcast_flood off","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 bcast_flood off"}} +{"id":"brlinkwrite/ec-019","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_mcast_to_unicast_on","cmd":"bridge link set dev d1 mcast_to_unicast on","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 mcast_to_unicast on"}} +{"id":"brlinkwrite/ec-020","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_mcast_to_unicast_off","cmd":"bridge link set dev d1 mcast_to_unicast off","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 mcast_to_unicast off"}} +{"id":"brlinkwrite/ec-021","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_neigh_suppress_on","cmd":"bridge link set dev d1 neigh_suppress on","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 neigh_suppress on"}} +{"id":"brlinkwrite/ec-022","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_neigh_suppress_off","cmd":"bridge link set dev d1 neigh_suppress off","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 neigh_suppress off"}} +{"id":"brlinkwrite/ec-023","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_neigh_vlan_suppress_on","cmd":"bridge link set dev d1 neigh_vlan_suppress on","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 neigh_vlan_suppress on"}} +{"id":"brlinkwrite/ec-024","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_neigh_vlan_suppress_off","cmd":"bridge link set dev d1 neigh_vlan_suppress off","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 neigh_vlan_suppress off"}} +{"id":"brlinkwrite/ec-025","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_neigh_forward_grat_on","cmd":"bridge link set dev d1 neigh_forward_grat on","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 neigh_forward_grat on"}} +{"id":"brlinkwrite/ec-026","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_neigh_forward_grat_off","cmd":"bridge link set dev d1 neigh_forward_grat off","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 neigh_forward_grat off"}} +{"id":"brlinkwrite/ec-027","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_vlan_tunnel_on","cmd":"bridge link set dev d1 vlan_tunnel on","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 vlan_tunnel on"}} +{"id":"brlinkwrite/ec-028","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_vlan_tunnel_off","cmd":"bridge link set dev d1 vlan_tunnel off","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 vlan_tunnel off"}} +{"id":"brlinkwrite/ec-029","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_isolated_on","cmd":"bridge link set dev d1 isolated on","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 isolated on"}} +{"id":"brlinkwrite/ec-030","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_isolated_off","cmd":"bridge link set dev d1 isolated off","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 isolated off"}} +{"id":"brlinkwrite/ec-031","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_locked_on","cmd":"bridge link set dev d1 locked on","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 locked on"}} +{"id":"brlinkwrite/ec-032","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_locked_off","cmd":"bridge link set dev d1 locked off","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 locked off"}} +{"id":"brlinkwrite/ec-033","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_mab_off","cmd":"bridge link set dev d1 mab off","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 mab off"}} +{"id":"brlinkwrite/ec-034","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_locked_on_learning_on_mab_on","cmd":"bridge link set dev d1 locked on learning on mab on","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 locked on learning on mab on"}} +{"id":"brlinkwrite/ec-035","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_cost_1","cmd":"bridge link set dev d1 cost 1","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 cost 1"}} +{"id":"brlinkwrite/ec-036","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_cost_5","cmd":"bridge link set dev d1 cost 5","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 cost 5"}} +{"id":"brlinkwrite/ec-037","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_cost_65535","cmd":"bridge link set dev d1 cost 65535","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 cost 65535"}} +{"id":"brlinkwrite/ec-038","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_priority_0","cmd":"bridge link set dev d1 priority 0","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 priority 0"}} +{"id":"brlinkwrite/ec-039","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_priority_3","cmd":"bridge link set dev d1 priority 3","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 priority 3"}} +{"id":"brlinkwrite/ec-040","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_priority_63","cmd":"bridge link set dev d1 priority 63","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 priority 63"}} +{"id":"brlinkwrite/ec-041","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_mcast_router_0","cmd":"bridge link set dev d1 mcast_router 0","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 mcast_router 0"}} +{"id":"brlinkwrite/ec-042","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_mcast_router_1","cmd":"bridge link set dev d1 mcast_router 1","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 mcast_router 1"}} +{"id":"brlinkwrite/ec-043","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_mcast_router_2","cmd":"bridge link set dev d1 mcast_router 2","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 mcast_router 2"}} +{"id":"brlinkwrite/ec-044","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_mcast_router_3","cmd":"bridge link set dev d1 mcast_router 3","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 mcast_router 3"}} +{"id":"brlinkwrite/ec-045","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_mcast_max_groups_0","cmd":"bridge link set dev d1 mcast_max_groups 0","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 mcast_max_groups 0"}} +{"id":"brlinkwrite/ec-046","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_mcast_max_groups_9","cmd":"bridge link set dev d1 mcast_max_groups 9","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 mcast_max_groups 9"}} +{"id":"brlinkwrite/ec-047","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_state_disabled","cmd":"bridge link set dev d1 state disabled","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 state disabled"}} +{"id":"brlinkwrite/ec-048","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_state_0","cmd":"bridge link set dev d1 state 0","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 state 0"}} +{"id":"brlinkwrite/ec-049","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_state_listening","cmd":"bridge link set dev d1 state listening","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 state listening"}} +{"id":"brlinkwrite/ec-050","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_state_1","cmd":"bridge link set dev d1 state 1","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 state 1"}} +{"id":"brlinkwrite/ec-051","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_state_learning","cmd":"bridge link set dev d1 state learning","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 state learning"}} +{"id":"brlinkwrite/ec-052","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_state_2","cmd":"bridge link set dev d1 state 2","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 state 2"}} +{"id":"brlinkwrite/ec-053","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_state_forwarding","cmd":"bridge link set dev d1 state forwarding","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 state forwarding"}} +{"id":"brlinkwrite/ec-054","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_state_3","cmd":"bridge link set dev d1 state 3","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 state 3"}} +{"id":"brlinkwrite/ec-055","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_state_blocking","cmd":"bridge link set dev d1 state blocking","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 state blocking"}} +{"id":"brlinkwrite/ec-056","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_state_4","cmd":"bridge link set dev d1 state 4","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 state 4"}} +{"id":"brlinkwrite/ec-057","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_backup_port_d2","cmd":"bridge link set dev d1 backup_port d2","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 backup_port d2"}} +{"id":"brlinkwrite/ec-058","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_nobackup_port","cmd":"bridge link set dev d1 nobackup_port","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","bridge link set dev d1 backup_port d2"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 nobackup_port"}} +{"id":"brlinkwrite/ec-059","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_backup_nhid_10","cmd":"bridge link set dev d1 backup_nhid 10","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 backup_nhid 10"}} +{"id":"brlinkwrite/ec-060","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_master_cost_9","cmd":"bridge link set dev d1 master cost 9","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 master cost 9"}} +{"id":"brlinkwrite/ec-061","desc":"positive: opt=plain cmd=brl:link_change_dev_d1_hairpin_on","cmd":"bridge link change dev d1 hairpin on","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link change dev d1 hairpin on"}} +{"id":"brlinkwrite/ec-062","desc":"corner: opt=plain cmd=brl:link_s_dev_d1_cost_8","cmd":"bridge link s dev d1 cost 8","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link s dev d1 cost 8"}} +{"id":"brlinkwrite/ec-063","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_cost_9_priority_4_hairpin_on_learning_off_state_forwarding_mcast_router_2_isolated_on","cmd":"bridge link set dev d1 cost 9 priority 4 hairpin on learning off state forwarding mcast_router 2 isolated on","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 cost 9 priority 4 hairpin on learning off state forwarding mcast_router 2 isolated on"}} +{"id":"brlinkwrite/ec-064","desc":"positive: opt=plain cmd=brl:link_set_dev_d1_neigh_suppress_on_mcast_max_groups_7_backup_port_d2_backup_nhid_3_guard_on","cmd":"bridge link set dev d1 neigh_suppress on mcast_max_groups 7 backup_port d2 backup_nhid 3 guard on","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 neigh_suppress on mcast_max_groups 7 backup_port d2 backup_nhid 3 guard on"}} +{"id":"brlinkwrite/ec-065","desc":"corner: opt=plain cmd=brl:link_set_dev_d1","cmd":"bridge link set dev d1","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1"}} +{"id":"brlinkwrite/ec-066","desc":"corner: opt=plain cmd=brl:link_set_dev_br0_self_cost_5","cmd":"bridge link set dev br0 self cost 5","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev br0 self cost 5"}} +{"id":"brlinkwrite/ec-067","desc":"boundary: opt=plain cmd=brl:link_set_dev_d1_cost_0","cmd":"bridge link set dev d1 cost 0","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 cost 0"}} +{"id":"brlinkwrite/ec-068","desc":"boundary: opt=plain cmd=brl:link_set_dev_d1_cost_x","cmd":"bridge link set dev d1 cost x","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 cost x"}} +{"id":"brlinkwrite/ec-069","desc":"boundary: opt=plain cmd=brl:link_set_dev_d1_priority_-1","cmd":"bridge link set dev d1 priority -1","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 priority -1"}} +{"id":"brlinkwrite/ec-070","desc":"boundary: opt=plain cmd=brl:link_set_dev_d1_priority_40000","cmd":"bridge link set dev d1 priority 40000","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 priority 40000"}} +{"id":"brlinkwrite/ec-071","desc":"boundary: opt=plain cmd=brl:link_set_dev_d1_state_200","cmd":"bridge link set dev d1 state 200","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 state 200"}} +{"id":"brlinkwrite/ec-072","desc":"boundary: opt=plain cmd=brl:link_set_dev_d1_state_128","cmd":"bridge link set dev d1 state 128","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 state 128"}} +{"id":"brlinkwrite/ec-073","desc":"boundary: opt=plain cmd=brl:link_set_dev_d1_state_-1","cmd":"bridge link set dev d1 state -1","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 state -1"}} +{"id":"brlinkwrite/ec-074","desc":"boundary: opt=plain cmd=brl:link_set_dev_d1_mcast_router_abc","cmd":"bridge link set dev d1 mcast_router abc","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 mcast_router abc"}} +{"id":"brlinkwrite/ec-075","desc":"boundary: opt=plain cmd=brl:link_set_dev_d1_mcast_router_200","cmd":"bridge link set dev d1 mcast_router 200","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 mcast_router 200"}} +{"id":"brlinkwrite/ec-076","desc":"boundary: opt=plain cmd=brl:link_set_dev_d1_mcast_max_groups_-1","cmd":"bridge link set dev d1 mcast_max_groups -1","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 mcast_max_groups -1"}} +{"id":"brlinkwrite/ec-077","desc":"positive: opt=plain cmd=brmst:mst_set_dev_d1_msti_5_state_disabled","cmd":"bridge mst set dev d1 msti 5 state disabled","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self","bridge vlan global set dev br0 vid 10 msti 5"],"readback":[{"name":"mst","cmd":"bridge mst show dev d1"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brmst","json":"0","words":"mst set dev d1 msti 5 state disabled"}} +{"id":"brlinkwrite/ec-078","desc":"positive: opt=plain cmd=brmst:mst_set_dev_d1_msti_5_state_0","cmd":"bridge mst set dev d1 msti 5 state 0","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self","bridge vlan global set dev br0 vid 10 msti 5"],"readback":[{"name":"mst","cmd":"bridge mst show dev d1"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brmst","json":"0","words":"mst set dev d1 msti 5 state 0"}} +{"id":"brlinkwrite/ec-079","desc":"positive: opt=plain cmd=brmst:mst_set_dev_d1_msti_5_state_listening","cmd":"bridge mst set dev d1 msti 5 state listening","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self","bridge vlan global set dev br0 vid 10 msti 5"],"readback":[{"name":"mst","cmd":"bridge mst show dev d1"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brmst","json":"0","words":"mst set dev d1 msti 5 state listening"}} +{"id":"brlinkwrite/ec-080","desc":"positive: opt=plain cmd=brmst:mst_set_dev_d1_msti_5_state_1","cmd":"bridge mst set dev d1 msti 5 state 1","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self","bridge vlan global set dev br0 vid 10 msti 5"],"readback":[{"name":"mst","cmd":"bridge mst show dev d1"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brmst","json":"0","words":"mst set dev d1 msti 5 state 1"}} +{"id":"brlinkwrite/ec-081","desc":"positive: opt=plain cmd=brmst:mst_set_dev_d1_msti_5_state_learning","cmd":"bridge mst set dev d1 msti 5 state learning","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self","bridge vlan global set dev br0 vid 10 msti 5"],"readback":[{"name":"mst","cmd":"bridge mst show dev d1"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brmst","json":"0","words":"mst set dev d1 msti 5 state learning"}} +{"id":"brlinkwrite/ec-082","desc":"positive: opt=plain cmd=brmst:mst_set_dev_d1_msti_5_state_2","cmd":"bridge mst set dev d1 msti 5 state 2","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self","bridge vlan global set dev br0 vid 10 msti 5"],"readback":[{"name":"mst","cmd":"bridge mst show dev d1"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brmst","json":"0","words":"mst set dev d1 msti 5 state 2"}} +{"id":"brlinkwrite/ec-083","desc":"positive: opt=plain cmd=brmst:mst_set_dev_d1_msti_5_state_forwarding","cmd":"bridge mst set dev d1 msti 5 state forwarding","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self","bridge vlan global set dev br0 vid 10 msti 5"],"readback":[{"name":"mst","cmd":"bridge mst show dev d1"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brmst","json":"0","words":"mst set dev d1 msti 5 state forwarding"}} +{"id":"brlinkwrite/ec-084","desc":"positive: opt=plain cmd=brmst:mst_set_dev_d1_msti_5_state_3","cmd":"bridge mst set dev d1 msti 5 state 3","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self","bridge vlan global set dev br0 vid 10 msti 5"],"readback":[{"name":"mst","cmd":"bridge mst show dev d1"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brmst","json":"0","words":"mst set dev d1 msti 5 state 3"}} +{"id":"brlinkwrite/ec-085","desc":"positive: opt=plain cmd=brmst:mst_set_dev_d1_msti_5_state_blocking","cmd":"bridge mst set dev d1 msti 5 state blocking","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self","bridge vlan global set dev br0 vid 10 msti 5"],"readback":[{"name":"mst","cmd":"bridge mst show dev d1"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brmst","json":"0","words":"mst set dev d1 msti 5 state blocking"}} +{"id":"brlinkwrite/ec-086","desc":"positive: opt=plain cmd=brmst:mst_set_dev_d1_msti_5_state_4","cmd":"bridge mst set dev d1 msti 5 state 4","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self","bridge vlan global set dev br0 vid 10 msti 5"],"readback":[{"name":"mst","cmd":"bridge mst show dev d1"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brmst","json":"0","words":"mst set dev d1 msti 5 state 4"}} +{"id":"brlinkwrite/ec-087","desc":"corner: opt=plain cmd=brmst:mst_s_dev_d1_msti_5_state_3","cmd":"bridge mst s dev d1 msti 5 state 3","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self","bridge vlan global set dev br0 vid 10 msti 5"],"readback":[{"name":"mst","cmd":"bridge mst show dev d1"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brmst","json":"0","words":"mst s dev d1 msti 5 state 3"}} +{"id":"brlinkwrite/ec-088","desc":"corner: opt=plain cmd=brmst:mst_set_dev_d1_bogus_msti_5_state_3","cmd":"bridge mst set dev d1 bogus msti 5 state 3","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self","bridge vlan global set dev br0 vid 10 msti 5"],"readback":[{"name":"mst","cmd":"bridge mst show dev d1"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brmst","json":"0","words":"mst set dev d1 bogus msti 5 state 3"}} +{"id":"brlinkwrite/ec-089","desc":"boundary: opt=plain cmd=brmst:mst_set_dev_d1_msti_1_state_3","cmd":"bridge mst set dev d1 msti 1 state 3","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self","bridge vlan global set dev br0 vid 10 msti 5"],"readback":[{"name":"mst","cmd":"bridge mst show dev d1"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brmst","json":"0","words":"mst set dev d1 msti 1 state 3"}} +{"id":"brlinkwrite/ec-090","desc":"boundary: opt=plain cmd=brmst:mst_set_dev_d1_msti_4094_state_3","cmd":"bridge mst set dev d1 msti 4094 state 3","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self","bridge vlan global set dev br0 vid 10 msti 5"],"readback":[{"name":"mst","cmd":"bridge mst show dev d1"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"brmst","json":"0","words":"mst set dev d1 msti 4094 state 3"}} +{"id":"brlinkwrite/ec-091","desc":"positive: opt=plain cmd=brl:batch:set-show","cmd":"bridge -batch b.txt","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","printf '%s\\n' 'link set dev d1 cost 9 hairpin on' 'link show dev d1' > b.txt"],"readback":[{"name":"link","cmd":"bridge -d link show"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"batch":"set-show","fix":"brl","json":"0","words":"-batch b.txt"}} +{"id":"brlinkwrite/ec-092","desc":"positive: opt=plain cmd=brmst:batch:set-show","cmd":"bridge -batch b.txt","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self","bridge vlan global set dev br0 vid 10 msti 5","printf '%s\\n' 'mst set dev d1 msti 5 state 3' 'mst show dev d1' > b.txt"],"readback":[{"name":"mst","cmd":"bridge mst show dev d1"}],"modules":["bridge"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"batch":"set-show","fix":"brmst","json":"0","words":"-batch b.txt"}} +{"id":"brlinkwrite/ng-001","desc":"negative: opt=plain cmd=ng:brl:link_set_dev_d1_self: self on a dummy: no ndo_bridge_setlink (K18)","cmd":"bridge link set dev d1 self","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"errno":"ENOTSUP","refused_by":"kernel"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 self"}} +{"id":"brlinkwrite/ng-002","desc":"negative: opt=plain cmd=ng:brl:link_set_dev_d1_hwmode_veb: hwmode is self (K18)","cmd":"bridge link set dev d1 hwmode veb","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"errno":"ENOTSUP","refused_by":"kernel"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 hwmode veb"}} +{"id":"brlinkwrite/ng-003","desc":"negative: opt=plain cmd=ng:brl:link_set_dev_d1_master_hwmode_vepa: hwmode wipes master: self alone (B81, K18)","cmd":"bridge link set dev d1 master hwmode vepa","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"errno":"ENOTSUP","refused_by":"kernel"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 master hwmode vepa"}} +{"id":"brlinkwrite/ng-004","desc":"negative: opt=plain cmd=ng:brl:link_set_dev_d1_hwmode_vepa_master: master then self: the master half applies, self fails (B81)","cmd":"bridge link set dev d1 hwmode vepa master","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"errno":"ENOTSUP","refused_by":"kernel"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 hwmode vepa master"}} +{"id":"brlinkwrite/ng-005","desc":"negative: opt=plain cmd=ng:brl:link_set_dev_d1_mab_on: MAB without locked and learning (K19)","cmd":"bridge link set dev d1 mab on","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"errno":"EINVAL","extack":"Bridge port must be locked and have learning enabled when MAB is enabled","refused_by":"kernel"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 mab on"}} +{"id":"brlinkwrite/ng-006","desc":"negative: opt=plain cmd=ng:brl:link_set_dev_d1_cost_65536: above BR_MAX_PATH_COST (K22)","cmd":"bridge link set dev d1 cost 65536","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"errno":"ERANGE","refused_by":"kernel"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 cost 65536"}} +{"id":"brlinkwrite/ng-007","desc":"negative: opt=plain cmd=ng:brl:link_set_dev_d1_cost_-1: atoi -1 is 0xffffffff in a __u32 (B78, K22)","cmd":"bridge link set dev d1 cost -1","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"errno":"ERANGE","refused_by":"kernel"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 cost -1"}} +{"id":"brlinkwrite/ng-008","desc":"negative: opt=plain cmd=ng:brl:link_set_dev_d1_priority_64: above BR_MAX_PORT_PRIORITY (K22)","cmd":"bridge link set dev d1 priority 64","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"errno":"ERANGE","refused_by":"kernel"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 priority 64"}} +{"id":"brlinkwrite/ng-009","desc":"negative: opt=plain cmd=ng:brl:link_set_dev_d1_priority_70000: 70000 is 4464 in a __s16 (B79, K22)","cmd":"bridge link set dev d1 priority 70000","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"errno":"ERANGE","refused_by":"kernel"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 priority 70000"}} +{"id":"brlinkwrite/ng-010","desc":"negative: opt=plain cmd=ng:brl:link_set_dev_d1_state_5: above BR_STATE_BLOCKING","cmd":"bridge link set dev d1 state 5","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"errno":"EINVAL","refused_by":"kernel"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 state 5"}} +{"id":"brlinkwrite/ng-011","desc":"negative: opt=plain cmd=ng:brl:link_set_dev_d1_state_300: 300 is 44 in a __s8 (B80)","cmd":"bridge link set dev d1 state 300","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"errno":"EINVAL","refused_by":"kernel"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 state 300"}} +{"id":"brlinkwrite/ng-012","desc":"negative: opt=plain cmd=ng:brl:link_set_dev_d1_mcast_router_4: no router type 4 (K22)","cmd":"bridge link set dev d1 mcast_router 4","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"errno":"EINVAL","refused_by":"kernel"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 mcast_router 4"}} +{"id":"brlinkwrite/ng-013","desc":"negative: opt=plain cmd=ng:brl:link_set_dev_d1_mcast_router_300: 300 is 44 in a __s8 (B77)","cmd":"bridge link set dev d1 mcast_router 300","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"errno":"EINVAL","refused_by":"kernel"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 mcast_router 300"}} +{"id":"brlinkwrite/ng-014","desc":"negative: opt=plain cmd=ng:brlstp:link_set_dev_d1_state_forwarding: kernel STP owns the state (K21)","cmd":"bridge link set dev d1 state forwarding","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","ip link set br0 type bridge stp_state 1"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"errno":"EBUSY","refused_by":"kernel"},"axes":{"fix":"brlstp","json":"0","words":"link set dev d1 state forwarding"}} +{"id":"brlinkwrite/ng-015","desc":"negative: opt=plain cmd=ng:brldown:link_set_dev_d1_state_forwarding: the port is down (K21)","cmd":"bridge link set dev d1 state forwarding","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","ip link set d1 down"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"errno":"ENETDOWN","refused_by":"kernel"},"axes":{"fix":"brldown","json":"0","words":"link set dev d1 state forwarding"}} +{"id":"brlinkwrite/ng-016","desc":"negative: opt=plain cmd=ng:brldown:link_set_dev_d1_state_disabled: not running: even disabled is refused (K21)","cmd":"bridge link set dev d1 state disabled","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","ip link set d1 down"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"errno":"ENETDOWN","refused_by":"kernel"},"axes":{"fix":"brldown","json":"0","words":"link set dev d1 state disabled"}} +{"id":"brlinkwrite/ng-017","desc":"negative: opt=plain cmd=ng:brl:link_set_dev_br0_cost_5: the bridge has no master (K23)","cmd":"bridge link set dev br0 cost 5","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"errno":"ENOTSUP","refused_by":"kernel"},"axes":{"fix":"brl","json":"0","words":"link set dev br0 cost 5"}} +{"id":"brlinkwrite/ng-018","desc":"negative: opt=plain cmd=ng:brmstoff:mst_set_dev_d1_msti_5_state_3: MST off (K20)","cmd":"bridge mst set dev d1 msti 5 state 3","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"errno":"EBUSY","extack":"Can't modify MST state when MST is disabled","refused_by":"kernel"},"axes":{"fix":"brmstoff","json":"0","words":"mst set dev d1 msti 5 state 3"}} +{"id":"brlinkwrite/ng-019","desc":"negative: opt=plain cmd=ng:brmst:mst_set_dev_d1_msti_0_state_3: MSTI 0 is the CST: the policy's range is 1-4094","cmd":"bridge mst set dev d1 msti 0 state 3","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self","bridge vlan global set dev br0 vid 10 msti 5"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"errno":"ERANGE","extack":"integer out of range","refused_by":"kernel"},"axes":{"fix":"brmst","json":"0","words":"mst set dev d1 msti 0 state 3"}} +{"id":"brlinkwrite/ng-020","desc":"negative: opt=plain cmd=ng:brmst:mst_set_dev_d1_msti_-1_state_3: -1 is 65535 in a __u16 (B87)","cmd":"bridge mst set dev d1 msti -1 state 3","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self","bridge vlan global set dev br0 vid 10 msti 5"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"errno":"ERANGE","extack":"integer out of range","refused_by":"kernel"},"axes":{"fix":"brmst","json":"0","words":"mst set dev d1 msti -1 state 3"}} +{"id":"brlinkwrite/ng-021","desc":"negative: opt=plain cmd=ng:brmst:mst_set_dev_d1_msti_70000_state_3: 70000 is 4464 in a __u16 (B87)","cmd":"bridge mst set dev d1 msti 70000 state 3","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self","bridge vlan global set dev br0 vid 10 msti 5"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"errno":"ERANGE","extack":"integer out of range","refused_by":"kernel"},"axes":{"fix":"brmst","json":"0","words":"mst set dev d1 msti 70000 state 3"}} +{"id":"brlinkwrite/ng-022","desc":"negative: opt=plain cmd=ng:brmst:mst_set_dev_d1_msti_\"\"_state_3: the MSTI check reads the state: MSTI 0 is sent (B86)","cmd":"bridge mst set dev d1 msti \"\" state 3","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self","bridge vlan global set dev br0 vid 10 msti 5"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"errno":"ERANGE","extack":"integer out of range","refused_by":"kernel"},"axes":{"fix":"brmst","json":"0","words":"mst set dev d1 msti \"\" state 3"}} +{"id":"brlinkwrite/ng-023","desc":"negative: opt=plain cmd=ng:brmst:mst_set_dev_d1_msti_5_state_5: above BR_STATE_BLOCKING: the policy","cmd":"bridge mst set dev d1 msti 5 state 5","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self","bridge vlan global set dev br0 vid 10 msti 5"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"errno":"ERANGE","extack":"integer out of range","refused_by":"kernel"},"axes":{"fix":"brmst","json":"0","words":"mst set dev d1 msti 5 state 5"}} +{"id":"brlinkwrite/ng-024","desc":"negative: opt=plain cmd=ng:brmst:mst_set_dev_d1_msti_5_state_255: UINT8_MAX passes bridge, not the policy","cmd":"bridge mst set dev d1 msti 5 state 255","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self","bridge vlan global set dev br0 vid 10 msti 5"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"errno":"ERANGE","extack":"integer out of range","refused_by":"kernel"},"axes":{"fix":"brmst","json":"0","words":"mst set dev d1 msti 5 state 255"}} +{"id":"brlinkwrite/ng-025","desc":"negative: opt=plain cmd=ng:brl:link_set_dev_d1_bogus_on: an unknown word is usage (B85)","cmd":"bridge link set dev d1 bogus on","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"refused_by":"ack-then-fail"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 bogus on"}} +{"id":"brlinkwrite/ng-026","desc":"negative: opt=plain cmd=ng:brl:link_set_dev_d1_hairpin_maybe: parse_on_off returns -EINVAL: rc 234 (B84)","cmd":"bridge link set dev d1 hairpin maybe","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"modules":["bridge"],"proto":"route","expect":{"rc":234,"refused_by":"ack-then-fail"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 hairpin maybe"}} +{"id":"brlinkwrite/ng-027","desc":"negative: opt=plain cmd=ng:brl:link_set_dev_d1_state_bogus: Error: invalid STP port state","cmd":"bridge link set dev d1 state bogus","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"refused_by":"ack-then-fail"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 state bogus"}} +{"id":"brlinkwrite/ng-028","desc":"negative: opt=plain cmd=ng:brl:link_set_dev_d1_hwmode_x: Mode argument must be vepa or veb","cmd":"bridge link set dev d1 hwmode x","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"refused_by":"ack-then-fail"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 hwmode x"}} +{"id":"brlinkwrite/ng-029","desc":"negative: opt=plain cmd=ng:brl:link_set_dev_d1_mcast_max_groups_4294967295: get_s32 overflows: invarg (B83)","cmd":"bridge link set dev d1 mcast_max_groups 4294967295","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"refused_by":"ack-then-fail"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 mcast_max_groups 4294967295"}} +{"id":"brlinkwrite/ng-030","desc":"negative: opt=plain cmd=ng:brl:link_set_dev_d1_backup_nhid_abc: invarg","cmd":"bridge link set dev d1 backup_nhid abc","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"refused_by":"ack-then-fail"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 backup_nhid abc"}} +{"id":"brlinkwrite/ng-031","desc":"negative: opt=plain cmd=ng:brl:link_set_dev_d1_help: help is not a keyword: usage","cmd":"bridge link set dev d1 help","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"refused_by":"ack-then-fail"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 help"}} +{"id":"brlinkwrite/ng-032","desc":"negative: opt=plain cmd=ng:brl:link_set_cost_5: Device is a required argument, after the loop (B90)","cmd":"bridge link set cost 5","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"refused_by":"ack-then-fail"},"axes":{"fix":"brl","json":"0","words":"link set cost 5"}} +{"id":"brlinkwrite/ng-033","desc":"negative: opt=plain cmd=ng:brl:link_set_cost_5_hairpin_maybe: the loop's 234 comes before dev's check (B90)","cmd":"bridge link set cost 5 hairpin maybe","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"modules":["bridge"],"proto":"route","expect":{"rc":234,"refused_by":"ack-then-fail"},"axes":{"fix":"brl","json":"0","words":"link set cost 5 hairpin maybe"}} +{"id":"brlinkwrite/ng-034","desc":"negative: opt=plain cmd=ng:brl:link_set_dev: dev with no value: NEXT_ARG","cmd":"bridge link set dev","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"refused_by":"ack-then-fail"},"axes":{"fix":"brl","json":"0","words":"link set dev"}} +{"id":"brlinkwrite/ng-035","desc":"negative: opt=plain cmd=ng:brl:link_set_dev_nosuch_cost_5: Cannot find bridge device (B89)","cmd":"bridge link set dev nosuch cost 5","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"errno":"ENODEV","refused_by":"kernel"},"axes":{"fix":"brl","json":"0","words":"link set dev nosuch cost 5"}} +{"id":"brlinkwrite/ng-036","desc":"negative: opt=plain cmd=ng:brl:link_set_dev_d1_backup_port_nosuch: Error: device nosuch does not exist (B89)","cmd":"bridge link set dev d1 backup_port nosuch","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"errno":"ENODEV","refused_by":"kernel"},"axes":{"fix":"brl","json":"0","words":"link set dev d1 backup_port nosuch"}} +{"id":"brlinkwrite/ng-037","desc":"negative: opt=plain cmd=ng:brmst:mst_set_dev_nosuch_msti_5_state_3: nodev: Cannot find device (B89)","cmd":"bridge mst set dev nosuch msti 5 state 3","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self","bridge vlan global set dev br0 vid 10 msti 5"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"errno":"ENODEV","refused_by":"kernel"},"axes":{"fix":"brmst","json":"0","words":"mst set dev nosuch msti 5 state 3"}} +{"id":"brlinkwrite/ng-038","desc":"negative: opt=plain cmd=ng:brmst:mst_set_dev_d1_msti_5: no state: the required-arguments text","cmd":"bridge mst set dev d1 msti 5","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self","bridge vlan global set dev br0 vid 10 msti 5"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"refused_by":"ack-then-fail"},"axes":{"fix":"brmst","json":"0","words":"mst set dev d1 msti 5"}} +{"id":"brlinkwrite/ng-039","desc":"negative: opt=plain cmd=ng:brmst:mst_set_msti_5_state_3: no dev: the required-arguments text","cmd":"bridge mst set msti 5 state 3","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self","bridge vlan global set dev br0 vid 10 msti 5"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"refused_by":"ack-then-fail"},"axes":{"fix":"brmst","json":"0","words":"mst set msti 5 state 3"}} +{"id":"brlinkwrite/ng-040","desc":"negative: opt=plain cmd=ng:brmst:mst_set_dev_d1_msti_abc_state_3: Error: invalid MSTI","cmd":"bridge mst set dev d1 msti abc state 3","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self","bridge vlan global set dev br0 vid 10 msti 5"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"refused_by":"ack-then-fail"},"axes":{"fix":"brmst","json":"0","words":"mst set dev d1 msti abc state 3"}} +{"id":"brlinkwrite/ng-041","desc":"negative: opt=plain cmd=ng:brmst:mst_set_dev_d1_msti_5_state_\"\": an empty state fails the MSTI check (B86)","cmd":"bridge mst set dev d1 msti 5 state \"\"","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self","bridge vlan global set dev br0 vid 10 msti 5"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"refused_by":"ack-then-fail"},"axes":{"fix":"brmst","json":"0","words":"mst set dev d1 msti 5 state \"\""}} +{"id":"brlinkwrite/ng-042","desc":"negative: opt=plain cmd=ng:brmst:mst_set_dev_d1_msti_5_state_256: above UINT8_MAX: invalid STP port state","cmd":"bridge mst set dev d1 msti 5 state 256","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self","bridge vlan global set dev br0 vid 10 msti 5"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"refused_by":"ack-then-fail"},"axes":{"fix":"brmst","json":"0","words":"mst set dev d1 msti 5 state 256"}} +{"id":"brlinkwrite/ng-043","desc":"negative: opt=plain cmd=ng:brmst:mst_set_dev_d1_msti_5_state_-1: negative: invalid STP port state","cmd":"bridge mst set dev d1 msti 5 state -1","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self","bridge vlan global set dev br0 vid 10 msti 5"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"refused_by":"ack-then-fail"},"axes":{"fix":"brmst","json":"0","words":"mst set dev d1 msti 5 state -1"}} +{"id":"brlinkwrite/ng-044","desc":"negative: opt=plain cmd=ng:brmst:mst_set_dev_d1_msti_5_state_bogus: parse_stp_state: invalid STP port state","cmd":"bridge mst set dev d1 msti 5 state bogus","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self","bridge vlan global set dev br0 vid 10 msti 5"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"refused_by":"ack-then-fail"},"axes":{"fix":"brmst","json":"0","words":"mst set dev d1 msti 5 state bogus"}} +{"id":"brlinkwrite/ng-045","desc":"negative: opt=plain cmd=ng:brmst:mst_set_dev_d1_help: help: usage","cmd":"bridge mst set dev d1 help","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self","bridge vlan global set dev br0 vid 10 msti 5"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"refused_by":"ack-then-fail"},"axes":{"fix":"brmst","json":"0","words":"mst set dev d1 help"}} +{"id":"brlinkwrite/ng-046","desc":"negative: opt=plain cmd=ng:brmst:mst_set_dev: dev with no value: NEXT_ARG","cmd":"bridge mst set dev","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self","bridge vlan global set dev br0 vid 10 msti 5"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"refused_by":"ack-then-fail"},"axes":{"fix":"brmst","json":"0","words":"mst set dev"}} +{"id":"brlinkwrite/ng-047","desc":"negative: opt=plain cmd=ng:brl:batch:onoff-force: 234 is a return: -force carries on, the batch is rc 1 (B84)","cmd":"bridge -force -batch b.txt","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","printf '%s\\n' 'link set dev d1 hairpin maybe' 'link set dev d1 hairpin on' > b.txt"],"modules":["bridge"],"proto":"route","expect":{"rc":1,"refused_by":"ack-then-fail"},"axes":{"batch":"onoff-force","fix":"brl","json":"0","words":"-force -batch b.txt"}} +{"id":"brlinkwrite/ng-048","desc":"negative: opt=plain cmd=ng:brl:batch:usage-force: usage exits: the batch ends at the first line (B85)","cmd":"bridge -force -batch b.txt","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","printf '%s\\n' 'link set dev d1 bogus on' 'link set dev d1 hairpin on' > b.txt"],"modules":["bridge"],"proto":"route","expect":{"rc":255,"refused_by":"ack-then-fail"},"axes":{"batch":"usage-force","fix":"brl","json":"0","words":"-force -batch b.txt"}} +{"id":"brlinkwrite/ng-049","desc":"negative: opt=plain cmd=ng:brl:batch:partial-force: br_setport applies the flags before the cost's ERANGE: the -d show has hairpin on (K25)","cmd":"bridge -d -force -batch b.txt","pre":["ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none","ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up","printf '%s\\n' 'link set dev d1 hairpin on cost 70000' 'link show dev d1' > b.txt"],"modules":["bridge"],"proto":"route","expect":{"rc":1,"errno":"ERANGE","refused_by":"kernel"},"axes":{"batch":"partial-force","fix":"brl","json":"0","words":"-d -force -batch b.txt"}} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-001/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-001/cmd.json new file mode 100644 index 000000000..44b576690 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-001/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 guard on" + }, + "cmd": "bridge link set dev d1 guard on", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_guard_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": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-001", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-001/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-001/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-001/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-001/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-001/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-001/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..d1a15d04e2a4e0a8e7cbf41981b4a369aaeaaf65 GIT binary patch literal 528 zcmZuuy$%6E7@WJk3*sb#7L7uoIHFLfs62v1B|3kJC(wEWty1d^M0f(FSCN>xy@cEN zlG*!qzxn2NzJ1;%& zFV=;BI%W8f&SPo`Y{LXvfgB80TcE={%NrPleUyNVFabj~?Z#7iSW dv=3RAGrif7T7Bk%tED?}W}dX{tnFNX^*^T4HjV%Q literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-001/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-001/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-001/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-001/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-001/link.out new file mode 100644 index 000000000..f39a55261 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-001/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard on root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-001/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-001/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..60964e91e576e2b59bc07b938a6fe0f08467e809 GIT binary patch literal 1372 zcmdT@$w~u35Pg$LCzCjCi3{Quao-?%%H5NHARfh=8+i1TtDoR8pl87^P=bG;xBQCW zd)?(SLqJc04b`uzYw23LU%C&S0*d%rMZ8g%d#;~cUB_sV7oiw?5UaIDsv(N!Y3C1e zTY_0sq7dhXaeCB?`o$SR0g7{f7!2r!eP{>Dh;e!WY?05}wc-NLp3H85cIT&O7w658 zTh=zB7T6mJF%wEhmrY+o-cFt9e!Kg4r+++`x7!W1c3A5Yb)tN&V?2s8wFaL@`Y>%z zd7lQ))#rxwxlH-{(wtuDf4~AodH-9MtQzI7{+3x=zZw%%eUB1qdo0e;ORGwI^*Lgk zgD7n~%DSecm_+sRnCR>cIdbZ^$g_k|li4kLI@B$Wx-NOvV+r#nHw+gImkbvSR}J;j<-cjT?J>o;M{Ox4aHj|1 z`N_a=cbM|IBv^(@NU-8{3DylaJocNB!e!ne-`9^b;vK)8kuLs=85P>u83noKC;Fde Pq<_}?#ozw;XX@`e&>d7Z literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-002/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-002/cmd.json new file mode 100644 index 000000000..7d40f6bea --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-002/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 guard off" + }, + "cmd": "bridge link set dev d1 guard off", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_guard_off", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-002", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-002/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-002/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-002/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-002/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-002/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-002/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..71f8f3f598426190c4f75a45c9aae0c59208e353 GIT binary patch literal 528 zcmZuuI|{-;6r5xeRE!YRR&6XSETUMXuuElSZ7X*Ez!P{Cdn<1sB6t8xuOc{;4QLi0 z%;xRBd6S*D&)enXBfvKTyt(PzTkH7TK+0S|VDgVr#eitSGhOoX181qCgPLb`denKb zF8tGp;X^u)g(a{JGiU`WFxc#YA@edXH9pU-1+PxtZnNF*5_`8Y*JBmPVyju@Zh1&@ z4=zuWxc&TlHTtg?y1cRV+Nak(Yl7>w%_CFtYI`#FOj#4$9{Fw|M6Z~0MHKOhh!7n^ b))jiQIkhIt1y@UV;>< literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-002/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-002/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-002/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-002/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-002/link.out new file mode 100644 index 000000000..e8ff16ae8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-002/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-002/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-002/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..d0e586f13d246c016d0309f05d78d966d56e5120 GIT binary patch literal 1372 zcmdT@J5B>J5Ph4CH=D3PNcadrK8WxKDNv=S;sy~VN=HZ}PLPI!An|DtB^`>m0c8%r z6)2E+V-F#_S}8498b6OcGoCkNzYm{pGsxn1Wbs9%`c}TYdGOKVS_E0&f-Gh1QcCdr z8tv>xVhT|~-g9wY7-z(Dk+e8PWFT>#&Yc0>a0Z!y9DH>9z#-RhyOy8f-mBWp(5~0L z>i3#1x45mxQ{c4dVusW%uA7!a(oQNdoVdGloF304?M@umA-OhqCX(d3$Sps{)%kqT zhiO|$`qa5Eb*^ijbJQn?^y!oSZ4wko`rnbVa1?*3Z;ss3IEEJBsqs#s5I@$YO*gi!w!6 z#=WD>^~!kPVAbXlVhchc#I`*Pv8T9iF|9`uF7^)jzNYqwcl@;;Wd`vcIlW{%`k#6v P|1AGF{cr#LGimHM!ZB2| literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-003/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-003/cmd.json new file mode 100644 index 000000000..3ddf993c6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-003/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 hairpin on" + }, + "cmd": "bridge link set dev d1 hairpin on", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_hairpin_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": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-003", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-003/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-003/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-003/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-003/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-003/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-003/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..e3e8f191a84fa379eb751ebb3b5acb8c4da23405 GIT binary patch literal 528 zcmZuuK@I^y5UkzV4T2C{adB{PKpY%=z!O}>4ZDdKNce~^_y8h)z|BV-B&v2cVJ9Z3 z*`Ds|+NqxV^?2|R;JX66d1&71%hRrmF=GLNNj?g-x7wCt?yTz~aHrHnSa literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-003/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-003/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-003/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-003/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-003/link.out new file mode 100644 index 000000000..9a565a772 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-003/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin on guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-003/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-003/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..b50946dc5a9b8ff67a9d2d8ea18a86ac03e94761 GIT binary patch literal 1372 zcmdT@OG*Pl5Pg$LPbP8HnD{|7A2I$FqN`lN8wA}+cE$ue!Cb?gg5biPdlwR1yK!f( zBKWGijF}-2SAsp%ysqx5>Uve(?}Mki46^tcS$tBdzLqcJb000vMUeF^$W+EIr3BBf z(atWUejzHzdoIom;|#ekGAT|G8AzPRGiN|IoI?IU4nDel;E?mAUCYmK?M3ZoXxHmr z^?Oa1Thi9!F5nkk%#hl}b<=W4+esw`V`q1cC&x2syA#LtmRuX$6G?MjU^H* z!?dlWed=77I@h(%IqKs>`t(NsHVKNP{qIRxIEug2H%D%hIEEIi|AFF>#Ry9lih*px>CIW literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-004/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-004/cmd.json new file mode 100644 index 000000000..705809f91 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-004/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 hairpin off" + }, + "cmd": "bridge link set dev d1 hairpin off", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_hairpin_off", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-004", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-004/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-004/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-004/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-004/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-004/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-004/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..bd2b7419af06937aaeea8bb19fa3746b65281763 GIT binary patch literal 528 zcmZuuu?_)26r8=i3xY(@9*shwKonQ#R6ao~I_EA?s`wF!U!YKnDD+CdA~ElF6K->x z%--Ag=FRQAecjI|4?cd&$A^dT(OR#sbwrE>@OAc)P*$I4Lg@~9S;E=M2vJc+XGfhk z>w+Sk20Vz)b72Tw#W-tO;DNZKib2tLZtiXUdwu?GfKC1nAm1mxLlbyK1QI b1DlaIyHIPwn!wePJ8@=8w9Kr{T>tgItf4o1 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-004/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-004/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-004/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-004/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-004/link.out new file mode 100644 index 000000000..e8ff16ae8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-004/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-004/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-004/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..4940de910b9b5f3cc78c6953dd578bec16d4e376 GIT binary patch literal 1372 zcmdT@yG{c!5S+VZ}$$4N4kEsxErjVir}^Yl<6+b;WhXZAE$M;=iwWXfeW~MVTTj zVc=+Uy*%DGSh2Z;*o06Bv1QLf>?-bAOzV+^i@ig>uOEBFJN{aa{C>PgPA}Sy{-++v OKYRVf-~Re%(%4UTEml(i literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-005/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-005/cmd.json new file mode 100644 index 000000000..79a6eed42 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-005/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 fastleave on" + }, + "cmd": "bridge link set dev d1 fastleave on", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_fastleave_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": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-005", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-005/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-005/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-005/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-005/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-005/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-005/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..2b744c901c281ee6f823e96ca31ca37107d37286 GIT binary patch literal 528 zcmZuuy$%6E7@WJk3xY(@DA0%~6o^8hQ+Wif==>#~z^ix#9i50qt>hszI*FOvOSp|M znZ0lKn{RIC+uM1+^AX@10p8qHFQxh8kjH?zfWSl_rHU3&glB5xMF-B3Mim*)>O84) zXI=QGQ-BZYTql;mHjJSaNWoyS2HMP%yn*p~c8Ymf@>YxGdeyOaOL9F{fl mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave on learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-005/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-005/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..43f8bac854178897ffb89265170e216d48565838 GIT binary patch literal 1372 zcmdT@OG*Pl5PdU~NhWdpC4LY;i5UM1(Up5QdIQm&WalT~333%7CvfLdf;VvK4LpP3 zd);Ns3;{)OVMF!n>aMD;SJnN}f4C1(z}G0?oyy8{?W+0~;fQMq3XuaXHMS^K1W}!K zZX-7(SVlSUaq5io%5%x6I8z9rIFIMvfNnU2W}t)!*BxMw>#W^T6msv$?8az!dwtWn zZTZ}?wgFFp<0&6Ap>}!Kavbt@sziV2?)JgxcyZqD&~t5)Ym;Y^Jl7d+MH#N%=Y&2? z+ezN1!F|=aVRbH1A0Fz{1^v%RP?GoWk+L|-U-d1K+bE6+Dy~KePhUwcrk6&A_NsHh zIA=lHjj8LJqGA$N%Qi8#HxzTF5!1q>Zj`=cdSZInaM5tZuwr(p!xZD_`V5d_Vz4e^ z5JF7pogzP{}d@Az$xl*nK7DC}l?w O{#pA6fBW;Fsh%HHVN?+S literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-006/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-006/cmd.json new file mode 100644 index 000000000..0a4fcff67 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-006/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 fastleave off" + }, + "cmd": "bridge link set dev d1 fastleave off", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_fastleave_off", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-006", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-006/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-006/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-006/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-006/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-006/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-006/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..dab308c0fd8d89835a144292a213c4fa71698843 GIT binary patch literal 528 zcmZuuI|{-;6r5xeRQw>uRt2#Tu~4zFu(PtWwXqO8f8YtcidXOkB6fm}rB@N0$p$ow z4`%ar-@M7b+2{3q@)6)00p8ryZqd5*C}PB1Kw#pJQbn7nz%zC7;sa;NqK2Gjb(++9 zu`c}6DZ__!?sH3E8>Y|-WMHt_16}56-pKeoyCl3kdArSazw6n%rMVufz@%(7v)nBY zy?6$fCnv5y|6cX~>xC|FU}x=c))s4mJ8P9kCN-<=nXzZgn&9?m?g$|oiO(5P#7m-p d!ZD;v3ccBaT0`c7tED^9Gf!I9YwPQ;{s(g;He3Jz literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-006/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-006/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-006/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-006/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-006/link.out new file mode 100644 index 000000000..e8ff16ae8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-006/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-006/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-006/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..db8e36b32a4631cb94ba6f3d3a2481d684056d78 GIT binary patch literal 1372 zcmdT@yG{c!5S+`Mlgn{HNO%ZA9*FP;DNv=S;twK9l#Y-{e8K$+QYuPn8WgB#Df18X zNJz}u3*=6b(t@S+c+uvgFS(c@wX55f<&d?LN{lA%?w(GMXR>x@j_WJAHhCtJ<+{u*KgHGgywiti zTgmz~xG!~XXq^kxCx`UugZ>>76v_GzNm)3Gztp!tZqqo1h-{5Qo{mY*&`U-{d#SU> zI2|ue40X9CFENQy%P!IA8!}wUFtl*!GB(&$J+##|C@O9!))XVPi!H{ON8&O-jD??d z9*gi2$;0KD$CB!-7Cj9r8b_)wdevecb=4b++lo!aEyX=WdFkSRqxvv06&a|y8np%7x%o`pD2JhV8iM-nde4*9-j_K0`)JLI?shBuncp^2~?pFr@(-IkvCB`W4D}FCohRNX%gw)id>6XU>0aikGJJE z%4RTmvWffOzgNR@J=f%o^sGnD+G9>&&e~>36=u~nXVy%a6PPtJcMC4M`JSsn5ngUS f{Jo1x*0H?Vm0Dxw1g4hs#GP59rFX6O`mg^5rhPP$ literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-007/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-007/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-007/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-007/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-007/link.out new file mode 100644 index 000000000..f10059f35 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-007/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block on fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-007/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-007/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..892ea1778481aaffe74455789a8c369bbec9c9c1 GIT binary patch literal 1372 zcmdT@OHKko5PieY!+@hA_=!+uvgExMQ?wd?z~<&d_MN{puN?j6sLXVP{jj%$lt8$1(9b6w_^pWy0z&gsLn zt)zYG+?P7nwaz)}(?j}nMgJ}dilqIYNLe_FztlHJZnHRsDA*c>JROsqp_hyT?WN8h z<8-|!Hq_;sKw=W5mOY};H)ObyVQ3-MHoVd4n~I_C=M^^;tBM7+i!4T%N9-~{goVjE zz#_a@@^EwIONbo^g%C}97GhuVz~ZbPNw~y2=J(2|evPYRX*(0ZyY)Ai7 QkK~`-{NQhY{xhlT2cL~l*Z=?k literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-008/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-008/cmd.json new file mode 100644 index 000000000..7611b1e19 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-008/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 root_block off" + }, + "cmd": "bridge link set dev d1 root_block off", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_root_block_off", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-008", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-008/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-008/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-008/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-008/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-008/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-008/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..944678fb93d2afb4dc3cbc8ff6bde0e328bf76d3 GIT binary patch literal 528 zcmZuuyAAw&OlLsGP^YLa7-=bymtYSo80AHJrxMCfm4yBvqnS^r`5u>E6&Xzha z)&>7`YVaUB_n9TI4O7SogwROVK$m`=H_{$+myA~?FHKhKv}f;@=PFi#NzG~&8O=96 zGlR>MO>VE)2<~Q~L literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-008/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-008/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-008/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-008/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-008/link.out new file mode 100644 index 000000000..e8ff16ae8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-008/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-008/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-008/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..d232d552ed8091e363b694b5cbaffb1994d63b62 GIT binary patch literal 1372 zcmdT@OHKko5Pic;4+D;h;3r0YM*N{B=!%saSKffQH0(r3JONiR;RGJQ#1L=bk{fsi zjjy^(bS9JNQah=BUENjH^{TpGrVsZy1o#>O-l)`{D>tvz09~#{5cn2kDdT`rhUYhE zXE#z)gc=H-i}TJnGoFiN#VH{NiSu~n4CsbS$PDD+V=w}axlY=3{T%n6)NX-x!@=!n z*m1cfZ9Sd>7bO=nqIP}Pu^iHNQie9bQf+A`E2`LLl@t6AM$t{axgrcoc#M2qc8G6Ym(q8K9 zF;35m$A-FG6G}{?)Ur=B`i2ZwG7K#ox{M8~szL&n@faU2!#lH_AJ7oV%uU?k0e~;9rAts*dyNY*Lsv2Cwt`dvhC=9>XH1j N^I!b!&wnP3{Q$FhP@ez* literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-009/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-009/cmd.json new file mode 100644 index 000000000..ccf299dd2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-009/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 learning on" + }, + "cmd": "bridge link set dev d1 learning on", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_learning_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": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-009", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-009/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-009/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-009/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-009/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-009/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-009/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..3a34e670d5e5fb7eeb5e495146634e83596e1d18 GIT binary patch literal 528 zcmZuuI}UB`jiJ)FUui_QFfid2|(yN&Gh9yxp zO!Ai5nKzG_+1KNCwc+4r4nDl}o~_-iQ%6W&07qpXam7YN6PD_emj#T⋘#`>qOLf zGcPF9X~2f)9M_t_GDMIQs6Zi3fie9eFH|;T_ncQFFNybQ66oHFT#H#?+0dFEZ<|w) z&0z9m6OX@tZztt?uF0F~Sy!BO$eh5Owat(!%&Kb+tXVK8Fl%J)7F-PSJy(Pxyxe^F e7Z+aEvAo%tT65+Erk3=?omrx#cdhsOum1%@fH5Ed literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-009/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-009/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-009/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-009/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-009/link.out new file mode 100644 index 000000000..e8ff16ae8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-009/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-009/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-009/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..d577f1875ac67670c42f851a8f002391ea3e5e29 GIT binary patch literal 1372 zcmdT@OHKko5PdU4!+@hA_=!;zB8uOLuGqWs1|;gnuoEFMaX&}V#1j}jfFa(%C8uz2 z;;ZfwnF)z5wUg@C)m>Fxud4fP@ObYdgYS{S2bJ~L^40s3L5phD@bs4K4eIhXf+A`E2T~S};xF~hk=rDWAquueAy0=SXXquPKzpgP z$2e^-iVbzSCM!IMQp*m}=o>Oz$uP8V=rT4~RXw!THOMQjD6T0M)Go3ZVH&Z^01;+J z>nvvB#gd21GmAOZSuJ`Rlr@f2UG$2@EY?-8DsCv&6>EwOMS1Dszo&R$F~WjHnIbIW z&e7(2X|!*!Y;y^*384^T%btbUQQWmSsYenn@ecXEe(VwN_-j4#<7AJVUa}qiPd$=< NcKeIJ{q@hJv7d5PP~iXo literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-010/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-010/cmd.json new file mode 100644 index 000000000..6e98555dc --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-010/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 learning off" + }, + "cmd": "bridge link set dev d1 learning off", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_learning_off", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-010", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-010/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-010/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-010/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-010/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-010/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-010/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..d42e03a278a864ec17e9323980b53e96365f05c7 GIT binary patch literal 528 zcmZutyAA(;Q~3v#=qwVY%9lv|f>MY01EtnyNSw2?2|IC< zGjkv3o|$_ex6{!_fUgC3GpOGy%R?U+(H9Vya&L0*z@jtDj6J*#u3&XaZF zpH2xrq_dk@0^2Z!P9O(^cms6kXL%#zGj~aO1@hMMYP0Uzzh$`|tH7jWH6upzZ8w?0 zQN&BFh~hp( altg+z7yv^?f~%!Jac7>i?5^!zfAv4w(lY!2 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-010/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-010/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-010/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-010/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-010/link.out new file mode 100644 index 000000000..8d02cb2c0 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-010/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning off flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-010/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-010/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..90b3df8620fea00b05f33b289ad2d695c5d30eac GIT binary patch literal 1372 zcmdT@OG*Pl5Pg$LPbP8H7=MVyBpCk+(N*>?#2aLz3(3xWz^$9vc?=Oefj5xg4P53b zg0H&Em>C8XbYnyJ>+1S+y{hiF(eq;td3=pL-YL{x7jG)(0ovTlMBcX`TN!(t6?lG~ zcJ?5(gs7tExi~Gx8B;GaD^3|XNSywqGoTwTAS+OSkKPbC;y!8D_H#UYQM(!14SN0I zpyhH)+IrLiXJr>Nq;!4TvK-QOQi;*j-QAPycqVOk>bSPawMm`KG}k2_`3bJh=ZZc| z+s?F4o##^LhSs@2d3s2n?&#kkL78d)CsG!U;xF|rkXshV5G7lqklHcH8G6Ym(O&B8 zF;2&eVnbQ334{kxYS|?keM5#j8HN@PUB(6*Du;?iTV;cF#ZASM>LZI0W)Zs#5Mgez z4=@iemONaZ0TxtdwdiTEsBxs~B3CU2sHt36+)`{RHWYUi<)w@Nq2jT{2+I~_iLinP zN1OZA$+^Lr%_YP(ghGfNs|&HOcwjNBM-nda4*9;m?Gf+zs~));{=P@KIN2j7S8PZB RQ;+1I-T&ZkfBrLR><2D?PCWns literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-011/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-011/cmd.json new file mode 100644 index 000000000..7ed9308aa --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-011/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 learning_sync on" + }, + "cmd": "bridge link set dev d1 learning_sync on", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_learning_sync_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": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-011", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-011/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-011/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-011/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-011/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-011/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-011/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..072a027b4bed03682c80d557052857fbc48c1362 GIT binary patch literal 528 zcmZuuF$%&!5S+^;7|}wEt$2c-;0G*nnt4X+vHfaE=gdRF&1a8{oyf z;Ga$d9z^G`v;>x60XcyRG?E=Kq+jMuwa3`C;MK@WlkF~zZEt0+ViuS;tY*mDY9Hq_ zxIEcJ_Ve%c=)Ydz^2T=7rvZA*3EWv*4C&IWwkGNVGv)+tjm#Y(K)2X)MJU26td9CI dKrQcB-mFip33CEhOM2qYlxW#q+r9qke*k8gG9~~3 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-011/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-011/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-011/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-011/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-011/link.out new file mode 100644 index 000000000..e8ff16ae8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-011/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-011/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-011/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..7783abb6bc4129cacbb31bd1bdd8ac919bc456b3 GIT binary patch literal 1372 zcmdT@OHKko5PieY!+@hA{$dn?h<{Dc6?<3QfQ<_YD@8~=0VnVXCM2GK8yMmZT(b5S zCcf$}k(o@QOYNlkb#+%&*Q@G&n~X;pWbr++_@GjGUA=3)8#K8VLDsh*OBqL$5`NSw~KGoTw zzu|I=+j=|&u8J;ZNUihGupE+hQi;jj-QA1ycqVCg>A2pKYn^8zNv><$@?%_`&m(=9 zww0t$mHSfXn$|f-eSS!vp6K5uL6M~YGbsy4@t6AM$SsXyh=Q$A$kQpw8G6Ym&|d27 zF;3fyhK9Oa69^BY)Ur!7`i2ZwG7K#ox{M8WR1a-+4f2ZHio1#hwTmo9Sj5m}fCx*o zb%14fL&?MC8DK?qR*Rkns~ShDE_&HwfQsr>#XZHkVomW-QC_Q;+1I NjeqgCzy6st_7iuVQmX&} literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-012/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-012/cmd.json new file mode 100644 index 000000000..45bdce53d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-012/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 learning_sync off" + }, + "cmd": "bridge link set dev d1 learning_sync off", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_learning_sync_off", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-012", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-012/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-012/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-012/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-012/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-012/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-012/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..3c1882c2bc83946081762decfe4df1f8d7fe2a13 GIT binary patch literal 528 zcmZuuI|{-;5PiueB%(zywxWWCg@uYm3Og(BU?q0O1VnpJ;2o^&EWCjPZ(!*mynx`F zY`|o3;BDsf=4EI0ncdDd9Q@3|he78NZcck3qA!4>@{hP;1EL8_b;-*U#^Ixlnx%Cv z)OoQk_@@)VhUgrZn!q+JASd8KAx?oI{VFd~HgoraS0^utw`nrccdK$OR)Kk-HGM{_ z-6)^I mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-012/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-012/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..9af4fbd5d808436f13308de7ebc707f2357999d0 GIT binary patch literal 1372 zcmdT^y-or_5dMy1j{{Fd@Fzx5Q2f^ft>~?M0~#Acr3i^naId1Vvh)oMv9PnSE}0<^i7iM($?mNND^EAad} z_3TFK6QYKq=ls0U&xq$Tv;35igZR0=bP6=X1>_49;G;JHj=4_iwf!9TUQ};}di~z* zpx<(_C3QWX0_SDtGo*BN*RmYadXkCZ)ZN|FY=0)LcjmahlWUV_GSgfax#cIgI-5`0 zFl;;1Hg)bxo*SCy0_Eu;b@I0YbVyKU+WwK0g`?O@ehcK5#W6(5<|yRph~x~dWR$2c zdG_e1<3+KdEY}3WgDAP|5{>qd;Yx;~hC>&z!Me(!&8|UFaZPbUv7~yD#R#*AT?B|Q zH(3XmhZjp6F3tc8Dl=QOG^nZ{$-2ljivc!Ot}AXUHWeF+dy3NOVt=G~Vll#!MfpTn z#)G5H^~z-5VAaMFVh2JY#I8LHaiDl;F{?)6F42eVuU~7#JN{aYa&fXoPOjLB{-+wr WJ1g;>Ntf78N&OGUZ+raCq_E$ToKCO+ literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-013/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-013/cmd.json new file mode 100644 index 000000000..a301b45d2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-013/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 flood on" + }, + "cmd": "bridge link set dev d1 flood on", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_flood_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": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-013", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-013/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-013/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-013/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-013/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-013/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-013/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..af41969cfbc70fabf1208ff1184b8b64d58b012a GIT binary patch literal 528 zcmZuuI|{-;5Ph3XNJI-UwxWWCg+&yL6n0it9zZLx^ApfsJc?ey8;E!VORpmMW;bB6 zIPf;JGjCpIW?zrn)q{_p`S|eCe#V>m0!Zl#;A`^{SFBGopmc{k6L5|QEmV}%*-+=r zyx^Zs9UesIw6p}4VFo#Y5E|PI7|<{CQtdHz&v{ky_S;>yPi${xu3{FL)~#m5+v<>* z8C;%h;!*hbdiY;2aCsv;>yfkem=n0OHW|{TS#8aQH529pZjH mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-013/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-013/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..c6136cafec9bcafc902e9436d9c95846d61d0254 GIT binary patch literal 1372 zcmdT@OHKko5PdU44+D;h;3q~Ai1^n8U9orN0ZiDqF)TD97*D_vyn&jSxc3HzcmtPQ z#l%UAJ@H z>o#0&Nn4Mnz;VIFjHsR8HY|s@iNui~EMUToVcpqSUfYH2Q`NS27GO9J-7RR#lH|bq#WgD~fB1d9{lz#+XLmWq=qn zqjiW`czwyk1|^LnRTsT%F+@f6s^Yq0U9qOPr6@05{Pz?OEXG){C{v6@ zJUH51FOBvMmTfK(HXsxtY}&I3JBqs&C-q3eCEg+5*N;8o9e=Gyem~hGrx$HU|5K0T OpFRKLZ-4zWY3wKJQcyww literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-014/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-014/cmd.json new file mode 100644 index 000000000..79838ba7a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-014/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 flood off" + }, + "cmd": "bridge link set dev d1 flood off", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_flood_off", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-014", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-014/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-014/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-014/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-014/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-014/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-014/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..3085e0192b9d75308ed6229d53ac94b3eef32d2d GIT binary patch literal 528 zcmZuuyAAbSkA@B~*4-;tMo-zo6ELKM?T;O1~m;?#w3a z#7)lZeVluC?w#lTdh+1oYd+o#T95i>egVex1@N``h%443YEZgOo=G@Ih$hO)>a3~r zVqNf0rwR|Eb68jc+c1NiKnWVj7U4EB3H2rOsiHiWVGDH zW(Joho4Eh{do}p47r4Bkoi*jGUDgEdtPQ4gVOHC7WY2^(f!iZ<*AbwT@3|xt;pG+~ e+6O3`NZ#yBtq~)Et0i~h&Xj1`UE96>>VE)4X*C)E literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-014/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-014/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-014/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-014/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-014/link.out new file mode 100644 index 000000000..52932c4dd --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-014/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood off mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-014/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-014/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..572134fc2d773e6d59e989c6fca10e7dfc6ba545 GIT binary patch literal 1372 zcmdT^OG*Pl5Pg$L&vfFbG4X?_`C$AjL|56n@&<0)NOr~q+_}p|TnL^(ynqC6;4-Ih zDG0vmu0&@D2;# zd)@D~d~9jmfTzG|$@{dFE^k_nLsm~RG5mIS=Xkn5lhr%%T;IvH$upT*u8Z6XQ(V1G zwGe}0yP37Ab6@h@&^*VKzYnR?0qxI8P-fQtfs}=#*h_w6a+}7{qUdsDc{(CFLn|3Y z>Pwyj`Z*7hfuStdM8bn8x$F>)_K@L9hM|T>AF;u@%GPDqprG=a%2map?k5ft%wpgp zK!Ul+I>J1HfyCkCjIf|GvqejTiu#ePi@f15LQUnm;-+F#v7xx5D4j0$2Z~1y6D&ED zPl9FKdD>jBO!f^{T`U$`5DFIC?#yCOao^#z8i~79AF{uGtP$_{>l*o7{=P=JLApj> dF1w2Ury9vSYw?{)m$**J{13-(d;HF%u%BXEz>t2CmnfgHd(Nwox8Lp#`;qOf$n}^7=5?zX^0qpT z%nUA1Hj)1Qdp$1K(=KmfXU#ZkpE-d$Ym*^WnAO(kCop49;MU08F*JJlo-0BTUTzVh elSa#QEN|AN)|5Gct0g^gXP#);UE96>>wf_(;Wfzs literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-015/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-015/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-015/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-015/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-015/link.out new file mode 100644 index 000000000..e8ff16ae8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-015/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-015/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-015/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..d91828fbddb40f09b6a4f4d772431fb0631bdca8 GIT binary patch literal 1372 zcmdT@Jx>Bb5Piq7$APCJh{h-air<=`6`h5Zv9P7FF?1p%CieUkP5cGcS{UL#u;j0h z_-1!R?n0uaZZi9Jc4ubi&Fp>*o*z?4<9nnrqEdM;-i%%XG`SW*+P5G}8M~AMJikgi zyOEeel#%sZoYHH6AV z+iXL%Phq;`GRupE+hQi;LD-RpHuoU zZ7WHiD)*(%HLY`o`s9#4UC_Tpf+9)(CsG!U;xF~hklQqlA#%1xAy0=SXXqs(M|-KW z$2cu7>Kp2EO&~moQp+~c=o>Oz$uP8V=rT4~Q$4iRHOMNiDy}Q$)Go3ZVHSOt0V2$e z*8%3?^(7CNXMhFOSuJ`R6g7@iUG%cW02S4%ikpgc#hT)dqP%qRKTtff7@=fQrU*-T zaJ0Ez9`75h*jz$vK`4aSwr3&s6!$Go>ydDo%7NV*oFn<1bk?06JSWc$P2Z@+&$w}$cwkTBp#W&6}gI4AgUS75~J0A zl+IxDWD}3vzt`jcdY;Xjm{}vv+GkB*&)Q&07iKj*NA}EF6WBd6cK{FFY|p+>gqK+r e)q{s-8p)eosWoLJu(jk)+?f(Bvum^0y#5z>XEdV# literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-016/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-016/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-016/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-016/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-016/link.out new file mode 100644 index 000000000..f218b248b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-016/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood off bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-016/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-016/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..52425b9715857f95554fe02be5ef294c3df23b30 GIT binary patch literal 1372 zcmdT@y-EW?5dJQg&7JYonD~QeOoH)WAzG!k@(t41NIGKzzJTeh1#3aD7kmOG2tI&i zUPbVm-7)5l1GTVlVfNeEotd3)X7_FIc$YyIUn7fmDwUVgS@$MDlWP%VeG9Ubu|+Au z^Q*M88;L1I855q1bICYEo{OZ#DIf!hbA93r=!Rp+3dCO$L*SahI`LyH%Ys0 z=e*Z#xZL8l9#4Uzf{PhaJH2RF4oN$y#9-|1_Cb0)le9Z@T(8Kr&NGoD*Ew$aF|N+% zfj&&zO46sweW`Oz>l{!YAJV5M`nO0>B~VrEv_Aw>1iRIwUzmFBy5- zOPxK&X?aoKP?u|R!h^JLLQNwnx091=LY=jLw5P zZ{`L6bSh8~ozBV-ScW;|1bk@hBA`z{&zoq)*e&Ii$UE%z(P3bE%X1xOfmy|97I<49 z2gwXJPc{)}{=FIg*Yj-N$jtiUtX<{=_N+CAbZ%BtQ(h`enG@JGGIt0M?R3w+P=uFS ffZ*hzk#sC?)}+>$If1PuJ#lA_XqjD`y=L{lR|hd0 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-017/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-017/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-017/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-017/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-017/link.out new file mode 100644 index 000000000..e8ff16ae8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-017/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-017/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-017/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..7aad81e02044a49fe5029dadd11c95ecbaa2b936 GIT binary patch literal 1372 zcmdT@Jx>Bb5Piq7aNwy3qA`ks;>dW z;+x%3xyvP5>L$ByXXj(*&FsDnA8#|r;(KKAPNDuQOU&&D4kxkEQh3>RAM-GclRJYo=MsrI<7b5+N4fqlItvw{1{i~^FSY_ zZD-P_&U2~rs@6GAd3;Epp6K5pL77SaJ5m;o;xF~hlUo|c07YA)fZ7qs8G6Ym(q8K9 zF;2$|BSTrP$?>#Klv;L)M&FR(PKKd{Lzl6^lF9)ih`yk>sJN_HRJ+h(h)F~)1B96R z+UGD0FOoc5o;l2@%xc;A6^$cRm-}iKb68QiuDGVyRBR}2D#}Y2|6Rp>iy^8OWeG8d zdq1)EENbqIw38&(%!TXDx?T8|`L>>cub{n#Vk@z;8kiQ+wSa@ls&;Q#bU P{@Kef{`TiTlg54kH!V)z literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-018/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-018/cmd.json new file mode 100644 index 000000000..983076f65 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-018/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 bcast_flood off" + }, + "cmd": "bridge link set dev d1 bcast_flood off", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_bcast_flood_off", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-018", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-018/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-018/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-018/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-018/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-018/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-018/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..46f4cd46f071a3db1ab8119b0eb1376c6d633b2a GIT binary patch literal 528 zcmZuuI|{-;5PjKAFlq`>TSbF~h=q!Ug`JhB5X8=yfG6-KVy}%ikl+n0^(caGvH{KF zz}w8{&CAa0BfXv!Tzt*Nn?dK^*dEUcGx`F!I{Sz#)+g$4beFs=VI4kNC_6^yL7gY- zf`2+SD2UErWe9A;5^@41XhaDxq+jICv|{d-^Qz><(JqNc=59rR3WJ(uiH9eJ!!kjgM-6L~1;33TSToQ`#atja~ dJhZb&-Ylfnl##&Jk~?u{j%b-(o4x+(e*izRGVA~V literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-018/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-018/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-018/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-018/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-018/link.out new file mode 100644 index 000000000..849673790 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-018/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood off mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-018/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-018/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..c569dba1c4e2b8cb6ecdcd1e1c90684fa5e1467b GIT binary patch literal 1372 zcmdT^J5Iwu5Pi0@wh88!01@KnK=^|csM1q$14@MG_(b9az6NwiG_>3RA;bk}kRr}O zgT$NNNx+sRXed}|{dRUfJ8x#!FOT;(J}USc6?{-gpX#U2R}nf~%S0uxAWIqRoHcks zlXiBa@QE>xAl?YYsFPXbI?1gd$JP0~ z(}!u>S@cP{FLhqhI!Bbh59yPC9pR7!WfuK!Nm)3GztlG(w=#|~ssg zNidB&N1N-$VBcWI<`QECLLtVg)y3FQ+_YHMBMFzghrC}u_K0Wvb&p(af8QfN%lF91 dHQUku)FXLkA>WzY5_?k$|HJ;>?ee0PY(b9 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-019/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-019/cmd.json new file mode 100644 index 000000000..ddca88e1b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-019/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 mcast_to_unicast on" + }, + "cmd": "bridge link set dev d1 mcast_to_unicast on", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_mcast_to_unicast_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": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-019", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-019/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-019/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-019/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-019/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-019/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-019/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..393e26e0bd7bb6b54414e90bf03735d3d9dd343f GIT binary patch literal 528 zcmZuuI|{-;5Ph57U_^^xEEQBNEG$$6E$pm3g&=nRz!P`^Phg`*@CG6tK(O=*9zpO; zHej-3;B97S-n`7rzV6qv2ZO&Ee0ga+qSeu8jOhztbo>!ltV2|wbd$U|;2Z(!C@QOS zqRyLnL7q+s527=gTLQ~4gPcGC8tWa mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast on neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-019/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-019/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..504e43138b912e7bb47341c7bc36bcb4b1bad126 GIT binary patch literal 1372 zcmdT@NlHUO5Pd&CowV_*aYmdH<2*og<=&My$WlaCPT&c01&<)8OBdcif;*RPgy2mC zUsabe{}WKqjSbbWs=BJWhVGZv!*vdMe62j*DO8?DPp*zVcF7ANA1eqeYn3#DD6Y~@ z6`9Rr7JX5ObH_Mso(uJgQ$`LFr*;qw=!SjB4ipjN^a9umj$aZNyVxuN-1}N{5$qts!eCooIF4eYD*>p3BmtvDvbBy;6{l(qKF{=F z+DciU3iZa`%!sz0$wI0)?{vH!N9d6#v?R^fS_FXKVB*X^%Wl+bqt}OIC^Y z(&vbA8d1`8l;xTNwH2cD@`&i{4LNeM94!Kdj2&j^DSB_%XE<#*XIL`7L@~htnjr%u z80_!`3?XVt9wE;HhD~O-^qx_RBVCt!XB7*WH@RY1Gt`OEu4?j%p}chQ-!R-#Ofaq} zTY?GPhO)^|cJvNYnv2I0qy&#;J@Z&ITvzNhBMFz95#QIhGvXb;oslH;mov&W(=!V4 Wh)&eu|IA4K+1n5P_UAv7K7Ig26i+Jv literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-020/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-020/cmd.json new file mode 100644 index 000000000..83961c871 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-020/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 mcast_to_unicast off" + }, + "cmd": "bridge link set dev d1 mcast_to_unicast off", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_mcast_to_unicast_off", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-020", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-020/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-020/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-020/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-020/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-020/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-020/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..0fe3e03facea58e077fcef8d7a7acd6379918267 GIT binary patch literal 528 zcmZuuI|{-;5PiueL@|XJO9d4R3yUZgDeO{t3PHrin1Cnn2%bRj3f@4(8(4Y_TfsNk zfXR}9x0%nImz~+y<94;-;BOAT36HC>U7$$Av%k-Ca?`F$O(8*NHSnbzsif0&D_1 mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-020/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-020/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..83338c06f569c40d908f2369af6db5f772b241a7 GIT binary patch literal 1372 zcmdT^OHKko5PieY(BP;Deqs~_#SeZGbj9A4@d6}njIt9k@dRuc1yRpXmSZy9tq`S_ZKBaTWVn)HXyMUkY_P7fWdzaZ6xS3t6!U5qIgBuip3eXg z=Emy`<`MKH51(fS3o5f(E`CYlNY&-Mvcn8ERjw#*E7laNihGK3)5ZT#@z`O6C5Q5f zu#CQ^&GpK7-(c0{VzC3EV6p3T7Inn~htql_;bQlY_v_al@r=LLqf{^6BQF(NFjQ!O3nx zyBL^lHknM5>?6NkJoxyUk2f#fdu#uSHD>e$@U{7fD>fjSP&y{h1e~LS4ywxPgguQX z^MZdm4R{cp`Nk4hh85%lLTIEJFr;7R&9ukZt>D$jJEn*1nAqORT*WM~Y*@_-Z`)I1 zW^j43iTvl^yU~BWz~znYtaZ-XXHMYG+Ga?XX0 mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress on neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-021/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-021/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..487b29dc84e68f5d7afd1f2bbe33bee815cadcfd GIT binary patch literal 1372 zcmd5*J5B>J5PiEFCnhWq5Zjch8bOew%L9RiG6j4xe0fZtb=#VIL z6(ru+17ue#g$^v)&*S-c-i-a;d$zv?#h7S!(+vXXquPNPDSs zz&Ony?ik8)O`fMUqSUfQH2Q`NcQOnuJo=0c7F4#3Ao>x-dBsJ=qT0m{V~nBWGeC^- z?|mK<2s)C7&ohrnm02wpzoK!Z>T+MzVIE5=*VJxB<%VKiaa~bfy7+G^?mCPy?NF8& zGw6ES+|PcW8_c;oELI^DEY_UPVpDO;VOEbMT;d(_eGTmq@Az*$3OmUjdAaO5YB0P< VQXqrB?~(kow_p72uYV?ae*(63QMLd8 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-022/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-022/cmd.json new file mode 100644 index 000000000..4dcda657e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-022/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 neigh_suppress off" + }, + "cmd": "bridge link set dev d1 neigh_suppress off", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_neigh_suppress_off", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-022", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-022/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-022/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-022/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-022/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-022/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-022/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..58170ddefc64b08bcf4fe7350bc6d1955ca0a414 GIT binary patch literal 528 zcmZuuI|{-;5Piue7||lAtq{e+LP5nMpq(Ii0b4=rj0t!Gui_QN3y63FEAa&0LGVpB zV6tT3ZRYdlWoPzzznpD2_?v?-gW%EJUk3^yeE}Sme#8~)6Af6ZLtdIN4i9ZqEv@sS z&YN{XnT`(|qBGlQ0^6{HoInK%Q34F;7kQzwnY(4Y8hLSaNaB&cTajzA3M_oB=`q?K zN9hbEPd0JS{d+eq*K mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-022/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-022/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..b4edbbe3e1fba2b58c08e8e47c879c624b6e4a52 GIT binary patch literal 1372 zcmdT^OHKko5PieY(BP;Deqs~_#lI%VioFZt4M^M=WhY|d30QdnckWE|0-iuayn#!u zV&bdr0+|VkTkWLhb#;BZURC#e_Ftb;NaJUu@kOEXQMx{TvuJWH6Y0=_EM@F+77>J1 z+PRIy$D)i};NzS#&VYKElj0PRg2ZWDcmulO4DtoC2+_F(4!MroHNzD5-qmi3cHPd+ zZMW`oi`xd&0w)C@(^9&;t2+)!JE=r}?CkdO!<7s}3y(fygH@F+BZxkyxT3hGm{+^VVT5V)dFr@k<& zMZ9?0TrZ9G4VGOl7F!Ss7TZo|v8TB2a8i#XT@-I71@N``h%441Dp0yfo(VWdh&qbO>YS+a zWM1%3rwk9GGnrcg%P@nSKmi)b2I$ex^G4cZ?2_?H mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress on neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-023/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-023/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..8837186b3c8834bcf42a83e8c29a0dc0b710150a GIT binary patch literal 1372 zcmd5*%T7Wu5IvVmq2N^!e8eaUg6~IAH|$;c2P}A%x_yg*azi@5h znRZ0(4T&yT*rYw3&ZBc?+V{cJeF|y(j5IzeR9;FqAFmco?qwn!I*_f5JZD@xLq?$@$6acW@y*#-1fQ+ zpIh8Epcc3&_?VW`^kUpKzzeR#Fll~8+EF8sO>YF9ENgOTmu11#HA;}qf$;i`Q>Krgm zD~S4rvRsqlX@w}YY!i*XA;X;vLko{SV}o^-EhC6Nr?{rLp_o^@$YF$8^nC`1FgMy~ zFpr=wdH6gtSWubOa`8(VN2)IOl^tfVsd7cJrdU_3D())EOBeq`jeG3m2uluSiLi`E zPn-Ld(Ye8@^Rd{5P_Wo>I*Wb91Ba7(B;jK3knii)9`TO<)}vHE-Xkv;T}KV3-yE2fOr+J;0;8)fu&awe3K1m z76;yDK5t%jW}o-##e>1u4BiYHkLqr;G#Jwt!07ZNu2_etK*sH3E;&Wt)Q z)&>7`LU<6J)!Gu+hB@Q}3eeamK#zW&H`X3=w~SXNFWw)LII?%ka}}$=G_;yUMw?@l z&fxN76ZfBgZ~OoCe3v({vo1Jmn>B$uYmF(Lo7MIt?3u78aC>C#DtxrEJr{%`yvzaw dXCK`(k~ce1Ysg68YRR3rGbLJf*LJVJ`X9@|F|hyu literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-024/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-024/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-024/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-024/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-024/link.out new file mode 100644 index 000000000..e8ff16ae8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-024/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-024/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-024/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..4315b6bb2993890d089971592ba112661a559c61 GIT binary patch literal 1372 zcmdT@OHKko5PieYFax6^_=!<;Q2cA6uGpK9cmcysW7vt1cmj5M4HFlxy@3*M;F7DD z_^P`^WYb)~S=3<~qkCKf%@cH0i^% z?M(Z`JeNAJYn}6y$A|Rkoc=8ml$rK_BxT_!{!-sOxlQ62pkQkhP&*_!LoXQx+Dn~1 z#%Xy`-%yroay*TRQp+~c=o>QJ$uP8V=rT4~Q8{1)(T9r5imQqRwTmo9m_pxWfC$s0 zeGW75`jUssGlyA~SuGpCqH(0^a$nVA4r?mMiW`b`#hT)_qP%qR-&Z`e7-8O`ED;v) zXC#?yhFaPAA7_*{#uVR{bY}vT(%uG_&+_8 Oe|GVUzy0;kq_Lmz^-iMz literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-025/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-025/cmd.json new file mode 100644 index 000000000..73cce6742 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-025/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 neigh_forward_grat on" + }, + "cmd": "bridge link set dev d1 neigh_forward_grat on", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_neigh_forward_grat_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": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-025", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-025/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-025/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-025/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-025/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-025/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-025/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..f963fafd064cac6117f97b2e405f50b621a1e677 GIT binary patch literal 528 zcmZuuI|{-;5PiuesF)%cTMIvhg^G$r3Og&0q1dSjcml8D6}*82!2<{i+F5!A!8h4} zX34|oI z8>TauJlRC@_wUuHSkE4`hDL`&~l@AY5*3v8Y_R{#J2 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-025/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-025/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-025/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-025/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-025/link.out new file mode 100644 index 000000000..e29716463 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-025/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat on vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-025/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-025/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..354095903e61097e69df17cc95bd4c744e1b560d GIT binary patch literal 1372 zcmd5*OG*Pl5Pg$LPbP8HnD{|7nwa=kh=P!v3s>GCJ0WCeOhDY}A}0|9Pv8wCxOL?+ zR}p;GUB=81(1n5x-LI>?JDdf0 z{s!%=BC&)hA?vv~CyX=Xxy(s%@<>7AytbSH-EanXX`cqTK+b)G6e#?|>; z(1&T;ne-`BFLkbJoimijhxF-&{!J2;ne=}oW#K6PQr`@@P2w0LXKNJlbVzcBUNUmD zmpXfl)AXXgp)A(~)Ru`-%Qn&I8#3I}EqWRhHI7tWnfKOtBN(nisH7Symay3S3I=wBP>{1 zmI#ZuceJ@*8tDy|t!;=+2!#+^_AJD%;-1AxJ(6&-cgXkkZI5`zf9p}IAMcTq3$~+w W*&`|JZ}v$3+3gSh_UAv7`#%7OUQ<#4 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-026/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-026/cmd.json new file mode 100644 index 000000000..d15c8519f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-026/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 neigh_forward_grat off" + }, + "cmd": "bridge link set dev d1 neigh_forward_grat off", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_neigh_forward_grat_off", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-026", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-026/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-026/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-026/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-026/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-026/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-026/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..d25b667aba095962c31d63029e057d1da310c2e0 GIT binary patch literal 528 zcmZuuI|{-;5Piue7||lAg^h)u!a^Yt3k$8RJceRtOu!R(6|dk8M7)8ecoKuY*$rqG z2i|5rZ(eq0@7MFmg@>R7DwmIv7HGw^Aiz!u_)%3*dnX@Ladt~k=eDsSwSA-(G!s@6W deT;P^Z?>S;l##&Jk~?u{j%b-(o4x+(e*m#CIJN)) literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-026/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-026/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-026/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-026/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-026/link.out new file mode 100644 index 000000000..e8ff16ae8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-026/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-026/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-026/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..62d9a4004e7f1b99db0cb5334f9f705ba3c810e9 GIT binary patch literal 1372 zcmdT@OHKko5PieYFpQ%j_=!;z1V8vm(2Z7~;~MJGqDp z6JK?g$V^Cdshw26s_Lrh`gFgJ9`92~<9ns?L80iP6;EozvOzOw#Vm)#`Oa)OaS8taX_xKUS;rsndsP zTT1$rsh2)iwa;0~(@W-bPX87Q6iWI(uwnq087{Q{}*R*C403p}3_Os$FC;!aRm914LMu z@EI(^8%iE7&kUASX1C~RP}Dfmb&*RJGuT$StXNg7DOMEs73HOi|B>Q}#Rw}FWs9(i zJ6AUOwTa$f-R2Tt7g9oiJ$n|Qu6Ss1){G=v>>cub{Wv4u@z-XQ8pdbjS1k*7*Ywf1p(R3yE`fHen}j za%S($J@@RKJCEDt$9AL;?Kwy%OQbn66!!r%?k^^UnP($9cI$P>I zSr`84l;A@;ubCyV4HIYuaxhrMK!+ literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-027/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-027/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-027/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-027/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-027/link.out new file mode 100644 index 000000000..24a6aee0f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-027/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel on isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-027/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-027/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..4e68a21621f50572ddeac511e109d39fc27c5e38 GIT binary patch literal 1372 zcmd5*y-or_5dMy1;lNW7{E0yn1pg&LDtapmdpZ+Br3i^nK!gCi6_WFOrm}fD|OpN6$Gh3|EjD$il~91e|jn_3QX4+TPS}iGIVu{b<;7 zcZ>RZ+yyQRE@wck_t3H&;(k(z$=uofi{yMJ?$>r)+vM8do=BYQI!%6rtBbj246kh^ z9#f@V>Ri`4XQ|H*>C+A4yCf(QkAER$;VAJ^-z>Q$aSV{RH43;pB{{<=8F~6kojvC1 zdg0hmmt!)tR*6!}KGEnKGF-_p^l<2IY_OwxV5@78Q!Fd)D(2NMv>0L;V|N3DSedOe zScNy1d$@aMu%w4Ua|HJ_EfJb))gCyHN_)EdFc{=rr5L?V#A_LAvW>s zXmhY@ZJ>nUQ)}z!o+9RhIZAX)OBn4T- Q9?3tu{m0+_`Deo88vt=raR2}S literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-028/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-028/cmd.json new file mode 100644 index 000000000..5bf481785 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-028/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 vlan_tunnel off" + }, + "cmd": "bridge link set dev d1 vlan_tunnel off", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_vlan_tunnel_off", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-028", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-028/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-028/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-028/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-028/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-028/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-028/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..f6a51132ea6de78c7ee8b04c159dc607e3750535 GIT binary patch literal 528 zcmZuuI|{-;6r5xeRJ0IdYvHG`ND)7Ug`JfbuvhH-fp`F~;uXAsh&QnG7IuQ*Og5ld zd@!50`{qsd&EBu)laB!32=L~nd5c!jE5L}kfWV|5rHU?5gJ)Xgr3cPZL<1$y>crG} zurB=5sltbJo^wlJ8>Y|-6kxF40WtGDZ)AL)T{2#oyzP3k+a~sId9KGQFsWM2B6o{@ zlFs1rAz0l?L?W_aN+F?y_XRY(d mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-028/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-028/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..f2fdb1dad000e4468347430f90581d16658cb39b GIT binary patch literal 1372 zcmdT@OHKko5PieY!vLcq_=!;z1i^2Du5j(bxNy&!uoEHi1RO;ZPv8v<@dhs0xc3Ss zzUnTKnULsGJE?wM-Bs1~s=8mtPY)@i@jcS`pi+G)-MlyQXmc%sv~NL{GWID&c>XT! z>_%b=QAXBtanj8^COj9J7pH&}B+gsc8PE+^kQvCpM}G($a~-#9`zh`{t6iRUgZ}Ms z&~mxOZ9Sd>7X=qHq}IJ_Sq@1%sl<5Z?%wJAcqVCg=D6m`wazn!hNZ8P3xSYK0BmOm-O$Dph(jHk(7m__)C2=Y|q|2G~)(qF7U`D^?Yoit^IM|48w~VuV$TGDTR! zy`#CZHFv^cr5l8%Xd5mfpik@Xc;O zvpDcJvomjAW@aDh_2MJI*8;qGY2EAFK|y0eUw}ZFkGNtzq6Sa3$uj}xD4~h6XLaV( zc``5fr&EOw(Rr;bfn``gPM`>dT>|v!=Xn$5Gj_{(74qWUK8YjSTb}DN3(Trkv&7r_ z5SbZVo@^rh`S)h{Ur)Qdk)3tPS-Z>$+*un8sobo#=E#~Ua{{+U=B`7dlkK@E6yaqS fB0OodOvmzOXKIa^6S!K^6L;o`mff}8>#zO?f}1q8 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-029/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-029/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-029/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-029/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-029/link.out new file mode 100644 index 000000000..10850aac8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-029/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated on locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-029/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-029/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..c4e001f2c0965b8a6a9768bf5cc1dbbdb224101f GIT binary patch literal 1372 zcmd5*OHKko5PieYFug97PkofGc;#5O3g;jfn?v z#PQ>i=_&u&h0XmBlpq;El%GPWrN zc>X%=>_%(~P(sFYaqbvr$a9fNaq>t&;=Ht+0o`x{nSnHXbb7!(*HOEMpWxnu+U021 z?VR_zb(dSz*5fH~oOdw;YORa9Y|q{rm&`ZS+S~EQ>>`}mg@4-#eYxnz+#Ab zi!y~+z@?+j_2OvXV9CY`umPbEVAGxj*iqcIIH^YxF7gifzP{}d@Az*$O7x>Wa(cmb Y^fx_{!WsNskK~`d{orqZ{xiw%1EFPBT>t<8 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-030/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-030/cmd.json new file mode 100644 index 000000000..e662ca6d0 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-030/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 isolated off" + }, + "cmd": "bridge link set dev d1 isolated off", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_isolated_off", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-030", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-030/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-030/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-030/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-030/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-030/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-030/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..7a779101b7e08b870357c8b30c26797b585fab42 GIT binary patch literal 528 zcmZuuI|{-;5Piue7%@dqTZ^cOg+&w*5j!i7q1YJ{@B&(T4X@x0BzOZ$&ta$dCL7Q! z4!q5L-n{J0-m}ZuhJ&v;crgfXjcxDkU`k&AN97-J#ri}YmTHriCyc{G3sp<&OsMl< zUGPsQfDO@kt~7ydSVB&q0);pQ2K39ksj`{77Q7mHNxVywNZ+l@wO9off!6dGt@lwr zgUORkWIzAj4FBu7CU2x?opIJKYXWoDCR3_3tL{0lXU>|y?2)+}aM3CDToH=!3iII~ dU4(fgZ+4>An32HLk~?u{mT2i+>%IQ!e*i@IIb#3- literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-030/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-030/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-030/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-030/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-030/link.out new file mode 100644 index 000000000..e8ff16ae8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-030/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-030/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-030/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..22bb9a6d05b5a4ae66f61092bd42d623e4299301 GIT binary patch literal 1372 zcmdT@OHKko5PieYFu_kXB!5l>sPv8v3lq;_ z;;ZfwnF)z5wUg>sRb5qGpYGSm<9!Nge6KV0r_ALl2t4S)s^Y>|I z6^SiC1v$^fd1ss{&xIDnDIx`l^VW9;bVC=i16lYOj)7D1al4M6qV7rU3bY#yZ^omx z%Pnr}@f5f$x|ji_{%zaVkhGIdOy=$$oG*@Nl6DuaRl#<XAjKr4Q4# zl=P`mFMY0SpR<(bm(1yk{yi2bl=OdK$x@^EOMkPhZBdN@^0r3-Pp2%-&`VaH_R?pM zae7`D8Om}^hT1AodO08(eM5$vEJF*2E@Oiol>^&dgPh{F;;v#|?LvzomJqoN5Mp`8 zXRrbBSPxZ(%0q3Zqjhbh5I@EbF zFDTOq;X`!ZYfE4m637Wupm4~53H>5(p?t<}Ij>G$dN^ijY<6ZBDV7 z!R5&&?tlN@PRsSQ%bVF*hn#i5oWPy6#gHn@YHJeKESVFyH8OVujefr8ico}?TLX== d#>jLmZ?>b>oH>E3B|ULxo@m)!+r9qle*sfiG>`xQ literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-031/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-031/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-031/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-031/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-031/link.out new file mode 100644 index 000000000..058728e6c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-031/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked on mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-031/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-031/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..cf762c25b25e970009cf7154f66b7956585ae757 GIT binary patch literal 1372 zcmd5+OHKko5PieYFu!M`TxioGjuz?!fVA@Ky9#Kgoz*WSROH*m?yol6g3 z;;ZfgnF)y-P3)xSb#+%&*Q=_Y*U{r`0!e(2Bt9wBUP_nG_c^q3n}Cu6O3RzLRT%XENhlm$~IfxH_Bs zLkDGNujm;9#5Z63z}S(~GPr(=>cw33mf zzU0}XpSBkc4Q06|#oa1Va@i#s?IFXJ3_}fvE@FcXl>?hygN$NXaZ@p?dZEP-c??|y z2(d6-r?3cbC~>$rQ&>`&*`lREN&QIHMXp#(VN2zzVqLMJSX10nKho)9f24R~F~o{R z`Gi=-jib%=+H~Jw-TDZy1ECOL*PaD9P&~9auSVi7(ueG?A8W)r{#%U_!)T41T(lMa hjT%V;jeW^~TO)aAb-pv{65A=U|Ka3qPu`it^#z8qR*?Vz literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-032/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-032/cmd.json new file mode 100644 index 000000000..bc48e6589 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-032/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 locked off" + }, + "cmd": "bridge link set dev d1 locked off", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_locked_off", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-032", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-032/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-032/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-032/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-032/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-032/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-032/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..2867b2c0d0d1e345abc8f4a9c3ae883d87b4a785 GIT binary patch literal 528 zcmZuuI|{-;5Piue8Zkvs!A1)|prAz*3ky3Ny@uEs6+D4g@e1BRgEz1eEAJurCL1tW zGVnI@dGoR}`;4y_8xH>F;LD)%sPFEp66W*;a8&XUS8PbsV5u&7Ny0chv{A9N&Wk#4 z)&)g60c?m)YoiHl!y0k|Whg{PU`#*Hn=6~STgt1FcZl}KL#XeT=US`+%Rp;-j5en* znZe}ACgRM$x07N$*W^w0tRK$WXH8(v+F(lMX4O5-bqNdB1ZI!SU5ATay63V`gqNBR e|LkIrMDk`MYRwo4Of9(+cV>x}-nHIqR{sZc@G% mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-032/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-032/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..1461ad7b96fa7b783385bff6ca5d88ce9845af01 GIT binary patch literal 1372 zcmdT@OHKko5PdU4!+@hAsKh7=f`3iW6^Tn$-hj2@O2ov(JqK}P;t9NgAs)cQC5b07 z@l|(;%w!T>YA4mNtGlYYURC$o=;^^n2Hzut4=VMS@>SzKLYr$5WC9Dal(9=G!3#EN zXEzd4h$`})i*w32W1fqo#VNvv#Hn031G?c1G6OjT=-&W`T*vL&fzQ2XwVR>cpnrWc zXt~_twjNJ`PSM2-sh!`pEQh3>RAMxBckehoo=MuBIIbOXZSqVc$#s!iL5!>Oxug%% zwvzOzabN1(&^qU+PY>zS9sRo`D3bJlBxT_!{!-r@xutOoQLr@%c{(OJLoXQx+Dn~1 z#_4*|&`_6avfQl^rItOS(Klqcl3{4!&}D3}rg~_rYmir5Ra{prs9j_+!Yqa^14Njc zth1PhH?rY&T7%qpsaDE>Y`UIX0f4qO|hZaRIDrRD9TG0{{zJ%ixHMA$`oN4 z_l`E#mC3%rip?d&7KB2GZF?4CPjTO3T8|`L>>cub{n#Vk@z;9f592*@ddYV5KlMod O+3PR<_SZj?#(n}6%ulcY literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-033/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-033/cmd.json new file mode 100644 index 000000000..2621c8de0 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-033/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 mab off" + }, + "cmd": "bridge link set dev d1 mab off", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_mab_off", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-033", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-033/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-033/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-033/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-033/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-033/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-033/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..ab43cee0cde52b0825a49052a29eaaebd6ffaad5 GIT binary patch literal 528 zcmZutF%AJy5Pg6DZY;JCGztw{C=`f7p;IXwK_fcsCQhJo4_9yl5jRk}fI~>U+1bSI zk4fI&`7>|c{x{G2_2R+DFMND>={;II`>tWeTmau@A4w$!L=(pL$;%4P5u%H#QJoHT zUhE70=``R$bk18Pa12Yx2~=RQPk|xxGH+%*)^0hkPF}J mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-033/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-033/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..a167bc3fe9ab967b4fee92b98c51f371796a35d6 GIT binary patch literal 1372 zcmdT@OHKko5PieY!!VAD;3q~=4B!_Nbj9A4H(=q);6@RmTQ_qEFJR&cyn!L!z$I5P z@l|(;%!EXj+DY~6>aMD;SJnMKdU?trkMEJk2bKC;_-Lm0Zk_+U0%Qa>&|AB}P+s_fBTVGg-S+$F)VS4W5Z)xh`|dPjPiV7xZD; zRY=T!K~Zr-aZ52$yVzokc_c0a#8{ZD z11!QzBoCKofF;#gEqWSMG>%kV^s2=G+p5xvD<9mPFGdFkSRqvTv|%a|zLePzbSW&q5q19$K8$BMFy!hkRc@_K0`2bOI(fLa}fnFmNYOml81aF|D(0B}qZ+0)? zHYS;!*_m&?oteFzj|U$Cz7pWgOZl3g+}9di`l1MwG2)8UsX2J6LYxUWM}!j6p5?i0 zG#<>0{^QBQhw$vj7QiwLASaN5!gK*N=qGVqrGJYHMCwjUjWQZcUG&JVI3CJ*NaB nxLAtFtU^Sl;}Esj){T`vjCL9wVntnU>5)71gxl^OaNqj?>7F-D literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-034/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-034/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-034/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-034/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-034/link.out new file mode 100644 index 000000000..b0568f321 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-034/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked on mab on mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-034/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-034/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..d41e574be555e557d947ae862fdbd76a14f16597 GIT binary patch literal 1372 zcmd5*OHKko5PieY!+@hA_=!;z11SCybj6;PHz0ARxDp|8Wn8i11nyj!cmi)=h&OP_ zRZM)7A3@@Ak-Eaa~fed_f`@jMBal59UqV8GkW@y*z zUiEtoms{M{<0;U}yO<%Rv+IWCkhGIZj3(~x98HgBl6J?A>p8hrc_uT-b&)DR#?|=@ z>BF?`O!}0mmpa$9&Kb&+L;7?_|27HAO!_~PvTziCsc(kdrg03Bvo#8NIwmxji-F4k z5#~Pk0p{TiBoCKofCZIVEqWRhHI7tWHGvdfrsz{7GA&`NbmrHrB@N0$p$ow z4`%ar-@M7r+h=+``v~xj0B>$O_vWTIsbR)kKwz?uQbnI=z%yO)vIA$SppB|$b=K5* zu`c}6sl$hKPO&Ah4NGVR$}rd_z<_y?H#0uZZaJ?;-hR7F_CtHOBG+RTSk$d%g}c>Z zn0at{nne2Z?|AfIujKN^*6W5|Bi01hYl}yw;MMkA*fVEMaC_vti4vlG&Sg==%Oga1 clpi_Mn?0yCWiGf{x)W#SNz2aK&h=OS19k>8w*UYD literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-035/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-035/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-035/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-035/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-035/link.out new file mode 100644 index 000000000..a989b5994 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-035/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 1 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-035/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-035/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..04561a5a48c9eb4726e7992da73aab995e17a800 GIT binary patch literal 1372 zcmdT@Jx>Bb5Piq7$APCJ_z|Nh2Jo8%t>~>N?WheFMuf!D!Vv$0zre)8+J9h(|G<*J zV&a?K5xEOSJL4vMZ)f+-+`O6Hx8d_c3Tb?eG~Q`cUW=FYivUfoWg_ickfn@W&H_BY zN}k;y~10UT!aL9F>*Ys1|dr{sDdA;sc zzt?cN#kn3&fs?$88PYntZdeUTo>XEu@$b&j^mr!8J9b)6skO>8nMtjS-11{uozE?O zn6{lspECEQ&NZ!bhW6x;KHby5O@T6#{*RO_8pU7go1wO88bjo4jY6J|D9+GJMvi=` zv&T4XFB%xy@|%FWWunwls%rEO8Lng)G90>$4c65Tm7i5yQ`}I@DKD}ZVHN|I0V2$e z*8%3?4I~ejXMhE@SuJ`R6g7@iUF?#@0Gn!;6)TFiW8`hAy`v~MUHlIe>lPy{S(HzN zW!yN~T(6Ax4OVR~A!-l_A-3&Vh&{!9i_>}};bQlY_v^fny?RqseLWxdJ_39#z?+x)r81vBLJa5&2u%EuD{B#Dc&0&K9B_^tYRG$5r}zwU zXI}WHQ-Tla>>^8G8OG2FWMQya18w?g-oW^bof2M1-fFR2uR6B3G}mJm7?rGMj mtu 1500 master br0 state forwarding priority 32 cost 5 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-036/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-036/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..5e6a72cba17253ae2abde581848ddce155e691ec GIT binary patch literal 1372 zcmdT@%`QVx5dLm&&+Tnp)PIChq5dUh)mXCf23|@51jxXw3L)K0@@zi&BYjZQ*$>vMr}|B^Xf(!a?9g|hy4ELmz4f9Y?5wGFB VTqpXUW+eaY`WJuu z9xlwwzTMf$n|&mgqYDq;@bKcLb+506hbqR*1@KJzkyN5f)Zmyld1=8qN@$|&sLq@^ zPxb}>bON{#o%2!&9K#H90!0`^8=%KL&l?+;wOhukkQYbmO&sdm@?3{qU>c}qiMPcz zOg-2<*+la5?`8kLUcu%K)a#C3JM0N;uML(=&a2LxI5S~SV9$u}Itu7ydoBt^cv<-H d_u}XMR;??wM(hb}EqN1n=7^T=TKD>^{{iprIE(-Q literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-037/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-037/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-037/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-037/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-037/link.out new file mode 100644 index 000000000..19cc39615 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-037/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 65535 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-037/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-037/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..5fae960b60b9d361d191a4b40b5e83dc4df8cf55 GIT binary patch literal 1372 zcmdT^xlRKy5Ph4?Zk(`O;S%BsO1MD+DtZdw52z7TToMg!egz59!yh0-L5W1kchDht z&mN9l1yLd_%|4GkGoCkN@6+AQMG0kmjWS-TH17uvueTgFIG3Otd(c#4o>E5?w`k`V z3Ll3FRHG2*fpMO>FXCP(h5NQ(&3%yxm4z;@Yj*b^+TPi!=TNj$CGNhRy}#BuUQ)DM4_qI~wZ%P2k?SCr;vCoD^Fkk{ z?WO3`;JWHOV|A`j|31{G>bAo!2}+9om!vF?@>hK;^+R7v3nWEoxR*Rkq1}u)ME`7pdiYe0@hE2nk;k4nLp>DeTmkd`tW*G9QPljQf z2ilyEe6A-L^|?6AKolHi{hq^u;iAV*JyN*bJ>>oRwMRVTrylJy-e2^n)Xw)P=yl)G a|I{PBvpV0IZi&Ash5zBl+x~cGG{ZYEPgA7; literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-038/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-038/cmd.json new file mode 100644 index 000000000..3c1f7a767 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-038/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 priority 0" + }, + "cmd": "bridge link set dev d1 priority 0", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_priority_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": "brlinkwrite/ec-038", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-038/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-038/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-038/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-038/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-038/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-038/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..f112744390f8a20a711db2451cf4b958627f06b0 GIT binary patch literal 528 zcmZuu!4APd6r6TT2@+9P7aSZ!5C;c0C%++XXcJ%HSNwv+2Z%_xJG%G~iJ5K_y77|P zzTG!(y7TsNIUalj_(p&?H|=Y*e%)%AG8Yh-^rKYKBO35bhrIN_SxRW3>{%V$Yk0CQ z{L`t!hjdOWOJExo&uR>nD*(UMO-Yw7dSOw;Ft6Ac1xf`Y) zT%IOz`T6&1^k1*w^2XL{NUvSi1lMbmM<(ah_6*oFV@+^- mtu 1500 master br0 state forwarding priority 0 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-038/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-038/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..9ae066b2b7dcdab9dcb0a815b744e869503ccd7e GIT binary patch literal 1372 zcmdT@yG}wu5IvX6UKYG6f{z$PF@SFqw4$f7w4*jyiICXX@+%}Zw*G-3{(&XGV&a+I z5xF-c+8H<5Ju|yAvvX#4-zP8Q46^thS$t5bzm@OCeTz0_naG9?M3iyFSwavtXy-Ok zi$xXrz{e>KEv7t|xhPH%8AzPxTW>%&TtQYKhYdsVw7+70^m!$HgE zmb49c3UrD-rlofC&~hBoc2bGS+}*v4#qmtq?$UFukZXfyGSghwxfLe3dY=w`n6{f~ zpBne2&P}azj{5wNK3&tlOM)`f{!gSV9K~PinxvDcWRz%N}J$@>cv?k{)@z`-{K*_0L##d;*muP)`5= literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-039/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-039/cmd.json new file mode 100644 index 000000000..14c9c26d4 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-039/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 priority 3" + }, + "cmd": "bridge link set dev d1 priority 3", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_priority_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": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-039", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-039/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-039/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-039/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-039/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-039/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-039/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..bbd26a825ceed0d405c61e25b04b28a60b4f1002 GIT binary patch literal 528 zcmZuuy$%6E7@WI3e?cN>H7FDcM4`~ByoTs-mv{mX;3YIlg+edl4U`gk&mb{#dkMGk zCA0VKe)G-ke0#ebcRm7qBfy)R=C!uiKFSy|7Z8~Eqg2r$s_;yUy!gOb@@SyoS)Dy~ z?yL*{bSm&6ozvVB*oG;z0y!8gBcRJX%^Mk?XXk`hBrja9qOfQ0mgah_0+Wi>%yTze z_hJt&Pm{R({CnR2ua|Lo1MBrbuWi-@*K3_eCgs)kyx22lO>leUyM_$f$((bdh?hhO frA?Na@~1cRpJfc03$B*##F=^0va_~x{nh^fHw`#% literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-039/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-039/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-039/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-039/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-039/link.out new file mode 100644 index 000000000..23b7eb693 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-039/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 3 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-039/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-039/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..12515f08b4d21d4c833b1a11319da5b8a35d5002 GIT binary patch literal 1372 zcmdT@yG}wu5IvX6UKYHHib9N{7{Ip)TG3ni2h;{D5fV#d!CzSW_yYgH7z=w#JHNxk zGrJ>lZ%DK=ZZdmjW@l#SvHSY;aFan6-z$p`3iapG*-P1?O;FcgA_+xzMCIv&cZ=+?{#@y5ShI1384~4S+rJNxOEKq3%)brfApioe%mg zpIg#4;3;r4>tk9!X@4z-`9^b;vMN3)fne5XOtNxXXNF1H_`tz QBl%~yzxdl<|BP+NCp;)m;Q#;t literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-040/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-040/cmd.json new file mode 100644 index 000000000..f647da56c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-040/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 priority 63" + }, + "cmd": "bridge link set dev d1 priority 63", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_priority_63", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-040", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-040/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-040/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-040/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-040/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-040/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-040/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..10f8339a4cc4574089d2c93fab57ca791b94293c GIT binary patch literal 528 zcmZuuI|{-;5PiueMo}afv9mIQg+&yL6oR$2H_&uO0~XqP6|dk8L_C3(-oje&O*Wue z9C(}gym{G~eO%8c8xFqa;LV_S3)Zha5YrdHQTaz)u>sM7r9$%ZgmF~SMa|MW%>(dc zUGPuGhYiuWCz`-E%poV>K_Sh6A^kEhRyK2&f>$SRn{Kjgr0-VdTC4)f*P2yE%UzVu zVDe-W*PnkUqyKuY$s6lgJDfFSO<>O2W=fT2)jbRLOj#3{Ju-Iy7yV+-o=}8WSObk? dg_<+Q@@6Y)P3Q|uEx8kSW{H;GwchKm{s)hAHTnPm literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-040/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-040/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-040/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-040/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-040/link.out new file mode 100644 index 000000000..254710d66 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-040/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 63 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-040/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-040/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..416e8c68cd5f47428b4875531cfc6a9bece13e76 GIT binary patch literal 1372 zcmdT@OHKko5PdU4!+_%tRN@E40RBzT6&vH)8?ZLG0wHnhhQz&hF!2Q5zz}ZWlA~zi ztL_q+$t1cnc2fPix~r<|Rdv6OUY>kp@I5m4pi&!`y52?}Ev`k72`tD`#sQ@WFR0Vb zZX~7<734h^r_4ALo{OZ#S%MFVGrn;Kbi);72670{8vrL<$L(5y&%IZ*o1@B<;=}*9&s3^Gqbkb%k3&jH~nM(uZkV zN%~Z|FLiEcopaP@hxF;5{%sNzN%}vNvTziCsc(+l(l~}F*cydAosgWNmy81KrOqDX zw7qC(sLM53?p_k5mK~zeH)ObyVQAsdWo)pedT6U_kXPJP+*T~8U1TxBJccdMXy-QVn_9=VokBGxU0CYC@)?7j}=cXMp(5dQ-n1< zINDs7r~3x$HkS|$2!#-P_AJDq;*rI)9!a>^JLLQNu}8ck*`q4s{AG{)VZ299FWQd& Sryj{ad;G=U{`zMuJ3awot5I|S literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-041/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-041/cmd.json new file mode 100644 index 000000000..0b0d07ff6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-041/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 mcast_router 0" + }, + "cmd": "bridge link set dev d1 mcast_router 0", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_mcast_router_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": "brlinkwrite/ec-041", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-041/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-041/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-041/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-041/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-041/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-041/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..4935bd0378d2d913eddecde1ee4c2f8645cb969d GIT binary patch literal 528 zcmZuuI|{-;5Piue7%_zy8wyVN5_T;3YhOcmr=B!5dh56~Q;z zfXU*(+sx<9%g*d8yI*ZM_?d$bgYX&b*FzUG`T{sA|A;F#AX>0gkGwo#93Hx;TUsZk z&YN|?Kb mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 0 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-041/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-041/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..5429f9556ba422d96a0f0bdec733ed34478446ed GIT binary patch literal 1372 zcmd5*y-or_5dQ9tg#%7S@Fzx5jDU)gpcTE9mR8h;!bF6`Cm``H>_{xEeFH;$1511q z6TjIVmAjB&$tJVk%XDn<+);>3HL>2T$nz;B)Ow{qpqd_wEP% zmb+Wr*W)g5QE)j!S~m|Z%OU9}l^9Q*-94L~&m{fM9oK7et#VH!$#soOL5!=5d1MT) zZ6z5~;kwkhu654Po*vSt5#u`~D3XkSCS~C$@lxLmxy|AjB4=w9a(6;}Z zS5IRF-cau0?wQ7_+N>5M4N96vsxEffVj6pDR}>EvtBU)Ihl=vjCH_RQX)(gOMVTUO z;K|XZzWKXuux0fSH3)?eb+wNb8y08vNYcgLA>Y^B9`TGt>ybZ<_sH2r+tEeok-V3A QJ(7R+@{hm$^UtKQ-;*X$1poj5 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-042/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-042/cmd.json new file mode 100644 index 000000000..baf3d1006 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-042/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 mcast_router 1" + }, + "cmd": "bridge link set dev d1 mcast_router 1", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_mcast_router_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": "brlinkwrite/ec-042", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-042/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-042/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-042/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-042/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-042/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-042/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..9b4d7dec55b4655c1e74641bd8c80f29dca9c20d GIT binary patch literal 528 zcmZuuI|{-;5Ph4?l86?;XklTeVqp=*B88om2k-(SSoi}^;8koby@7}xKrFqA;G1l~ zWO3kaW@p~K%*?)Smy-t{KlAb7rE`zh=et2lUjSccA92O{L>)?Z$;$%H5u%NXvN{jy zyqOpL(~00gbml8dU>RnR69}NO*#iUmWnQX1#;!T9O5Sd>-R~0HTbZkv1*VbJ40&4| zl57T-C!4qx{=FRj*E23}WM_SH)(&$5ch&|&x-_e;!NXv}oWQM-xnmgg@;wJa5ngUJ f)Q$$NtYdkzCbh=Q30y7di91uGWp{1&TGamnNJcd9 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-042/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-042/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-042/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-042/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-042/link.out new file mode 100644 index 000000000..e8ff16ae8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-042/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-042/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-042/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..ff9d62d5b0cb65ac6d4117b405bd2ff314608aee GIT binary patch literal 1372 zcmdT@y-EW?5dJQgy*&1fM|5 zyo%sAyJO590WEc5_S@N=nVoND_r3popFtMiBa06zwb%0b>05*r*CNRJ7Gx=7lTw1` z*J)=rQd5Wu@}7%x%{T*|i;Rm?LQBY1i^I+kYZqcqWqOI?F9T!PWWP z(T8bUN&8f}FLiEcopaPjhxF-@{%sNzN&7#LvTziCsc(+l#&HZ$ur&&KIv_biFBt{e zOPxK&X?sy@sLM40cdJCHWrt|=4H>Rv7+N@V85=CC9@^>}3s7g>xjiP&X; z2vfs#fN6NKsj}Ub^`2DDGK|FlSMw z2=lmgw7Fgw?i(!HTtd_#6hbuYS%@vgZHwc2B;gY8kniiq9`TO9)}u_E?2*$;wxj>4 QNAk~}e(|@z{+TrP6QwXxiU0rr literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-043/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-043/cmd.json new file mode 100644 index 000000000..5186d7fa1 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-043/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 mcast_router 2" + }, + "cmd": "bridge link set dev d1 mcast_router 2", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_mcast_router_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": "brlinkwrite/ec-043", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-043/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-043/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-043/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-043/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-043/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-043/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..55a3c3052cf27cb604db7598931a61e0b3a21430 GIT binary patch literal 528 zcmZutF$%&!5S-)^jA$WhV__G?!a~Ku!p_RtABdn}Ou)+0Us(Hv{6K;~u=Fc}v)O>j z;lf<@c4sFy`^wV03lG2W@ZlwVc8;5ij|Fo9Jd=MUl^79iIA%azUa*b;ebgP*IZ)@# zzTlru3ob-wy;lOqu!fvK4F*vHjG0$?3*)l(D0mI>;^>sb6Mb8i>#z%~TB;fFwmnaB z4>nIWk(K_voBr4HZQe}1CiEJzC$PPCSuz!`I&PPXrg)b a(W9zrrPP`;7uZ_zCh{E7(p~Fb%lcnad^0ux literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-043/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-043/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-043/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-043/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-043/link.out new file mode 100644 index 000000000..e8e6187b9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-043/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 2 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-043/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-043/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..3796c98c22151139cc2748ad076191b8437673c8 GIT binary patch literal 1372 zcmd5+OHKko5PdU4!+@hA_=!;zBj7)xD;CBLD{sI;H-?3Y2#F`)9PUg!fj2P38@OcS zAzT>~Uv-zrOi0+$NzJS3uBxtI&&S~P*+&ZhD}^5lmG|QP=XHbzc_E|%3&P6UCl%lY zRqEM|#3w`vS6AL}-Uq@Gk_Fm`wQY_dO-)H`>%elyn!&xDe>E^{l0kOG%qD_odD?t#gL*_>w+d(!Rw6g_8C!Oj&Xid#P`RxlPJ3M9$VILQmcrm?MZS#ejfqPU~Drzn#y_D6~*79*@! zluv|JJh`;VuZ{K%)@|e=st_hb&7OrgP&~9asYl{2Hiw+AsXgKyv(_WOAMcTq3$`w^ e(j%FdX+4s6*5o^rDY281_#ghg?Z0_uO;jwc zGp5dqb-_QK5H>_-vDO5(VGdaV4+`4@&}UxeCCcX6J?B-)+i!P=eXQ?R=31-*(@<;r z+%1oB=E3C2B+|maSA+k0uE`r}uQPgWvnDXT)_J5#UUkojJrmXhW{>!e;G&z)*%ONJ h@(2)|T{JR(@@5xmjaU1O%n~g mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 3 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-044/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-044/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..54079713a4e0f53be93c7a15781a8155d08d606f GIT binary patch literal 1372 zcmd5*OHKko5PieYFyN>Neqt2G2>4IX6?<2D0@j9wi3o`&n2ndvjV7MJ8yI5Z#+^$N zS02N}SKTEt6QVBZr2BPMS5?=m>VE4#-lvep&q(8wLiM?Has3ja$-PXZeG9UcvCUb8 z=htXw6^SK489C3zxnZ0E&t;B_Q$Pw5=k(ke&ZQ(gt#g+0=#W0W)4xT6GL!xfq%0i8U+SABw{aW;u7VoG}Id`YfWnq3IXc&EWnQ9uElXZl5nwi$oKVUk9fzV^(Ym^d*tMz?dYWR WNZw0;-+Ltg?BgGQ`}?0sW4{0?3sY49 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-045/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-045/cmd.json new file mode 100644 index 000000000..d7a533370 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-045/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 mcast_max_groups 0" + }, + "cmd": "bridge link set dev d1 mcast_max_groups 0", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_mcast_max_groups_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": "brlinkwrite/ec-045", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-045/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-045/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-045/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-045/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-045/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-045/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..2624c3d7e39b6d4a303613ed1e60f00ac44dfbc5 GIT binary patch literal 528 zcmZuuI|{-;5Ph3XG@?Z?wsuiOETULg*jafE5k!m%p1{V^LwJSs79!#WEWL{0n`}U{ zWZ-S)^X6q|_H|D$4qW`q#fL%k2si6%1rz!LxH|iYE7l{LP`X22maq;VZPb*}IZ@}$ zx}Z!afCJIltPFu|m_tsW3XNnB4Cohm6YVf}%XxM3cFA_Xi_P7NT*WFd3yh}EXmNzT7gtO@K{TTJP~tfnVr&y+QR-6L~{@X*coTosD&a%-S* d^wG~Ed9x?A#*75EmfVRuQ=(;dZT9-F{{<=3HWdH> literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-045/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-045/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-045/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-045/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-045/link.out new file mode 100644 index 000000000..e8ff16ae8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-045/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-045/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-045/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..17e6019541fe36d98537441bd1ceb280ff59a4d9 GIT binary patch literal 1372 zcmdT^OHKko5PieY!+?V#_=!;zBj7(lSL|7F1Kb)GCL$!BfMd8d@dVz$5HFxC*}L-w zCcf$}keQIU)lPa|S9eu)y{hUNkDeb>NaJUu@kOEfTDpCE&!fq;Or(7avXpVeS%l}; zsAo44pAcnaJ?H0xekMGZxyVleDTtq|8>c`sv>{(010THsaK?39uj!|__o8}B)a&=| z2K|PMEw1bF6lfKk&ydpfeZz7{>PaR>b9Z+y7W*?vy-UaSlU%DjlbPhY#w|a_)!8)0 zc`$4{lQtFZOP=eR=M3ffA$4lezC(gCllD)fEF8sN@|z*IMI1xqY>q;nPDswsN=A$gS;cL|UB#U0MHVCEF?10i z!t!h#UWSXG(XqNPDe{YchDE?W$+r*cK{K(VU0uXv~^oi6sLisu$1tXq^% zgbh46+FWnW_6@ddEFo$T3L)zDEX1+miN!@V5_hpaWPklyBi`}XYLptrYvkmjt>}NM Yk-W1u- zpH34VL?_!Rfn``iPO#D8Ro={cyt|jYI(b=oIA&w*t;#jb0*j_jf@vs4 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-046/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-046/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-046/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-046/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-046/link.out new file mode 100644 index 000000000..f9a6ddb97 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-046/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 9 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-046/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-046/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..8136bf9e530f02230629a24de1e13cf814e31877 GIT binary patch literal 1372 zcmdT^OHKko5PdU4!vN!mfEqt2M!}D%yXf6eoF8mey(nu0?lv<`2slv=na5l@=3jR;B)Uq^@`N%_wEM$ zQx{uO*W)R0QF1;*O4s+NHixvHRAMx9clT_*KaEasl+Lxvtss%BvoTQ& zhHWWrQ|G?axutc^QJ!7Wrz-6`Oi(Co|HPCfN3oas=9t^O977arjY6J|nVg}OtOE6= z&K~`Ayl7}B%Qac<)`?QfF45==8FI1=H5|H#4K`H{ZFLRuiW`bsiUrk+EJj$s&_#d< z@s!VE5#CVZaB*g_q%x~TOM{B~k*bSavzW!U%5}wE#fIXJ;+~>Ry4W8no>+{qY*9WD zR`B4`Cciq}H(0Z=glIxi2+^`FlPR&2lKLM`-uC33iOn}pU``7F literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-047/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-047/cmd.json new file mode 100644 index 000000000..63eac64c9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-047/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 state disabled" + }, + "cmd": "bridge link set dev d1 state disabled", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_state_disabled", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-047", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-047/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-047/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-047/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-047/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-047/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-047/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..2dcc6f2c2fc730dd2278c10271a3fe233f013273 GIT binary patch literal 528 zcmZuuF$%&!5S-)^PBDcTTRRmC!6+6Mc2*Yp2vIDI3E0^B6~EvQB=`eM|KJM*XLA9Q z!-cu*?aoei_nz79>cYd%JbZZRKElI$r7@!~fT!}0xMBmM1xNMB%LCR?LkD%o=wPk! zVqWl1rwJFLbKV;Q%dmu;fQCYx0z>*$-b}fS-3wlWyd*xRNo0Dfavf%YMbl{3c-x$! zdzteG<>uxn)Q5I*|Fp0!YfS6G1H c;urnOo9(DIWlmsgNl)CFBU)zHX0K)aFP6tLtN;K2 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-047/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-047/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-047/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-047/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-047/link.out new file mode 100644 index 000000000..ee6b04c3e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-047/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state disabled priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-047/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-047/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..8f3e568d5df71201c4999106d2d7d3effed873fa GIT binary patch literal 1372 zcmdT@OHKko5PieY!vG^9_=!;zBj7&)S1e6TOuPYW!-7OUi6`I|u1!3FH!#E-xa1zL zOnlW{ATuG+rFK&Nx~i+H`&D(nPhOrAA-825L*#6YLhepU&M-Oz$uI~M-Hi=)RS#_jgRJ6?;+|qo{UVDIRxoxqK!n14 z9bgsS7(B(@Gr*eatQI2;%9=;2E_%gcfPK}giie6d#RJ77MS1BGf2Me0F~WvLnIdfB z(b495Yi>8#ws#3phfoO7uzMj+6i+QK>yf03y+gjQAA7_zW<8Rp@E3ZN8pnI&^pfr9 Sf9jF^vzuT1?b$z*#(n|d2v5NP literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-048/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-048/cmd.json new file mode 100644 index 000000000..fe6397bf5 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-048/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 state 0" + }, + "cmd": "bridge link set dev d1 state 0", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_state_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": "brlinkwrite/ec-048", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-048/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-048/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-048/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-048/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-048/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-048/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..3df552c0cd4cc9102a1f2338493c8c2ba9a55908 GIT binary patch literal 528 zcmZuuF$%&!5S+^;L@`A$c48w@EG(i}q_DHH@Dn0fs0sK2Yk%Pv{DB02V5eUZoXrI^ zhYNGr+nt^4?mdd@#es{jxp?yu-=m#+`bg;u;Og=tuGolZL+Jr|WxzTb=%J~MPM10_ z<^}(BLO2ke^VSeph9%?#d}!=*U`)TxOSQw;t>U%F%l3ynOH6Ndu3{EgghsQ$+xnQ4 zGuS-YMDg?Q&E&tHXY;0J);?#AnG@Kvb{NvNSxwD~HFM?!c8$y(!NaiHvo93kRTdyP cc~!siW;wNH%n58Q>4`g2qGfh%_WG;;0dYSyV*mgE literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-048/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-048/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-048/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-048/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-048/link.out new file mode 100644 index 000000000..ee6b04c3e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-048/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state disabled priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-048/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-048/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..f318280a0893d41fb1235684fe7b9bb05b68ac23 GIT binary patch literal 1372 zcmdT@Jx>Bb5Piq7$AKpz_z|NhM!@d`t>~@%2h@hbM1;i3l0RT#XJTjKFR-&T#MoF` z@>fiJvpXPnA<`;pE z{2KkNAu)w0BkQ?5x6Cu-zR0vZ1*9N(y64V;VK{}%Kn6ZKJ>Y=rxL?yx(e|Q#GxY0r zE_>aEyIb7X<1TPga5+P2XIBl&A?YWT7)+eqKAN7-B>j#Z*E@2pa!(}5b%7>7#?{3< zGlti;l8mX)E_JSJoio%YhxF-<@huV*Nya~tvT&4msc(kdrg03Bvo#92J0v;7C>c5W zOPxLDX?aoKXl(*oE3`{3+eD*p$Z#dYAW(ESHds?Vv>6PtimQt2iaGU*EJm0`-`xNa z^5b=YIe2~W6nD=6^QyC2j5H`|9;v$MWs3neRIey*DOMFX6}J`TrAz$2;-SR|ixy>y zu!MU@o9pGV-C)JuB}5HEAw=Eoh1gZxvpB6sk}mcR`M!Sa5ziR)NS?x9=uxU4?~&7s Uwxj>4NAl0!fAP0R|4bVD1!_Z5*8l(j literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-049/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-049/cmd.json new file mode 100644 index 000000000..988bd32bd --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-049/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 state listening" + }, + "cmd": "bridge link set dev d1 state listening", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_state_listening", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-049", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-049/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-049/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-049/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-049/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-049/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-049/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..897d797f069b4152bc14eeedfd9746bab040b052 GIT binary patch literal 528 zcmZuuOAY}+5PdT}lOZewTRXpn1!7^r%E}FFiH-OrPT&k~;0m@@B5q*m2ChKjz3EAq zj!LShy6V-Nde!&q>F6WC*8;qGsohG;;VVL)u^fSkKMG|{dJ&$f6Bj3(BZCUEp5>X4 z=fS%CA5Q^3#PeKO0NXHzP9TE8Y74X&r*VDbGj~aFIpQ{}^>)*?v!$^ftH7vWIWxS? zcI{Y$i_<2qKmVS0{_}+{u4}bUskO?Q+|^oU%A~Z~o&$RZtjXOT=`JBeBiVB#h;WJJ fk>7`$SIYEeXL9uz%Uv$b#GQHKvb(l>{pJ4v053Wg literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-049/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-049/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-049/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-049/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-049/link.out new file mode 100644 index 000000000..1074aa9c9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-049/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state listening priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-049/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-049/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..7f3f013470077106d3226503e40ad204d71dafe9 GIT binary patch literal 1372 zcmdT@OHKko5PieYFyM#?eqsd0$j5JjuGqM8PxX^^F znE0x@KxRUsOYNlRRaIBj)T`=#8$CZHki_>&;*(14rFeZ-%ArMBHj=&t5oPUh7vTAI z`dLHl6QGQY=knY!&zR@3=jF*G0m<`z3&0*l33Q>C5AsW3yhLS8p4~MQ|gOcijjW@_BZYpjmX4NmW7-A6vR{=ug zrg92P@CH(ct22dV)!8jZ8Wc5;bY1ka#T2$xuPE*+Ruy*?8;Ww%CH_$H*kXuPi}DGv zhDS%6^7_i`+xruODZ`e@td1SK%+rC^3l6$ms<; T(f>3fd1oKLc-xbACWHL~rU+CF literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-050/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-050/cmd.json new file mode 100644 index 000000000..7ef5c7c29 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-050/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 state 1" + }, + "cmd": "bridge link set dev d1 state 1", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_state_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": "brlinkwrite/ec-050", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-050/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-050/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-050/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-050/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-050/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-050/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..ebb4862e7460db42d910d9646186bf3836337b92 GIT binary patch literal 528 zcmca|c+)~A1{MYcU}5+RhjuObj4%{%1lI0JSlAGJr@126hH!hMar`1|1+9RhY#v!fv15L j=w6V|Kyj7~G|L3Y24QrwKyCtt86(InNLWL{71?|M!i+ib literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-050/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-050/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-050/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-050/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-050/link.out new file mode 100644 index 000000000..1074aa9c9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-050/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state listening priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-050/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-050/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..3fd2ad779e0c6d0be23172ca9b981fb22d2df0cb GIT binary patch literal 1372 zcmdT@OHKko5PieYFyM#?eqt2G$j5JjuGqWs2CNM$MM#VXn3eY+(F^Fxr6JzHB|Fby z;;ZfgnF)z5wUeG#Rb5q6ud4ff^fXK%jqjDlCzbkJ`MQ5sK%25`q=q*p%9=;IE_%gc20N-(755Ztio1$UMY-t`f24R~F~q7x`Gi=* z(9x#6KD8Tc*jfVAArt~M>{);V#Y2npW+dri_mKDN#~JY-lNrfX_zN>iMe!Lqy<{i) RpJpWQ?By44d-Bd?uwU!oRw@7h literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-051/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-051/cmd.json new file mode 100644 index 000000000..a40bb9356 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-051/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 state learning" + }, + "cmd": "bridge link set dev d1 state learning", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_state_learning", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-051", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-051/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-051/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-051/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-051/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-051/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-051/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..89e9c9b73f895c66499f1b94a7cdd897d25ddd56 GIT binary patch literal 528 zcmZuuI|{-;5Piuen4m>aTRVS+g^GoRot4)RLGcToz^ixy!4oLr4Jhl zxIAs*_Ve#q@4sH?^7?kxJ7=vkC%Cg#88W$9ZOw}{BjyCRMsrsXqLuBrAc}aIl~6i_ c>{q+cn mtu 1500 master br0 state learning priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-051/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-051/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..bad6c5463c777f676cd3eea2372bd238ac2012cb GIT binary patch literal 1372 zcmdT^OG*Pl5PdU~p0siN#t(j?5#wL+vvTjs8@LvC#soaU+(ZOV;0+{r16SfL+zEoO zswkPM&LaxDPk-;%+ zon@OQ_l4&zo8)tWVm8jGrdeP!x-`q0Wyq#uTxAQ z%E4PgoGGSECR?<0sGA>QUF3#hidB=FhUgW_p$-a z;=tR?&b)bOM;`&c7U0cG{T?q5lL!O)0s@nKYS+a zWM25EQ-Tla#0yJc8OG2F mtu 1500 master br0 state learning priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-052/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-052/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..98dba5f94bb88017fcf87912a934a100b9c8ceb2 GIT binary patch literal 1372 zcmdT@OHKko5PkFMVZc!le=&++MDUxSi3xjGZe6i(VGKJF5>LQQjEN`k28MV8mt4if zSKS3NBMDpWr217=S5?=i`*ZmA;v>Y*3h_mu{;~Q{p}Iw02w`ABSXqap61+g{tRl0; zC?oH=I8DYG@my$DoFaUCUt}YN0o`y7*?}Aabo;<5`Ltat@Tq%Oy9L_yx{v){)8&@7 z^>_+g6w|uGUKisPRlFTk9HCL8?~gb3-4dZ7J(h zrC$2n&_3rVPcP~JE&bapP$=vF%95o<@t6MQSR2iM)fl5-dld6@#NrISWEE&HefAiq z?Ii=Fazt&Fdg*0{X!H#ka@s^u0dXLTX9#hpmvGH1dABB43J=H!bez! zHvn&Oc}7@KncbqN!K%iQu8Ul@7@?waRdHXjrnslrP?VQ0{wIoO789&nlr6yqo?Y4G zHz#_7Et^Y>14s!m>h>(gk>at%Su>JwsdvctHFrk5V>}~y3V&fn{vbUgCztF*|I>`* PpWTJ?|MvKw$zZ<$6Z1)m literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-053/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-053/cmd.json new file mode 100644 index 000000000..36047f96e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-053/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 state forwarding" + }, + "cmd": "bridge link set dev d1 state forwarding", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_state_forwarding", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-053", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-053/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-053/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-053/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-053/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-053/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-053/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..c0f775b5a58863bc1b8987e5323b1fc8fe00a58a GIT binary patch literal 528 zcmZuuI|{-;5Piue_$@?j?fexADi#)YR^Gr`EW}R&;sLyhSI`rPcmqqXBKTf5pjjN4 z&FsvZmwB_#`{nE-z}Eu2d1*ar+r_$w31c||lYA7)y7VeM(iJV4xK;_2D=#OG0x&9#%J!9;!4CtyL}uD>}*-A$0{(ZSk63e%flei z;NrB2`_I2u!~cAtiyK+3M`~@dCU>>gnKBuzw&%*8DQj}KN4jeW(Mk856GXVw$|#>g c&MSR-vnRR6jO8wuX5!8~aoJtlz5eol0I7B|l>h($ literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-053/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-053/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-053/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-053/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-053/link.out new file mode 100644 index 000000000..e8ff16ae8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-053/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-053/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-053/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..319ca8ca81d85e88c25d369943d7ba941415ecd2 GIT binary patch literal 1372 zcmdT@y-or_5dMz4g#%AT@Fzx5L-Vk) z{S%j4($?cCa9(sVLu!{dCzeCnPAV~+y1RQiJDy3~ojI=02}5Dj}4VqfvV;;bG?xWqf;`}(m*yyLI+C=(}pw P{Il^d{`S{Dlg54m)D}*W literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-054/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-054/cmd.json new file mode 100644 index 000000000..fc2c2698f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-054/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 state 3" + }, + "cmd": "bridge link set dev d1 state 3", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_state_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": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-054", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-054/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-054/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-054/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-054/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-054/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-054/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..5886a0b99dda837bd0f657fa22e377ea88fb0061 GIT binary patch literal 528 zcmZuuISK+n5UkzV#q|h8P0hRl1Fyh9Oa#Gih#+`^FEBFj7k^mf-Tl?Ka!}u489QV?9=ZNzrmfyv+}t zSc8kxChkA~UUdKSg)XjVwN9zE#+uyKT4BnhwA!8}dq%9u-5%*KBSbUVb4C#15-Xr^ d3^}j#>CMjM8Zef-T$+hH^TcI$ZTI@i{{d*^GByAJ literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-054/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-054/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-054/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-054/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-054/link.out new file mode 100644 index 000000000..e8ff16ae8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-054/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-054/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-054/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..ac6b4a594d5863f1b8f5bd2970fd6066f08538e6 GIT binary patch literal 1372 zcmdT@OHKko5PkFMVZc!l{KP1T5dnV*x-jfrc>@-%3_B4L7p~d4@D3&>p1>Oz;tgDK z6%$`|m&!~?bg7+Gzpn18>Uve(Z{z1jA0fU+h<7TD*YZ{M!b68^5rlySS;}ZpO7Mav z?d(Qoicvw{b8*^?GvT?&tT;vZkT`7{DGca_bI1(j5THK<4!KU-bpoGzFKRbOyFveY zIB2`v(zYH?fwQ8E8B@EwXh9k0?06+zL`$ozE?O zn6{OyPmTLh=a$wvM}2xopYG`2B|(v_{}U+-NAZ{X=E!Xp#~1}$qnM`?k~8#@QJ}rl z*<+lpmy8T`xhCRnjVQJ35skhf!<7s}3x_UagH6?ATU~>^;)Y^Xv7mN|#RT&hxeSnC z;cFdX5#C7haCt^pQk~VJr$JfcNYzEJSd6fxdQEXhv97qS*i@94F8&9KM-~&TSd=Nj zDjpnduGhZy4c2WgF?JyoVl?boj6KDDi?ezp;ZpCA@9W1N@s7XNBY%|ck<&}IqyMQ# P^3U#n@wY$!nKbqTGkr~- literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-055/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-055/cmd.json new file mode 100644 index 000000000..99bdf302b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-055/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 state blocking" + }, + "cmd": "bridge link set dev d1 state blocking", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_state_blocking", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-055", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-055/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-055/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-055/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-055/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-055/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-055/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..122dad91a18240a1e708d6746c5c04fc65861273 GIT binary patch literal 528 zcmZuuOAY}+5PdT}6XUZGZ0-CO76^%jos|nXfLQq^4uGq;f*Xjqfu#eugGjtLJqgoM z$?K`EdiAEN`hGp1d<6JffHyDoTY351=P;x%ATaSquB=6r;F$(_alknuRFUOw^^;Xn~v=*&GncC#zm_c@iyCa z;u&0?HgWy=_q_XGFLZf5JF7Y5P-9MTXRR<~QnT8cE^9{232u$%E+a%U*>gq|@e(Vb da17b6VtTVFwfgi0S4%x{XP&g|uI*lb^*^0YGVA~V literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-055/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-055/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-055/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-055/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-055/link.out new file mode 100644 index 000000000..e8ff16ae8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-055/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-055/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-055/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..639b1a89c82d78cc5aa838b2b321dd4894e0b931 GIT binary patch literal 1372 zcmd5*OG*Pl5Pg$LCzCj8O#C1kjU*=V2hmmbuDn6klASRDFW_86P|ynq9zcRO&|NOz z$`c5_>Mmnu2q*|*L-p(GuBxtA)%`rYzeypDuaU+(mHJcZ?6T^i&9w;9z6DvzXi|#s z{08mpMq&z3M$U6_t{7*;bCGFr3P?fXY}iO?pKdsT%s>`CdIMme>$qLpPjT;2?Ph4# z@0}0&Etgx|*5fH~TyQZ1YNr=1%OPnel^9Ok-94Nh&m`@R9M?N?t?^7G$#s!ievGU0 zd7%%}wvzOza9`@&)H-LWPY&tREB!kpD3bKQC1v3#{!-s8xlQ93Aa83F@N`6ShF&uA zw3j-2jMMSL$WWJSGTf~YrIuZy(Klqcl3{4!&}D3}u6kgrYmif1Q`}I@t6gX@#4IA0 z0Yc1;*BQ*iizE-1X9f$Zvs&~tC}|w2y69z#8EmRvQLHM~6t@%`it^IMe^2qiVu&S+ zGKE;igQLy$%6Q*k)#egl8$uyK-JS*5QQWmStw$0r_73^JzU>k3_-{Q*Me!avy=Xi7 V*FC!aMUUj4z5U>CfBrLR><0-2P9XpQ literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-056/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-056/cmd.json new file mode 100644 index 000000000..dd25e5e47 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-056/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 state 4" + }, + "cmd": "bridge link set dev d1 state 4", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_state_4", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-056", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-056/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-056/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-056/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-056/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-056/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-056/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..b6fda5f6869bf3733f60391401e807fe25d194fb GIT binary patch literal 528 zcmZuuISK+n5UkzV#WN5!HS-D#R15^ojQoZed4ezS3;F}Upf3;+Gb2NvVJcX)v!FZJ zP_sSV)wSI{kIV7kBf!@Jym_fzOY_q%i#~k;fr&nHWlf?8&(z6_0?v^}1sTuk+^F+p zUiha|fDh>mW|qJ*jG+@q!CQWT7h4|r eZODEV)0>VE)S88lx2 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-056/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-056/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-056/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-056/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-056/link.out new file mode 100644 index 000000000..e8ff16ae8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-056/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-056/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-056/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..a206cf97c450b9685e87206a4e180f4433474a43 GIT binary patch literal 1372 zcmd5*OHKko5Pic;!+@hAh{h<25dnVzU9orN%8d)whJ}d;2`Atvns@@^1q|^9F1d<{ zuewWQCM24e7(1zcUENjH^{Tqx#!n9^1o#>O-l^1Hi?^jK4{feR5cn2kDWgFt!1L?0 zvm1#iL>XDn#i=vSgy$mj;^dKn#A(_{floJFKxQBVAH4x^%yrzZ?Wef+qIL_k>-X*k z{g%ruZtL+BIM2J7A+_sa%W_ECNhQWJcXvKbGfHx;)Pb7~h^jIfB2%K#CU zrt378;f*8@muDI)sf(SN;)%^R!NDZO^s6WCsxESZv5omp~b#-6~Q5#J3|5a)ZY3PpH%ga}VQ a+GMEKky;bx0$WSo#GN^!rMuR>7WKdBc{ck1 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-057/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-057/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-057/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-057/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-057/link.out new file mode 100644 index 000000000..ba6c8bec9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-057/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off backup_port d2 isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-057/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-057/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..4a705dd365f075174299a1360a719d79c8343179 GIT binary patch literal 1380 zcmdT@J5B>Z41Jr;Y$jnLA>ktgf$&ZENr5U2G*sMx5}|Y?Akib`C?FxxP|;8#gt!4E zC*TeUo@WeXSCP`fNZvR0*j_(-=JomhI)f~JR~8>s)?O;7S9?XYxEDb-bRb(<4N4h7 zSf`&eq&^l^ehAFAg?&9IImbxzt~}nQS^KT zh%xrFk5EL=lRA8z5yn+#w-{+q(LB<1(W?$4ET~>nTvl9BTvV(p%1xK}O~q}8F(w_# zC&m_`2nCBZcV@A!xS_bj{J;$hPtQv1iTlWVHgs0}*U=xFRi>Am XmDkH|vj1sT^4{$J@HhVb-ekaEAbwI@ literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-058/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-058/cmd.json new file mode 100644 index 000000000..d2aba72d8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-058/cmd.json @@ -0,0 +1,58 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 nobackup_port" + }, + "cmd": "bridge link set dev d1 nobackup_port", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_nobackup_port", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-058", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "bridge link set dev d1 backup_port d2" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + }, + { + "cmd": "bridge link set dev d1 backup_port d2", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-058/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-058/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-058/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-058/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-058/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-058/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..652fac267f778115f11dc58284b905596f350e20 GIT binary patch literal 528 zcmZuuI|{-;5Ph4CB%+0=t&NDLu!v$|VP_?HieP7qU}Nh+Y`lV=K!T;6rB@Mrvm4MX z8F-udym{G~edX7S2OmH4@nJB0bhhiLfjNBvd~H7BibX^lN{`4h3FipWLtR;&ggS55 z1ywpNco3auY6)z^3UUGgG}1jVreEgGwa47O;5Eq0(%n9b?cK^;#VW9DSAX*|NVP2sn)Bxys4e_$XN%h3EWw`OzG0Bw&%>A1#1GgN9OLJhN#$cAQa&h) mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-058/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-058/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..ef002025fbf7c048c27991e2e0db3c8dee83a153 GIT binary patch literal 1372 zcmdT@y-or_5dMy1j{{FdP>fL&BMSHzv?8&z@&Qb!4T**PBoKF+|W8_sLu}R(*yn6Bq);feuF~TB-E(1hZ znyv#Z!y8H-F3$ifsuOEBFJN{aaQp0$UoL;aU{ZBoT OfA;u`zy0;kq_Ll|2~tb| literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-059/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-059/cmd.json new file mode 100644 index 000000000..dcf02fe43 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-059/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 backup_nhid 10" + }, + "cmd": "bridge link set dev d1 backup_nhid 10", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_backup_nhid_10", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-059", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-059/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-059/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-059/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-059/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-059/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-059/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..de702ccd46acc2aff667e9e56886abc6e190e493 GIT binary patch literal 528 zcmZuuD-Oay5Pj`#L-~jXus8x02p|Xq4#hPHj?yNafD0fw09U{x8iK+ixe5tyI!&M( zCVAWWym{T3ecmo-9~NJ;crzH>JKM}QF{dwpHN{6HSj_FUPsU`^om$lM(Sh|4|Kgd)7sT4)_Y cZl}Rm-t0lG8GV7PC3oV^Jkio!>t28LKP}xgT>t<8 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-059/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-059/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-059/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-059/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-059/link.out new file mode 100644 index 000000000..0ccec9ed7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-059/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off backup_nhid 10 isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-059/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-059/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..5c5bb45cc3579d6ea15be4a11d97f756905271df GIT binary patch literal 1380 zcmdT@Jx>Bb5Piq7aNwy3e#9t>5d{Ni8bUZ>md zHC$~`UyrB2an9uoXkA=2EQh$CbYeL6@Al#3d?xO9uLwKy9OD>HN_3Ztonr(L(F2}DnN+2 zA3cS6cmt`!)tSPA+Uyo14GNk^x-NFnVhWpTmlU@Z%Zgiy6-Bw}62Gr_U@^p!MfrqS z#;v1GedTB0VAa+VUb;@5S;Vb0S6aWpo&C?f{PR+O5r{Yd;`(pfJBeP8z|H91wMcxl#(uGiaa9? z5;Hza*e6!nyWQK_xtqP8<9-()#MMHanLK@W=j;D_hdflINFo`7NFl0mO4C9Dr?@Kr7IKMX>~)88>mc4S4od;X1@EijU=DUvJ>8M7w$do=VeB4pK^ qTY?BzS%PFEJu&kHkGSJ5mHNLw^1d;a`@DJ|=V!$0=I;Kve%A%1ayoth literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-060/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-060/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-060/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-060/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-060/link.out new file mode 100644 index 000000000..5ef39fc5b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-060/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 9 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-060/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-060/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..eef7131ae90d8c7602def712646ddd4219fe7dd8 GIT binary patch literal 1372 zcmdT@J5B>J5PiEFZ=A3|5`IDu2!fD=j}$0S3OXuIKx&kZd?Xs$y$TZ4NZbHL+<-Dy zLE?>VLUy$XI)tV1^Vl=vc{BFg`1#&P4qqdOcPfq7rJH)$Lx*b-QANSCan2ZL!gGKsQ`MW+0CM{Sk1)b<(aA_}qJOc5}2F_6MV3 z+vb+E^>_+glx$2*?fSNDIHc{Q662Y>dneiPRNC&;ay=*4J)ViAxh``nNN}}2SM*`p zM$$et?n|9puFiStvqSncqJNhJMbiEcq%0i8U+SADw=9ktMN=cq(+SBbddVo#Uh3>I zPS=ZKMP055xmzPjEek~D-jL!-hN6W-K&ekHpYmtfWV|5g<2h=0?)L`OB2o(p@E`jbxzcI zvM&77DZ__!UWp~J4O3_b3NT34K$mfzH!?nR*Nj&pZ;%T<& zr5;?KCUN`u_q_jKFLZeW>-9pfP1Xe0YmF(B^J;s7U5qhng4-kCRfOndb1sM?UbbSy d`;Zwq)0@?)HDoNfTDlWw=1I%W+RpV?{{y1MH=F mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin on guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-061/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-061/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..e242269afd9aa298cc1fb89ec873421b14d23816 GIT binary patch literal 1372 zcmdT@OHKko5PdU4!vLcqpvEYQ5e57t=!(574`9OD;EG@33Al=h3)kMj5Vx*eas`iI z;;ZfwnF$H5OzcU|>#DA*u2IbH?__g%JW0|bVvUV3Cc|RKa#R=6o092hTIl$43V=n3b{KaIYTcQIoeB| zJ;v#H(b!OyW75=CiBiih(a=w-Yxv19v~cJ$HrQ1;RJ*L=j^dtTPVFL#5mqpE86d*y zY@Nm$ys_lr@=Rl0Wmb!x1|^LnRTsHpF^zqdtBQw;HN^wPx}w~4@jq2Ow-{l=qWmIk z;>pqGdTXXP*tWTZID$|JacuWOG!;)QF6xnli`_%sucbZW8OwSk2mWP`{BgWTPA=Mx S{-++vJL~=8ZGXQrsq+`?)ltm= literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-062/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-062/cmd.json new file mode 100644 index 000000000..54719d242 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-062/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link s dev d1 cost 8" + }, + "cmd": "bridge link s dev d1 cost 8", + "desc": "corner: opt=plain cmd=brl:link_s_dev_d1_cost_8", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-062", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-062/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-062/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-062/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-062/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-062/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-062/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..fd0056ecd9a2d16401857531f2033ac9c0db39ef GIT binary patch literal 528 zcmZuuI}QO+6g@L<#E2=xr_>1w1)@;sRJI{HVgfU||0+W6e%DVI_JkudAEjUMrCQ6>=d64JM zzWg6g1wO>{iY>yuhr?8#lNb(Ty{tDPzBBTU$nyED>VLjm1v&qYCm%Pc~) cm7b8f-mF2c5o5W_r8{wFp1AC;?OuQRKN6WZ#sB~S literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-062/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-062/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-062/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-062/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-062/link.out new file mode 100644 index 000000000..a7541563a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-062/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 8 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-062/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-062/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..de4df5874bf554e079ae14aabc3804a147268505 GIT binary patch literal 1372 zcmdT@OG*Pl5PdU~p0sh)nD{~bMf}AdL|56n@&;K;7J?>%Czze*5Cr#v8^MJHZ{X5H zcmcsz-DPx!5#5Om)vv3&s=8iP_w(TPDntpNql7mqn@{!AlZOy(u0>Fa9LQ2elTt$v zHEHKIa+Ad(MgkuvWt%Ld7lRNrOsPg=Q8!LL;7?_{|*U?#A!oqByU(q*zhA#9@Llq&@>A z7$2@#ZjeQ4x3|IC5 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-063/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-063/cmd.json new file mode 100644 index 000000000..726abd81e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-063/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 cost 9 priority 4 hairpin on learning off state forwarding mcast_router 2 isolated on" + }, + "cmd": "bridge link set dev d1 cost 9 priority 4 hairpin on learning off state forwarding mcast_router 2 isolated on", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_cost_9_priority_4_hairpin_on_learning_off_state_forwarding_mcast_router_2_isolated_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": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-063", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-063/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-063/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-063/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-063/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-063/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-063/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..5a93838f2d66ed9022347054a3825145c97c8ae0 GIT binary patch literal 576 zcmZuuF>V4e5S%-o;ZC7IAq@ou5(*S42ueYbj*17Qqe2u&9309EcnA$&$P0oHKZsK0 zD@e@PCxx?EY3=py?5xNBIei^sB>1-k7apF^t<}eG17pT=B*twDWdr&nBGV_%C4wbI z2U+BKmgM mtu 1500 master br0 state forwarding priority 4 cost 9 + hairpin on guard off root_block off fastleave off learning off flood on mcast_flood on bcast_flood on mcast_router 2 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated on locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-063/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-063/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..2bdeb1dd96b3a78a2d52678042871fee3dac5195 GIT binary patch literal 1372 zcmb_bxk>~<5PdVVJv+OO_l0<^cG2@Z~d74D06n@LRFjoEe4?&#p~ z_-HNURH$rlQqwwY^O@xe*5>{dgpkqY_}1(UXkk@&os+ihp0*lT!YU8 zeVDeNWuFH1s`H}Nxk~x_P@kUZze9qWW&d+h7DxH3zEyJT#4$tN*C^xZ6UjMxY1C=2 zI!BDN6Xk73S-(lCRUFl_Ms$=^UB^$u(IQ~T*kQut%&=zm&G7PALSl37)L$YBdSLlzv)q^ m;oo}{w~IXr@_?_)UwRaH{7;X>^`{=`oxS|xZGXHo<@XL#{aAVc literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-064/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-064/cmd.json new file mode 100644 index 000000000..386196243 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-064/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 neigh_suppress on mcast_max_groups 7 backup_port d2 backup_nhid 3 guard on" + }, + "cmd": "bridge link set dev d1 neigh_suppress on mcast_max_groups 7 backup_port d2 backup_nhid 3 guard on", + "desc": "positive: opt=plain cmd=brl:link_set_dev_d1_neigh_suppress_on_mcast_max_groups_7_backup_port_d2_backup_nhid_3_guard_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": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-064", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-064/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-064/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-064/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-064/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-064/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-064/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..e3cf467821174ec6fa1156521609a8e6db557bd2 GIT binary patch literal 560 zcmZuuOG?B*5PeA}Bw`l9xD`Z1!;nRkS!6#eVUFNR+!-g}2|R$8aOqCG!4QVIfE&TR zrwGh@>4q`Q6jXP8URCw0{_eltLqyn1gn`c0rg(bWW@uAn` zx;-a?2 mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard on root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress on neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off backup_port d2 backup_nhid 3 isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 7 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-064/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-064/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..81e7f0b67f2e0b144fb0025b29e0ca22d79d2606 GIT binary patch literal 1388 zcmc&zyKWOf6g|7^vBzffASNIbLQF7m431=|(x>7NsF4dxd05I9>_4PS7YTj!AN(`y>lOPA2Z*lUoKMAaKCE!NuhV$KAe0@u}@xvS{6X8 z)-GucNw!P7a8TJiHqlICoHNF`qh2&G&MHzU&X410KsUUHcA$X_M-yN`zHGOjr9As; zb`NNGa&$a78OGeowh6Vs!D@`@DSbR0h8n7N>cn*B?$O)%@m$sJU99z-wRWi!Rcn33 zqpVbG^tqxB(+*Vi>F`{A?pvQ5lxLUbbVL6!3lvrTFIlo`l)w7hU~Thi^k{`1d1~)i zoTHaki}vbs!Z_n3FC1lEQ|D=is9uhU&fbtCr!G5MXgS^(@tL7FebaEm@VQ~j?DBv) zmQchDkYo7|U&jiPLV3hI>v(7~yG2ijw#8A`C2t0-W6R`@*}XKmYxu&jXQ-Dh|2Kwv z0duSe)RyBhKI=gQ{z+uGJ3I|{c)Ws2@Yo4DkG|pS&>fF$+DbnNz5T=jsxy`C-ACDWQKcv$QDBEXr$P!i&r-=J|hTrX2L|ZWs9LzyF literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-065/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-065/cmd.json new file mode 100644 index 000000000..5a26b7174 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-065/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1" + }, + "cmd": "bridge link set dev d1", + "desc": "corner: opt=plain cmd=brl:link_set_dev_d1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-065", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-065/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-065/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-065/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-065/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-065/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-065/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..157e2bbb7d1e06de5cd7cf394203de71ba49dfec GIT binary patch literal 520 zcmca|c+)~A1{MYcU}5+R<4spppZC>WOs@ocJo-#)fqwj z$|cRqpaPTwVRXNW0EL)Q{0h-y2GnB$lmlUOJs@+08CV%Kq2bI9QUX#31uP6a4WPL4 TC13_HtQbLNK*AW}K4fzN&U-Or literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-065/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-065/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-065/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-065/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-065/link.out new file mode 100644 index 000000000..e8ff16ae8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-065/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-065/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-065/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..65329924d97a025672bca295961cd161ab430d04 GIT binary patch literal 1372 zcmdT@K~6$35PhFdq2L!0L}L`i2nwhPxG?Npc>~sloe0Jga0gFd;t9NgA>P0xckl!z zzG+9~|B&cXn@nG)ote&?Y2T*Lk13?_J<|A~(tIu7yq64mT#FzbI*_G|CZ&WRY|+kb zBqob0a)FOy%LX%^i!6&%L<$n8a_0@`hAYSnWD#OG22Qz-+x5Z}_g>U)g?6Li?ReDj zxy5Y*o&uLeAJbC1zVA2=Njs^;bm8tncX>RMv^)1)3*=honMjiB2Dic(SMSrH57Ty% z^r>-Q>fF{kXQ?j^=~I{feG(K&`ahAfa1?*3Z mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-066/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-066/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..5a992f4fd6a2fc78963302ff738ad58c8c1aa02c GIT binary patch literal 1372 zcmdT@OHKko5PieY!+@hA_=!;zBPyUK=!(57Z@}8%N(AH56<2WY#)K1i10|k76Jx?v zOnlW{A~PY;rFK&Ny1J{X>s58X4j=AQNaK5?@j<2fT)en>3((|R1Zm%bEM-(F1$cgq zc6K8%g(xBGxj1)>Gvc|(v^aUBAaTyGoB`c%3Ymcnd~|xi0oQT6rk~>8quR~TuG_in zbsH|XxUI)i;3V&2hSbik8YCmld}aD~el+dy4YX#eZM%&|-uoi!w!6 z#;v2x^~!kPVAbXlVh2JY#I8LHQB$m2oYo@=7kh_%UqAMUcl@;;rTXz6IlW*z`k#6v P|Lpx2fBWm7Nn<|&rW{nv literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-067/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-067/cmd.json new file mode 100644 index 000000000..415fbed27 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-067/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 cost 0" + }, + "cmd": "bridge link set dev d1 cost 0", + "desc": "boundary: opt=plain cmd=brl:link_set_dev_d1_cost_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": "brlinkwrite/ec-067", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-067/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-067/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-067/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-067/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-067/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-067/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..e2210eae0404b7b2b2cd405eeb8dd61705cc8030 GIT binary patch literal 520 zcmaJ;I|{-;5Piw67*SM=t({;53l)o4TX_w!^AoTayoy&4Jb;LmrIsGVM(|B0pjpI$ zw>vxY=Izex{e0N_u=tq8i-*o7TpZ&XV)_DDlWyXQMMMLhiO5R>&Jv)7lBYUX>O7bi z{L-nzhv;k*C9n)r$O;r;uw=YPKhKMe&)6yBmC0K#SIN4sZ_9H%W`RjvH3Obzn||7Z z%aci*zwVw7e(M!n-cWnJvDY?p0=L&DLnha&);w7=Vou=Jh)#$Cy4jqILJ?kO7L}d+ TRdxJdgR}BPLuah-`__E}D%3QX literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-067/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-067/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-067/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-067/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-067/link.out new file mode 100644 index 000000000..e8ff16ae8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-067/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-067/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-067/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..881b262208abd0ed334e059c86c901e4bd1ed402 GIT binary patch literal 1372 zcmdT@y-or_5dMy1j{{Fd@Fzx5R8&BXXhm;fd;vpk=tMAfcGp>1`2;3Dfp1`lZ(zx* znE1`^sN97_OWkDl+u5C&oo{CMZTS3{K^EU5i+3vZ*Yf4zW)5wxMUeF^$Wlg~QiA6< zXlFN4Q-})ko{MwJI3u2mOo~%P1`=m*?F{IKGsq0&;G;JH_PI{lwfzkDUes=icKzPf zpx<)2C2c*P0w+ZmGo*HL)3O}Wc2bGq*xlWu$?;6u?$~iXC)XO!MABU6x#cIgI-gtm zFl{SopDOpI&P}azj{5kJKHbs3LxLh{|0hxwj^Z!%&5_$Ajv)%RMj=l}BxmR)qd^;)>#$VnOX9ixH*~y9^Lv z=4%~b7G5lQxI6>Qsm^NA)1a(zr0SwqECyIty{fpSSX10k+*Op9F8+Ip2NokNSd=Nk zA|4!Vu9v>{4VG;#A+{kDLhRVH5Dmqq#YsJqaEW)w_w{3sc*kGsQ6^6I$mu29(f`yV P`DgdP_}icVOd9(E;ww)h literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-068/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-068/cmd.json new file mode 100644 index 000000000..2d04ee6f8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-068/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 cost x" + }, + "cmd": "bridge link set dev d1 cost x", + "desc": "boundary: opt=plain cmd=brl:link_set_dev_d1_cost_x", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-068", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-068/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-068/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-068/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-068/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-068/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-068/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..2fc8cb4b436e5428d6a80d68ebfe90b5450d5396 GIT binary patch literal 520 zcmah`I|{-;5Ph3XNJK#~Y3&3REc_K>Yvnb>LNF@WXz5kFf;W)h4J^Hi;G0Z9vj`5n z-PxHpZ+B)N+4bVV$H#oUc<9{YO@cb6^ab#3zKJW=C7Lj{OI{vumIy6WjOvW3^JHG| zOQ!)3qI23Sfn``gRv?5$%6OlCnK!i_W4D4=C2yB*_q&0jf@vq`l7AYnwTN+iSv*E%mB3Yt~Gd6Sy^^6C*&cm~$u;;T7hic9y?7 Q{?Xv9jA-bL^?l#EZzHuaV*mgE literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-068/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-068/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-068/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-068/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-068/link.out new file mode 100644 index 000000000..e8ff16ae8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-068/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-068/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-068/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..f9f386bb78a3f590e71cbacfe17b556e568c21d8 GIT binary patch literal 1372 zcmdT@y-or_5dMy1j{{Fd@Fzx5jHrN`pcTE9g{29#p##xaSW{V9`T{0Cfp1`lZ(vF3 zYnb@W?ugvw5-oL;*>7ieW_G@r-M7*6V+L7#k1Rf@)L+ZJ_IrRf*CNRJ7Gx=-PAS3j z8?>_i?b?2ZdoOA?L%Tu$ z@@mj>xy5Zgo&qOD7c-=GanrIKl6F#w(bV1Dqx5(tX?N_no|9{hXCg_ii`?>KT%FG? zeVDeDq)(OmQs<`DIY)hZNT2TL-yuPfr2i8s3rF#n`sTg+L2$BTxBx?B@*w@Q>+c8Nyckl{*(p@l=2vBA3Pp{=e#UU5xvL$RQCk;MqJ7`hA) zVQ#VxFb{7idAK|SEU3^S1bnDRK2RWtyojsQruINmoEPMiiZ{>ELoH( z!ZIElZLU`)`v$8vmk>J;3L$pwS%`*W(_&hWBwXwr@_qf-Bi`}XdXyQ)d*t+z?dX5% Qk^Hm!U;OQ_emVtp;0AeNwke5_s0QLjAI#5U)MzTA_5W9J-=<19h zeiaA$RRt&q!svb#0SYmr_!XkZ0jS3WC mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-069/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-069/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..3788c93a3e04a29fcec3e6a2e8d4ac8d96f08052 GIT binary patch literal 1372 zcmdT@Jx)SF5dI#Ig$19A;7^RA7*PQ=K`X9cEN!R_oe0Lln!?6-0b3JK;0+A%1{M}v z#l&xRN94VbXsMgbemlD}v-8dDz73xrQ%K``r13$e_FB4lPg}IO7C}06AWIoFN)bU= zr=8nKOcrJ20w3qpSd4fsGA&L4DM+0AD{nwIoIqwEixAyDaKLrkt`(-Z_o8+)wCi;* z`@N>mEp8j|6bK7Grlod%-EG4d`?$~oZBiAa=M3P(=xfRB^dY>Em zFl{GEp9=S-&JC?|mipw7KHbv4O@bmx|0hxwj^Z!%&63+Rjuv@WBg@kf$r*ad$kSfx z957Bhhz5qbT$AB$g($V`5RJYe!<7s}3y(fygLT!dtFA##aZPbUF|T%!!w9n&_zVzX zZoJN59>GBJ@OfsipgOBXPlJ-ik*bScc9_AY>J`Op#j4_#;+~?sbn)L;Jaiag$)QXU zmhs?ebGPd(f`yV P`Db^(_}gFqOd9(MMru#s literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-070/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-070/cmd.json new file mode 100644 index 000000000..1d9fe73e1 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-070/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 priority 40000" + }, + "cmd": "bridge link set dev d1 priority 40000", + "desc": "boundary: opt=plain cmd=brl:link_set_dev_d1_priority_40000", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-070", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-070/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-070/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-070/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-070/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-070/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-070/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..82683795cb29cee3c4c0cf9888e88273e9ec0aec GIT binary patch literal 520 zcmah`F$%&!5S+^;B%*~Fu}f#6VxeM@-pbB5h@DZv7x)#Qpg$1t2bMlX!P#uU$IpCxco;n5t$7=y^ab#3zKJU~AUZI1NM0UrmIw(NMs<4Bc`+}j z(`mzl=v)p;U>TN>6$oLGF+QeW<)zkR>{jra mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-070/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-070/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..154f6dba736624d23b842d284d78e1a1d4622e3a GIT binary patch literal 1372 zcmdT@yG}wu5IvX6!h%;te8nh=5fxAqq@uI-157Ba44nwZ+JfH7%EZpZFYpfx@eeHd z6%)_wj>x?s(NZ^=Jv+NIvvX#4--j7^|IoQVnuOVabHnhy7(U`9yyG#>`w P{ImOC{OzxQCXM|B2*^qoWQIRoe(aj^_)GS2(LB=gNyvt R`Hu!?Wr>EKv3_4u_X|rRG^79k literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-071/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-071/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-071/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-071/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-071/link.out new file mode 100644 index 000000000..e8ff16ae8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-071/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-071/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-071/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..8a7ad90615abf1a5d792960b98fd1faab05e7811 GIT binary patch literal 1372 zcmdT@yG}wu5IvX6!h%;t@DZaZMpQse(28I14@m3`oe0J+;4`dDOss57Y^)8jv$Q0! z@-s|4vpXvHhD1xKo%joePEC4xLqquaqm&>rfApe zp7nc8pIh8E;3*Imd`wI2~B<-XU!?C+N2b1HOq}`$CdP}ZVo{1#6&T}h_arHjW z^kLdgl0FsgOPw29=PdQ{A$@wKf13nFlKwZOEF8sO>YF9ENgOTmu11!pBa$=pl98vq z)Hz_Bb`T8=b-57CjA08b_)wdf8zH>#A22Hx;Xj8;U!M^3uhBS8?BAgawB( zMOeh8r_J@!*S^8B%f(^~LcwC&omtcs8xAM+NW#V5A>Y@JJ>ngItw*UryhmOyx{m&* Q9?3s@`^De>{AbeG4+3IVivR!s literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-072/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-072/cmd.json new file mode 100644 index 000000000..6c0f45f20 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-072/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 state 128" + }, + "cmd": "bridge link set dev d1 state 128", + "desc": "boundary: opt=plain cmd=brl:link_set_dev_d1_state_128", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-072", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-072/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-072/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-072/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-072/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-072/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-072/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..86c4b90b50a90e52a63436f1328e98f9a6775521 GIT binary patch literal 520 zcmah`F%H5o47?_-D1xB^RwftvjnYcIfUoccegG9KEFJj%DI$%gQdNnnpyTXz=fn6gyeR!Bwb8ZPmc$K;69^|j0 QKN_5sBN}GL=6!YD51ZdOxc~qF literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-072/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-072/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-072/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-072/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-072/link.out new file mode 100644 index 000000000..e8ff16ae8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-072/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-072/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-072/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..e3907b5cbd654edccac459ad9b20a795816e83a2 GIT binary patch literal 1372 zcmdT@O-@2F5dI#ILcymZ_!FZjMpQse&=ptk2CNM`5sW)`oWQ+HqbJ}7hM0H&6BEN# zO#G%Dk@rHPOKmd!I_=DKzM1xQG`vqCjqj1h2bJ1$>Eh_)x_#h?>$qJjOmXi??dE9L>t6PI zO`lubHsC1`7JN)g?fkmwI3(?)5~HcRJ14W_nWWvR=lVddRi23?xh``njB)ioFZ5yB zPLe(q?n|8;TIVeF=^=f3qko$OMUwuHq%0i8U+SABw^c^pcUMz0^5i zoOTcm40X9C!`%u|YS|$geM5#T8HN@feZ~fxs#{lGgPh`q;+A4w?IMQ}<}vUYAi~0A zoxvi4f#l)y%wS1%R*RknC5 z&eP_4ZL)8$?sBo%gHW*8cV`xL#fHOKJ(6&-cgXkkV~=>pU+Yn75bu%Ki>{;psYmk9 N#=rR6U;j)R`w3+oS8M

2X6#<_I^-qsAx%R4wmR2h7Er#{^my84VbO!h zlS$;2yLXFbJ=f$db+2dkI$};>_Bvol)q2%6SJteU6PPuk6Tro+oO4Sk!Yj=|_auLn R|Iy&AEYZ+2*6*w8egVniHemn& literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-073/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-073/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-073/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-073/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-073/link.out new file mode 100644 index 000000000..e8ff16ae8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-073/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-073/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-073/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..b14d7605d44ab4b945a3dd29f1489332078449c7 GIT binary patch literal 1372 zcmdT@O-@2F5dI#ILcymZ_!FZjM*IOZK{s**Z@}7+xDX*>?Sh3DF?s@TV2CHsCGiBV z+?)7KJ1XymM3>rR`gPiw>3lQo^XUF2g*3iL8t+tUkEM(A6N?ttB1nf0WGQ2xQbZ8e zY3DW)lSLW1z{j~_oH5Turo|~B1&Q-C@CJ0lDP#t+2+{2W2VBSPT49QN4{A36QL%5)?`L-;uI#6o092mfWUsw8*;}S)Ptb&d^Inp7v7b zfN|PEG&I!ZnhbXy@v4gH@M{#SVmm#jZQEs43PRPV13`i@ig>uOEBFJN{aaQp0$Uyk2x2{ZBoT OfA;o^zy0~oq_H26=T!Ir literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-074/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-074/cmd.json new file mode 100644 index 000000000..abd763793 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-074/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 mcast_router abc" + }, + "cmd": "bridge link set dev d1 mcast_router abc", + "desc": "boundary: opt=plain cmd=brl:link_set_dev_d1_mcast_router_abc", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-074", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-074/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-074/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-074/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-074/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-074/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-074/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..6c184aa4a22db52357c3e16e72163015096b460f GIT binary patch literal 528 zcmZuuI}U(8|ga*c&?q5>DV%yn;6{#2Z+86%*gEB+7M%v$Re`oj2=( zHXR=}L?@qqQaW#X< zlTDO=|2{3-^<0y;(zC{#b;_E+oOQ&MYRsy84(!>mCNO(s?f@>Lde0r92(LB|-qppp aisa2wYONUwOf9(+cV>x}-nHKAzy248(=c`b literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-074/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-074/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-074/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-074/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-074/link.out new file mode 100644 index 000000000..5537db96c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-074/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 0 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-074/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-074/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..1b2725256955e7f57392fc8f8d2753518625cac6 GIT binary patch literal 1372 zcmd5+OHKko5PieYFpQ(}Q)3jxh#x=`bj8wyh4BWg4LcDMPQX=6IDt1X#2dI|>((0> zebrqkGa+G1Cq1vKyQ;chRrP#KUtdy4_O{M-`dg|muv?C&t(;{1%90p0Kb`2tz^=nsJ_%5l54pW@n^+HKHo(0?8d zTJCOfTaUXyC+}hg)E-AI%OPnenV2q|-Md*H&m`?`9oH{%t#MCgl53euevGU0DHlTU z+IA*=s$7>mH#N^$>Wf3_bVvU#3Cc|RPe@rfiofJHOK!_J1_*7A0`AU8&d^InNPEe% z$2eUt8XM|zOoppfqU5qiG}=Rkk_ zmre*DqSHGofn``hR-g)lvu4eLIe}XvIuR-u<#VnIMR>VcG%oU2 Rn?D+yl_wfHV|`yy_X7tDFaiJo literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-075/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-075/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-075/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-075/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-075/link.out new file mode 100644 index 000000000..e8ff16ae8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-075/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-075/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-075/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..8b3d64acc684a8017938ab1a663d34d1439ff9be GIT binary patch literal 1372 zcmdT@OHKko5PieYFpi@lAB|BIBYpr)P&e#dc>@-%3_B4LHtq~pF?s@TV2C$xN#ZG7 zYJAmQA~PY;rFK&Ns;aB1>(l)*db~>^jqjDlJB8YF;p(**qD5W^Y2SjdvJOajcz&IB zR*~2OlriVIIB$$I=DE_8Six_#h~eB7?(r>J{UyLsC6y4U?) z)8!Vo^>_-LSLBl z9^_SQiuxHN#)D-I$XU#~$#oi&`*N-#e9e-^`sbPFZPR`qj{-+tq OKfC?K-~Re%GT2WK*;Ot8 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-076/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-076/cmd.json new file mode 100644 index 000000000..f804c1ee8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-076/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 mcast_max_groups -1" + }, + "cmd": "bridge link set dev d1 mcast_max_groups -1", + "desc": "boundary: opt=plain cmd=brl:link_set_dev_d1_mcast_max_groups_-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": "brlinkwrite/ec-076", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-076/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-076/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-076/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-076/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-076/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-076/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..2426c37cd4a1f7938bdc88fbe3bbbe9d1ef8b88f GIT binary patch literal 520 zcmah`I|{-;5PivRFrtO1t(}FxB8o+@_R7NKG|!RIf314n;})|)zr)m8dK&3c8%z?;9*$Ixgr$d6{b<& U$zLu0XmD1JXqXwB_kHWW0R%NO=>Px# literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-076/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-076/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-076/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-076/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-076/link.out new file mode 100644 index 000000000..e8ff16ae8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-076/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-076/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-076/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..ce6fbc3806f7defdabaa3eb028cb48132df22986 GIT binary patch literal 1372 zcmdT@OHKko5PdU4!+@hA_=!;zBPt(F&=q@E-hj1XCqkkZm^*j^6HQ#}2@LTDF1dkc z(D3KCqM&j)>& zww1I`mHSfXmex5(eR@crzUbd2L6Nlo11Sqf@t6AM$ZZzK5CvPKkf&pkGxU;CpuN=D zW1OxR#fG|EljUxeD7EYnjlLnnl?+1*hc07-ZPi0tU4y*hmg0_LLG2=o5f%}<3=m;y zvd&@|UMzXIJhNC)ozs~0NKsz8__q{KEJj$fC{u)W zJUZH3Z%pdl9NM!G4aKI#Sv`_)iFe5NHMd8+i**if@Q-PP6Iv#0&$KR}45g}C$bbtuoa*BC?k0z#X7YS-!o2WKr-%U3`CB^z%P@gXAP0;23h2>G3VA?5qrq=58Kop&=-7d%}Az^wtIWP@Am*Y#5qL( literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-077/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-077/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-077/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-077/mst.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-077/mst.out new file mode 100644 index 000000000..277aaa76f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-077/mst.out @@ -0,0 +1,5 @@ +port msti +d1 0 + state forwarding + 5 + state disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-077/netlink_route_mst.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-077/netlink_route_mst.pcap new file mode 100644 index 0000000000000000000000000000000000000000..8678c3d3b106f1f868873479124751b7e6e518a7 GIT binary patch literal 1456 zcmdT^%T60X5UkzxtQTh!jLjnW*YFWjNnK{nyKlYo|>ud*`1#M{1&5zn^wbL8e13bqmR=Zdz`DImUz%q z?HzjyQPO9ecT|Q9T`WX_=a4*?TvwmR(?ksMoPG%b+=dU(2-J~ad;+}Zyd1Ze#Pt2P zxJQgT9)CVL9)`P>VGI2h0_Go85pR3002CWln?Qu=Ls&$#J zq@*?M`Ff8$4=m4h@y;~mxuC6j{UFbG3RSP3J*9MM6_4^J3RAu$?zJIkl~GA%dlnG_c+8l-+5XrGdlG{Sz7=A literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-078/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-078/cmd.json new file mode 100644 index 000000000..0b4da71f4 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-078/cmd.json @@ -0,0 +1,63 @@ +{ + "axes": { + "fix": "brmst", + "json": "0", + "words": "mst set dev d1 msti 5 state 0" + }, + "cmd": "bridge mst set dev d1 msti 5 state 0", + "desc": "positive: opt=plain cmd=brmst:mst_set_dev_d1_msti_5_state_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": "brlinkwrite/ec-078", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "bridge vlan global set dev br0 vid 10 msti 5" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge mst show dev d1", + "name": "mst" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + }, + { + "cmd": "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "rc": 0 + }, + { + "cmd": "bridge vlan global set dev br0 vid 10 msti 5", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-078/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-078/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-078/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-078/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-078/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-078/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..f0ac24e8e20cba9a79f152f66123611b0bdfbd1d GIT binary patch literal 544 zcmZuuJE{Uf5UknRbyrM84Md)SV4%Jis2CWS83~?3PC#2XmCs|Z%@ zEa(n4)ND_8b#?db{dzeC2=THI4_>;r>MCi(7}FOJ+Vmq=)*&h|wnttX@Qwsc6phnq zQRkm|;ge1o0i<)@I|9ovgH9lZ#d-()(9iS6Hel>8L{QFb1ZOf%@whSO#kpe?Gb&!*Vc?=8fm+?2mF3d^g%Pi literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-078/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-078/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-078/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-078/mst.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-078/mst.out new file mode 100644 index 000000000..277aaa76f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-078/mst.out @@ -0,0 +1,5 @@ +port msti +d1 0 + state forwarding + 5 + state disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-078/netlink_route_mst.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-078/netlink_route_mst.pcap new file mode 100644 index 0000000000000000000000000000000000000000..514efff87dbc8d1f0ea80f47bb1b8ec3fb20f573 GIT binary patch literal 1456 zcmdT^OHLdy5PjV}?lD7?zyJy1kNE$jNmlGxaf7TQcHtwz1^Nc;vx`J7zyS~lB`07x zm*4uB(1KSxVit`3=(V z=-}}9s1xs2^-X96c86n3PwB@=Cvd3yDHAu(&ffppKc1`meT!WGk?Rs|nsu&YRAm*e zanIcw^1NwzZYu7xp*)wARWF|m;haP@>u2ARy0|Ki^4uiHeq23TAy=N(E=fA>(rD3N z`A!(;ds38+vX05AohK@%`$T8Gd&GO@7%`dM$(;_P7Dw5aJQFa-oXPWsi-t>v3x=zP>UiznG~5nYU_78c z1wP?dq|No`N4>+Ba2Jndh=RvTuz9Q-ZUpRLl6{_+WAx6$4xN{VJoj`8FP+8}3D#>W zd!>Kbm#@~8;oe(K)3RFAD7ORi|EZ?atm(uHHPxHl=9^W=g|4gpV|)LL-kYTx9smaX BRI&g7 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-079/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-079/cmd.json new file mode 100644 index 000000000..36fc5cd62 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-079/cmd.json @@ -0,0 +1,63 @@ +{ + "axes": { + "fix": "brmst", + "json": "0", + "words": "mst set dev d1 msti 5 state listening" + }, + "cmd": "bridge mst set dev d1 msti 5 state listening", + "desc": "positive: opt=plain cmd=brmst:mst_set_dev_d1_msti_5_state_listening", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-079", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "bridge vlan global set dev br0 vid 10 msti 5" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge mst show dev d1", + "name": "mst" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + }, + { + "cmd": "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "rc": 0 + }, + { + "cmd": "bridge vlan global set dev br0 vid 10 msti 5", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-079/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-079/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-079/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-079/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-079/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-079/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..b2be7eb0e066b7f56de5778c5084f426720796dc GIT binary patch literal 544 zcmZuuyKcfj5S;Vb7(|1B0wL%qfTSQO1x314k@yNk$HS7pfd8Q42PhCdictOlQKiW* z&_~LQ&l2&8mFB#+J3F_#zMK!c03q%c;+L1fS7Wig#hB0+5Zde`SJo%$Fm^~@7VwTT zx~LeZv!~8C^TH#Y8Uje?lsW>-@By7b42xv~Jku}oCN^N~Gv`&wTQ671dgOX5at*V< zd(CNCfA0@12s=6e literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-079/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-079/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-079/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-079/mst.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-079/mst.out new file mode 100644 index 000000000..fc58e0258 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-079/mst.out @@ -0,0 +1,5 @@ +port msti +d1 0 + state forwarding + 5 + state listening diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-079/netlink_route_mst.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-079/netlink_route_mst.pcap new file mode 100644 index 0000000000000000000000000000000000000000..133a02b57aa3bd8f5113a8810e998961dbe9e2a0 GIT binary patch literal 1456 zcmdT^xlSBG5PdVVJv*#txeo)&CGJaF9FaTn9}pulE(!m@e1=mbVh4^1K**6Jq)kBk z3w#0+?{(J#Gg`|I?UuSn*IC?BZmBZ{~8Q<4PT%Ys3XD2Ik3Zh*=|3Hsk=41 z541ZwIXypXhuF%t5l?~7!@*}p>F}cMIaKYGiMw}iAMN$`=c;y}0@r(TUE!H#mFqZF zNr`K?^Yj;a-nKl~<@eoCo(syVSM9NhD-zYLzTF{pag`tCxlWG#xMpbhTxC4%lBDA; zjRx(N?}&a5qP%dF^-N0bB2hU#B0B3O$DM|wMZgfbL(AmMXW3!EaMp0%uwiz&#~e-a z^bsJ(;Ojoc5TZhHgg8@-n9T0vO@}e_qwGtb^O$16b;@5S;Vb7?cJ9MT7_y1ql%%h=PJH6%wyNbOBrNf|M!qg?u3`RfPBfC4!eA zWyWU-d}5_J@9oac?XC~I-=6>>t`_3L%k#eeu|CBZ(-#oh>?2p!C2BDCg}f}_9c4VB zVw}zwb&kvn_jIZVAf4^T5m<&PbOJFfmMQQ`zsMWgfU&=v_ds5W`Xyr z(=78g-wd)De4aM3yLo%@c3&^@c|$krH)riIC-}2A7_x;~T}}HOW5%4|*Gw3yBSJ6V tb1aH@xwX*5BT8t%e3sa^`il65Ce=UeQ+q^T@U_(=cW9*Tb`SXP{R33!INbmM literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-080/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-080/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-080/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-080/mst.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-080/mst.out new file mode 100644 index 000000000..fc58e0258 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-080/mst.out @@ -0,0 +1,5 @@ +port msti +d1 0 + state forwarding + 5 + state listening diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-080/netlink_route_mst.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-080/netlink_route_mst.pcap new file mode 100644 index 0000000000000000000000000000000000000000..caea3f66b91e71aec7ee2d8a831c4b1590a42263 GIT binary patch literal 1456 zcmdT^!BP`J5PiFw*(`B`kwg?p080>)KvnR>-HZMKXNwy#snWCMeup;;en7tfilY1h zj{J&MzBki}>{cv2!c@(?>7JgRe%-x$efi^Cj2ixo8h%meU$svfpPM-3UK6#%gSHy4 zI9CuQ1KN2-Wy#RPQWX4b($5XgH5d75A%^^%ehLP>hIh~k)RAC31@^cv+Z`q`br)v$ zfOeDdhv{S#Vk_H5JO$pgg3pZ7`;Q~fp=zg0T;6*7_+YU=SG9W`xbBkcHqSJxTsu@H zC9dJl+yBV((DGcD-&;d@E-0&B-@i0*MxvV4x35WET;)f3u9M>;t{ECWR~b)lNYe3^ zMuYascSJu&QC>L8dM2fIi>RC)6P@*v<4(iTB4CKzp=)yHv+S^BxNf*%*f6`?V~!?y z`UsF?dA?8a5K*BxLYyfcnau9wO^3GmQT8SGJf_$*dCTyH;kMy(!(BslyzUPT_dVu# z>`_aOReTM!xqmX(JFNLwGVDMUGQ9L>8Ty6;k0U%|pQlBK)~Uat_hO&tnNIGd6Ss3N z)tc(O)W7V@f7X;S-L;y=MY*OyUQznU|Nhjp%bGs@OHK97{^U2Sj`Lkt`Nz)w7qf4c GX7~-ZY*!cn literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-081/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-081/cmd.json new file mode 100644 index 000000000..64e62113f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-081/cmd.json @@ -0,0 +1,63 @@ +{ + "axes": { + "fix": "brmst", + "json": "0", + "words": "mst set dev d1 msti 5 state learning" + }, + "cmd": "bridge mst set dev d1 msti 5 state learning", + "desc": "positive: opt=plain cmd=brmst:mst_set_dev_d1_msti_5_state_learning", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-081", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "bridge vlan global set dev br0 vid 10 msti 5" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge mst show dev d1", + "name": "mst" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + }, + { + "cmd": "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "rc": 0 + }, + { + "cmd": "bridge vlan global set dev br0 vid 10 msti 5", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-081/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-081/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-081/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-081/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-081/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-081/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..98666ab4319f75756ba90cc10cf71ffa95fc882e GIT binary patch literal 544 zcmZuuJBk895Pdy8GrE|FP9U;o2C_~tih+Tdk>CY3U4#w%!QuhD%3i@6hS@W5MgGu6p&ls^)S!{09i}v=Db*zRt~MlExU*7ZBR~BUjcV8Zfp`ULNp{DmwTu zPNzqmEAzrTojL+Y=eBbMmSF~+Km``7Es)YL^Tsw{>{#$>qS0q=w{70YnM5}pEY5~mS%M|->jK4C-^lJhMI_w7JIIU qB3@yiXrqM~3Cuob-|8#k8`_Qj;V-pE^aWpAJ(6dn?RF3N?>zuTpf%|L literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-081/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-081/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-081/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-081/mst.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-081/mst.out new file mode 100644 index 000000000..963500fae --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-081/mst.out @@ -0,0 +1,5 @@ +port msti +d1 0 + state forwarding + 5 + state learning diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-081/netlink_route_mst.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-081/netlink_route_mst.pcap new file mode 100644 index 0000000000000000000000000000000000000000..b2e3e3cf176bb3f47698e26aa9fcfed147f5b37c GIT binary patch literal 1456 zcmdT^%T5$Q6g}NN)zdT6$_OYvKr!+h#$GQA69>!d2qLmqFsju4&ht7pIRDiu3&>I&d34KwqGZ42Q?Skn6hNI7_Mf>3%)> z9UXo-J{rZl)qN9Mf&G4rSy1})bz~fxe#*qf%-IL;=En<7zxR>r6}fKErrG4WOjTCn z8u$FZL!O78=eFX`4CT3^ta|mgdiX}7n$5E(q%N+Cqdd3CaURzKUCUKL>orLR?$YSe zU-?cL=VMY3rw7E~y%f082=s^;ZyvDfa$#8x=s3P`eCgPAztXV81M;*R zpv1$Qb&drjmF^Mmnd6bm>`v|sSn@c^zT`E-9IsqncYNcx;rQBd+ff~_{dAzwFC@)|A2STTRodUehQq8t?z9rmL*!Q_Qca-t2&HRvl+u*Z9Xy{}%l D1FKf` literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-082/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-082/cmd.json new file mode 100644 index 000000000..32faf6141 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-082/cmd.json @@ -0,0 +1,63 @@ +{ + "axes": { + "fix": "brmst", + "json": "0", + "words": "mst set dev d1 msti 5 state 2" + }, + "cmd": "bridge mst set dev d1 msti 5 state 2", + "desc": "positive: opt=plain cmd=brmst:mst_set_dev_d1_msti_5_state_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": "brlinkwrite/ec-082", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "bridge vlan global set dev br0 vid 10 msti 5" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge mst show dev d1", + "name": "mst" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + }, + { + "cmd": "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "rc": 0 + }, + { + "cmd": "bridge vlan global set dev br0 vid 10 msti 5", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-082/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-082/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-082/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-082/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-082/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-082/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..75772f7439f09211717edf965d8cbb4ae2d90db1 GIT binary patch literal 544 zcmZuuF^U2~5UknRbv;bvG!XGJ15pD{3=GVS1Y;i{W_m7&7nu1K13w^sK*S$h=vM@* zb{4!HY^d3u?&_NE-oNYV5Fo_MLOghB-zv-5HpY;?fY7ENxw01V31d6tr2+3K;tLZqZBD$KsXzSUR6H?$l5!!xx9^aWpAJ(6dn?RF3N?>zx!8ZzJj literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-082/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-082/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-082/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-082/mst.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-082/mst.out new file mode 100644 index 000000000..963500fae --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-082/mst.out @@ -0,0 +1,5 @@ +port msti +d1 0 + state forwarding + 5 + state learning diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-082/netlink_route_mst.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-082/netlink_route_mst.pcap new file mode 100644 index 0000000000000000000000000000000000000000..5292c684356f5e09d892557e38a73c3ef099023e GIT binary patch literal 1456 zcmdT^OHLa>6s(zXj|XQ6#)c5SalnL+L2|M{Y_iIV8?Z*+g%}Bm{j9U+0FiQnoB(8T z0mPC^aDYfubw55cvINVdrS9tY`gL{Jdp&bA`tvJB4Nt9xzcjY5+TU02Cb7@CI%o5DH$47vGVF)Dm185W0^gc}Goy8M+V>i&amvK#+1Z27hw22j<=8V6jO)_-6PyH#kARco!sfrHXdbP_OizmAI$C;t{HX>KN@Zr>cwk+&v4gc zj#-Zya=gQNkj?qrqu*iP-zCF3Bq75mzm{RkaNA=a3w-BkF~jK8@6dU%&+~&%^ztba z7Zg~nsn$#Hm+$h$nv(2at7%-6YZ~m9*Zn`$bcr>6kMT9tH+%Vt|HZ>M%hKW=a06S* literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-083/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-083/cmd.json new file mode 100644 index 000000000..28f367e26 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-083/cmd.json @@ -0,0 +1,63 @@ +{ + "axes": { + "fix": "brmst", + "json": "0", + "words": "mst set dev d1 msti 5 state forwarding" + }, + "cmd": "bridge mst set dev d1 msti 5 state forwarding", + "desc": "positive: opt=plain cmd=brmst:mst_set_dev_d1_msti_5_state_forwarding", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-083", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "bridge vlan global set dev br0 vid 10 msti 5" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge mst show dev d1", + "name": "mst" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + }, + { + "cmd": "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "rc": 0 + }, + { + "cmd": "bridge vlan global set dev br0 vid 10 msti 5", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-083/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-083/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-083/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-083/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-083/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-083/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..f88b3403a437c511808e728d6506a179ee53daf2 GIT binary patch literal 544 zcmZuuyNUuq5UknRbrl2UG!RiRFp$&0J46gLG7|g>G4ln2xj*88zu+H;_y>mfD+gD# zv!FZJP_sSV)ivF{kK5%OAjH!`{PFU6udG_97$f=uLYsW#$~wdcjO~(_1iT}UCJM&s z45{HgkeMYn36Jnbp-SSuCfA1d*a56Li literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-083/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-083/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-083/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-083/mst.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-083/mst.out new file mode 100644 index 000000000..aa776bf54 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-083/mst.out @@ -0,0 +1,5 @@ +port msti +d1 0 + state forwarding + 5 + state forwarding diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-083/netlink_route_mst.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-083/netlink_route_mst.pcap new file mode 100644 index 0000000000000000000000000000000000000000..b4f5fd3a7820b658a234f8e3be80ecb93b9c78a4 GIT binary patch literal 1456 zcmdT^OG*Pl5PdU~o{Vw)$NwMWHww{}dqMC9uEm`{5ZuotJb>T{Jb@CtL2#uz_j&=r zSJf4DhDf&B(DS;gtE=l(RZpvVcN3z7?@_`Bg^kCNljd6=cDa^`QlubD8Ec%w2%96NDMP|;i^+o8m|d!vqK`Z^0;K5w zTE`ebkVzaq&KN@`vpadxVZ{7M_C=mmj4^NWg5i>3&2Z6h)lfQK&esjM6jO{U$|uDb zu03t8$G`LrlNw8cWe9}?E4r6p-Ec#(fhqQRoKj}9p)I7I!;=ZlBC&6M(Wk1)y y?8~k-WlVpqreT(^sh5Yf1O8J@XIRsTUur6EcAsxnI!?Q;@Q-c(FWPUGX7~jA@?3ZT literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-084/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-084/cmd.json new file mode 100644 index 000000000..49e22db22 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-084/cmd.json @@ -0,0 +1,63 @@ +{ + "axes": { + "fix": "brmst", + "json": "0", + "words": "mst set dev d1 msti 5 state 3" + }, + "cmd": "bridge mst set dev d1 msti 5 state 3", + "desc": "positive: opt=plain cmd=brmst:mst_set_dev_d1_msti_5_state_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": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-084", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "bridge vlan global set dev br0 vid 10 msti 5" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge mst show dev d1", + "name": "mst" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + }, + { + "cmd": "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "rc": 0 + }, + { + "cmd": "bridge vlan global set dev br0 vid 10 msti 5", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-084/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-084/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-084/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-084/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-084/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-084/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..1d3ba11a64abef2e69ee0465a21bb781861f150b GIT binary patch literal 544 zcmZuuJBk895Pdy8<0vMB8i;6SAZnnpfx%`*3wr`XG4nGZn0o+I58xH_1R~zRaIdnk z?@bS^(^&9&s;geTuBv(7FXsRu{w>5WFa1Y-HNVD~(iafg>?2p!BWf^qKwcK`jxsu^ z7^kzM&JXj#JDmgpq?7C&fo1rDP9TQGIt7OGi@d1~7`x@XDtX)WCf$x)Z$++Q7MLYY zv&`FKH_B%4dD_JNkLk;!lDUsM1r>P*Wp10+EpD-Eak3gv1Fr0SIw}l#w_I z5^r`VA+~~`gq3#R&g|^$yqU4PuTKv?a`+lKd{EeXo4)YgOK5Q~6S=^GY-Q|lmf;0; z+F3S+0B+q$r9K|(4(dH`RX^$igZ^ z4>18RkvLqOA*NJjck-sewEB_ki@anp#EQzRitCCSiffA7iqi3Nzpl7%F-Fy*EHP$q z=V)_3JJ1`<+gKuOLMTMovS$%?756MQvA{kLlM1avdqdvyZJzr&ao^WHlVG-{a-Qm6 q_T`T?WlVpqrhbyHsgujL1O8J@7g^J}Z)z&v?ENqP7yWNmn&cCA8(PT# literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-085/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-085/cmd.json new file mode 100644 index 000000000..464f72092 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-085/cmd.json @@ -0,0 +1,63 @@ +{ + "axes": { + "fix": "brmst", + "json": "0", + "words": "mst set dev d1 msti 5 state blocking" + }, + "cmd": "bridge mst set dev d1 msti 5 state blocking", + "desc": "positive: opt=plain cmd=brmst:mst_set_dev_d1_msti_5_state_blocking", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-085", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "bridge vlan global set dev br0 vid 10 msti 5" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge mst show dev d1", + "name": "mst" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + }, + { + "cmd": "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "rc": 0 + }, + { + "cmd": "bridge vlan global set dev br0 vid 10 msti 5", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-085/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-085/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-085/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-085/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-085/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-085/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..ca91c7ad0c69a2f5eaa8e7c62618f2cfa9ef5c95 GIT binary patch literal 544 zcmZuuF;2rk5S;VbNpPA7yFd}{C{Pj!2T{04M}@>I5M4|nA<643kSu>pjDo&^(AFQhvRmR3#!ktr1Ku$} zh703#eyQ`#ywIgHLICM}emDZl@C2Pe9~R{rn9*IA`YKuq#J#nT#}Z=04`mJ@?M;^~I0l7&ZJJHT%?R$hi_nN3B z9<M3?HEts3XB}4D4`U_Uk7x zb?4^yfPSOlm+`0Pv2WOtE5e$8gPX-Eh@#(@-y7=eG^J z9&LL_V9x5JS~>!o%$2HFZOl5(HYFu{0j$f9R>c*`G7~FYdlsQpYWi CMOd@| literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-086/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-086/cmd.json new file mode 100644 index 000000000..6629e253d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-086/cmd.json @@ -0,0 +1,63 @@ +{ + "axes": { + "fix": "brmst", + "json": "0", + "words": "mst set dev d1 msti 5 state 4" + }, + "cmd": "bridge mst set dev d1 msti 5 state 4", + "desc": "positive: opt=plain cmd=brmst:mst_set_dev_d1_msti_5_state_4", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-086", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "bridge vlan global set dev br0 vid 10 msti 5" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge mst show dev d1", + "name": "mst" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + }, + { + "cmd": "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "rc": 0 + }, + { + "cmd": "bridge vlan global set dev br0 vid 10 msti 5", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-086/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-086/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-086/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-086/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-086/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-086/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..46e1d5471a06801dc6f71532160dd2b3886b1292 GIT binary patch literal 544 zcmZuuyKcfj5S;Vb28+fDE+Ry_6j4F}h=PKS3Y4!vbiAZUsnXGl&M{s4)B5>Zkm zLbOzr{*_2MXXf(Ql@XL-q?t4KF?a5{cXn?s&yQo&a6fAJOJVbB>f7E~gf91*s3jh> z)mYcaV8N%aen>?4m^gh&6Z%*A@4{P@N0P>emJ1oRFwy_3j%|7gxnmo$KT{ife|3uT@6tkR%;X zX*B4sdPj`28|8(gtZPzgmx!uqkLc_zIqozZJpzWz9TrT^e3c!>4Bs0r8aB)?_n6}~ zdHM{HWBhKPVgga2JVKr+-k8kS$&(IK7Dv^W-13;>gUL&VD~79v%Z8r~_2PAY({RgU zjv0?ya?Ii=(B^*bPVX@9bII@#qLAT}w`Ev2-0;}JJHGR@n5K8?Pw2kb*ZEeb@Y2|u|N3nIRmPCMfY7ENxw0ps24i2zO9S3f zLI)4V=^UwZU|zVVQ$+yj{Hz>-Wf(yxP=v)i0ebZFyrB&k+hn{7dGUOa#C_LWo@Z41K$s*=)k{5C6Xi-w-KKrKjQs)QFCJBnmpDJpwfJh;RW;0E)N)CFh_+ z;(5ji>?$ZNj5Pbk9^2z*J9+Cq-TTPld*$#+q4GL?arfY(&a-Uf0t<4KwaYyPFF2r` zRb)O9R#5OGBggfcT+6(Zo#k4hDoAm4J{|fD zt8-QBoR_#imee_+EdBamoDPY~&c6Ld>cUmxNS*WKIEZV6qODcL+jo*Q^paJiz0})d zoKr7O3}tyHq;{PsH9aR9oh8GQEJF*2E^~url_OhagM#9c;;Ld%?P7~DM#4OCZSNxNDehaWVUcqlCM8;j)%5))=z6SzXPZHB;sUzvhdf1QB}Ko?}tO p%dCM9)KNeUW?Nw2>MP&udCrU9FGKR2P?mbV($6)C%FMpqCUxN|ek9L%a_q%5Leb_b;%SE@4R6UP(q8iI z(a)|ICx)^-6H;3vN>2BQMtjL{C&SRfp^MyLO6ACA*`S~}sW_upRJ+(>jDGU85g^9E z$3Da$yhP$~afTRDncc~o1{L)q*%x`*Vu)FlYl`!Vb;UWwB}M6Yx!+J+w-{sCqAW2+ zaPDYxKl-6J7`L%RSb$K7uxQUBtSGKpY+{0a9wt>hCOdmzDVP31h* szwFB&Ys#4ZT21{VT~jBQZ3q0PnohB%W8c(NzS)7>pZ^!#Z&sS*9VV|?eEb;@5S;Vb#*hXDiU@^{0tq4+MBySGRiwNkqJw}$Lz}PU3;Y0CRJ4>dJb?!w zG2^q8_~e!Lytg|$d$T_0``-W|{w&0um(j7aJS8n;jO7Sz@lhxn(w|}Mn7AV09SQnq z8pm@b&xLh)9Zwqp#BwvGY8|j9_qBGJvK6har`K%ZlQp^D^UhQU5#Gu@ sHv|!`v{&@-f*4(xpP28K!iY1ZSN||2_l&XJ=hhp!LnCgtd%&Of00bvCRR910 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-089/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-089/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-089/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-089/mst.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-089/mst.out new file mode 100644 index 000000000..277aaa76f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-089/mst.out @@ -0,0 +1,5 @@ +port msti +d1 0 + state forwarding + 5 + state disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-089/netlink_route_mst.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-089/netlink_route_mst.pcap new file mode 100644 index 0000000000000000000000000000000000000000..db282f5ad453b203ad32da70279dd30a416a83b8 GIT binary patch literal 1456 zcmdT^yG|TI5Ukz3*;|eU^E6-s#_|Dv@HmLbiSQRVw#dvwazwcQ;mDE$$NmDN6XFL5 zku!e=lB;_9@a+n8sXfw6P0!TyOm+9}P5;N&6fOL1E!@%Ax|;oTy$2j{u8vk_psCtx z_8BDEHhH$t7z(UlEQx-8(a$aS)gSURg%tAh{UQ>03`fuiw2|TDoPId3^A56wShD_^_x^Nm8)n|I$(x-`g-;@qajhqM;xSgZ=}-cn@X zDYXvyig!XkACj^Pv~^9+)it7GdQ1#nOMx@BKt{y)@_=Qx3yX5VnB#NDRmYC=O2ZNp z)M+n3iOKtUjweVey(7Le$F$q5PM!>ybw7%}>=nZtFWg>peC616eCfF9s4CF;caGbJ zCFTt^lz56SQ8wob_v-;m_Lc(ckc0vowpZYd<6FZXp0UpJYL4vOPUybW;yhTBd#$Pc zq`+oQwO^}W*2Ku1(%rw7)3mDRG}<$!{C~>nGIP54NKW<5zGr?^aaMJWf9&9YG5BUl F!ygv`R+j(( literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-090/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-090/cmd.json new file mode 100644 index 000000000..850c6b7b2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-090/cmd.json @@ -0,0 +1,63 @@ +{ + "axes": { + "fix": "brmst", + "json": "0", + "words": "mst set dev d1 msti 4094 state 3" + }, + "cmd": "bridge mst set dev d1 msti 4094 state 3", + "desc": "boundary: opt=plain cmd=brmst:mst_set_dev_d1_msti_4094_state_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": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-090", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "bridge vlan global set dev br0 vid 10 msti 5" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge mst show dev d1", + "name": "mst" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + }, + { + "cmd": "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "rc": 0 + }, + { + "cmd": "bridge vlan global set dev br0 vid 10 msti 5", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-090/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-090/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-090/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-090/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-090/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-090/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..71e0f14dacb9ece85f7b608921caa78872b422d4 GIT binary patch literal 544 zcmZuuy$%6E5dQY|{1+~Wh@etPkRS?$P9YMVHxQjeqS1O4uOOip@dirqCd4{$y8>By|6X3Ux?a{{|&$WR_Jw8K3ogd)7q oDk!6bI0{hvIQxEQLADdjEB|mt?LN5zTU&bM4wYz|-2?V}A1-1#R{#J2 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-090/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-090/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-090/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-090/mst.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-090/mst.out new file mode 100644 index 000000000..277aaa76f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-090/mst.out @@ -0,0 +1,5 @@ +port msti +d1 0 + state forwarding + 5 + state disabled diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-090/netlink_route_mst.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-090/netlink_route_mst.pcap new file mode 100644 index 0000000000000000000000000000000000000000..29d22d68558dbd408873a2fe858602ed9532cb75 GIT binary patch literal 1456 zcmdT^K~5Aw6n))2)zgfv!VIVgC`1rYFrzE>thfPe4Le3ij0={12)8asH~}Y+Ot`@; zIfL;6CcO9S573=4y3|UlU;V0Iuj>8(t4G6&vlK1dwHAKS*t+T+9sC4#I95k1Gtf|N zgT0F++oqpQG(H8EFqK4}0eP;uu0Dxp8Y#pxJdFU`r<3D;yj$Hj;VQ5@9XShHA3yg^L(@-@7~VVk@cm@I(DeHdwSJ-2Rj#Qwwa#)X zt7(mUzWzm=-+7$d;=R`t=Zd!SH6qVBg{n8t9#Oiqibrv7Q{yD91v(b1f~(gQ8MsTW zLx06PAFFU?+Tyr{4^HPiRcuw@1Q~OSV z&75kzR==#vKjxHl|5{Gds-DwmcTM^Kl+#7#^x1E6syF+CZ&np&RoD2(j{g_qH%m9% E05S_)d;kCd literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-091/b.txt b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-091/b.txt new file mode 100644 index 000000000..1b29e89d2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-091/b.txt @@ -0,0 +1,2 @@ +link set dev d1 cost 9 hairpin on +link show dev d1 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-091/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-091/cmd.json new file mode 100644 index 000000000..43fcb8272 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-091/cmd.json @@ -0,0 +1,59 @@ +{ + "axes": { + "batch": "set-show", + "fix": "brl", + "json": "0", + "words": "-batch b.txt" + }, + "cmd": "bridge -batch b.txt", + "desc": "positive: opt=plain cmd=brl:batch:set-show", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-091", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "printf '%s\\n' 'link set dev d1 cost 9 hairpin on' 'link show dev d1' > b.txt" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge -d link show", + "name": "link" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + }, + { + "cmd": "printf '%s\\n' 'link set dev d1 cost 9 hairpin on' 'link show dev d1' > b.txt", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-091/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-091/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-091/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-091/ip.out new file mode 100644 index 000000000..824ae3c9a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-091/ip.out @@ -0,0 +1 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 9 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-091/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-091/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..a85b7be08582c3ddac3025ad282a76bbf7c3e8dd GIT binary patch literal 1524 zcmd5+O-~d-5Ph?=Jv*!etSm~5d@Mmx`3f2i+~MLs;A}XMh>&pMx*Yu(CLTQd4-DWB zFdp~h|1j~r>e_Xuv&I{tlbY9ET~%H6s(XH3fBn=z6Msh&zq#1F?Y=*0wXx5+1kKz) zQ;nCDIb``3?M#t;N-SY2i*c?PXTW{Qq&OWkpg1>|(SUAv3w?nWa-5z6Tb$SJ_VWgH z-`ws2?aod=oS*H+-0HR&cY%XWj9GH^?qb(!NbSVL_1M|RuP4U~sok4c>qpl5jC+!_ z)_JP(TCLIN3w;i`CrN$wsOlnM+j(xuM0P&rQS}2gs!VlF5!JgJ#+0uljj7zoU8b0k z^Jq7Ij$-^^4AN6m=$s|P0xQ1mIj%XXTe4eqeBr1UDE+46 zwqb=whWb=^jPJ2*&KE}dfG3tqiRX3^O03&niC2yrhLd`vaJ3%s-v75pY}CJcbj*0_ tk;Yy2sL`+YD6Z$Mqk%6j=5zmhq<8jRt5U!4BwgR`U3=(V5R^7 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-091/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-091/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-091/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-091/link.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-091/link.out new file mode 100644 index 000000000..d458404b9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-091/link.out @@ -0,0 +1,4 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 9 + hairpin on guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 +5: d2: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin off guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-091/netlink_route_link.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-091/netlink_route_link.pcap new file mode 100644 index 0000000000000000000000000000000000000000..99f913a82a2c49136ab3252817a1f1ece5795907 GIT binary patch literal 1372 zcmdT@%T5A85UgbxSa3xIA2EtTeBlFwo;d5tlUKYNZXzU}JnpZM@CE*XA^w3!e#OM< znHJg28a|GW*3U=Kg!?f*8 z`qa5Ebw1NN=V{Lm>C+AUyA&uh=|84q(J1~>-#oRYX$(-bH41n-r8q+`8AbA?&K~1* zy)ZJg4NAjQD{^H;M{LiG$AM55%djJ3c literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-092/b.txt b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-092/b.txt new file mode 100644 index 000000000..3b98ebc66 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-092/b.txt @@ -0,0 +1,2 @@ +mst set dev d1 msti 5 state 3 +mst show dev d1 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-092/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-092/cmd.json new file mode 100644 index 000000000..81920448c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-092/cmd.json @@ -0,0 +1,69 @@ +{ + "axes": { + "batch": "set-show", + "fix": "brmst", + "json": "0", + "words": "-batch b.txt" + }, + "cmd": "bridge -batch b.txt", + "desc": "positive: opt=plain cmd=brmst:batch:set-show", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "brlinkwrite/ec-092", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "bridge vlan global set dev br0 vid 10 msti 5", + "printf '%s\\n' 'mst set dev d1 msti 5 state 3' 'mst show dev d1' > b.txt" + ], + "proto": "route", + "readback": [ + { + "cmd": "bridge mst show dev d1", + "name": "mst" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + }, + { + "cmd": "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "rc": 0 + }, + { + "cmd": "bridge vlan global set dev br0 vid 10 msti 5", + "rc": 0 + }, + { + "cmd": "printf '%s\\n' 'mst set dev d1 msti 5 state 3' 'mst show dev d1' > b.txt", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-092/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-092/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-092/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-092/ip.out new file mode 100644 index 000000000..aa776bf54 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-092/ip.out @@ -0,0 +1,5 @@ +port msti +d1 0 + state forwarding + 5 + state forwarding diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-092/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ec-092/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..64fe7e2b782bf68e9317e57410a7cfb5f448c8d3 GIT binary patch literal 1616 zcmd5-O-md>5Ph?=Jv*)wHLfNxe&bh+tE`fPhkyqU67UD)n&8P#^x}2!mnZ~s&s{Kx z|G=YvMaX;IwZ>@{yxP$7x~i*RS9MkG-rxSYs-cemqmD-kD|fAfh2Q_<#%}NXm?U%P+?}6t8l)Pwp>VYsTF2 zk#CrYJG?y*-zSb!a=cUrYtQ`CRo$UFC@F~Nf;_+Im}czDJyWAxh)2FO7>nYJbCILz zW6Qbwz+fFuX*6lCdPvCgJt;~@S=VIL&JdOJJ)*PMb6jaSS_IU~N}e#x$soDUaNKap zuxWOM#{zE{r}qE_2AQSEp?{FQ$=KB4U-eJu9l4HRaM2Xulqu+ zb#TYNf=T!TZoU(6T%qgGswdJ%{R&yHUVP64`9joEkl>uLGPVM)jXHM0#m+V

F4+=l`cJr#dIjpzsl|bbJ9QqNGciik2^+ zK;q5r1h5rEN?2+4?aa>3&YKy#)x5v;hn<9Q|0(_z{f84GLZ``$X3P*XBl3w zNjs~^ED>f<@SL9;`f2lAW;Z`2_z*v@7tVm!un$>*JOVV%=!g5X-EQDh_o#M#v^#B_ zoSoKPY-wAMr@&sx`HUzXp4Tmhtes?{`R(na?e6|e)^5jfy(8Be&tzt~4pSARxVk&f zJ>+>y^PCsI--hHlp)B=!p`Tk4m6?6JMe4#;{79bjTZJqZ9WX-2(|`Ybxid r{$*eOT2sdK*J|n~>6$vZY&+mT)pVLQ9si-G^3A^W@W1GMv(h9VGfr8J literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-001/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-001/cmd.json new file mode 100644 index 000000000..eb1aa9145 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-001/cmd.json @@ -0,0 +1,48 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 self" + }, + "cmd": "bridge link set dev d1 self", + "desc": "negative: opt=plain cmd=ng:brl:link_set_dev_d1_self: self on a dummy: no ndo_bridge_setlink (K18)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_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": 255, + "refused_by": "kernel" + }, + "id": "brlinkwrite/ng-001", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-001/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-001/ip.err new file mode 100644 index 000000000..3df9d21fb --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-001/ip.err @@ -0,0 +1 @@ +RTNETLINK answers: Operation not supported diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-001/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-001/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-001/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-001/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..0f05c3d38366a82dcb99815bf12a45718fc6b5cf GIT binary patch literal 564 zcmca|c+)~A1{MYcU}5+Rwi&Vrc< zD0UF4jvJ^hFDExY&j8{!RJDviSq27Y0f?C#KweUj0oV`d>OdiJ7|HGwL+s|UqN_84 z`1Lo?uPQ(}5JvZ_2vCR_#jg-Oy7fE^4nR2&M%M%M4udcQD}ydHoY_H2K?7v#aBRdRLJ56(B&$T znekczuTt@(S-;P`*?rGn&1)UP;@2#W3~oQOqAn6F=nJr>`^c5u5ElqcPF|Prjxnxq z7C4Ks@XPU)lwA)V>Y5!i+&=mbVEC@UbRKjbY;$lOQIJ11{jZmR9fy=}-1SOp$Z zr#WV{dYN@I_&jZ*`E&Prep)Z`dG~JCcg}jvn&8hmVag0$YwGd)E)@lQ~%c literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-002/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-002/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-002/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-003/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-003/cmd.json new file mode 100644 index 000000000..8194f437a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-003/cmd.json @@ -0,0 +1,48 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 master hwmode vepa" + }, + "cmd": "bridge link set dev d1 master hwmode vepa", + "desc": "negative: opt=plain cmd=ng:brl:link_set_dev_d1_master_hwmode_vepa: hwmode wipes master: self alone (B81, K18)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_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": 255, + "refused_by": "kernel" + }, + "id": "brlinkwrite/ng-003", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-003/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-003/ip.err new file mode 100644 index 000000000..3df9d21fb --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-003/ip.err @@ -0,0 +1 @@ +RTNETLINK answers: Operation not supported diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-003/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-003/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-003/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-003/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..811e40dbdca6605b14c5a7591ca4c6f9d0c0d72f GIT binary patch literal 580 zcmca|c+)~A1{MYcU}5+Rwi&Vrc< zD0UF4jvJ^hFDExY&j8{!RJDviSq27Y0f?C#KweUj0oV`d>OdiJ7|HGwL+s|UqN_84 z_;owbuPQ(}5JvZ_2vCR_#jg-OZ-II|fN~&=t_Kw8!VIhoy3lZD2Ppxmg8~)?o(2&H uDF!wm9~2&JK(~W@35q|4WL}0CARC0y&Gi8afz*S{1%>;<|NsA!YZm~2XgOv8 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-003/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-003/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-003/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-004/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-004/cmd.json new file mode 100644 index 000000000..4d3a44bf7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-004/cmd.json @@ -0,0 +1,48 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 hwmode vepa master" + }, + "cmd": "bridge link set dev d1 hwmode vepa master", + "desc": "negative: opt=plain cmd=ng:brl:link_set_dev_d1_hwmode_vepa_master: master then self: the master half applies, self fails (B81)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_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": 255, + "refused_by": "kernel" + }, + "id": "brlinkwrite/ng-004", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-004/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-004/ip.err new file mode 100644 index 000000000..3df9d21fb --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-004/ip.err @@ -0,0 +1 @@ +RTNETLINK answers: Operation not supported diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-004/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-004/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-004/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-004/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..ddfef68727c4c69d96b7c9100f3d7192848eee8b GIT binary patch literal 580 zcmca|c+)~A1{MYcU}5+RpgDJd@*s@O903L<29P;n6%YkLZ490aAd-QBoq?GlC!c{q2gpWMXTi(_ z6gvo2#|>1Mmy?^HX8>^%ECYkH0K`lVATO!N0PF{Jb)b+qjAVC;A$Idv(bXA2 z{8|F^s|rvKgwg#f0u*9K@he2n44@tlpd1LJ>j4G2Fas-tE;O9kK}taCpn!#er$K~4 xih&Kt2llT_C+My8sGpJ5&Gw literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-004/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-004/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-004/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-005/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-005/cmd.json new file mode 100644 index 000000000..08b1075f7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-005/cmd.json @@ -0,0 +1,49 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 mab on" + }, + "cmd": "bridge link set dev d1 mab on", + "desc": "negative: opt=plain cmd=ng:brl:link_set_dev_d1_mab_on: MAB without locked and learning (K19)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_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", + "extack": "Bridge port must be locked and have learning enabled when MAB is enabled", + "rc": 255, + "refused_by": "kernel" + }, + "id": "brlinkwrite/ng-005", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-005/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-005/ip.err new file mode 100644 index 000000000..9c76e7102 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-005/ip.err @@ -0,0 +1 @@ +Error: Bridge port must be locked and have learning enabled when MAB is enabled. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-005/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-005/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-005/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-005/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..4b217e15589ed2b1c54b4613c0d593ce4de66a9b GIT binary patch literal 636 zcmb7BJ5Iwu5FLAMIVdS2LW{Ho1qGmhgp`5?Q&Hp)HeMxGoHcR+h>jz01h@h>KoK{f znM1YhLL7HpEqy!jo%k9&n|hiHjkD_4&Hi`&t*UZ#O&mW>cb)1K75-T zaR^*hu#Oh((w1X*oS%R`&}ZMo(rm&xhZ0uC|11R86JmCo>k%dF%w;a#^;cPz|KT6vmas^Z zk&@SWF_+Vu*<8j-X8F}bB{I^997ngvRaEFykEGI3oS}0!R$30vLz&K2HGbYNT})b| literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-005/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-005/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-005/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-006/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-006/cmd.json new file mode 100644 index 000000000..0a85557a7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-006/cmd.json @@ -0,0 +1,48 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 cost 65536" + }, + "cmd": "bridge link set dev d1 cost 65536", + "desc": "negative: opt=plain cmd=ng:brl:link_set_dev_d1_cost_65536: above BR_MAX_PATH_COST (K22)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_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": "brlinkwrite/ng-006", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-006/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-006/ip.err new file mode 100644 index 000000000..792559a72 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-006/ip.err @@ -0,0 +1 @@ +RTNETLINK answers: Numerical result out of range diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-006/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-006/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-006/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-006/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..b6fafd6534893b9c4fccd5b95fed2dcd4aabdc09 GIT binary patch literal 556 zcmb7ByAA7)qQeK!xh(2RE0uz4}${O?%JkugBE;vUPHRL?YQzFle zefck*B7BJFxw8O{VFH~%2!rK@JdD%0zVTT*CAd6s>*Z>*?%2Dfu^zj?xM(@E%x2q8 ztii=;6X&mg&%3|*GA^!XwN|OM&Ys-WT4BkgwAz^gX9n!a-5KdFBZGFb=TH#g5-Xsv dmmcuWdb1I^rp)9n*N`RcOkCRaJ&K}#_}{#~K6L;9 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-006/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-006/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-006/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-007/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-007/cmd.json new file mode 100644 index 000000000..daf7b243c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-007/cmd.json @@ -0,0 +1,48 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 cost -1" + }, + "cmd": "bridge link set dev d1 cost -1", + "desc": "negative: opt=plain cmd=ng:brl:link_set_dev_d1_cost_-1: atoi -1 is 0xffffffff in a __u32 (B78, K22)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_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": "brlinkwrite/ng-007", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-007/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-007/ip.err new file mode 100644 index 000000000..792559a72 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-007/ip.err @@ -0,0 +1 @@ +RTNETLINK answers: Numerical result out of range diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-007/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-007/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-007/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-007/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..5257291376e28d409a862322e53ebd12694fc593 GIT binary patch literal 556 zcma)3yAAu_m;phjG+_A!eF(f4)ZjxZ+zCy2`^9HX0_gKI`-SrT#sE~RIr*MZ}VLz z_TcigiObi!7v0}_8JE|yUR(59V^46sR#-AAuXbk2nE`u(J0ss^WYA9boE1g9BqBry d`FSz)&t}w`uqU`$Lzc8NX=&FF&G7!O{u@2uK)C<_ literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-007/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-007/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-007/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-008/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-008/cmd.json new file mode 100644 index 000000000..cca5032bb --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-008/cmd.json @@ -0,0 +1,48 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 priority 64" + }, + "cmd": "bridge link set dev d1 priority 64", + "desc": "negative: opt=plain cmd=ng:brl:link_set_dev_d1_priority_64: above BR_MAX_PORT_PRIORITY (K22)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_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": "brlinkwrite/ng-008", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-008/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-008/ip.err new file mode 100644 index 000000000..792559a72 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-008/ip.err @@ -0,0 +1 @@ +RTNETLINK answers: Numerical result out of range diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-008/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-008/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-008/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-008/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..4b7cc8656d7efb58495005682f2c6e92828b76fd GIT binary patch literal 556 zcmca|c+)~A1{MYcU}5+R>yMfH&9((PHujl0mN;nY8ipD3=GZ!5HmS|yrd!nupiLXfkNUilHDnW*v(@_S7!wA z>nEUJRe*9JjP6$vpb#^PUm<#AD>)f#fN~&=t_S3AVFp$PJ!m+ygOq^OK>-f~PXim! lOa~wz6lZEcvjTu@5Jor40Vo6tGmu%Ju)g>I|9?`<2LSItIV1o8 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-008/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-008/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-008/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-009/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-009/cmd.json new file mode 100644 index 000000000..c6ef0ba68 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-009/cmd.json @@ -0,0 +1,48 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 priority 70000" + }, + "cmd": "bridge link set dev d1 priority 70000", + "desc": "negative: opt=plain cmd=ng:brl:link_set_dev_d1_priority_70000: 70000 is 4464 in a __s16 (B79, K22)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_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": "brlinkwrite/ng-009", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-009/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-009/ip.err new file mode 100644 index 000000000..792559a72 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-009/ip.err @@ -0,0 +1 @@ +RTNETLINK answers: Numerical result out of range diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-009/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-009/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-009/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-009/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..6490c28ad01900b31738ab84a5cebce7b17bb658 GIT binary patch literal 556 zcmca|c+)~A1{MYcU}5+R>yMfH&9((PHujl0mN;nY8ipD3=GZ!5HmS|yrd!nupiLXfkNUilHDnW*v(@_S7!wA z>j|J=Re*9JjP6$vpb#^PUm{s7Gi0Lp*iDAyAls%mRh=z5oCJlVUyqFsnK& literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-009/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-009/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-009/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-010/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-010/cmd.json new file mode 100644 index 000000000..83cdc5b1f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-010/cmd.json @@ -0,0 +1,48 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 state 5" + }, + "cmd": "bridge link set dev d1 state 5", + "desc": "negative: opt=plain cmd=ng:brl:link_set_dev_d1_state_5: above BR_STATE_BLOCKING", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_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": "brlinkwrite/ng-010", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-010/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-010/ip.err new file mode 100644 index 000000000..c63490758 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-010/ip.err @@ -0,0 +1 @@ +RTNETLINK answers: Invalid argument diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-010/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-010/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-010/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-010/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..6cee816b2263dc97c241c7104dc66df90e68776d GIT binary patch literal 556 zcmca|c+)~A1{MYcU}5+Rz|O$TkdqHI2gpWMXTi(_ z6gvo2#|>1Mmy?^HX8>^%ECYkH0K`lVATO!N0PF{Jb)b+qjAVC;A$Idv(bXA2 z{K^CLs|rvKgwg#f0u*9K@he1+F;I^UP!5FA^?>{>%)rW^2MuR-kP?tODBxk>Xh($ literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-010/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-010/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-010/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-011/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-011/cmd.json new file mode 100644 index 000000000..71f6418e2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-011/cmd.json @@ -0,0 +1,48 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 state 300" + }, + "cmd": "bridge link set dev d1 state 300", + "desc": "negative: opt=plain cmd=ng:brl:link_set_dev_d1_state_300: 300 is 44 in a __s8 (B80)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_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": "brlinkwrite/ng-011", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-011/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-011/ip.err new file mode 100644 index 000000000..c63490758 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-011/ip.err @@ -0,0 +1 @@ +RTNETLINK answers: Invalid argument diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-011/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-011/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-011/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-011/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..38fda13d149909189c9ba70ef50e886e677d0dea GIT binary patch literal 556 zcmca|c+)~A1{MYcU}5+R>yMfH&9((PHujl0mN;nY8ipD3=GZ!5HmS|yrd!nupiLXfkNUilHDnW*v(@_S7!wA z>vW)BRe*9JjP6$vpb#^PUm<#S0rl7b+pg+O5jG7A*eum1o4Pm1{flnOn0 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-011/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-011/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-011/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-012/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-012/cmd.json new file mode 100644 index 000000000..1532fcd0e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-012/cmd.json @@ -0,0 +1,48 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 mcast_router 4" + }, + "cmd": "bridge link set dev d1 mcast_router 4", + "desc": "negative: opt=plain cmd=ng:brl:link_set_dev_d1_mcast_router_4: no router type 4 (K22)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_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": "brlinkwrite/ng-012", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-012/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-012/ip.err new file mode 100644 index 000000000..c63490758 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-012/ip.err @@ -0,0 +1 @@ +RTNETLINK answers: Invalid argument diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-012/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-012/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-012/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-012/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..45750f4de7c90336e6c851514553595c24b47790 GIT binary patch literal 556 zcmca|c+)~A1{MYcU}5+R>yMfH&9((PHujl0mN;nY8ipD3=GZ!5HmS|yrd!nupiLXfkNUilHDnW*v(@_S7!wA zt3A-KDnL09M)#`-P>31DuMj=)Ks`1TY0%!yW zgDe9lBgCA2Ky&T@^)qz6dFp}LVhS<$xMOSA8 z@#`_5UsZr|AdK!;5ugw=ieDjm-T?L30Odd!T@T3L!VIho`p|G@2Ppxmg907~o(5J1 lNpSdp;_M61tN@@K2&0?j02Bg+8OSV9Sik!J|34|_0|58`J|F-9 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-013/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-013/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-013/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-014/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-014/cmd.json new file mode 100644 index 000000000..529ace628 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-014/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brlstp", + "json": "0", + "words": "link set dev d1 state forwarding" + }, + "cmd": "bridge link set dev d1 state forwarding", + "desc": "negative: opt=plain cmd=ng:brlstp:link_set_dev_d1_state_forwarding: kernel STP owns the state (K21)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_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": "EBUSY", + "rc": 255, + "refused_by": "kernel" + }, + "id": "brlinkwrite/ng-014", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "ip link set br0 type bridge stp_state 1" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + }, + { + "cmd": "ip link set br0 type bridge stp_state 1", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-014/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-014/ip.err new file mode 100644 index 000000000..498184529 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-014/ip.err @@ -0,0 +1 @@ +RTNETLINK answers: Device or resource busy diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-014/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-014/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-014/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-014/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..c71599a15adfe2b11235a79dc5a92af6e22905f5 GIT binary patch literal 556 zcmb7BtBwLe5UkzV4NpM;dk%r%tq>m(3|Gl8?ZlE=$$U zCa@C>lhkZacXjPl&pG-z`Uvn?0seVt|J9b?vm%C!1q3GfDAZ~aRd}XDUXpOOJU&qH ztWHFo3+uuwoeF$N=d`y3wqXM8Kn@10Ezn||6~+- kh?lN1%7>8ml|Q|inHMo-EVx=DrZh8YY1Y>`j^EM01Jx=$1poj5 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-014/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-014/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-014/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-015/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-015/cmd.json new file mode 100644 index 000000000..6c2066c03 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-015/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brldown", + "json": "0", + "words": "link set dev d1 state forwarding" + }, + "cmd": "bridge link set dev d1 state forwarding", + "desc": "negative: opt=plain cmd=ng:brldown:link_set_dev_d1_state_forwarding: the port is down (K21)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_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": "ENETDOWN", + "rc": 255, + "refused_by": "kernel" + }, + "id": "brlinkwrite/ng-015", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "ip link set d1 down" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + }, + { + "cmd": "ip link set d1 down", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-015/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-015/ip.err new file mode 100644 index 000000000..090630d1d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-015/ip.err @@ -0,0 +1 @@ +RTNETLINK answers: Network is down diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-015/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-015/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-015/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-015/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..e7458b3327c7e16a5fa92a8e24a949cb353388c3 GIT binary patch literal 556 zcmb7BJ8r^26dZePVLp*ipruQZBH@#Yf+A8XI?jOTAhtxCCdxU|A2@;R485igG#YTqI6A%A+a2WpL&3$E5XOPZOqH0$3qP4ChF2LY)*FaQ7m literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-015/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-015/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-015/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-016/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-016/cmd.json new file mode 100644 index 000000000..7aac1202b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-016/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "fix": "brldown", + "json": "0", + "words": "link set dev d1 state disabled" + }, + "cmd": "bridge link set dev d1 state disabled", + "desc": "negative: opt=plain cmd=ng:brldown:link_set_dev_d1_state_disabled: not running: even disabled is refused (K21)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_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": "ENETDOWN", + "rc": 255, + "refused_by": "kernel" + }, + "id": "brlinkwrite/ng-016", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "ip link set d1 down" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + }, + { + "cmd": "ip link set d1 down", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-016/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-016/ip.err new file mode 100644 index 000000000..090630d1d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-016/ip.err @@ -0,0 +1 @@ +RTNETLINK answers: Network is down diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-016/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-016/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-016/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-016/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..6b2261572c18e1173055c4a5ef18afd472277ae7 GIT binary patch literal 556 zcmca|c+)~A1{MYcU}5+RTY0%!yW zgDe9lBg7m}pgDJd@*s@O903L<29P-)t04-2+88_;KqLbLI|DOAPCf&J4v>wi&Vrc< zD0UF4jvJ^hFDExY&j8{!RJDviSq27Y0f?C#KweUj0oV`d>OdjU1jHZ!vOC2PyLqfY z`NK$VOfiD^H4x}m6`&jlqx)3^D8!87SBRb&Ks`1`y5Xr#6&cMu&lh44Q17xGBvtVWd ziXDWi;|8kB%gN2pGk~}aRV^b>mVv=p0AeNwke5_s0QLjAI#5U)MzTA_5W9J-=<19h ze(eMLRRt&q!svb#0SYmr_!Xk(7*LN5P!5FA^?>{>%)rW^4-IE_ARpux7~o;xX#n{L j*iDAyAls%mRh=!vFvOlVUyqi9k22 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-017/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-017/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-017/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-018/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-018/cmd.json new file mode 100644 index 000000000..183eef57a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-018/cmd.json @@ -0,0 +1,54 @@ +{ + "axes": { + "fix": "brmstoff", + "json": "0", + "words": "mst set dev d1 msti 5 state 3" + }, + "cmd": "bridge mst set dev d1 msti 5 state 3", + "desc": "negative: opt=plain cmd=ng:brmstoff:mst_set_dev_d1_msti_5_state_3: MST off (K20)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_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": "EBUSY", + "extack": "Can't modify MST state when MST is disabled", + "rc": 255, + "refused_by": "kernel" + }, + "id": "brlinkwrite/ng-018", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + }, + { + "cmd": "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-018/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-018/ip.err new file mode 100644 index 000000000..82c1a6d73 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-018/ip.err @@ -0,0 +1 @@ +Error: bridge: Can't modify MST state when MST is disabled. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-018/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-018/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-018/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-018/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..4a1b337b161d15ad996e0b5d0ac020b9a384c56a GIT binary patch literal 644 zcmbtROG?8~6g~O16%mTbv$CvKqTqH6zxX zF(<0m95d8|gWdYhZGi}`mK7{x2`%(tJhV8s%;m6$>?{8;CHE6;QJwpdA>PmwZn^ze yQ565_=d!;)iGr)}NDaMYBUj@zh(>qn{Nhq&xtE9P_Bu>TH_B8HWu7000e%44{7mEk literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-018/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-018/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-018/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-019/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-019/cmd.json new file mode 100644 index 000000000..12293d421 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-019/cmd.json @@ -0,0 +1,59 @@ +{ + "axes": { + "fix": "brmst", + "json": "0", + "words": "mst set dev d1 msti 0 state 3" + }, + "cmd": "bridge mst set dev d1 msti 0 state 3", + "desc": "negative: opt=plain cmd=ng:brmst:mst_set_dev_d1_msti_0_state_3: MSTI 0 is the CST: the policy's range is 1-4094", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_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", + "extack": "integer out of range", + "rc": 255, + "refused_by": "kernel" + }, + "id": "brlinkwrite/ng-019", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "bridge vlan global set dev br0 vid 10 msti 5" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + }, + { + "cmd": "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "rc": 0 + }, + { + "cmd": "bridge vlan global set dev br0 vid 10 msti 5", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-019/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-019/ip.err new file mode 100644 index 000000000..60fb58593 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-019/ip.err @@ -0,0 +1 @@ +Error: integer out of range. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-019/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-019/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-019/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-019/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..c85522bf04faa93d685621990e512919ddc19853 GIT binary patch literal 660 zcmbtRJxc>Y5PkQRoER{g6eC!868sa2XAt8Z91#=(rtnAD+F6SKK!TN( zU@86+Ip4cI&|A{EFuSueZ{O^j`ItRFxbX42e0=k=^V+$1x&{XHW$?Z7kgK&tTY=;4 z5?2PSEyN}k9K-WQo=@gw^LW~DA)d*^0Qd}t&<-@=VUz*e^y|2R=Q8$E;TDNYN0(U| zo4?hu4zs{P+i-@wo#b(;!N#c*vp=;@_vZ5jHm+~9zEf+DIhn1s%aB*oYThj007uNp z>^J)ibr2w~`rH&mxN2=+9jj=d3uoG>{vEJ}^lFB8x4!{M9Vf#ikFu+Al$}NSaXL&?I%Flyum^wIq5?Aspha!Pk`Tg}IsE_>bVi&2 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-019/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-019/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-019/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-020/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-020/cmd.json new file mode 100644 index 000000000..c6561b681 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-020/cmd.json @@ -0,0 +1,59 @@ +{ + "axes": { + "fix": "brmst", + "json": "0", + "words": "mst set dev d1 msti -1 state 3" + }, + "cmd": "bridge mst set dev d1 msti -1 state 3", + "desc": "negative: opt=plain cmd=ng:brmst:mst_set_dev_d1_msti_-1_state_3: -1 is 65535 in a __u16 (B87)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_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", + "extack": "integer out of range", + "rc": 255, + "refused_by": "kernel" + }, + "id": "brlinkwrite/ng-020", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "bridge vlan global set dev br0 vid 10 msti 5" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + }, + { + "cmd": "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "rc": 0 + }, + { + "cmd": "bridge vlan global set dev br0 vid 10 msti 5", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-020/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-020/ip.err new file mode 100644 index 000000000..60fb58593 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-020/ip.err @@ -0,0 +1 @@ +Error: integer out of range. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-020/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-020/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-020/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-020/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..a83c6adc3db21df828894905d6ec1f1ed2d6f304 GIT binary patch literal 660 zcmbtRJxc>Y5PiFQNlpwHObQi+D^gg9o>nRBtOWmrk~4_$4vyGaj zgOtJ6(qAC!o7;ormUJ%6e$2divu|cLeS6Xfuvh_p`8fP+-#$+idc2DvFvTHPS^Kn2 zD04(y;qbN)dstJBXF{Gi<6^6LTF?-l*9Qk+8qOg*(15`(0}gnv;(A8Y_fg{3iA#rf zSsJ^)Rk4au;H>31L%y!^xX|F^q!ZJn+Wq6zd^I0;;jzL|5u zn3$h)N>>{-#ATlw0ufxfcCmvk)X{+&*ZFU2L9{OP$_#(V{X(pm&;3Xjd#Ht5djDmu x{ZGAZ*1t(d$soz2?0ytw*HM0%4iYIHvXacOi(uTO0yhbu$=})yK?ugp=?~p9PAvcc literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-020/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-020/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-020/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-021/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-021/cmd.json new file mode 100644 index 000000000..5c55f432f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-021/cmd.json @@ -0,0 +1,59 @@ +{ + "axes": { + "fix": "brmst", + "json": "0", + "words": "mst set dev d1 msti 70000 state 3" + }, + "cmd": "bridge mst set dev d1 msti 70000 state 3", + "desc": "negative: opt=plain cmd=ng:brmst:mst_set_dev_d1_msti_70000_state_3: 70000 is 4464 in a __u16 (B87)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_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", + "extack": "integer out of range", + "rc": 255, + "refused_by": "kernel" + }, + "id": "brlinkwrite/ng-021", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "bridge vlan global set dev br0 vid 10 msti 5" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + }, + { + "cmd": "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "rc": 0 + }, + { + "cmd": "bridge vlan global set dev br0 vid 10 msti 5", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-021/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-021/ip.err new file mode 100644 index 000000000..60fb58593 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-021/ip.err @@ -0,0 +1 @@ +Error: integer out of range. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-021/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-021/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-021/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-021/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..37aa0d53a5bc8c09b35877832c73228b500c5121 GIT binary patch literal 660 zcmbtRyGjF55Iy@yvSPq!Qm80wkwQ>(wMt}S~8Y3m<^;2&6u zeAW!aF>~h3Ju@GRw`UhVewUALJ`Ufzcl*Nt1Kwruz4FjiYmc@8$2%gf zbXZ$}U932U=Zrj`jLVksbl^ffua5@6G+aPC(1M3a3LNlW#|=D}zIlaPB`%rVr%7b~ zR>wMw0_PpW8Sr(LMWqHCr%o*X)V@Am&eyPUCr0atTKkO2Y^^=IyqZ>%Gh@z(F`1on zN>>*RL{*<#f(Tcw9c*J0P4wX8P5%2~9YnjOUd=Ek_Y1KyoBN3__Rtl#djC}v#eeE; tvHoo`jmL2orn707-h|m@GLBU`U?t744?k~Hftdu*=5LENA%rn=`T8 zou&9EvYxYdLHCl*3$r_S=FFLUWZw-KD7(!p52@jJD*ri{`4Lp~z*9x~nTspbV z(%8JMj&+y?PCAA&yVwa!#@03n+nV(fHt)it3n84_Vfc{xJU{B literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-022/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-022/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-022/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-023/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-023/cmd.json new file mode 100644 index 000000000..9502be2f3 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-023/cmd.json @@ -0,0 +1,59 @@ +{ + "axes": { + "fix": "brmst", + "json": "0", + "words": "mst set dev d1 msti 5 state 5" + }, + "cmd": "bridge mst set dev d1 msti 5 state 5", + "desc": "negative: opt=plain cmd=ng:brmst:mst_set_dev_d1_msti_5_state_5: above BR_STATE_BLOCKING: the policy", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_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", + "extack": "integer out of range", + "rc": 255, + "refused_by": "kernel" + }, + "id": "brlinkwrite/ng-023", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "bridge vlan global set dev br0 vid 10 msti 5" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + }, + { + "cmd": "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "rc": 0 + }, + { + "cmd": "bridge vlan global set dev br0 vid 10 msti 5", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-023/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-023/ip.err new file mode 100644 index 000000000..60fb58593 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-023/ip.err @@ -0,0 +1 @@ +Error: integer out of range. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-023/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-023/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-023/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-023/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..0a292b9ea6d46a82a37267e8032b55a3a9456075 GIT binary patch literal 660 zcmbtRyGjF55Iy@!Hkcxq6e+LM#M3zd&&fV%&wWRwCpxZ0)T50|`Pt zz*77ZSJ7IB#J{TLRxJl}w#&$|@Xh zm$=elT_Lv6atzNAc|IAJEaU0Gg?Q$V2Ea6&LO0Nahj9iBXxDK=&!z9J!mSXOj_5!EUsQd7z?S%>2?DTh@koo%4A9~P5>i_@% literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-023/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-023/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-023/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-024/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-024/cmd.json new file mode 100644 index 000000000..5f012dc01 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-024/cmd.json @@ -0,0 +1,59 @@ +{ + "axes": { + "fix": "brmst", + "json": "0", + "words": "mst set dev d1 msti 5 state 255" + }, + "cmd": "bridge mst set dev d1 msti 5 state 255", + "desc": "negative: opt=plain cmd=ng:brmst:mst_set_dev_d1_msti_5_state_255: UINT8_MAX passes bridge, not the policy", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_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", + "extack": "integer out of range", + "rc": 255, + "refused_by": "kernel" + }, + "id": "brlinkwrite/ng-024", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "bridge vlan global set dev br0 vid 10 msti 5" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + }, + { + "cmd": "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "rc": 0 + }, + { + "cmd": "bridge vlan global set dev br0 vid 10 msti 5", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-024/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-024/ip.err new file mode 100644 index 000000000..60fb58593 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-024/ip.err @@ -0,0 +1 @@ +Error: integer out of range. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-024/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-024/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-024/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-024/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..c92132ae77daf9d8be92f0a22905fa6e9f4a25f8 GIT binary patch literal 660 zcmbtRyGjF55Iy@!Hkcxq6e&YU^(xNpt$mO00a zN$i|`y1EDuS9@*>B3yM=v4SNu(1SB+uy6Ghutq_xKfEXR6K#pj{XiFY=!#pr|0s&$ uKlPSb|1upX!z7Qgn{kv~MEPktOjJ5#rCsVi{7HLef;PMTohM|z{`3byEK8^W literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-024/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-024/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-024/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-025/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-025/cmd.json new file mode 100644 index 000000000..25afe1dd7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-025/cmd.json @@ -0,0 +1,47 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 bogus on" + }, + "cmd": "bridge link set dev d1 bogus on", + "desc": "negative: opt=plain cmd=ng:brl:link_set_dev_d1_bogus_on: an unknown word is usage (B85)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=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": "brlinkwrite/ng-025", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-025/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-025/ip.err new file mode 100644 index 000000000..3fcd79477 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-025/ip.err @@ -0,0 +1,25 @@ +Usage: bridge link set dev DEV [ cost COST ] [ priority PRIO ] [ state STATE ] + [ guard {on | off} ] + [ hairpin {on | off} ] + [ fastleave {on | off} ] + [ root_block {on | off} ] + [ learning {on | off} ] + [ learning_sync {on | off} ] + [ flood {on | off} ] + [ mcast_router MULTICAST_ROUTER ] + [ mcast_flood {on | off} ] + [ bcast_flood {on | off} ] + [ mcast_to_unicast {on | off} ] + [ mcast_max_groups MAX_GROUPS ] + [ neigh_suppress {on | off} ] + [ neigh_vlan_suppress {on | off} ] + [ neigh_forward_grat {on | off} ] + [ vlan_tunnel {on | off} ] + [ isolated {on | off} ] + [ locked {on | off} ] + [ mab {on | off} ] + [ hwmode {vepa | veb} ] + [ backup_port DEVICE ] [ nobackup_port ] + [ backup_nhid NHID ] + [ self ] [ master ] + bridge link show [dev DEV] [master DEVICE] diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-025/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-025/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-025/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-025/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..db9eed6a83307b939ca0eef7c0653ef0b8a96d54 GIT binary patch literal 384 zcmca|c+)~A1{MYcU}5+R z1Qa_6RmTlfmzR^9pJxDZ8>(7HpezG}vjD_Q4j?b7$N=mIbakMRIE-X>iXnFMSkcuP ZLHx=K^s5R`4usMDDgqQ@M)4~H0|2jSDs=z= literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-025/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-025/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-025/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-026/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-026/cmd.json new file mode 100644 index 000000000..c41e41e0c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-026/cmd.json @@ -0,0 +1,47 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 hairpin maybe" + }, + "cmd": "bridge link set dev d1 hairpin maybe", + "desc": "negative: opt=plain cmd=ng:brl:link_set_dev_d1_hairpin_maybe: parse_on_off returns -EINVAL: rc 234 (B84)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 234, + "refused_by": "ack-then-fail" + }, + "id": "brlinkwrite/ng-026", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 234, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-026/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-026/ip.err new file mode 100644 index 000000000..980b4f01d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-026/ip.err @@ -0,0 +1 @@ +Error: argument of "hairpin" must be one of "off", "on", not "maybe" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-026/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-026/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-026/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-026/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..9c78a206f5103322539c1a61e1eca71a22283ed9 GIT binary patch literal 384 zcmca|c+)~A1{MYcU}5+Rwi&Vrc< zD0UF4jvJ^hFDExY&j8{!RJDviSq27Y0f?C#KweUj0oV`d>OdiJ7|HGwL+s|UqN_84 Y__Z16R~4Wf2&4N|1SrIe;#UR+05vr$t^fc4 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-026/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-026/ip.rc new file mode 100644 index 000000000..7b5813c6a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-026/ip.rc @@ -0,0 +1 @@ +234 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-027/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-027/cmd.json new file mode 100644 index 000000000..9935f917b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-027/cmd.json @@ -0,0 +1,47 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 state bogus" + }, + "cmd": "bridge link set dev d1 state bogus", + "desc": "negative: opt=plain cmd=ng:brl:link_set_dev_d1_state_bogus: Error: invalid STP port state", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=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": "brlinkwrite/ng-027", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-027/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-027/ip.err new file mode 100644 index 000000000..01089d7ef --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-027/ip.err @@ -0,0 +1 @@ +Error: invalid STP port state diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-027/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-027/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-027/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-027/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..206649ec8a400b3bc36c81cf77d49a36dd971c66 GIT binary patch literal 384 zcmca|c+)~A1{MYcU}5+R`y5Xr#6&cMu&lh44Q17xGBvtVWd ziXDWi;|8kB%gN2pGk~}aRV^b>mVv=p0AeNwke5_s0QLjAI#5U)MzTA_5W9J-=<19h YeysxfRRt&q!svb#0SYmr_?3YH034qsQvd(} literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-027/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-027/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-027/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-028/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-028/cmd.json new file mode 100644 index 000000000..bfbb2268f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-028/cmd.json @@ -0,0 +1,47 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 hwmode x" + }, + "cmd": "bridge link set dev d1 hwmode x", + "desc": "negative: opt=plain cmd=ng:brl:link_set_dev_d1_hwmode_x: Mode argument must be vepa or veb", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=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": "brlinkwrite/ng-028", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-028/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-028/ip.err new file mode 100644 index 000000000..7a9b4004d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-028/ip.err @@ -0,0 +1 @@ +Mode argument must be "vepa" or "veb". diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-028/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-028/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-028/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-028/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..ec8cf4384fa12b2c31cf3c3389addb56a017f73f GIT binary patch literal 384 zcmca|c+)~A1{MYcU}5+RmUk%+88_;KqLbLI|DOAPCf&J4v>wi&Vrc< zD0UF4jvJ^hFDExY&j8{!RJDviSq27Y0f?C#KweUj0oV`d>OdiJ7|HGwL+s|UqN_84 Y_;oYTuPQ(}5JvZ_2vCR_#jgwu0N8aY3jhEB literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-028/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-028/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-028/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-029/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-029/cmd.json new file mode 100644 index 000000000..c112506ac --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-029/cmd.json @@ -0,0 +1,47 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 mcast_max_groups 4294967295" + }, + "cmd": "bridge link set dev d1 mcast_max_groups 4294967295", + "desc": "negative: opt=plain cmd=ng:brl:link_set_dev_d1_mcast_max_groups_4294967295: get_s32 overflows: invarg (B83)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=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": "brlinkwrite/ng-029", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-029/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-029/ip.err new file mode 100644 index 000000000..6abc5bb0a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-029/ip.err @@ -0,0 +1 @@ +Error: argument "4294967295" is wrong: invalid mcast_max_groups diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-029/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-029/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-029/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-029/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..237eef345cd2ce22a3f87dbf1c471d57a5dba28b GIT binary patch literal 384 zcmca|c+)~A1{MYcU}5+R`y5Xr#6&cMu&lh44Q17xGBvtVWd ziXDWi;|8kB%gN2pGk~}aRV^b>mVtp;0AeNwke5_s0QLjAI#5U)MzTA_5W9J-=<19h Ye(eMLRRt&q!svb#0SYmr_?3YH09pqpYXATM literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-029/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-029/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-029/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-030/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-030/cmd.json new file mode 100644 index 000000000..1bdda1da3 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-030/cmd.json @@ -0,0 +1,47 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 backup_nhid abc" + }, + "cmd": "bridge link set dev d1 backup_nhid abc", + "desc": "negative: opt=plain cmd=ng:brl:link_set_dev_d1_backup_nhid_abc: invarg", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=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": "brlinkwrite/ng-030", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-030/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-030/ip.err new file mode 100644 index 000000000..16038c102 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-030/ip.err @@ -0,0 +1 @@ +Error: argument "abc" is wrong: invalid backup_nhid diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-030/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-030/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-030/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-030/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..9c1ff52a2e5d2bb77a40a1d146788883e7d92edc GIT binary patch literal 384 zcmca|c+)~A1{MYcU}5+R`y5Xr#6&cMu&lh44Q17xGBvtVWd ziXDWi;|8kB%gN2pGk~}aRV^b>mVv=p0AeNwke5_s0QLjAI#5U)MzTA_5W9J-=<19h YehmZqRRt&q!svb#0SYmr_?3YH02WmzZ2$lO literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-030/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-030/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-030/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-031/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-031/cmd.json new file mode 100644 index 000000000..7d56775ed --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-031/cmd.json @@ -0,0 +1,47 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 help" + }, + "cmd": "bridge link set dev d1 help", + "desc": "negative: opt=plain cmd=ng:brl:link_set_dev_d1_help: help is not a keyword: 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": 255, + "refused_by": "ack-then-fail" + }, + "id": "brlinkwrite/ng-031", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-031/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-031/ip.err new file mode 100644 index 000000000..3fcd79477 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-031/ip.err @@ -0,0 +1,25 @@ +Usage: bridge link set dev DEV [ cost COST ] [ priority PRIO ] [ state STATE ] + [ guard {on | off} ] + [ hairpin {on | off} ] + [ fastleave {on | off} ] + [ root_block {on | off} ] + [ learning {on | off} ] + [ learning_sync {on | off} ] + [ flood {on | off} ] + [ mcast_router MULTICAST_ROUTER ] + [ mcast_flood {on | off} ] + [ bcast_flood {on | off} ] + [ mcast_to_unicast {on | off} ] + [ mcast_max_groups MAX_GROUPS ] + [ neigh_suppress {on | off} ] + [ neigh_vlan_suppress {on | off} ] + [ neigh_forward_grat {on | off} ] + [ vlan_tunnel {on | off} ] + [ isolated {on | off} ] + [ locked {on | off} ] + [ mab {on | off} ] + [ hwmode {vepa | veb} ] + [ backup_port DEVICE ] [ nobackup_port ] + [ backup_nhid NHID ] + [ self ] [ master ] + bridge link show [dev DEV] [master DEVICE] diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-031/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-031/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-031/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-031/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..529bf5f6bd1d4c605863d360a4439a6f5ba8a088 GIT binary patch literal 384 zcmca|c+)~A1{MYcU}5+Rm3V_-eJQ+YF0|Pq)Geb^31A`8bjjGOqnF%O% z5UP$Fs4g!jH$Tq+;x<&Zj6hii24?|?nH)e~Qjr1J59sPZA#oVV?i54p=CPuyGlKY4 W3g}lApd1LJ`&9%e#Ejxs1_l5>6()56 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-031/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-031/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-031/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-032/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-032/cmd.json new file mode 100644 index 000000000..9bbd8dbfa --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-032/cmd.json @@ -0,0 +1,47 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set cost 5" + }, + "cmd": "bridge link set cost 5", + "desc": "negative: opt=plain cmd=ng:brl:link_set_cost_5: Device is a required argument, after the loop (B90)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=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": "brlinkwrite/ng-032", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-032/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-032/ip.err new file mode 100644 index 000000000..609a51ffb --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-032/ip.err @@ -0,0 +1 @@ +Device is a required argument. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-032/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-032/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-032/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-032/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..cdecf685972be4fd3909a4d3867e02a10d9c2898 GIT binary patch literal 384 zcmca|c+)~A1{MYcU}5+Rz|O$Tkdx2ApaW#1sa0% literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-032/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-032/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-032/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-033/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-033/cmd.json new file mode 100644 index 000000000..adbfd704d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-033/cmd.json @@ -0,0 +1,47 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set cost 5 hairpin maybe" + }, + "cmd": "bridge link set cost 5 hairpin maybe", + "desc": "negative: opt=plain cmd=ng:brl:link_set_cost_5_hairpin_maybe: the loop's 234 comes before dev's check (B90)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 234, + "refused_by": "ack-then-fail" + }, + "id": "brlinkwrite/ng-033", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 234, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-033/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-033/ip.err new file mode 100644 index 000000000..980b4f01d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-033/ip.err @@ -0,0 +1 @@ +Error: argument of "hairpin" must be one of "off", "on", not "maybe" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-033/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-033/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-033/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-033/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..720c04143c4bd730223f0c54055c266bac331d92 GIT binary patch literal 384 zcmca|c+)~A1{MYcU}5+RLCh%+88_;KqLbLI|DOAPCf&J4v>wi&Vrc< zD0UF4jvJ^hFDExY&j8{!RJDviSq27Y0f?C#KweUj0oV`d>OdiJ7|HGwL+s|UqN_84 Y_|+5WR~4Wf2&4N|1SrIe;#UR+0Bis$82|tP literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-033/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-033/ip.rc new file mode 100644 index 000000000..7b5813c6a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-033/ip.rc @@ -0,0 +1 @@ +234 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-034/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-034/cmd.json new file mode 100644 index 000000000..5b8792f22 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-034/cmd.json @@ -0,0 +1,47 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev" + }, + "cmd": "bridge link set dev", + "desc": "negative: opt=plain cmd=ng:brl:link_set_dev: dev 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": "ack-then-fail" + }, + "id": "brlinkwrite/ng-034", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-034/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-034/ip.err new file mode 100644 index 000000000..f7d546177 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-034/ip.err @@ -0,0 +1 @@ +Command line is not complete. Try option "help" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-034/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-034/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-034/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-034/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..5bf3a4a6b09c5db041bc1c0d189cc71a315b930f GIT binary patch literal 384 zcmca|c+)~A1{MYcU}5+R^)qz6dFp}LVhS<$xMOSA8 Y@#}1$UsZr|AdK!;5ugw=ieDKR0E7H1i2wiq literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-034/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-034/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-034/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-035/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-035/cmd.json new file mode 100644 index 000000000..3d72c6078 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-035/cmd.json @@ -0,0 +1,48 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev nosuch cost 5" + }, + "cmd": "bridge link set dev nosuch cost 5", + "desc": "negative: opt=plain cmd=ng:brl:link_set_dev_nosuch_cost_5: Cannot find bridge device (B89)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_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": "ENODEV", + "rc": 255, + "refused_by": "kernel" + }, + "id": "brlinkwrite/ng-035", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-035/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-035/ip.err new file mode 100644 index 000000000..8675890be --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-035/ip.err @@ -0,0 +1 @@ +Cannot find bridge device "nosuch" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-035/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-035/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-035/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-035/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..12d01832292277a159512278dbcd0441fa8a51d1 GIT binary patch literal 572 zcmca|c+)~A1{MYcU}5+R(40F!c@V~CjsOD_1IV1~^$-O>Z490aAd-QBoq?GlC!c{q2gpWMXTi(_ z6gvo2#|>1Mmy?^HX8>^%ECYkH0K`lVATO!N0PF{Jb)b+qjAVC;A$Idv(bXA2 z{F(yvs|rvKgwg#f0u*9K@he2nG@u?Apd1LJ>oEZe0mB&_J|Jmy01IcZ|MQDWlQSS@ h&IXzp0aOga=w^BVg+O5k3Ujm2=HGAs|Nl>pJpdq=K=1$n literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-035/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-035/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-035/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-036/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-036/cmd.json new file mode 100644 index 000000000..8b5a14d6f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-036/cmd.json @@ -0,0 +1,48 @@ +{ + "axes": { + "fix": "brl", + "json": "0", + "words": "link set dev d1 backup_port nosuch" + }, + "cmd": "bridge link set dev d1 backup_port nosuch", + "desc": "negative: opt=plain cmd=ng:brl:link_set_dev_d1_backup_port_nosuch: Error: device nosuch does not exist (B89)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_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": "ENODEV", + "rc": 255, + "refused_by": "kernel" + }, + "id": "brlinkwrite/ng-036", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-036/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-036/ip.err new file mode 100644 index 000000000..b21662b98 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-036/ip.err @@ -0,0 +1 @@ +Error: device nosuch does not exist diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-036/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-036/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-036/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-036/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..34e741d4c63f23240fec7564d97411184623ff61 GIT binary patch literal 572 zcmca|c+)~A1{MYcU}5+R1Mmy?^HX8>^%ECYkH0K`lVATO!N0PF{Jb)b+qjAVC;A$Idv(bXA2 z{2B}Ns|rvKgwg#f0u*9K@he16D^QOMP!5FA^_T#KfZ+@dACNRUfQ2*I|M|tG$r%tc hdx2&~02PBUx|tq8AyC+X!u+}4j2&pJpfCnKP>z|O$Tkdx2ApaW#1s1tfjvS1 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-037/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-037/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-037/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-038/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-038/cmd.json new file mode 100644 index 000000000..ff7c6e2a4 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-038/cmd.json @@ -0,0 +1,57 @@ +{ + "axes": { + "fix": "brmst", + "json": "0", + "words": "mst set dev d1 msti 5" + }, + "cmd": "bridge mst set dev d1 msti 5", + "desc": "negative: opt=plain cmd=ng:brmst:mst_set_dev_d1_msti_5: no state: the required-arguments text", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=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": "brlinkwrite/ng-038", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "bridge vlan global set dev br0 vid 10 msti 5" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + }, + { + "cmd": "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "rc": 0 + }, + { + "cmd": "bridge vlan global set dev br0 vid 10 msti 5", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-038/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-038/ip.err new file mode 100644 index 000000000..3d70d4e7e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-038/ip.err @@ -0,0 +1 @@ +Device, MSTI and state are required arguments. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-038/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-038/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-038/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-038/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..7f7fa9ce2c2b2eac60daab6d71acf263a8e1228a GIT binary patch literal 384 zcmca|c+)~A1{MYcU}5+R-0W^Yx zL6(7&5n_%n(40F!c@V~CjsOD_1IV15Mu-BSHU>`y5Xr#6&cMu&lh44Q17xGBvtVWd ziXDWi;|8kB%gN2pGk~}aRV^b>mVtp;0AeNwke5_s0QLjAI#5U)MzTA_5W9J-=<19h YehmfsRRt&q!svb#0SYmr_?3YH06$14OaK4? literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-038/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-038/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-038/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-039/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-039/cmd.json new file mode 100644 index 000000000..ab3044ed8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-039/cmd.json @@ -0,0 +1,57 @@ +{ + "axes": { + "fix": "brmst", + "json": "0", + "words": "mst set msti 5 state 3" + }, + "cmd": "bridge mst set msti 5 state 3", + "desc": "negative: opt=plain cmd=ng:brmst:mst_set_msti_5_state_3: no dev: the required-arguments text", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=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": "brlinkwrite/ng-039", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "bridge vlan global set dev br0 vid 10 msti 5" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + }, + { + "cmd": "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "rc": 0 + }, + { + "cmd": "bridge vlan global set dev br0 vid 10 msti 5", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-039/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-039/ip.err new file mode 100644 index 000000000..3d70d4e7e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-039/ip.err @@ -0,0 +1 @@ +Device, MSTI and state are required arguments. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-039/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-039/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-039/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-039/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..f04f196eaa5a1efe0533363c44b1314153241b29 GIT binary patch literal 384 zcmca|c+)~A1{MYcU}5+R^)qz6dFp}LVhS<$xMOSA8 Y@#}A(UsZr|AdK!;5ugw=ieDKR00R#yZ2$lO literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-039/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-039/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-039/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-040/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-040/cmd.json new file mode 100644 index 000000000..d3008f7b3 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-040/cmd.json @@ -0,0 +1,57 @@ +{ + "axes": { + "fix": "brmst", + "json": "0", + "words": "mst set dev d1 msti abc state 3" + }, + "cmd": "bridge mst set dev d1 msti abc state 3", + "desc": "negative: opt=plain cmd=ng:brmst:mst_set_dev_d1_msti_abc_state_3: Error: invalid MSTI", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=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": "brlinkwrite/ng-040", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "bridge vlan global set dev br0 vid 10 msti 5" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + }, + { + "cmd": "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "rc": 0 + }, + { + "cmd": "bridge vlan global set dev br0 vid 10 msti 5", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-040/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-040/ip.err new file mode 100644 index 000000000..ad46ea988 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-040/ip.err @@ -0,0 +1 @@ +Error: invalid MSTI diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-040/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-040/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-040/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-040/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..4b22d25bfbe551b12a5fae6954114db1371daeb8 GIT binary patch literal 384 zcmca|c+)~A1{MYcU}5+Rwi&Vrc< zD0UF4jvJ^hFDExY&j8{!RJDviSq27Y0f?C#KweUj0oV`d>OdiJ7|HGwL+s|UqN_84 Y`1L!`uPQ(}5JvZ_2vCR_#jgwu028JuU;qFB literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-040/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-040/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-040/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-041/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-041/cmd.json new file mode 100644 index 000000000..67135745f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-041/cmd.json @@ -0,0 +1,57 @@ +{ + "axes": { + "fix": "brmst", + "json": "0", + "words": "mst set dev d1 msti 5 state \"\"" + }, + "cmd": "bridge mst set dev d1 msti 5 state \"\"", + "desc": "negative: opt=plain cmd=ng:brmst:mst_set_dev_d1_msti_5_state_\"\": an empty state fails the MSTI check (B86)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=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": "brlinkwrite/ng-041", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "bridge vlan global set dev br0 vid 10 msti 5" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + }, + { + "cmd": "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "rc": 0 + }, + { + "cmd": "bridge vlan global set dev br0 vid 10 msti 5", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-041/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-041/ip.err new file mode 100644 index 000000000..ad46ea988 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-041/ip.err @@ -0,0 +1 @@ +Error: invalid MSTI diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-041/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-041/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-041/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-041/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..f7f7cec7d19dca2bdf3aaa8693964a2a5c8e6034 GIT binary patch literal 384 zcmca|c+)~A1{MYcU}5+R-0W^Yx zL6(7&5n|3#pgDJd@*s@O903L<29P;*jSvMuZ490aAd-QBoq?GlC!c{q2gpWMXTi(_ z6gvo2#|>1Mmy?^HX8>^%ECU0x0K`lVATO!N0PF{Jb)b+qjAVC;A$Idv(bXA2 Y{JI9{R~4Wf2&4N|1SrIe;#UR+0L^+SGXMYp literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-041/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-041/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-041/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-042/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-042/cmd.json new file mode 100644 index 000000000..5e3cb4185 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-042/cmd.json @@ -0,0 +1,57 @@ +{ + "axes": { + "fix": "brmst", + "json": "0", + "words": "mst set dev d1 msti 5 state 256" + }, + "cmd": "bridge mst set dev d1 msti 5 state 256", + "desc": "negative: opt=plain cmd=ng:brmst:mst_set_dev_d1_msti_5_state_256: above UINT8_MAX: invalid STP port state", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=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": "brlinkwrite/ng-042", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "bridge vlan global set dev br0 vid 10 msti 5" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + }, + { + "cmd": "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "rc": 0 + }, + { + "cmd": "bridge vlan global set dev br0 vid 10 msti 5", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-042/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-042/ip.err new file mode 100644 index 000000000..01089d7ef --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-042/ip.err @@ -0,0 +1 @@ +Error: invalid STP port state diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-042/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-042/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-042/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-042/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..82627c291de3bec12fb5ba2db8c3406e797fdc21 GIT binary patch literal 384 zcmca|c+)~A1{MYcU}5+R-61_m7<8&#bJGZRqk zAXFVUP+eY5ZhoEt#BHc*8G*7449o%$GdX~~q#^^bAJEl-LgFxz-6@9H&0|GZX9V%9 W4$!YEKsgXb_p1m{h#AGN3=9BNrYGS5 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-042/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-042/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-042/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-043/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-043/cmd.json new file mode 100644 index 000000000..287fa78bf --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-043/cmd.json @@ -0,0 +1,57 @@ +{ + "axes": { + "fix": "brmst", + "json": "0", + "words": "mst set dev d1 msti 5 state -1" + }, + "cmd": "bridge mst set dev d1 msti 5 state -1", + "desc": "negative: opt=plain cmd=ng:brmst:mst_set_dev_d1_msti_5_state_-1: negative: invalid STP port state", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=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": "brlinkwrite/ng-043", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "bridge vlan global set dev br0 vid 10 msti 5" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + }, + { + "cmd": "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "rc": 0 + }, + { + "cmd": "bridge vlan global set dev br0 vid 10 msti 5", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-043/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-043/ip.err new file mode 100644 index 000000000..01089d7ef --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-043/ip.err @@ -0,0 +1 @@ +Error: invalid STP port state diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-043/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-043/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-043/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-043/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..e5c7ea479ae7bc1774b80417544170c25f3d304f GIT binary patch literal 384 zcmca|c+)~A1{MYcU}5+RIzTq6Itykd zpx8mEI&Pr4yqw(pJOhZ^P}MR5Wf>Tp1t4Z}0C`D824Fv+s{@6^VI;d#46&QXimuKG Z;@1m6zp4P`Kp5SxB0wQ#6u&Ys003CJEdu}m literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-043/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-043/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-043/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-044/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-044/cmd.json new file mode 100644 index 000000000..f84ee4a86 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-044/cmd.json @@ -0,0 +1,57 @@ +{ + "axes": { + "fix": "brmst", + "json": "0", + "words": "mst set dev d1 msti 5 state bogus" + }, + "cmd": "bridge mst set dev d1 msti 5 state bogus", + "desc": "negative: opt=plain cmd=ng:brmst:mst_set_dev_d1_msti_5_state_bogus: parse_stp_state: invalid STP port state", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=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": "brlinkwrite/ng-044", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "bridge vlan global set dev br0 vid 10 msti 5" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + }, + { + "cmd": "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "rc": 0 + }, + { + "cmd": "bridge vlan global set dev br0 vid 10 msti 5", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-044/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-044/ip.err new file mode 100644 index 000000000..01089d7ef --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-044/ip.err @@ -0,0 +1 @@ +Error: invalid STP port state diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-044/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-044/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-044/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-044/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..b17d8d35ca65cdba2213d68b43f19ffd8d800fb5 GIT binary patch literal 384 zcmca|c+)~A1{MYcU}5+Rwi&Vrc< zD0UF4jvJ^hFDExY&j8{!RJDviSq27Y0f?C#KweUj0oV`d>OdiJ7|HGwL+s|UqN_84 Y`1L8!uPQ(}5JvZ_2vCR_#jgwu0OCU@P5=M^ literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-044/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-044/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-044/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-045/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-045/cmd.json new file mode 100644 index 000000000..bb6bb25e4 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-045/cmd.json @@ -0,0 +1,57 @@ +{ + "axes": { + "fix": "brmst", + "json": "0", + "words": "mst set dev d1 help" + }, + "cmd": "bridge mst set dev d1 help", + "desc": "negative: opt=plain cmd=ng:brmst:mst_set_dev_d1_help: help: 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": 255, + "refused_by": "ack-then-fail" + }, + "id": "brlinkwrite/ng-045", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "bridge vlan global set dev br0 vid 10 msti 5" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + }, + { + "cmd": "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "rc": 0 + }, + { + "cmd": "bridge vlan global set dev br0 vid 10 msti 5", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-045/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-045/ip.err new file mode 100644 index 000000000..f07c8b280 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-045/ip.err @@ -0,0 +1,2 @@ +Usage: bridge mst set dev DEV msti MSTI state STATE + bridge mst {show} [ dev DEV ] diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-045/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-045/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-045/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-045/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..337373e18745cd89c11c0b2e99b12cd868b2bb6b GIT binary patch literal 384 zcmca|c+)~A1{MYcU}5+R1Mmy?^HX8>^%ECYkH0K`lVATO!N0PF{Jb)b+qjAVC;A$Idv(bXA2 Y{2B!Gs|rvKgwg#f0u*9K@hbxZ0E4P4OaK4? literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-045/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-045/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-045/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-046/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-046/cmd.json new file mode 100644 index 000000000..8627e7a57 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-046/cmd.json @@ -0,0 +1,57 @@ +{ + "axes": { + "fix": "brmst", + "json": "0", + "words": "mst set dev" + }, + "cmd": "bridge mst set dev", + "desc": "negative: opt=plain cmd=ng:brmst:mst_set_dev: dev 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": "ack-then-fail" + }, + "id": "brlinkwrite/ng-046", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "bridge vlan global set dev br0 vid 10 msti 5" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 mst_enabled 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + }, + { + "cmd": "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20 && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self", + "rc": 0 + }, + { + "cmd": "bridge vlan global set dev br0 vid 10 msti 5", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-046/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-046/ip.err new file mode 100644 index 000000000..f7d546177 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-046/ip.err @@ -0,0 +1 @@ +Command line is not complete. Try option "help" diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-046/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-046/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-046/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-046/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..082bc4cf6c6352a991ef0307680d7616799d3223 GIT binary patch literal 384 zcmca|c+)~A1{MYcU}5+Rwi&Vrc< zD0UF4jvJ^hFDExY&j8{!RJDviSq27Y0f?C#KweUj0oV`d>OdiJ7|HGwL+s|UqN_84 Y_;ni4uPQ(}5JvZ_2vCR_#jgwu0HBX7jsO4v literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-046/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-046/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-046/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-047/b.txt b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-047/b.txt new file mode 100644 index 000000000..cbc283657 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-047/b.txt @@ -0,0 +1,2 @@ +link set dev d1 hairpin maybe +link set dev d1 hairpin on diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-047/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-047/cmd.json new file mode 100644 index 000000000..ccb82ce3a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-047/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "batch": "onoff-force", + "fix": "brl", + "json": "0", + "words": "-force -batch b.txt" + }, + "cmd": "bridge -force -batch b.txt", + "desc": "negative: opt=plain cmd=ng:brl:batch:onoff-force: 234 is a return: -force carries on, the batch is rc 1 (B84)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=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": "brlinkwrite/ng-047", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "printf '%s\\n' 'link set dev d1 hairpin maybe' 'link set dev d1 hairpin on' > b.txt" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + }, + { + "cmd": "printf '%s\\n' 'link set dev d1 hairpin maybe' 'link set dev d1 hairpin on' > b.txt", + "rc": 0 + } + ], + "rc": 1, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-047/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-047/ip.err new file mode 100644 index 000000000..bdd4aa88a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-047/ip.err @@ -0,0 +1,2 @@ +Error: argument of "hairpin" must be one of "off", "on", not "maybe" +Command failed b.txt:1 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-047/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-047/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-047/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-047/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..f231e5e56a3792a660ddffc609f92633c02c62ff GIT binary patch literal 528 zcmZuuyAAk$e;t5b+5yb6U*&6Lw;f zGkfRWbI;DX^SGW4J_3AKfHx1lTWxXNFIukRsB7<*<$A0FlZw?W@HAU@ z6Avy=leqr;d*1u67rMN@^?Ik*CToK0wa%2uc(pxdpTn3n!R?Xn8bS=xIp;+YFI{Dn dHz6}}rZ;O-Ysgq|wR9)W%#)U#wVms){s-gjIo|*P literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-047/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-047/ip.rc new file mode 100644 index 000000000..d00491fd7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-047/ip.rc @@ -0,0 +1 @@ +1 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-048/b.txt b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-048/b.txt new file mode 100644 index 000000000..9dfffe9c6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-048/b.txt @@ -0,0 +1,2 @@ +link set dev d1 bogus on +link set dev d1 hairpin on diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-048/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-048/cmd.json new file mode 100644 index 000000000..9bb4919fa --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-048/cmd.json @@ -0,0 +1,53 @@ +{ + "axes": { + "batch": "usage-force", + "fix": "brl", + "json": "0", + "words": "-force -batch b.txt" + }, + "cmd": "bridge -force -batch b.txt", + "desc": "negative: opt=plain cmd=ng:brl:batch:usage-force: usage exits: the batch ends at the first line (B85)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=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": "brlinkwrite/ng-048", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "printf '%s\\n' 'link set dev d1 bogus on' 'link set dev d1 hairpin on' > b.txt" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + }, + { + "cmd": "printf '%s\\n' 'link set dev d1 bogus on' 'link set dev d1 hairpin on' > b.txt", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-048/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-048/ip.err new file mode 100644 index 000000000..3fcd79477 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-048/ip.err @@ -0,0 +1,25 @@ +Usage: bridge link set dev DEV [ cost COST ] [ priority PRIO ] [ state STATE ] + [ guard {on | off} ] + [ hairpin {on | off} ] + [ fastleave {on | off} ] + [ root_block {on | off} ] + [ learning {on | off} ] + [ learning_sync {on | off} ] + [ flood {on | off} ] + [ mcast_router MULTICAST_ROUTER ] + [ mcast_flood {on | off} ] + [ bcast_flood {on | off} ] + [ mcast_to_unicast {on | off} ] + [ mcast_max_groups MAX_GROUPS ] + [ neigh_suppress {on | off} ] + [ neigh_vlan_suppress {on | off} ] + [ neigh_forward_grat {on | off} ] + [ vlan_tunnel {on | off} ] + [ isolated {on | off} ] + [ locked {on | off} ] + [ mab {on | off} ] + [ hwmode {vepa | veb} ] + [ backup_port DEVICE ] [ nobackup_port ] + [ backup_nhid NHID ] + [ self ] [ master ] + bridge link show [dev DEV] [master DEVICE] diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-048/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-048/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-048/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-048/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..53b0a3f4c62e705e6eabfcb135267ae012aec124 GIT binary patch literal 384 zcmca|c+)~A1{MYcU}5+R^)qz6dFp}LVhS<$xMOSA8 Y@#}V=UsZr|AdK!;5ugw=ieDKR0BgZ3AOHXW literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-048/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-048/ip.rc new file mode 100644 index 000000000..ace9d0362 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-048/ip.rc @@ -0,0 +1 @@ +255 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-049/b.txt b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-049/b.txt new file mode 100644 index 000000000..b5441a38a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-049/b.txt @@ -0,0 +1,2 @@ +link set dev d1 hairpin on cost 70000 +link show dev d1 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-049/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-049/cmd.json new file mode 100644 index 000000000..7bb59c345 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-049/cmd.json @@ -0,0 +1,54 @@ +{ + "axes": { + "batch": "partial-force", + "fix": "brl", + "json": "0", + "words": "-d -force -batch b.txt" + }, + "cmd": "bridge -d -force -batch b.txt", + "desc": "negative: opt=plain cmd=ng:brl:batch:partial-force: br_setport applies the flags before the cost's ERANGE: the -d show has hairpin on (K25)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_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": 1, + "refused_by": "kernel" + }, + "id": "brlinkwrite/ng-049", + "modules": [ + "bridge" + ], + "pre": [ + "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "printf '%s\\n' 'link set dev d1 hairpin on cost 70000' 'link show dev d1' > b.txt" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add br0 address 02:00:00:00:01:00 type bridge vlan_filtering 1 && ip link set br0 addrgenmode none", + "rc": 0 + }, + { + "cmd": "ip link add d1 address 02:00:00:00:01:01 type dummy && ip link set d1 addrgenmode none && ip link set d1 master br0 && ip link set d1 up && ip link add d2 address 02:00:00:00:01:02 type dummy && ip link set d2 addrgenmode none && ip link set d2 master br0 && ip link set d2 up && ip link set br0 up", + "rc": 0 + }, + { + "cmd": "printf '%s\\n' 'link set dev d1 hairpin on cost 70000' 'link show dev d1' > b.txt", + "rc": 0 + } + ], + "rc": 1, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-049/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-049/ip.err new file mode 100644 index 000000000..f87d6d6bc --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-049/ip.err @@ -0,0 +1,2 @@ +RTNETLINK answers: Numerical result out of range +Command failed b.txt:1 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-049/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-049/ip.out new file mode 100644 index 000000000..7f06968db --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-049/ip.out @@ -0,0 +1,2 @@ +4: d1: mtu 1500 master br0 state forwarding priority 32 cost 100 + hairpin on guard off root_block off fastleave off learning on flood on mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off neigh_suppress off neigh_vlan_suppress off neigh_forward_grat off vlan_tunnel off isolated off locked off mab off mcast_n_groups 0 mcast_max_groups 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-049/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/brlinkwrite/ng-049/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..8048d967ff4c7132112cc53451cad9f7fa85ac8e GIT binary patch literal 1560 zcmdT^O-~d-5Ph?=Jv+OM$d?#{=o;}8P0(=Q2YAqbz?pCp!N?!jgp)`Afq*BydGlxp zH;#KGnsD%6nDxEt+Lh^SLgK-MN@`wrbyam&z3%BBecf-MiNDgsZ%#fQ&%WOM(#9Ic zQZ#b|4J8k$GsyCN`k5j5lvqSNi+SEN&nefX%|@tg&wea>z%GLUgefNqR%(Xha6pLZSaIxach zaeUyYSE~4B$ESuBt{Li6VIC*3Y>uyw>;X6IEG6#QWhrsr)=E5bd~7(5Bc-cx#J6!F sM= 0") + fmt.Fprintln(stderr, "nlcapgen matrix: -family (ev, route, rule, nexthop, addr, neigh, link, linkattr, routeget, fdb, mdb, ss, mpls, ethtool, devlink, vdpa, fou, mptcp, tipc, bridge, bridgex, bridgefdb, bridgemdb, brmonitor, brlinkwrite, tunnel, tuntap, tcqdisc, tcclass, tcfilter, tcflower, tcaction, tcaction2, tcmonitor, tcsched, tcaqm, kwlive, lwt, lwtx, lwtenc, nhstats, v730, v730ip720, stats) and -out are required, -random must be >= 0") return 2 } var rows []row diff --git a/tools/nlcapgen/matrix_brlinkwrite.go b/tools/nlcapgen/matrix_brlinkwrite.go new file mode 100644 index 000000000..a0dee774c --- /dev/null +++ b/tools/nlcapgen/matrix_brlinkwrite.go @@ -0,0 +1,269 @@ +package main + +import ( + "slices" + "strings" +) + +// The bridge port write space (gobridge 26C): `bridge link set` and +// `bridge mst set`, both one RTM_SETLINK for PF_BRIDGE, in one corpus +// directory, ws/brlinkwrite. +// +// bridge's side is bridge/link.c's brlink_modify (with parse_stp_state) +// and bridge/mst.c's mst_set, plus lib/utils.c's parse_on_off. The +// kernel's side is net/core/rtnetlink.c's rtnl_bridge_setlink, then +// net/bridge/br_netlink.c's br_setlink and br_setport (the port flags, +// then cost, priority and state, each range-checked by br_stp_if.c), and +// br_mst.c's br_mst_process for the MST entry. +// +// Each write is the captured command; its setup is in Pre, and a readback +// (`bridge -d link show`, or `bridge mst show dev d1`) records what the +// kernel kept. The rows pin the plan's leads +// (docs/netlink/upstream/iproute2-bridge-write.md, B77-B90, K18-K24): the +// narrowed numbers (B77-B80, B83, B87), hwmode wiping master (B81), the +// always-sent PROTINFO (B82), on/off's rc 234 (B84), usage on an unknown +// word (B85), mst's MSTI check reading the state (B86), `mst s` (B88), the +// device texts (B89) and dev checked last (B90). +// +// Writes are plain only: bridge prints nothing for a write, so -j adds +// nothing. Determinism: fixed MACs, addrgenmode none before up, STP off +// unless the row is about STP, no packets. + +// brLinkWriteModules are the modules the rows use. +var brLinkWriteModules = []string{"bridge"} + +// brLwFix is br0 (VLAN filtering, MST off) with ports d1 and d2, up. +var brLwFix = []string{brCreate(false), brPorts("d1", "d2")} + +// brLwStpFix is brLwFix with kernel STP on: the kernel refuses a port state +// while it runs STP itself (K21). +var brLwStpFix = append(clonePre(brLwFix), "ip link set br0 type bridge stp_state 1") + +// brLwDownFix is brLwFix with d1 down: a state change on a port that is not +// running is ENETDOWN (K21). +var brLwDownFix = append(clonePre(brLwFix), "ip link set d1 down") + +// brLwVlans: vid 10 and 20 on d1 and on br0 itself, so that `bridge vlan +// global set` can map vid 10. +const brLwVlans = "bridge vlan add dev d1 vid 10 && bridge vlan add dev d1 vid 20" + + " && bridge vlan add dev br0 vid 10 self && bridge vlan add dev br0 vid 20 self" + +// brLwMstFix is MST on at creation (it cannot change once a port has +// VLANs), vid 10 mapped to MSTI 5; vid 20 stays in MSTI 0, the CST. +var brLwMstFix = []string{brCreate(true), brPorts("d1", "d2"), brLwVlans, + "bridge vlan global set dev br0 vid 10 msti 5"} + +// brLwMstOffFix has the same VLANs with MST off (K20). +var brLwMstOffFix = []string{brCreate(false), brPorts("d1", "d2"), brLwVlans} + +// brLinkWriteOnOff are brlink_modify's parse_on_off words, in its order. +var brLinkWriteOnOff = []string{ + "guard", "hairpin", "fastleave", "root_block", "learning", "learning_sync", "flood", + "mcast_flood", "bcast_flood", "mcast_to_unicast", "neigh_suppress", "neigh_vlan_suppress", + "neigh_forward_grat", "vlan_tunnel", "isolated", "locked", "mab", +} + +// brLinkWriteKeywords are every keyword brlink_modify's loop tests, for the +// space test. +var brLinkWriteKeywords = slices.Concat(brLinkWriteOnOff, []string{ + "dev", "mcast_router", "mcast_max_groups", "cost", "priority", "state", "hwmode", "self", "master", + "backup_port", "nobackup_port", "backup_nhid", +}) + +// brStpStates are parse_stp_state's names, by value. +var brStpStates = []string{"disabled", "listening", "learning", "forwarding", "blocking"} + +// The readbacks: every port's protinfo, or d1's MST states. +var ( + brLinkReadback = []readback{{Name: "link", Cmd: "bridge -d link show"}} + brMstReadback = []readback{{Name: "mst", Cmd: "bridge mst show dev d1"}} +) + +// brlinkwriteSpace: bridge link set and mst set. +func brlinkwriteSpace() *space { + var cmds []value + rb := map[string][]readback{} + add := func(kind brKind, fix, words string, pre []string, r []readback) { + val := bc(kind, fix, words, pre) + cmds = append(cmds, val) + rb[val.Name] = r + } + link := func(kind brKind, words string) { + add(kind, "brl", strings.TrimSpace("link set dev d1 "+words), brLwFix, brLinkReadback) + } + mst := func(kind brKind, words string) { + add(kind, "brmst", "mst set dev d1 "+words, brLwMstFix, brMstReadback) + } + + // Each on/off word, on then off. mab on needs locked and learning (K19), + // so it is a negative below and here comes with them. + for _, w := range brLinkWriteOnOff { + if w != "mab" { + link(brPos, w+" on") + } + link(brPos, w+" off") + } + link(brPos, "locked on learning on mab on") + // The numbers, in range. + for _, w := range []string{"cost 1", "cost 5", "cost 65535", "priority 0", "priority 3", "priority 63", + "mcast_router 0", "mcast_router 1", "mcast_router 2", "mcast_router 3", + "mcast_max_groups 0", "mcast_max_groups 9"} { + link(brPos, w) + } + for i, s := range brStpStates { + link(brPos, "state "+s) + link(brPos, "state "+string(rune('0'+i))) + } + // Backups, flags, aliases, several words at once (attribute order). + link(brPos, "backup_port d2") + add(brPos, "brl", "link set dev d1 nobackup_port", append(clonePre(brLwFix), "bridge link set dev d1 backup_port d2"), + brLinkReadback) + link(brPos, "backup_nhid 10") // stored unchecked: no nexthop 10 exists + link(brPos, "master cost 9") + add(brPos, "brl", "link change dev d1 hairpin on", brLwFix, brLinkReadback) + add(brCorner, "brl", "link s dev d1 cost 8", brLwFix, brLinkReadback) + link(brPos, "cost 9 priority 4 hairpin on learning off state forwarding mcast_router 2 isolated on") + link(brPos, "neigh_suppress on mcast_max_groups 7 backup_port d2 backup_nhid 3 guard on") + // B82: nothing to set is an empty PROTINFO, acked. + link(brCorner, "") + // The bridge itself with self: br_setlink ignores PROTINFO when there is + // no port, so the cost is acked and dropped (K23). + add(brCorner, "brl", "link set dev br0 self cost 5", brLwFix, brLinkReadback) + // The narrowings bridge sends nothing for, or sends wrapped and the + // kernel accepts: rc 0. + for _, w := range []string{ + "cost 0", "cost x", // B78: not sent + "priority -1", "priority 40000", // B79: wraps negative, not sent + "state 200", "state 128", "state -1", // B80: wraps negative, not sent + "mcast_router abc", "mcast_router 200", // B77: atoi 0 is sent; -56 is not + "mcast_max_groups -1", // B83: not sent + } { + link(brBoundary, w) + } + + // mst set: every state by name and number in MSTI 5. + for i, s := range brStpStates { + mst(brPos, "msti 5 state "+s) + mst(brPos, "msti 5 state "+string(rune('0'+i))) + } + add(brCorner, "brmst", "mst s dev d1 msti 5 state 3", brLwMstFix, brMstReadback) // B88 + mst(brCorner, "bogus msti 5 state 3") // an unknown word is ignored + mst(brBoundary, "msti 1 state 3") + mst(brBoundary, "msti 4094 state 3") // no VLAN maps to it: acked, nothing changes (K24) + + // Batches. + linkBatch := bb(brPos, "brl", "set-show", "", false, batchFile( + "link set dev d1 cost 9 hairpin on", + "link show dev d1"), brLwFix) + mstBatch := bb(brPos, "brmst", "set-show", "", false, batchFile( + "mst set dev d1 msti 5 state 3", + "mst show dev d1"), brLwMstFix) + cmds = append(cmds, linkBatch, mstBatch) + rb[linkBatch.Name] = brLinkReadback + rb[mstBatch.Name] = brMstReadback + + ack := expect{RC: intp(255), RefusedBy: refAckThenFail} + onoff := expect{RC: intp(234), RefusedBy: refAckThenFail} + kern := func(errno, extack string) expect { + return expect{RC: intp(255), Errno: errno, Extack: extack, RefusedBy: refKernel} + } + linkBad := func(words string, exp expect, why string) badValue { + return brBad("brl", "link set dev d1 "+words, brLwFix, exp, why) + } + mstBad := func(words string, exp expect, why string) badValue { + return brBad("brmst", "mst set dev d1 "+words, brLwMstFix, exp, why) + } + mabMsg := "Bridge port must be locked and have learning enabled when MAB is enabled" + rangeMsg := "integer out of range" + bad := []badValue{ + // The kernel's refusals. + linkBad("self", kern("ENOTSUP", ""), "self on a dummy: no ndo_bridge_setlink (K18)"), + linkBad("hwmode veb", kern("ENOTSUP", ""), "hwmode is self (K18)"), + linkBad("master hwmode vepa", kern("ENOTSUP", ""), "hwmode wipes master: self alone (B81, K18)"), + linkBad("hwmode vepa master", kern("ENOTSUP", ""), "master then self: the master half applies, self fails (B81)"), + linkBad("mab on", kern("EINVAL", mabMsg), "MAB without locked and learning (K19)"), + linkBad("cost 65536", kern("ERANGE", ""), "above BR_MAX_PATH_COST (K22)"), + linkBad("cost -1", kern("ERANGE", ""), "atoi -1 is 0xffffffff in a __u32 (B78, K22)"), + linkBad("priority 64", kern("ERANGE", ""), "above BR_MAX_PORT_PRIORITY (K22)"), + linkBad("priority 70000", kern("ERANGE", ""), "70000 is 4464 in a __s16 (B79, K22)"), + linkBad("state 5", kern("EINVAL", ""), "above BR_STATE_BLOCKING"), + linkBad("state 300", kern("EINVAL", ""), "300 is 44 in a __s8 (B80)"), + linkBad("mcast_router 4", kern("EINVAL", ""), "no router type 4 (K22)"), + linkBad("mcast_router 300", kern("EINVAL", ""), "300 is 44 in a __s8 (B77)"), + brBad("brlstp", "link set dev d1 state forwarding", brLwStpFix, kern("EBUSY", ""), "kernel STP owns the state (K21)"), + brBad("brldown", "link set dev d1 state forwarding", brLwDownFix, kern("ENETDOWN", ""), "the port is down (K21)"), + brBad("brldown", "link set dev d1 state disabled", brLwDownFix, kern("ENETDOWN", ""), + "not running: even disabled is refused (K21)"), + brBad("brl", "link set dev br0 cost 5", brLwFix, kern("ENOTSUP", ""), "the bridge has no master (K23)"), + brBad("brmstoff", "mst set dev d1 msti 5 state 3", brLwMstOffFix, + kern("EBUSY", "Can't modify MST state when MST is disabled"), "MST off (K20)"), + mstBad("msti 0 state 3", kern("ERANGE", rangeMsg), "MSTI 0 is the CST: the policy's range is 1-4094"), + mstBad("msti -1 state 3", kern("ERANGE", rangeMsg), "-1 is 65535 in a __u16 (B87)"), + mstBad("msti 70000 state 3", kern("ERANGE", rangeMsg), "70000 is 4464 in a __u16 (B87)"), + mstBad(`msti "" state 3`, kern("ERANGE", rangeMsg), "the MSTI check reads the state: MSTI 0 is sent (B86)"), + mstBad("msti 5 state 5", kern("ERANGE", rangeMsg), "above BR_STATE_BLOCKING: the policy"), + mstBad("msti 5 state 255", kern("ERANGE", rangeMsg), "UINT8_MAX passes bridge, not the policy"), + // bridge's own refusals, each after ll_init_map. + linkBad("bogus on", ack, "an unknown word is usage (B85)"), + linkBad("hairpin maybe", onoff, "parse_on_off returns -EINVAL: rc 234 (B84)"), + linkBad("state bogus", ack, "Error: invalid STP port state"), + linkBad("hwmode x", ack, "Mode argument must be vepa or veb"), + linkBad("mcast_max_groups 4294967295", ack, "get_s32 overflows: invarg (B83)"), + linkBad("backup_nhid abc", ack, "invarg"), + linkBad("help", ack, "help is not a keyword: usage"), + brBad("brl", "link set cost 5", brLwFix, ack, "Device is a required argument, after the loop (B90)"), + brBad("brl", "link set cost 5 hairpin maybe", brLwFix, onoff, "the loop's 234 comes before dev's check (B90)"), + brBad("brl", "link set dev", brLwFix, ack, "dev with no value: NEXT_ARG"), + brBad("brl", "link set dev nosuch cost 5", brLwFix, expBridgeENODEV, "Cannot find bridge device (B89)"), + linkBad("backup_port nosuch", expBridgeENODEV, "Error: device nosuch does not exist (B89)"), + brBad("brmst", "mst set dev nosuch msti 5 state 3", brLwMstFix, expBridgeENODEV, "nodev: Cannot find device (B89)"), + mstBad("msti 5", ack, "no state: the required-arguments text"), + brBad("brmst", "mst set msti 5 state 3", brLwMstFix, ack, "no dev: the required-arguments text"), + mstBad("msti abc state 3", ack, "Error: invalid MSTI"), + mstBad(`msti 5 state ""`, ack, "an empty state fails the MSTI check (B86)"), + mstBad("msti 5 state 256", ack, "above UINT8_MAX: invalid STP port state"), + mstBad("msti 5 state -1", ack, "negative: invalid STP port state"), + mstBad("msti 5 state bogus", ack, "parse_stp_state: invalid STP port state"), + mstBad("help", ack, "help: usage"), + brBad("brmst", "mst set dev", brLwMstFix, ack, "dev with no value: NEXT_ARG"), + // Batches. + bbBad("brl", "onoff-force", "-force", false, batchFile( + "link set dev d1 hairpin maybe", + "link set dev d1 hairpin on"), brLwFix, expect{RC: intp(1), RefusedBy: refAckThenFail}, + "234 is a return: -force carries on, the batch is rc 1 (B84)"), + bbBad("brl", "usage-force", "-force", false, batchFile( + "link set dev d1 bogus on", + "link set dev d1 hairpin on"), brLwFix, ack, + "usage exits: the batch ends at the first line (B85)"), + bbBad("brl", "partial-force", "-d -force", false, batchFile( + "link set dev d1 hairpin on cost 70000", + "link show dev d1"), brLwFix, expect{RC: intp(1), Errno: "ERANGE", RefusedBy: refKernel}, + "br_setport applies the flags before the cost's ERANGE: the -d show has hairpin on (K25)"), + } + + sp := &space{ + Name: "brlinkwrite", + Axes: []axis{{Name: "opt", Values: []value{v("plain", "", f("json", "0"))}}, {Name: "cmd", Values: cmds}}, + Bad: bad, + } + sp.NegBase = func([]value) bool { return true } + sp.Build = func(vals []value) row { + var pre []string + for _, val := range vals { + pre = append(pre, val.Pre...) + } + r := row{ + Cmd: strings.TrimSpace("bridge " + vals[len(vals)-1].Arg), + Proto: "route", + Modules: brLinkWriteModules, + Expect: expect{RC: intp(0), RefusedBy: refNone}, + Axes: mergeFacts(vals), + Readback: rb[vals[len(vals)-1].Name], + } + for _, p := range pre { + r.Pre = append(r.Pre, preStep{Cmd: p}) + } + return r + } + return sp +} diff --git a/tools/nlcapgen/matrix_brlinkwrite_test.go b/tools/nlcapgen/matrix_brlinkwrite_test.go new file mode 100644 index 000000000..1b38266d3 --- /dev/null +++ b/tools/nlcapgen/matrix_brlinkwrite_test.go @@ -0,0 +1,212 @@ +package main + +import ( + "bytes" + "slices" + "strings" + "testing" +) + +// TestBrLinkWriteSpace pins the bridge port write rows (gobridge 26C): +// every brlink_modify and mst_set keyword, every lead and kernel note of +// upstream/iproute2-bridge-write.md, a readback on each accepted write and +// none on a refusal. +// +// go test ./tools/nlcapgen/ -run TestBrLinkWriteSpace +func TestBrLinkWriteSpace(t *testing.T) { + rows, err := matrixRows(families["brlinkwrite"](), matrixOpts{Seed: 1}) + if err != nil { + t.Fatal(err) + } + if err := checkRows(rows); err != nil { + t.Fatal(err) + } + if len(rows) != 141 { + t.Errorf("%d rows, want 141 (92 accepted, 49 refused)", len(rows)) + } + seen := map[string]bool{} + for _, r := range rows { + if !strings.HasPrefix(r.ID, "brlinkwrite/") { + t.Errorf("%s: not in brlinkwrite/", 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) + } + // Every row writes in its own namespace's br0, d1, d2 or the missing + // nosuch. + if strings.Contains(r.Cmd, "dev lo") || strings.Contains(r.Cmd, "-netns") || strings.Contains(r.Cmd, "-n ") { + t.Errorf("%s: writes outside its namespace: %q", r.ID, r.Cmd) + } + for _, p := range r.Pre { + if strings.Contains(p.Cmd, "dev lo") || strings.Contains(p.Cmd, "netns") { + t.Errorf("%s: a pre step leaves the namespace: %q", r.ID, p.Cmd) + } + } + accepted := r.Expect.RefusedBy == refNone + switch { + case accepted && len(r.Readback) != 1: + t.Errorf("%s: an accepted write with %d readbacks, want 1", r.ID, len(r.Readback)) + case !accepted && len(r.Readback) != 0: + t.Errorf("%s: a refusal with a readback", r.ID) + case accepted && (r.Axes["fix"] == "brmst") != (r.Readback[0].Cmd == "bridge mst show dev d1"): + t.Errorf("%s: readback %q for %q", r.ID, r.Readback[0].Cmd, r.Cmd) + } + k := r.Cmd + "|" + r.Axes["fix"] + "|" + r.Axes["batch"] + if seen[k] { + t.Errorf("%s: %q twice", r.ID, k) + } + seen[k] = true + } + // find is the first row whose command holds sub, in fixture fix, or + // with fix "batch:NAME", the batch of that name. + find := func(sub, fix string) (row, bool) { + for _, r := range rows { + if b, isBatch := strings.CutPrefix(fix, "batch:"); isBatch { + if r.Axes["batch"] == b { + return r, true + } + continue + } + if strings.Contains(r.Cmd, sub) && (fix == "" || r.Axes["fix"] == fix) { + return r, true + } + } + return row{}, false + } + + // Every keyword is in an accepted row. + for _, w := range brLinkWriteKeywords { + ok := false + for _, r := range rows { + if r.Expect.RefusedBy == refNone && strings.HasPrefix(r.Cmd, "bridge link ") && + slices.Contains(strings.Fields(r.Cmd), w) { + ok = true + break + } + } + if !ok && w != "self" && w != "hwmode" { // self and hwmode are refused on a dummy port (K18) + t.Errorf("keyword %q: no accepted link set row", w) + } + } + + type want struct { + found bool + rc int + refBy refuser + errno string + reads int // readbacks + inPre string + inFile string // a batch's b.txt holds it + } + tests := []struct { + description string + sub, fix string + expected want + }{ + // Positive: accepted writes and their readbacks. + {"positive: an on/off word", "link set dev d1 hairpin on", "brl", want{found: true, refBy: refNone, reads: 1}}, + {"positive: mab with locked and learning", "locked on learning on mab on", "", want{found: true, refBy: refNone, reads: 1}}, + {"positive: a state by name", "state forwarding", "brl", want{found: true, refBy: refNone, reads: 1}}, + {"positive: mst by name", "mst set dev d1 msti 5 state forwarding", "", want{found: true, refBy: refNone, reads: 1}}, + {"positive: change is set", "link change dev d1", "", want{found: true, refBy: refNone, reads: 1}}, + {"positive: the MST fixture maps vid 10", "msti 5 state 0", "brmst", want{found: true, refBy: refNone, reads: 1, + inPre: "vlan global set dev br0 vid 10 msti 5"}}, + // Leads: each pinned by a row. + {"lead: B77 atoi 0 is sent", "mcast_router abc", "", want{found: true, refBy: refNone, reads: 1}}, + {"lead: B77 a wrap the kernel refuses", "mcast_router 300", "", want{found: true, rc: 255, refBy: refKernel, errno: "EINVAL"}}, + {"lead: B78 cost 0 is not sent", "link set dev d1 cost 0", "", want{found: true, refBy: refNone, reads: 1}}, + {"lead: B79 a wrap that is dropped", "priority 40000", "", want{found: true, refBy: refNone, reads: 1}}, + {"lead: B80 state 300 is 44", "state 300", "", want{found: true, rc: 255, refBy: refKernel, errno: "EINVAL"}}, + {"lead: B81 hwmode wipes master", "master hwmode vepa", "", want{found: true, rc: 255, refBy: refKernel, errno: "ENOTSUP"}}, + {"lead: B83 a negative is dropped", "mcast_max_groups -1", "", want{found: true, refBy: refNone, reads: 1}}, + {"lead: B84 on/off returns 234", "link set dev d1 hairpin maybe", "", want{found: true, rc: 234, refBy: refAckThenFail}}, + {"lead: B85 an unknown word is usage", "link set dev d1 bogus on", "", want{found: true, rc: 255, refBy: refAckThenFail}}, + {"lead: B86 an empty MSTI", `msti "" state 3`, "", want{found: true, rc: 255, refBy: refKernel, errno: "ERANGE"}}, + {"lead: B86 an empty state", `msti 5 state ""`, "", want{found: true, rc: 255, refBy: refAckThenFail}}, + {"lead: B87 MSTI wraps", "msti 70000", "", want{found: true, rc: 255, refBy: refKernel, errno: "ERANGE"}}, + {"lead: B88 mst s is set", "mst s dev d1", "", want{found: true, refBy: refNone, reads: 1}}, + {"lead: B89 the port's text", "link set dev nosuch", "", want{found: true, rc: 255, refBy: refKernel, errno: "ENODEV"}}, + {"lead: B89 nodev's text", "mst set dev nosuch", "", want{found: true, rc: 255, refBy: refKernel, errno: "ENODEV"}}, + {"lead: B90 dev is checked last", "link set cost 5 hairpin maybe", "", want{found: true, rc: 234, refBy: refAckThenFail}}, + {"lead: K18 self on a dummy", "link set dev d1 self", "", want{found: true, rc: 255, refBy: refKernel, errno: "ENOTSUP"}}, + {"lead: K19 MAB alone", "link set dev d1 mab on", "", want{found: true, rc: 255, refBy: refKernel, errno: "EINVAL"}}, + {"lead: K20 MST off", "mst set", "brmstoff", want{found: true, rc: 255, refBy: refKernel, errno: "EBUSY"}}, + {"lead: K21 kernel STP", "state forwarding", "brlstp", want{found: true, rc: 255, refBy: refKernel, errno: "EBUSY", + inPre: "stp_state 1"}}, + {"lead: K21 a port that is down", "state forwarding", "brldown", want{found: true, rc: 255, refBy: refKernel, errno: "ENETDOWN", + inPre: "ip link set d1 down"}}, + {"lead: K22 cost above the range", "cost 65536", "", want{found: true, rc: 255, refBy: refKernel, errno: "ERANGE"}}, + {"lead: K23 the bridge itself", "link set dev br0 cost", "", want{found: true, rc: 255, refBy: refKernel, errno: "ENOTSUP"}}, + {"lead: K24 an unmapped MSTI", "msti 4094", "", want{found: true, refBy: refNone, reads: 1}}, + // Negative: nothing reads by itself, and nothing outside the scope. + {"negative: no bare show is captured", "bridge link show", "", want{}}, + {"negative: no vlan write", "bridge vlan add", "", want{}}, + // Boundary: the numeric edges. + {"boundary: cost at its top", "link set dev d1 cost 65535", "", want{found: true, refBy: refNone, reads: 1}}, + {"boundary: priority at its top", "link set dev d1 priority 63", "", want{found: true, refBy: refNone, reads: 1}}, + {"boundary: priority past it", "link set dev d1 priority 64", "", want{found: true, rc: 255, refBy: refKernel, errno: "ERANGE"}}, + {"boundary: MSTI 1", "msti 1 state 3", "", want{found: true, refBy: refNone, reads: 1}}, + {"boundary: state 256 is bridge's", "msti 5 state 256", "", want{found: true, rc: 255, refBy: refAckThenFail}}, + // Corner: batches carry state, and B82's empty PROTINFO. + {"corner: a -force batch carries on past rc 234", "", "batch:onoff-force", want{found: true, rc: 1, + refBy: refAckThenFail, inFile: "hairpin maybe"}}, + {"corner: usage ends a -force batch", "", "batch:usage-force", want{found: true, rc: 255, + refBy: refAckThenFail, inFile: "bogus on"}}, + {"corner: a NAK after the flags applied, then a show", "", "batch:partial-force", want{found: true, rc: 1, + refBy: refKernel, errno: "ERANGE", inFile: "hairpin on cost 70000"}}, + {"corner: a set then a show in one batch", "", "batch:set-show", want{found: true, refBy: refNone, reads: 1, + inFile: "link show dev d1"}}, + } + for _, tc := range tests { + t.Run(tc.description, func(t *testing.T) { + r, ok := find(tc.sub, tc.fix) + if ok != tc.expected.found { + t.Fatalf("a row with %q (fix %q): %t, want %t", tc.sub, tc.fix, ok, tc.expected.found) + } + if !ok { + return + } + got := want{found: true, rc: *r.Expect.RC, refBy: r.Expect.RefusedBy, errno: r.Expect.Errno, reads: len(r.Readback), + inPre: tc.expected.inPre, inFile: tc.expected.inFile} + pre := "" + for _, p := range r.Pre { + pre += p.Cmd + "\n" + } + if tc.expected.inPre != "" && !strings.Contains(pre, tc.expected.inPre) { + got.inPre = "" + } + if tc.expected.inFile != "" && !strings.Contains(pre, tc.expected.inFile) { + got.inFile = "" + } + if got != tc.expected { + t.Errorf("%s %q\n got %+v\n want %+v", r.ID, r.Cmd, got, tc.expected) + } + }) + } + + // B82: `link set dev d1` alone, accepted. + b82 := false + for _, r := range rows { + if r.Cmd == "bridge link set dev d1" && r.Expect.RefusedBy == refNone { + b82 = true + } + } + if !b82 { + t.Error("B82: no accepted `bridge link set dev d1` row") + } + + // Generation is deterministic. + var a, b bytes.Buffer + for i, buf := range []*bytes.Buffer{&a, &b} { + rs, err := matrixRows(families["brlinkwrite"](), 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") + } +} From 063ea54b240289296a014b6b2034dd0737b60bc9 Mon Sep 17 00:00:00 2001 From: randomizedcoder Date: Sat, 5 Dec 2026 00:16:43 -0800 Subject: [PATCH 3/8] feat(xtcpnl): 26P - bridge port write encoders and TestWsBrLinkWrite (V117) - xtcpnl_bridge_write.go (gobridge_write): BrPortProtinfo (24 IFLA_BRPORT_* in brlink_modify's order), BrAfSpecFlags, BrMstEntry, BrLinkWrite and BuildBrLinkWriteRequest. Tagged rather than untagged as planned, so no daemon carries a bridge write layout (decision log). - no-write-encoders: the per-daemon ,gobridge_write control is back, naming xtcpnl_bridge_write.go. - TestWsBrLinkWrite rebuilds all 118 captured SETLINKs byte for byte, checks bridge refusals send none, and checks 91 accepted writes against the kernel's readback dump. TestBrLinkWriteEncode pins layout, widths, the empty PROTINFO and the NLA_F_NESTED conventions. - Found: K27 (learning_sync is acked and ignored by a software bridge) and K28 (state blocking does not stick without STP). Co-Authored-By: Claude Opus 5.5 --- docs/netlink/gobridge-status.md | 18 +- .../netlink/upstream/iproute2-bridge-write.md | 25 +- nix/checks/no-write-encoders.nix | 8 +- pkg/xtcpnl/xtcpnl_bridge_write.go | 258 +++++++++++ pkg/xtcpnl/xtcpnl_bridge_write_test.go | 428 ++++++++++++++++++ 5 files changed, 728 insertions(+), 9 deletions(-) create mode 100644 pkg/xtcpnl/xtcpnl_bridge_write.go create mode 100644 pkg/xtcpnl/xtcpnl_bridge_write_test.go diff --git a/docs/netlink/gobridge-status.md b/docs/netlink/gobridge-status.md index 65bda424e..55dcfcf55 100644 --- a/docs/netlink/gobridge-status.md +++ b/docs/netlink/gobridge-status.md @@ -100,6 +100,10 @@ refusals, 3 `-force` batches), two batches on one boot identical in rc, stderr, stdout and readbacks. B77-B90 and K18-K22 confirmed, K23 and K24 corrected, K25 (a refused write is partly applied) and K26 new (V116). + 26P is done: `pkg/xtcpnl/xtcpnl_bridge_write.go` (tagged `gobridge_write`) lays out both + requests; `TestWsBrLinkWrite` rebuilds all 118 captured SETLINKs byte for byte and checks 91 + accepted writes against the kernel's readback dump, which found K27 (`learning_sync` is + ignored by a software bridge) and K28 (`state blocking` does not stick without STP) (V117). ## Contents @@ -126,7 +130,7 @@ | 6X — bridge, the rest | batch, force, netns, family, router ports: capture → parser → clone → bug hunt → live | done | V101, V102, V103, DOC033, V104 | | 7 — fdb and mdb | readbacks → capture → parser → clone → bug hunt → live | done | V105, V106, V107, V108, DOC034, V109 | | 25 — monitor | groundwork → capture → parser → clone → bug hunt → live | done | V110, V111, V112, V113, DOC035, V114 | -| 26 — writes: link set, mst set | groundwork → capture → encoders → clone → bug hunt → live | in progress | V115, V116 | +| 26 — writes: link set, mst set | groundwork → capture → encoders → clone → bug hunt → live | in progress | V115, V116, V117 | ## Task checklist @@ -157,7 +161,7 @@ | [x] | 25L | live diff of every `brmonitor` row | done | V114 | | [x] | 26X | `gobridge_write` tag and checks; dry-run delivery; the live GET guard; the write doc's predicted leads | done | V115 | | [x] | 26C | `matrix_brlinkwrite.go`, accepted, boundary, refused and batch rows, two batches | done | V116 | -| [ ] | 26P | `BrPortProtinfo`, `BrAfSpecFlags`, `BrMstEntry`; `BuildBrLinkWriteRequest`; `TestWsBrLinkWrite` | not started | V117 | +| [x] | 26P | `BrPortProtinfo`, `BrAfSpecFlags`, `BrMstEntry`; `BuildBrLinkWriteRequest`; `TestWsBrLinkWrite` | done | V117 | | [ ] | 26W | gobridge `link_write.go`, `mst_write.go`; corpus, unit, fuzz, mutants | not started | V118 | | [ ] | 26B | B77+ and K18+ completed, HEAD checked | not started | DOC036 | | [ ] | 26L | live diff of every `brlinkwrite` row | not started | V119 | @@ -192,6 +196,7 @@ | V114 | 25L | **Live diff:** on the running workbench VM (kernel 7.3.1, `bridge` 7.2.0 at `/nix/store/x1pwsbz5…-iproute2-7.2.0`; boot `335e7396`, started 2026-12-03 23:58 by another workbench user; not rebooted, the VM being shared), the nix-built `gobridge` (`/nix/store/q793jqi3…-gobridge-0.2.1`, built from `112dd7576`) beside `bridge`, as root over the workbench's ssh key. The script is generated from `brmonitor.rows.jsonl`. Each row gets a fresh netns with `lo` up and `nlmon0` up at ifindex 2, as the capture's namespaces have, then the row's `pre` steps in its own directory. **Live rows (18):** both monitors start in the netns; the script waits until each pid has a NETLINK_ROUTE socket (found by inode in `/proc//net/netlink`) with Dump 0 and Rmem 0 and a thread blocked in recvmsg (gobridge's link dump reads with recvfrom, so recvmsg is its listen), then 0.5 s, then runs the trigger once with `bash -c`, waits for the row's ERE in both outputs, then 0.3 s, then SIGTERMs both. Both exit 143. **File, batch and negative rows (26):** `bridge`, then `gobridge`, with the row's own `m.bin` and `b.txt`. **Result:** stdout, stderr and rc identical on 44 of 44, `Timestamp: … usec` masked, in two batches (C and D); every live row passed the readiness check, and no trigger failed. Batch D's outputs equal batch C's. `bridge` against the 25C corpus: 44 of 44 identical (live rows' rc aside, which the helper reports as 0), in both batches. That corpus is batch 5, captured on this same boot, so this repeats it on one boot rather than confirming the K notes on a second boot as the plan asked; a second boot would have meant rebooting the shared VM. V111's batch 1 is the cross-boot check for the 26 live and argument rows. **Earlier batches:** batch A's readiness check read the root namespace's `/proc/net/netlink`, so it never passed and each live row ran on the 0.5 s sleep alone (44 of 44 identical anyway); A2 and B, with the check fixed, ran without `nlmon0`, so every ifindex was one lower than in the corpus: gobridge and `bridge` still agreed on 44 of 44, and `bridge` differed from the corpus on 20 rows, all through ifindexes. Those 20 include B66 live: in file mode a record's br0 (ifindex 3) is named `d1`, the netns's ifindex 3, so `bridge monitor file m.bin` prints `master d1`, and gobridge does the same. **Guest:** its system closure had been garbage-collected on the host under the running VM (no `sed`, `awk`, `seq`, `readlink`, `sort`, `timeout` or `bash` on its PATH), so the script put host-built coreutils, gawk, gnused, bash, gnugrep and diffutils store paths first on PATH (the guest shares the host's /nix/store). Left as found: no namespaces, no core files, the script's result directories removed, no module loaded or removed (bridge, vxlan, nlmon, dummy were already loaded), VM still running as it was. **Bugs found:** none new. B66 is also seen with the ifindexes shifted, recorded in [upstream/iproute2-bridge-monitor.md](upstream/iproute2-bridge-monitor.md) (B66's entry and the status block); no lead or K note behaved differently live. | | V115 | 26X | **Tag:** `gobridge_write`, in `nix/versions.nix`'s `optInOnlyTags` and a new `gobridgeWriteTags`; `nix/checks/flavor-tags.nix` fails a full flavor carrying it; `govulncheck`'s tag set and the three golangci build-tag lists include it; `focused-gobridge-write` (`nix/tests/focused-quality.nix`, `nix/default.nix`) runs `internal/gobridge`, `pkg/xtcpnl` and `pkg/cint` with it. `pkg/xtcpnl/xtcpnl_write_request.go` (`BuildWriteRequest`) builds under it. The default `gobridge` stays untagged. **no-write-encoders:** `writePkgs` gains `internal/gobridge`; a completeness loop fails when a gobridge file's `//go:build gobridge_write` and its `*_write.go` name disagree (`write_off.go`, the stub, matches neither); `cmd/gobridge`'s listing with `gobridge_write` must name a further write file (`send_write.go`; a per-daemon control waits for 26P's gobridge_write-only xtcpnl builder, since the `treatment` xtcp2 already compiles `xtcpnl_write_request.go`); and `go tool nm` on the default debug `gobridge` must find no write builder. **Code:** `internal/gobridge/send_write.go` (tagged) is gotc's `deliverWrite`/`writeOut`, the second copy (a third moves them to a shared package): a build error is `errNotImplemented`; a replay answers with the recorded ack, a NAK `retCode(-1)` after rtnl_talk's report; a `LiveSource` writes the request to `GOBRIDGE_WRITE_OUT`, truncated by the run's first write, or is `ErrWriteNotApplied` (rc 1). `write_off.go` (untagged) keeps link set and mst set refused by name; `writesBuilt` is set in both. `LiveSource.Talk` refuses a request that is not an RTM_GET* (`isGetRequest`, type ≥ RTM_BASE and 2 mod 4) in every build. **Tests** (each row with description and expected): `TestGobridgeIsGetRequest` 16 rows (every get gobridge sends; SETLINK, NEWNEIGH, DELMDB, NEWVLAN; type 0, 0xffff, 0xfffe, 14; short and empty requests, NLMSG_DONE); `TestGobridgeLiveTalkRefusesWrites` 5 rows (fd -1, so a send would be EBADF, not the refusal); `TestGobridgeWriteRefusedUntagged` 8 rows (link set, change, `s`, bare, bad words, mst set, `mst s` (B88), a `-force` batch ended by the refusal), skipped when tagged; `TestGobridgeWriteOut` (tagged) 12 rows (live write to the file and never the socket, three writes appended, replay ack; unset and empty variable, an unwritable path, a replay NAK with `RTNETLINK answers`, an extack NAK, a build error; junk truncated by the first write; a replay leaves the file alone; an unscripted replay's error). `go test ./internal/gobridge/ ./pkg/xtcpnl/` passes untagged and with `-tags gobridge_write`; `CGO_ENABLED=0 go build ./...` both ways. **Doc:** [upstream/iproute2-bridge-write.md](upstream/iproute2-bridge-write.md), "Not submitted to netdev", with B77-B90 and K18-K24 predicted, each cited to v7.2.0 lines read with `git show`. Reading the source refined four predictions before any capture: `priority 40000` wraps negative and is dropped (B79), `state 128` likewise (B80), `mst set … state ""` prints "Error: invalid MSTI" (B86), and `mst set` range-checks its state where `link set` does not (B80). | | V116 | 26C | **Rows:** `tools/nlcapgen/matrix_brlinkwrite.go` generates `nix/microvms/workbench/brlinkwrite.rows.jsonl`, family `brlinkwrite` (registered in `nlcapgen/main.go`): 141 rows, plain only (a write prints nothing), proto route, module `bridge`, each in its own namespace. **Fixtures** (fixed MACs, `addrgenmode none` before up): `brl` (br0 `vlan_filtering 1`, dummy ports d1 and d2); `brlstp` (the same with `stp_state 1`); `brldown` (d1 down); `brmst` (`mst_enabled 1` at creation, vid 10 and 20 on d1 and br0, vid 10 mapped to MSTI 5); `brmstoff` (the same VLANs, MST off). **Accepted (92):** each of the 17 on/off words on and off (`mab on` only with `locked on learning on`), cost/priority/mcast_router/mcast_max_groups in range, each STP state by name and number, `backup_port`, `nobackup_port`, `backup_nhid`, `master`, `change`, `link s`, two multi-word requests, `dev d1` alone (B82), `dev br0 self cost 5` (K23), the ten narrowing boundaries that send nothing or a value the kernel takes, mst set with each state by name and number, `mst s` (B88), an ignored unknown word, MSTI 1 and 4094 (K24), and a set-then-show batch for each. Each has one readback: `bridge -d link show`, or `bridge mst show dev d1` on `brmst`. **Refused (49):** 24 by the kernel (K18-K24, the wraps it range-checks, the MST policy), 22 by bridge (usage, rc 234, the device texts, required arguments, invalid MSTI and state, NEXT_ARG, invarg), and three `-force` batches (rc 234 carries on, usage ends it, and a partly applied NAK). **Before the capture:** reading the kernel (`rtnl_bridge_setlink`, `br_setlink`, `br_setport`, `br_mst_process`, `br_mst_nl_policy`) corrected K24 (an unmapped MSTI is acked, not ENOENT) and moved the MSTI wraps' outcome from K24 to the policy. **Capture:** the workbench VM was off; booted (kernel 7.3.1, `bridge` 7.2.0), batch A to the scratchpad and batch B to the corpus, 141/141 rc as expected each, then powered off again (no cores, no namespaces left). `TestWsCorpusRows` then failed six rows: the MST policy's range refusal is ERANGE, not EINVAL (extack "integer out of range" as predicted). The six expectations were corrected and batch B re-run; the partial-apply batch gained `-d` (a plain `link show` does not print `hairpin`) and that one row was re-run in both batches. **Determinism:** `ip.rc`, `ip.err`, `ip.out` and every readback are identical in A and B on all 141 rows. Message types and flags are identical; bodies differ only in RTM_NEWLINK: `IFLA_BRPORT_FORWARD_DELAY_TIMER` (a live timer, 188 messages) and `ifi_flags` in `ll_init_map`'s AF_UNSPEC dump (linkwatch timing, 67), V097's two classes. **Requests**, decoded from each `ip.pcap`: REQUEST\|ACK; PROTINFO always with `NLA_F_NESTED` and empty when nothing is set (B82); AF_SPEC without it, FLAGS 2 for `master hwmode` (B81) and 3 for the reverse; `IFLA_BRIDGE_MST` without it and `MST_ENTRY` with it; `mcast_router abc` sends 0, `cost -1` 0xffffffff, `priority 70000` 0x1170, `state 300` and `mcast_router 300` 0x2c, `msti -1` 0xffff, `msti ""` 0 (B77-B80, B86, B87); the `-force` rc 234 batch sends its second line and the usage batch sends nothing (B84, B85). **Leads:** [upstream/iproute2-bridge-write.md](upstream/iproute2-bridge-write.md), each entry now with its rows: B77-B90 confirmed (B88's timestamp half source only); K18-K22 confirmed (K20's extack has `NL_SET_ERR_MSG_MOD`'s `bridge: ` prefix; K21's ENETDOWN covers `disabled` too on a port that is not running); K23 corrected (bare `dev br0` is EOPNOTSUPP for want of a master; with `self` the bridge acks and drops PROTINFO); K24 corrected (acked, nothing changes). **New:** K25, `br_setport` applies the port flags before range-checking cost, priority and state, so `hairpin on cost 70000` is refused with ERANGE and leaves hairpin on (ng-049's `-d` show); K26, a VLAN moved to a fresh MSTI starts disabled on every port (documented in `br_mst_vlan_sync_state`). **Tests:** `TestBrLinkWriteSpace` (row count; route proto; no row or pre step leaving its namespace; one readback per accepted row, the right one, none on a refusal; no duplicate; every brlink_modify keyword in an accepted row bar `self` and `hwmode`, which a dummy refuses; 41 table rows, each with description and expected, pinning every lead and K note to a row with its rc, refuser and errno, the boundary edges and the four batches; B82's row; deterministic generation). `go test ./pkg/xtcpnl/` (`TestWsCorpusRows` over all 141), `./internal/gobridge/`, `./tools/nlcapgen/` and `./internal/wsreplay/` pass. Corpus: 141 row dirs, 3.2 MB. | +| V117 | 26P | **Code:** `pkg/xtcpnl/xtcpnl_bridge_write.go`, tagged `gobridge_write` (decision below): `BrU8`/`BrU16`/`BrU32` (an attribute sent only when given, brlink_modify's sentinels already decided); `BrPortProtinfo` and its `Append`, the 24 `IFLA_BRPORT_*` attributes in link.c:546-614's order; `BrAfSpecFlags` (`IFLA_AF_SPEC` without NLA_F_NESTED, FLAGS when non-zero, MODE when given); `BrMstEntry` (`AF_SPEC` > `BRIDGE_MST` > `MST_ENTRY`\|NESTED, MSTI u16, STATE u8); `BrLinkWrite` and `BuildBrLinkWriteRequest` (RTM_SETLINK, REQUEST\|ACK, ifinfomsg PF_BRIDGE, through `BuildWriteRequest`; a 512-byte buffer as the C's, which the widest request, 216 bytes, never reaches; `ErrBrLinkWriteEmpty` for a write with neither part). Types cite if_link.h and if_bridge.h. **no-write-encoders:** each daemon's `,gobridge_write` listing must name a further write file again (now `xtcpnl_bridge_write.go`, which the `treatment` xtcp2 does not already compile), beside 26X's `cmd/gobridge` control. **Tests** (tagged): `TestWsBrLinkWrite` over all 141 `ws/brlinkwrite` rows: O3, every captured SETLINK (118: 92 accepted, 24 kernel refusals, one in each of two `-force` batches) decodes through `ParseBridgeLink` and is rebuilt byte for byte, seq and pid aside; O2, no bridge refusal sends a SETLINK and each kernel refusal sends one; O4, each of 91 accepted writes is in the kernel's readback dump (`netlink_route_link.pcap` or `_mst.pcap`) with the value sent. One row is exempt by name (ec-066, K23: br0 drops PROTINFO); three kernel behaviors are pinned rather than exempted: `IFLA_BRPORT_LEARNING_SYNC` must be absent from the dump (K27), a written blocking state must read back forwarding (K28), and an unmapped MSTI must have no entry (K24, MSTI 1 and 4094). `TestBrLinkWriteEncode`: 7 table rows (description and expected: one attribute, flags and mode, an MST entry; no part, ErrBrLinkWriteEmpty; the 4-byte empty PROTINFO (B82), every field at its widest, 216 bytes; flags 0 sends no AF_SPEC), every one of the 24 fields alone round-tripping at its width, the NLA_F_NESTED conventions (PROTINFO and MST_ENTRY flagged, AF_SPEC and BRIDGE_MST not), and RTM_NEWVLAN still refused by the gate. Benchmarks: `BuildBrLinkWriteRequest` 555 ns, 3 allocs; decoding a captured SETLINK 1.3 µs, 2 allocs. `go test ./pkg/xtcpnl/ ./internal/gobridge/` passes untagged and with `-tags gobridge_write`. **Found:** K27, the software bridge never reads or reports `IFLA_BRPORT_LEARNING_SYNC` (only `ndo_dflt_bridge_getlink` and two switchdev drivers do), so `learning_sync on\|off` is acked and ignored (ec-011, ec-012); K28, `state blocking` on an STP-off bridge is undone by `br_port_state_selection` → `br_make_forwarding` (ec-055, ec-056). Both are in [upstream/iproute2-bridge-write.md](upstream/iproute2-bridge-write.md). | | V402 | 6C | **Fresh-boot batches — the 6C gate's last task (and 7C's conditional).** Two batches, each on its own fresh boot of the workbench VM (kernel 7.3.1, iproute2 7.2.0; `nlcap-ws down` then `up`, the guest's `is-system-running` running before the first row), each running all four `ws/bridge*` row files through `nlcap-ws batch`, the committed corpus untouched. **Boot 1:** the batch the boot's own start rejected, re-run once the boot settled — 113 (`bridge`), 63 (`bridgex`), 94 (`bridgefdb`), 74 (`bridgemdb`), 344 of 344 OK. **Boot 2:** a second down+up — 344 of 344. **`nlcapgen verdiff` against the corpus:** `bridge` 0 differences (113 rows), `bridgex` 6 (the `brrtr -s` timer rows ec-021/022/023, pw-021/022/023, V101's allow-list), `bridgefdb` 0 (94), `bridgemdb` 6 (the temp-entry timer rows ec-005/006/008, pw-005/006/008 — V108's rows and their `-j -s`/`-s -o` twins). Boot 1 against boot 2 directly: the same profile, 0/6/0/6, the same rows. **A body-level pass** (a throwaway `tmp-bodydiff`, deleted; the corpus vs each boot's pcaps, message by message, seq and pid zeroed): every differing message is one of V097's two named classes — the `br` fixture's link replies at `IFLA_BRPORT_FORWARD_DELAY_TIMER` (offsets 360/364 of the 420-488-byte messages, 33 rows), and the NLMSG_ERROR bodies' echoed request seq (offsets 24, 28-30 and 60 in the 40-, 72- and 96-byte error shapes; `0x6b03d2bc` against `0x6b129194`, minutes apart; 28 rows). 58 rows (boot 1) and 61 rows (boot 2) differ in any body at all; every other byte of every other message is identical. The stats counters and the vxlan random source port, the 6C gate's own expected exceptions, never moved. **The first fresh-boot attempt failed 34 of 113 rows:** the batch fired 24 s after qemu started, `up` returning at ssh and the guest's systemd still settling, and the first wave's rows crosstalked at their ns lifecycle ("Cannot open network namespace" immediately after `NLCAP_NS_OK wsN"; "Cannot create namespace file: File exists" after ns-add's own cleanup; ec-010's pre step 0 creating br0 and pre step 1 finding it gone; "Cannot find device nlmon0"; `NLCAP_CAP_NOBIND`, datagrams=0). The mechanism was not pinned down; the wait is measured. A batch the same boot ran two hours later was 113 of 113, and a concurrent session's batch on the same boot (a `brmonitor` corpus, 44 rows, all OK) confirms the settled guest. `xtcp2-nlcap-ws up` now waits for `is-system-running` (running or degraded) before `NLCAP_WS_UP`, warning past the timeout. **The arc's disk:** the kernel closure was GC'd twice mid-arc (nothing pinned `nix build --no-link`, the store 98-99% full; the `linux-7.3.1` build needs ~35 GB and failed twice at 31-36 GB free), and two CLI attempts were killed at their own command timeouts (600 s and 2400 s against the ~45-min kernel rebuild); the closure is now rooted at `/tmp/gobridge-vm-root`. Gates: the batch's own, and `nlcap-ws`, `nix-fmt`, `test-goip-docs`, `netlink-audit`, `lint-baseline`. | ## Decision log @@ -262,3 +267,12 @@ `IsRtnetlinkNotification` (linkmonitor's rdmanative source) and a parser-agreement test depend on that. Adding the types would let notifications through that the parser then refuses. `BrEventKind` carries the bridge types instead. +- **2026-12-05: the bridge write encoders are tagged (26P, a change from the plan).** The plan + had `BrPortProtinfo`, `BrAfSpecFlags` and `BrMstEntry` untagged, with only the request + builder behind `gobridge_write`. They are all in `xtcpnl_bridge_write.go` behind the tag + instead: nothing outside gobridge needs them, every daemon links pkg/xtcpnl, and an + untagged encoder there would be a bridge write layout in xtcp2 and go-link-monitor. It also + gives no-write-encoders its per-daemon control: the `treatment` xtcp2 already compiles + `xtcpnl_write_request.go`, so without a gobridge_write-only file in pkg/xtcpnl the + `,gobridge_write` listing named nothing new (26X's first no-write-encoders run failed on it). + The round-trip tests run in the tagged build (`focused-gobridge-write` in nix). diff --git a/docs/netlink/upstream/iproute2-bridge-write.md b/docs/netlink/upstream/iproute2-bridge-write.md index f20eb8676..259bad66a 100644 --- a/docs/netlink/upstream/iproute2-bridge-write.md +++ b/docs/netlink/upstream/iproute2-bridge-write.md @@ -1,12 +1,12 @@ # iproute2 `bridge` writes: `link set` and `mst set` narrow their numbers, send an empty container, and disagree on errors -**Status (2026-12-05, increment 26, through 26C):** +**Status (2026-12-05, increment 26, through 26P):** - **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. - **Settled against the corpus.** 26C (V116) captured 141 `ws/brlinkwrite` rows and settled every lead and kernel - note: B77–B90 confirmed, K18–K22 confirmed, K23 and K24 corrected, and K25 and K26 new. 26B (DOC036) adds the HEAD - check. Later write increments (27 vlan, 28 vni, 29 fdb, 30 mdb) add their sections here. + note: B77–B90 confirmed, K18–K22 confirmed, K23 and K24 corrected, and K25 and K26 new. 26P (V117) checked every + accepted write against the kernel's own readback dump and found K27 and K28. 26B (DOC036) adds the HEAD check. Later write increments (27 vlan, 28 vni, 29 fdb, 30 mdb) add their sections here. - **Source:** - Line numbers are iproute2 **v7.2.0** (`880505966c17`, 2026-08-17): `bridge/link.c` (`brlink_modify`, 332-639; `parse_stp_state`, 82-95; `do_link`, 688-708), `bridge/mst.c` (`mst_set`, 164-242; `do_mst`, 244-263) and @@ -39,7 +39,7 @@ - [B84, B85, B90. Argument errors](#b84-b85-b90-argument-errors) - [B86, B88. `mst set`'s checks and dispatch](#b86-b88-mst-sets-checks-and-dispatch) - [B89. Device texts](#b89-device-texts) -- [K18–K26. Kernel notes](#k18k26-kernel-notes) +- [K18–K28. Kernel notes](#k18k28-kernel-notes) - [Bug-class candidates](#bug-class-candidates) ## Summary @@ -182,7 +182,7 @@ and `TestGobridgeMstWrite`'s boundary rows. sends a SETLINK (ng-035, ng-036, ng-037). - **Status:** confirmed. -## K18–K26. Kernel notes +## K18–K28. Kernel notes linux v7.4-rc4 (`b6a9fa34ce41`), each against its rows. @@ -219,6 +219,21 @@ linux v7.4-rc4 (`b6a9fa34ce41`), each against its rows. d1 is `disabled` in MSTI 5 before any `mst set` (ec-090's readback), so mapping a VLAN to a fresh MSTI stops its traffic until a state is set. +- **K27, new (26P): `learning_sync` is accepted and ignored by a software bridge.** `br_setport` has no + `br_set_port_flag` for `IFLA_BRPORT_LEARNING_SYNC`, and `br_port_fill_attrs` never reports it. In v7.4-rc4 the + attribute is read only by `ndo_dflt_bridge_getlink` (rtnetlink.c:5507, a driver's `self` dump) and set by the + prestera and mlxsw switchdev drivers. `bridge link set dev d1 learning_sync on` therefore sends + `IFLA_BRPORT_LEARNING_SYNC` 1 to the bridge, which acks with no extack and stores nothing, and `bridge -d link show` + cannot show it either way (ec-011, ec-012: `TestWsBrLinkWrite` finds the attribute absent from the readback). The + deprecated nested parse (`nla_parse_nested_deprecated`) is what lets an attribute the setter never looks at through + without complaint. A candidate `kernel-.md` for 26B, with K25. +- **K28, new (26P): `state blocking` does not stick on a bridge without STP.** `br_set_port_state` sets blocking, then + calls `br_port_state_selection` (br_stp.c), which treats a designated port as one to forward: + `br_make_forwarding` moves a blocking port to forwarding at once when `stp_enabled` is `BR_NO_STP`. The write is + acked and the readback says forwarding (ec-055, ec-056). `listening` and `learning` stay as set, because + `br_make_forwarding` acts only on a blocking port. Documented by the code, not a defect: recorded so that a + readback of 3 after a write of 4 is not mistaken for a decoder fault. + ## Bug-class candidates For the user's review; [bug-classes.md](bug-classes.md) is untouched. diff --git a/nix/checks/no-write-encoders.nix b/nix/checks/no-write-encoders.nix index 49ef9747f..e78fb5940 100644 --- a/nix/checks/no-write-encoders.nix +++ b/nix/checks/no-write-encoders.nix @@ -19,8 +19,9 @@ # built with, names no write file of internal/goip, pkg/xtcpnl or # pkg/nlparity, bar treatmentFiles under `treatment` (which must # all be named, or the list is stale). The same listing with -# goip_write or gotc_write must name more, and cmd/gobridge's -# with gobridge_write. +# goip_write, gotc_write or gobridge_write must name more (for +# gobridge_write, pkg/xtcpnl's xtcpnl_bridge_write.go), and so +# must cmd/gobridge's with gobridge_write. # symbols `go tool nm` on xtcp2-debug (unstripped, treatment) and # go-link-monitor finds no write builder, no Encode*InfoData and # no goip write arm, bar treatmentSyms under `treatment`. goip, @@ -173,6 +174,9 @@ pkgs.runCommand "xtcp2-no-write-encoders" if [ "$(write_files ${d.pkg} "''${t:+$t,}gotc_write" | wc -l)" -le "$(printf '%s' "$all" | grep -c . || true)" ]; then echo "FAIL: ${d.name} with gotc_write names no further write file; the pattern is stale"; fail=1 fi + if [ "$(write_files ${d.pkg} "''${t:+$t,}gobridge_write" | wc -l)" -le "$(printf '%s' "$all" | grep -c . || true)" ]; then + echo "FAIL: ${d.name} with gobridge_write names no further write file; the pattern is stale"; fail=1 + fi ${lib.optionalString d.nm '' s=$(go tool nm ${d.bin} | grep -E '${writeSyms}' || true) diff --git a/pkg/xtcpnl/xtcpnl_bridge_write.go b/pkg/xtcpnl/xtcpnl_bridge_write.go new file mode 100644 index 000000000..aa4b99556 --- /dev/null +++ b/pkg/xtcpnl/xtcpnl_bridge_write.go @@ -0,0 +1,258 @@ +//go:build gobridge_write + +// gobridge_write builds this for gobridge's link set and mst set. Like gotc's +// tc write builder it is compiled only behind its tag, so the default build +// of this package, and every daemon, cannot lay out a bridge port write. + +package xtcpnl + +import ( + "errors" + + "golang.org/x/sys/unix" +) + +// This file encodes the one RTM_SETLINK `bridge link set` (bridge/link.c +// brlink_modify, 332-639) and `bridge mst set` (bridge/mst.c mst_set, +// 164-242) send, at iproute2 v7.2.0: an ifinfomsg for PF_BRIDGE, then +// +// link set: IFLA_PROTINFO|NLA_F_NESTED, always (lead B82), holding the +// IFLA_BRPORT_* attributes in brlink_modify's fixed order +// (BrPortProtinfo), then, when a flag or a mode was given, +// IFLA_AF_SPEC (no NLA_F_NESTED) holding IFLA_BRIDGE_FLAGS and +// IFLA_BRIDGE_MODE (BrAfSpecFlags) +// mst set: IFLA_AF_SPEC > IFLA_BRIDGE_MST > IFLA_BRIDGE_MST_ENTRY, the +// entry alone with NLA_F_NESTED (mst.c:234), holding +// IFLA_BRIDGE_MST_ENTRY_MSTI (u16) and _STATE (u8) (BrMstEntry) +// +// The order is the C's, whatever the argv order was. Values arrive as the +// C narrows them (the caller's business, B77-B80, B87): what is here is the +// layout. Nothing here sends. BuildBrLinkWriteRequest goes through +// BuildWriteRequest, and gobridge compares the bytes with a replay or writes +// them to a file (gobridge.md, increment 26: dry-run). +// +// Attribute types: include/uapi/linux/if_link.h (IFLA_PROTINFO 12, +// IFLA_AF_SPEC 26, IFLA_BRPORT_*) and include/uapi/linux/if_bridge.h +// (IFLA_BRIDGE_FLAGS 0, IFLA_BRIDGE_MODE 1, IFLA_BRIDGE_MST 6, +// IFLA_BRIDGE_MST_ENTRY 1, _MSTI 1, _STATE 2). + +// BrLinkWriteBufCst is brlink_modify's and mst_set's char buf[512] after +// the ifinfomsg. The longest link set (every attribute, flags and mode) is +// 216 bytes, so no request reaches it; a builder that would is an error. +const BrLinkWriteBufCst = 512 + +// ErrBrLinkWriteEmpty is a BrLinkWrite with neither PROTINFO nor an MST +// entry: neither command sends that. +var ErrBrLinkWriteEmpty = errors.New("xtcpnl: a bridge port write carries PROTINFO or an MST entry") + +// BrU8, BrU16 and BrU32 are an attribute brlink_modify sends only when it +// was given: its `-1` sentinels (and cost's `> 0`), already decided. +type ( + BrU8 struct { + Set bool + V uint8 + } + BrU16 struct { + Set bool + V uint16 + } + BrU32 struct { + Set bool + V uint32 + } +) + +// BrPortProtinfo is brlink_modify's IFLA_PROTINFO, field by field in the +// order it writes them (link.c:546-614). +type BrPortProtinfo struct { + Guard BrU8 // IFLA_BRPORT_GUARD + Mode BrU8 // IFLA_BRPORT_MODE (hairpin) + FastLeave BrU8 // IFLA_BRPORT_FAST_LEAVE + Protect BrU8 // IFLA_BRPORT_PROTECT (root_block) + UnicastFlood BrU8 // IFLA_BRPORT_UNICAST_FLOOD (flood) + McastRouter BrU8 // IFLA_BRPORT_MULTICAST_ROUTER + McastFlood BrU8 // IFLA_BRPORT_MCAST_FLOOD + BcastFlood BrU8 // IFLA_BRPORT_BCAST_FLOOD + McastToUcast BrU8 // IFLA_BRPORT_MCAST_TO_UCAST + McastMaxGroups BrU32 // IFLA_BRPORT_MCAST_MAX_GROUPS + Learning BrU8 // IFLA_BRPORT_LEARNING + LearningSync BrU8 // IFLA_BRPORT_LEARNING_SYNC + Cost BrU32 // IFLA_BRPORT_COST + Priority BrU16 // IFLA_BRPORT_PRIORITY + State BrU8 // IFLA_BRPORT_STATE + NeighSuppress BrU8 // IFLA_BRPORT_NEIGH_SUPPRESS + NeighVlanSupp BrU8 // IFLA_BRPORT_NEIGH_VLAN_SUPPRESS + NeighFwdGrat BrU8 // IFLA_BRPORT_NEIGH_FORWARD_GRAT + VlanTunnel BrU8 // IFLA_BRPORT_VLAN_TUNNEL + Isolated BrU8 // IFLA_BRPORT_ISOLATED + Locked BrU8 // IFLA_BRPORT_LOCKED + Mab BrU8 // IFLA_BRPORT_MAB + BackupPort BrU32 // IFLA_BRPORT_BACKUP_PORT + BackupNhid BrU32 // IFLA_BRPORT_BACKUP_NHID +} + +// Append writes the set fields into ab, in brlink_modify's order, without +// the PROTINFO header (BuildBrLinkWriteRequest opens it). +func (p *BrPortProtinfo) Append(ab *AttrBuilder) error { + w := brPut{ab: ab} + w.u8(unix.IFLA_BRPORT_GUARD, p.Guard) + w.u8(unix.IFLA_BRPORT_MODE, p.Mode) + w.u8(unix.IFLA_BRPORT_FAST_LEAVE, p.FastLeave) + w.u8(unix.IFLA_BRPORT_PROTECT, p.Protect) + w.u8(unix.IFLA_BRPORT_UNICAST_FLOOD, p.UnicastFlood) + w.u8(unix.IFLA_BRPORT_MULTICAST_ROUTER, p.McastRouter) + w.u8(unix.IFLA_BRPORT_MCAST_FLOOD, p.McastFlood) + w.u8(unix.IFLA_BRPORT_BCAST_FLOOD, p.BcastFlood) + w.u8(unix.IFLA_BRPORT_MCAST_TO_UCAST, p.McastToUcast) + w.u32(unix.IFLA_BRPORT_MCAST_MAX_GROUPS, p.McastMaxGroups) + w.u8(unix.IFLA_BRPORT_LEARNING, p.Learning) + w.u8(unix.IFLA_BRPORT_LEARNING_SYNC, p.LearningSync) + w.u32(unix.IFLA_BRPORT_COST, p.Cost) + w.u16(unix.IFLA_BRPORT_PRIORITY, p.Priority) + w.u8(unix.IFLA_BRPORT_STATE, p.State) + w.u8(unix.IFLA_BRPORT_NEIGH_SUPPRESS, p.NeighSuppress) + w.u8(unix.IFLA_BRPORT_NEIGH_VLAN_SUPPRESS, p.NeighVlanSupp) + w.u8(IflaBrportNeighForwardGrat, p.NeighFwdGrat) + w.u8(unix.IFLA_BRPORT_VLAN_TUNNEL, p.VlanTunnel) + w.u8(unix.IFLA_BRPORT_ISOLATED, p.Isolated) + w.u8(unix.IFLA_BRPORT_LOCKED, p.Locked) + w.u8(unix.IFLA_BRPORT_MAB, p.Mab) + w.u32(unix.IFLA_BRPORT_BACKUP_PORT, p.BackupPort) + w.u32(unix.IFLA_BRPORT_BACKUP_NHID, p.BackupNhid) + return w.err +} + +// brPut writes optional attributes until the first error, which it keeps. +type brPut struct { + ab *AttrBuilder + err error +} + +func (w *brPut) u8(t uint16, v BrU8) { + if w.err == nil && v.Set { + w.err = w.ab.PutU8(t, v.V) + } +} + +func (w *brPut) u16(t uint16, v BrU16) { + if w.err == nil && v.Set { + w.err = w.ab.PutU16(t, v.V) + } +} + +func (w *brPut) u32(t uint16, v BrU32) { + if w.err == nil && v.Set { + w.err = w.ab.PutU32(t, v.V) + } +} + +// BrAfSpecFlags is brlink_modify's IFLA_AF_SPEC (link.c:623-633): sent when +// Flags is non-zero or a mode was given. +type BrAfSpecFlags struct { + Flags uint16 // IFLA_BRIDGE_FLAGS, BRIDGE_FLAGS_MASTER|_SELF; 0 is not sent + Mode BrU16 // IFLA_BRIDGE_MODE, BRIDGE_MODE_VEB / _VEPA +} + +// Sent reports whether brlink_modify writes the nest. +func (f *BrAfSpecFlags) Sent() bool { return f.Flags > 0 || f.Mode.Set } + +// Append writes IFLA_AF_SPEC and its attributes, without NLA_F_NESTED, as +// addattr_nest does; nothing when Sent is false. +func (f *BrAfSpecFlags) Append(ab *AttrBuilder) error { + if !f.Sent() { + return nil + } + m, err := ab.BeginNest(IflaAfSpecCst) + if err != nil { + return err + } + if f.Flags > 0 { + if err := ab.PutU16(IflaBridgeFlags, f.Flags); err != nil { + return err + } + } + if f.Mode.Set { + if err := ab.PutU16(IflaBridgeMode, f.Mode.V); err != nil { + return err + } + } + return ab.EndNest(m) +} + +// BrMstEntry is mst_set's one entry. +type BrMstEntry struct { + Msti uint16 + State uint8 +} + +// Append writes IFLA_AF_SPEC > IFLA_BRIDGE_MST > IFLA_BRIDGE_MST_ENTRY: +// only the entry carries NLA_F_NESTED (mst.c:228-234). +func (e *BrMstEntry) Append(ab *AttrBuilder) error { + spec, err := ab.BeginNest(IflaAfSpecCst) + if err != nil { + return err + } + mst, err := ab.BeginNest(IflaBridgeMst) + if err != nil { + return err + } + entry, err := ab.BeginNest(IflaBridgeMstEntry | unix.NLA_F_NESTED) + if err != nil { + return err + } + if err := ab.PutU16(IflaBridgeMstEntryMsti, e.Msti); err != nil { + return err + } + if err := ab.PutU8(IflaBridgeMstEntryState, e.State); err != nil { + return err + } + if err := ab.EndNest(entry); err != nil { + return err + } + if err := ab.EndNest(mst); err != nil { + return err + } + return ab.EndNest(spec) +} + +// BrLinkWrite is one `bridge link set` (Protinfo set, AfSpec maybe) or +// `bridge mst set` (Mst set) request. +type BrLinkWrite struct { + Ifindex int32 + Protinfo *BrPortProtinfo // link set: always sent, empty or not + AfSpec BrAfSpecFlags // link set: sent when Sent() + Mst *BrMstEntry // mst set +} + +// BuildBrLinkWriteRequest lays out w as brlink_modify or mst_set does: +// RTM_SETLINK, NLM_F_REQUEST|NLM_F_ACK (rtnl_talk adds the ACK), an +// ifinfomsg for PF_BRIDGE and w.Ifindex, then the attributes. +func BuildBrLinkWriteRequest(w *BrLinkWrite, seq uint32) ([]byte, error) { + if w.Protinfo == nil && w.Mst == nil { + return nil, ErrBrLinkWriteEmpty + } + var raw [BrLinkWriteBufCst]byte + ab := NewAttrBuilder(raw[:]) + if w.Protinfo != nil { + m, err := ab.BeginNest(IflaProtinfoCst | unix.NLA_F_NESTED) + if err != nil { + return nil, err + } + if err := w.Protinfo.Append(&ab); err != nil { + return nil, err + } + if err := ab.EndNest(m); err != nil { + return nil, err + } + if err := w.AfSpec.Append(&ab); err != nil { + return nil, err + } + } + if w.Mst != nil { + if err := w.Mst.Append(&ab); err != nil { + return nil, err + } + } + hdr := EncodeIfInfomsg(unix.AF_BRIDGE, w.Ifindex, 0, 0) + return BuildWriteRequest(unix.RTM_SETLINK, unix.NLM_F_ACK, seq, hdr, ab.Bytes()) +} diff --git a/pkg/xtcpnl/xtcpnl_bridge_write_test.go b/pkg/xtcpnl/xtcpnl_bridge_write_test.go new file mode 100644 index 000000000..b030ad9a6 --- /dev/null +++ b/pkg/xtcpnl/xtcpnl_bridge_write_test.go @@ -0,0 +1,428 @@ +//go:build gobridge_write + +package xtcpnl + +import ( + "bytes" + "encoding/binary" + "errors" + "os" + "path/filepath" + "testing" + + "golang.org/x/sys/unix" +) + +const tdBrLinkWrite = "testdata/7_3_1/ws/brlinkwrite/" + +// brSetlinks are the RTM_SETLINK requests in a capture, each a whole +// message (header included), in order. +func brSetlinks(t testing.TB, path string) [][]byte { + t.Helper() + var out [][]byte + for _, m := range pcapNlMsgs(t, path) { + if m.h.Type != unix.RTM_SETLINK || m.h.Flags&unix.NLM_F_REQUEST == 0 { + continue + } + b := make([]byte, NlMsgHdrSizeCst, NlMsgHdrSizeCst+len(m.body)) + binary.LittleEndian.PutUint32(b[0:], uint32(NlMsgHdrSizeCst+len(m.body))) + binary.LittleEndian.PutUint16(b[4:], m.h.Type) + binary.LittleEndian.PutUint16(b[6:], m.h.Flags) + out = append(out, append(b, m.body...)) + } + return out +} + +// brProtinfoFields are BrPortProtinfo's fields by attribute type, for the +// decoder and the readback check. +func brProtinfoFields(p *BrPortProtinfo) (u8 map[uint16]*BrU8, u16 map[uint16]*BrU16, u32 map[uint16]*BrU32) { + u8 = map[uint16]*BrU8{ + unix.IFLA_BRPORT_GUARD: &p.Guard, unix.IFLA_BRPORT_MODE: &p.Mode, unix.IFLA_BRPORT_FAST_LEAVE: &p.FastLeave, + unix.IFLA_BRPORT_PROTECT: &p.Protect, unix.IFLA_BRPORT_UNICAST_FLOOD: &p.UnicastFlood, + unix.IFLA_BRPORT_MULTICAST_ROUTER: &p.McastRouter, unix.IFLA_BRPORT_MCAST_FLOOD: &p.McastFlood, + unix.IFLA_BRPORT_BCAST_FLOOD: &p.BcastFlood, unix.IFLA_BRPORT_MCAST_TO_UCAST: &p.McastToUcast, + unix.IFLA_BRPORT_LEARNING: &p.Learning, unix.IFLA_BRPORT_LEARNING_SYNC: &p.LearningSync, + unix.IFLA_BRPORT_STATE: &p.State, unix.IFLA_BRPORT_NEIGH_SUPPRESS: &p.NeighSuppress, + unix.IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: &p.NeighVlanSupp, IflaBrportNeighForwardGrat: &p.NeighFwdGrat, + unix.IFLA_BRPORT_VLAN_TUNNEL: &p.VlanTunnel, unix.IFLA_BRPORT_ISOLATED: &p.Isolated, + unix.IFLA_BRPORT_LOCKED: &p.Locked, unix.IFLA_BRPORT_MAB: &p.Mab, + } + u16 = map[uint16]*BrU16{unix.IFLA_BRPORT_PRIORITY: &p.Priority} + u32 = map[uint16]*BrU32{ + unix.IFLA_BRPORT_MCAST_MAX_GROUPS: &p.McastMaxGroups, unix.IFLA_BRPORT_COST: &p.Cost, + unix.IFLA_BRPORT_BACKUP_PORT: &p.BackupPort, unix.IFLA_BRPORT_BACKUP_NHID: &p.BackupNhid, + } + return u8, u16, u32 +} + +// brWriteFromRequest decodes a captured SETLINK into the BrLinkWrite that +// would build it, through ParseBridgeLink. +func brWriteFromRequest(t testing.TB, req []byte) BrLinkWrite { + t.Helper() + l, err := ParseBridgeLink(req[NlMsgHdrSizeCst:]) + if err != nil { + t.Fatalf("ParseBridgeLink: %v", err) + } + w := BrLinkWrite{Ifindex: l.Index} + if l.Attrs.Has(IflaProtinfoCst) { + p := &BrPortProtinfo{} + u8, u16, u32 := brProtinfoFields(p) + for typ, f := range u8 { + f.V, f.Set = l.Port.U8(typ) + } + for typ, f := range u16 { + f.V, f.Set = l.Port.U16(typ) + } + for typ, f := range u32 { + f.V, f.Set = l.Port.U32(typ) + } + w.Protinfo = p + w.AfSpec.Flags, _ = l.AFSpec.U16(IflaBridgeFlags) + w.AfSpec.Mode.V, w.AfSpec.Mode.Set = l.AFSpec.U16(IflaBridgeMode) + } + if len(l.Mst) > 0 { + e := &BrMstEntry{} + e.Msti, _ = l.Mst[0].Attrs.U16(IflaBridgeMstEntryMsti) + e.State, _ = l.Mst[0].Attrs.U8(IflaBridgeMstEntryState) + w.Mst = e + } + return w +} + +// brSameRequest compares two requests with seq and pid left out. +func brSameRequest(got, want []byte) bool { + if len(got) != len(want) || len(got) < NlMsgHdrSizeCst { + return false + } + return bytes.Equal(got[:8], want[:8]) && bytes.Equal(got[NlMsgHdrSizeCst:], want[NlMsgHdrSizeCst:]) +} + +// brReadbackPort is the AF_BRIDGE RTM_NEWLINK for ifindex in a readback +// capture. +func brReadbackPort(t testing.TB, path string, ifindex int32) (BridgeLink, bool) { + t.Helper() + for _, m := range pcapNlMsgs(t, path) { + if m.h.Type != unix.RTM_NEWLINK || len(m.body) < IfInfomsgSizeCst || m.body[0] != unix.AF_BRIDGE { + continue + } + l, err := ParseBridgeLink(m.body) + if err == nil && l.Index == ifindex { + return l, true + } + } + return BridgeLink{}, false +} + +// brReadbackExempt are the accepted rows whose readback does not hold the +// value sent, each for a reason the kernel gives. +var brReadbackExempt = map[string]string{ + "ec-066": "K23: br0 has no port, so br_setlink drops PROTINFO; the cost is acked and not kept", +} + +// TestWsBrLinkWrite is the O2-O4 oracle for ws/brlinkwrite: every +// captured SETLINK decodes and BuildBrLinkWriteRequest rebuilds it byte +// for byte (O3); each accepted write's readback holds what it sent, from the +// kernel's own dump (O4); a refusal by bridge sends no SETLINK, and a kernel +// refusal exactly one (O2). +func TestWsBrLinkWrite(t *testing.T) { + ents, err := os.ReadDir(tdBrLinkWrite) + if err != nil { + t.Fatal(err) + } + var rebuilt, readback int + for _, e := range ents { + id := e.Name() + dir := filepath.Join(tdBrLinkWrite, id) + row := wsLoadRow(t, dir) + reqs := brSetlinks(t, filepath.Join(dir, "ip.pcap")) + batch := row.Axes["batch"] != "" + t.Run(id, func(t *testing.T) { + switch { + case row.Expect.RefusedBy == wsRefusedAckFail && !batch && len(reqs) != 0: + t.Errorf("refused by bridge, yet %d SETLINK sent", len(reqs)) + case row.Expect.RefusedBy == wsRefusedKernel && !batch && row.Expect.Errno != "ENODEV" && len(reqs) != 1: + t.Errorf("refused by the kernel after %d SETLINK, want 1", len(reqs)) + case row.Expect.RefusedBy == wsRefusedNone && len(reqs) != 1: + t.Errorf("accepted with %d SETLINK, want 1", len(reqs)) + } + for _, req := range reqs { + w := brWriteFromRequest(t, req) + got, err := BuildBrLinkWriteRequest(&w, 0) + if err != nil { + t.Fatalf("BuildBrLinkWriteRequest: %v", err) + } + if !brSameRequest(got, req) { + t.Errorf("rebuilt\n got %x\n want %x", got, req) + } + rebuilt++ + } + if row.Expect.RefusedBy != wsRefusedNone || len(reqs) != 1 { + return + } + if why, ok := brReadbackExempt[id]; ok { + t.Logf("readback not checked: %s", why) + return + } + w := brWriteFromRequest(t, reqs[0]) + if w.Mst != nil { + brCheckMstReadback(t, filepath.Join(dir, "netlink_route_mst.pcap"), w) + } else { + brCheckLinkReadback(t, filepath.Join(dir, "netlink_route_link.pcap"), w) + } + readback++ + }) + } + // 92 accepted, 24 kernel refusals and the two -force batches' one each. + if rebuilt != 118 || readback != 91 { + t.Errorf("%d requests rebuilt, %d readbacks checked; want 118 and 91", rebuilt, readback) + } +} + +// brCheckLinkReadback: each PROTINFO attribute sent is in the port's dump +// with the same value, bar what the kernel itself changes or drops: +// +// - IFLA_BRPORT_LEARNING_SYNC is never in the dump: the software bridge +// neither reads nor reports it (K27). +// - IFLA_BRPORT_STATE blocking (4) reads back forwarding (3): with STP off, +// br_port_state_selection makes a designated port forward (K28). +// - IFLA_BRPORT_BACKUP_PORT 0 (nobackup_port) reads back absent. +func brCheckLinkReadback(t *testing.T, path string, w BrLinkWrite) { + t.Helper() + l, ok := brReadbackPort(t, path, w.Ifindex) + if !ok { + t.Fatalf("no AF_BRIDGE dump entry for ifindex %d", w.Ifindex) + } + u8, u16, u32 := brProtinfoFields(w.Protinfo) + for typ, f := range u8 { + v, ok := l.Port.U8(typ) + want := f.V + switch { + case !f.Set: + continue + case typ == unix.IFLA_BRPORT_LEARNING_SYNC: + if ok { + t.Errorf("IFLA_BRPORT_LEARNING_SYNC in the dump (%d); K27 says the bridge never reports it", v) + } + continue + case typ == unix.IFLA_BRPORT_STATE && f.V == brStateBlocking: + want = brStateForwarding // K28 + } + if !ok || v != want { + t.Errorf("IFLA_BRPORT %d: sent %d, readback %d (present %t), want %d", typ, f.V, v, ok, want) + } + } + for typ, f := range u16 { + if v, ok := l.Port.U16(typ); f.Set && (!ok || v != f.V) { + t.Errorf("IFLA_BRPORT %d: sent %d, readback %d (present %t)", typ, f.V, v, ok) + } + } + for typ, f := range u32 { + v, ok := l.Port.U32(typ) + switch { + case !f.Set: + case typ == unix.IFLA_BRPORT_BACKUP_PORT && f.V == 0: + if ok { + t.Errorf("nobackup_port: BACKUP_PORT %d still in the dump", v) + } + case !ok || v != f.V: + t.Errorf("IFLA_BRPORT %d: sent %d, readback %d (present %t)", typ, f.V, v, ok) + } + } +} + +// brCheckMstReadback: the MSTI's state is the one sent, or, for an MSTI no +// VLAN maps to (anything but the fixture's 5), the port has no such entry +// (K24). +func brCheckMstReadback(t *testing.T, path string, w BrLinkWrite) { + t.Helper() + l, ok := brReadbackPort(t, path, w.Ifindex) + if !ok { + t.Fatalf("no AF_BRIDGE dump entry for ifindex %d", w.Ifindex) + } + for _, e := range l.Mst { + if msti, _ := e.Attrs.U16(IflaBridgeMstEntryMsti); msti == w.Mst.Msti { + if st, _ := e.Attrs.U8(IflaBridgeMstEntryState); st != w.Mst.State { + t.Errorf("MSTI %d: sent state %d, readback %d", msti, w.Mst.State, st) + } + return + } + } + if w.Mst.Msti == brMstMappedMsti { + t.Errorf("MSTI %d: not in the readback", w.Mst.Msti) + } +} + +// BR_STATE_FORWARDING and BR_STATE_BLOCKING (include/uapi/linux/if_bridge.h). +const ( + brStateForwarding = 3 + brStateBlocking = 4 +) + +// brMstMappedMsti is the MSTI the brmst fixture maps vid 10 to. +const brMstMappedMsti = 5 + +// attrHdr is an attribute header's raw type, for the NESTED checks. +func attrHdr(b []byte) uint16 { return binary.LittleEndian.Uint16(b[2:4]) } + +// TestBrLinkWriteEncode pins BuildBrLinkWriteRequest's layout: each field +// round-trips through ParseBridgeLink, the empty and widest cases, the +// gate, and C's NLA_F_NESTED conventions. +func TestBrLinkWriteEncode(t *testing.T) { + full := BrPortProtinfo{} + u8, u16, u32 := brProtinfoFields(&full) + for _, f := range u8 { + *f = BrU8{Set: true, V: 1} + } + for _, f := range u16 { + *f = BrU16{Set: true, V: 0xffff} + } + for _, f := range u32 { + *f = BrU32{Set: true, V: 0xffffffff} + } + type want struct { + err error + attrsLen int // bytes after the ifinfomsg; -1 unchecked + first uint16 // the first attribute's raw type + } + tests := []struct { + description string + w BrLinkWrite + expected want + }{ + {"positive: one u8 is a PROTINFO of one attribute", BrLinkWrite{Ifindex: 4, Protinfo: &BrPortProtinfo{Mode: BrU8{true, 1}}}, + want{attrsLen: 12, first: IflaProtinfoCst | unix.NLA_F_NESTED}}, + {"positive: flags and mode follow PROTINFO", BrLinkWrite{Ifindex: 4, Protinfo: &BrPortProtinfo{}, + AfSpec: BrAfSpecFlags{Flags: 2, Mode: BrU16{true, 1}}}, want{attrsLen: 4 + 20, first: IflaProtinfoCst | unix.NLA_F_NESTED}}, + {"positive: an MST entry", BrLinkWrite{Ifindex: 4, Mst: &BrMstEntry{Msti: 5, State: 3}}, + want{attrsLen: 28, first: IflaAfSpecCst}}, + {"negative: neither PROTINFO nor MST", BrLinkWrite{Ifindex: 4}, want{err: ErrBrLinkWriteEmpty, attrsLen: -1}}, + {"boundary: an empty PROTINFO is a 4-byte nest (B82)", BrLinkWrite{Ifindex: 4, Protinfo: &BrPortProtinfo{}}, + want{attrsLen: 4, first: IflaProtinfoCst | unix.NLA_F_NESTED}}, + {"boundary: every field at its widest", BrLinkWrite{Ifindex: 4, Protinfo: &full, AfSpec: BrAfSpecFlags{Flags: 3, Mode: BrU16{true, 1}}}, + want{attrsLen: 216, first: IflaProtinfoCst | unix.NLA_F_NESTED}}, + {"corner: flags 0 with no mode sends no AF_SPEC", BrLinkWrite{Ifindex: 4, Protinfo: &BrPortProtinfo{}, AfSpec: BrAfSpecFlags{}}, + want{attrsLen: 4, first: IflaProtinfoCst | unix.NLA_F_NESTED}}, + } + for _, tc := range tests { + t.Run(tc.description, func(t *testing.T) { + req, err := BuildBrLinkWriteRequest(&tc.w, 1) + if !errors.Is(err, tc.expected.err) { + t.Fatalf("err %v, want %v", err, tc.expected.err) + } + if err != nil { + return + } + if got := binary.LittleEndian.Uint16(req[4:6]); got != unix.RTM_SETLINK { + t.Errorf("type %d, want RTM_SETLINK", got) + } + if got := binary.LittleEndian.Uint16(req[6:8]); got != unix.NLM_F_REQUEST|unix.NLM_F_ACK { + t.Errorf("flags %#x, want REQUEST|ACK", got) + } + attrs := req[NlMsgHdrSizeCst+IfInfomsgSizeCst:] + if req[NlMsgHdrSizeCst] != unix.AF_BRIDGE || len(attrs) != tc.expected.attrsLen || attrHdr(attrs) != tc.expected.first { + t.Fatalf("family %d, %d attribute bytes, first type %#x; want AF_BRIDGE, %d, %#x", + req[NlMsgHdrSizeCst], len(attrs), attrHdr(attrs), tc.expected.attrsLen, tc.expected.first) + } + // decode(Append(x)) == x + back := brWriteFromRequest(t, req) + if !brSameWrite(back, tc.w) { + t.Errorf("round trip\n got %+v\n want %+v", back, tc.w) + } + }) + } + + // Each field alone round-trips, at its own width. + for typ, f := range u8 { + one := BrPortProtinfo{} + o8, _, _ := brProtinfoFields(&one) + *o8[typ] = *f + brRoundTrip(t, BrLinkWrite{Ifindex: 7, Protinfo: &one}, 12) + } + for typ, f := range u16 { + one := BrPortProtinfo{} + _, o16, _ := brProtinfoFields(&one) + *o16[typ] = *f + brRoundTrip(t, BrLinkWrite{Ifindex: 7, Protinfo: &one}, 12) + } + for typ, f := range u32 { + one := BrPortProtinfo{} + _, _, o32 := brProtinfoFields(&one) + *o32[typ] = *f + brRoundTrip(t, BrLinkWrite{Ifindex: 7, Protinfo: &one}, 12) + } + + // The NESTED conventions: PROTINFO and MST_ENTRY flagged, AF_SPEC and + // BRIDGE_MST not. + req, err := BuildBrLinkWriteRequest(&BrLinkWrite{Ifindex: 4, Mst: &BrMstEntry{Msti: 5, State: 3}}, 1) + if err != nil { + t.Fatal(err) + } + a := req[NlMsgHdrSizeCst+IfInfomsgSizeCst:] + if attrHdr(a) != IflaAfSpecCst || attrHdr(a[4:]) != IflaBridgeMst || attrHdr(a[8:]) != IflaBridgeMstEntry|unix.NLA_F_NESTED { + t.Errorf("mst nests %#x %#x %#x, want AF_SPEC, BRIDGE_MST, MST_ENTRY|NESTED", attrHdr(a), attrHdr(a[4:]), attrHdr(a[8:])) + } + req, err = BuildBrLinkWriteRequest(&BrLinkWrite{Ifindex: 4, Protinfo: &BrPortProtinfo{}, AfSpec: BrAfSpecFlags{Flags: 1}}, 1) + if err != nil { + t.Fatal(err) + } + a = req[NlMsgHdrSizeCst+IfInfomsgSizeCst:] + if attrHdr(a) != IflaProtinfoCst|unix.NLA_F_NESTED || attrHdr(a[4:]) != IflaAfSpecCst { + t.Errorf("link nests %#x %#x, want PROTINFO|NESTED then AF_SPEC", attrHdr(a), attrHdr(a[4:])) + } + + // The gate: RTM_NEWVLAN is not an admitted write until increment 27. + if _, err := BuildWriteRequest(unix.RTM_NEWVLAN, unix.NLM_F_ACK, 1, make([]byte, 8), nil); !errors.Is(err, ErrNotAnAdmittedWrite) { + t.Errorf("RTM_NEWVLAN through the gate: %v, want ErrNotAnAdmittedWrite", err) + } +} + +func brRoundTrip(t *testing.T, w BrLinkWrite, attrsLen int) { + t.Helper() + req, err := BuildBrLinkWriteRequest(&w, 1) + if err != nil { + t.Fatal(err) + } + if got := len(req) - NlMsgHdrSizeCst - IfInfomsgSizeCst; got != attrsLen { + t.Errorf("%+v: %d attribute bytes, want %d", *w.Protinfo, got, attrsLen) + } + if back := brWriteFromRequest(t, req); !brSameWrite(back, w) { + t.Errorf("round trip\n got %+v\n want %+v", *back.Protinfo, *w.Protinfo) + } +} + +// brSameWrite compares two writes by value. +func brSameWrite(a, b BrLinkWrite) bool { + if a.Ifindex != b.Ifindex || a.AfSpec != b.AfSpec || (a.Protinfo == nil) != (b.Protinfo == nil) || (a.Mst == nil) != (b.Mst == nil) { + return false + } + if a.Protinfo != nil && *a.Protinfo != *b.Protinfo { + return false + } + return a.Mst == nil || *a.Mst == *b.Mst +} + +// BenchmarkBuildBrLinkWriteRequest is a typical link set: three port +// attributes. +func BenchmarkBuildBrLinkWriteRequest(b *testing.B) { + w := BrLinkWrite{Ifindex: 4, Protinfo: &BrPortProtinfo{Mode: BrU8{true, 1}, Cost: BrU32{true, 9}, Priority: BrU16{true, 4}}} + b.ReportAllocs() + for b.Loop() { + if _, err := BuildBrLinkWriteRequest(&w, 1); err != nil { + b.Fatal(err) + } + } +} + +// BenchmarkBrWsDecode decodes one captured SETLINK. +func BenchmarkBrWsDecode(b *testing.B) { + reqs := brSetlinks(b, tdBrLinkWrite+"ec-091/ip.pcap") + if len(reqs) != 1 { + b.Fatalf("%d requests", len(reqs)) + } + b.ReportAllocs() + for b.Loop() { + if _, err := ParseBridgeLink(reqs[0][NlMsgHdrSizeCst:]); err != nil { + b.Fatal(err) + } + } +} From 09f19d6b681a9d7de9e4d64049ae3a4a0af68248 Mon Sep 17 00:00:00 2001 From: randomizedcoder Date: Sat, 5 Dec 2026 00:27:19 -0800 Subject: [PATCH 4/8] feat(gobridge): 26W - bridge link set and mst set, dry-run (V118) - link_write.go (gobridge_write): brlink_modify, C's narrowings via new pkg/cint conversions (IntToSChar, IntToShort, LongToSChar, LongToU16), parse_on_off's -EINVAL (rc 234), hwmode assigning flags, PROTINFO always sent, dev checked last, the three device texts; C strtol/get_s32/get_u32. - mst_write.go (gobridge_write): mst_set, the *s MSTI check, __u16 MSTI. - link.go/mst.go dispatch to linkWrite/mstWrite; write_off.go refuses. - TestGobridgeCorpus replays all 141 brlinkwrite rows byte for byte when tagged (485 rows total); untagged, TestGobridgeWriteCorpusRefused holds each to the refusal. 92 readbacks replay in both builds. - Unit tables: link set 40, batch 4, mst set 20, C numbers 13. - FuzzGobridgeLinkSet: 60 s, 1.03M execs, nothing found. 8/8 mutants killed. Coverage 84.3% tagged. Co-Authored-By: Claude Opus 5.5 --- docs/netlink/gobridge-status.md | 9 +- internal/gobridge/corpus_test.go | 69 ++++- internal/gobridge/gobridge.go | 20 +- internal/gobridge/link.go | 2 +- internal/gobridge/link_write.go | 306 +++++++++++++++++++++ internal/gobridge/link_write_test.go | 379 +++++++++++++++++++++++++++ internal/gobridge/mst.go | 2 +- internal/gobridge/mst_write.go | 71 +++++ internal/gobridge/readback_test.go | 50 ++++ internal/gobridge/write_off.go | 6 + pkg/cint/cint.go | 23 ++ pkg/cint/cint_test.go | 42 +++ 12 files changed, 966 insertions(+), 13 deletions(-) create mode 100644 internal/gobridge/link_write.go create mode 100644 internal/gobridge/link_write_test.go create mode 100644 internal/gobridge/mst_write.go diff --git a/docs/netlink/gobridge-status.md b/docs/netlink/gobridge-status.md index 55dcfcf55..01d43d860 100644 --- a/docs/netlink/gobridge-status.md +++ b/docs/netlink/gobridge-status.md @@ -104,6 +104,10 @@ requests; `TestWsBrLinkWrite` rebuilds all 118 captured SETLINKs byte for byte and checks 91 accepted writes against the kernel's readback dump, which found K27 (`learning_sync` is ignored by a software bridge) and K28 (`state blocking` does not stick without STP) (V117). + 26W is done: with `gobridge_write`, gobridge clones `bridge link set` and `bridge mst set` + (`link_write.go`, `mst_write.go`) and replays all 141 `brlinkwrite` rows byte for byte, + requests included; untagged it refuses each by name. 92 readbacks replay in both builds; + the fuzz run found nothing and 8 of 8 mutants are killed (V118). ## Contents @@ -130,7 +134,7 @@ | 6X — bridge, the rest | batch, force, netns, family, router ports: capture → parser → clone → bug hunt → live | done | V101, V102, V103, DOC033, V104 | | 7 — fdb and mdb | readbacks → capture → parser → clone → bug hunt → live | done | V105, V106, V107, V108, DOC034, V109 | | 25 — monitor | groundwork → capture → parser → clone → bug hunt → live | done | V110, V111, V112, V113, DOC035, V114 | -| 26 — writes: link set, mst set | groundwork → capture → encoders → clone → bug hunt → live | in progress | V115, V116, V117 | +| 26 — writes: link set, mst set | groundwork → capture → encoders → clone → bug hunt → live | in progress | V115, V116, V117, V118 | ## Task checklist @@ -162,7 +166,7 @@ | [x] | 26X | `gobridge_write` tag and checks; dry-run delivery; the live GET guard; the write doc's predicted leads | done | V115 | | [x] | 26C | `matrix_brlinkwrite.go`, accepted, boundary, refused and batch rows, two batches | done | V116 | | [x] | 26P | `BrPortProtinfo`, `BrAfSpecFlags`, `BrMstEntry`; `BuildBrLinkWriteRequest`; `TestWsBrLinkWrite` | done | V117 | -| [ ] | 26W | gobridge `link_write.go`, `mst_write.go`; corpus, unit, fuzz, mutants | not started | V118 | +| [x] | 26W | gobridge `link_write.go`, `mst_write.go`; corpus, unit, fuzz, mutants | done | V118 | | [ ] | 26B | B77+ and K18+ completed, HEAD checked | not started | DOC036 | | [ ] | 26L | live diff of every `brlinkwrite` row | not started | V119 | @@ -197,6 +201,7 @@ | V115 | 26X | **Tag:** `gobridge_write`, in `nix/versions.nix`'s `optInOnlyTags` and a new `gobridgeWriteTags`; `nix/checks/flavor-tags.nix` fails a full flavor carrying it; `govulncheck`'s tag set and the three golangci build-tag lists include it; `focused-gobridge-write` (`nix/tests/focused-quality.nix`, `nix/default.nix`) runs `internal/gobridge`, `pkg/xtcpnl` and `pkg/cint` with it. `pkg/xtcpnl/xtcpnl_write_request.go` (`BuildWriteRequest`) builds under it. The default `gobridge` stays untagged. **no-write-encoders:** `writePkgs` gains `internal/gobridge`; a completeness loop fails when a gobridge file's `//go:build gobridge_write` and its `*_write.go` name disagree (`write_off.go`, the stub, matches neither); `cmd/gobridge`'s listing with `gobridge_write` must name a further write file (`send_write.go`; a per-daemon control waits for 26P's gobridge_write-only xtcpnl builder, since the `treatment` xtcp2 already compiles `xtcpnl_write_request.go`); and `go tool nm` on the default debug `gobridge` must find no write builder. **Code:** `internal/gobridge/send_write.go` (tagged) is gotc's `deliverWrite`/`writeOut`, the second copy (a third moves them to a shared package): a build error is `errNotImplemented`; a replay answers with the recorded ack, a NAK `retCode(-1)` after rtnl_talk's report; a `LiveSource` writes the request to `GOBRIDGE_WRITE_OUT`, truncated by the run's first write, or is `ErrWriteNotApplied` (rc 1). `write_off.go` (untagged) keeps link set and mst set refused by name; `writesBuilt` is set in both. `LiveSource.Talk` refuses a request that is not an RTM_GET* (`isGetRequest`, type ≥ RTM_BASE and 2 mod 4) in every build. **Tests** (each row with description and expected): `TestGobridgeIsGetRequest` 16 rows (every get gobridge sends; SETLINK, NEWNEIGH, DELMDB, NEWVLAN; type 0, 0xffff, 0xfffe, 14; short and empty requests, NLMSG_DONE); `TestGobridgeLiveTalkRefusesWrites` 5 rows (fd -1, so a send would be EBADF, not the refusal); `TestGobridgeWriteRefusedUntagged` 8 rows (link set, change, `s`, bare, bad words, mst set, `mst s` (B88), a `-force` batch ended by the refusal), skipped when tagged; `TestGobridgeWriteOut` (tagged) 12 rows (live write to the file and never the socket, three writes appended, replay ack; unset and empty variable, an unwritable path, a replay NAK with `RTNETLINK answers`, an extack NAK, a build error; junk truncated by the first write; a replay leaves the file alone; an unscripted replay's error). `go test ./internal/gobridge/ ./pkg/xtcpnl/` passes untagged and with `-tags gobridge_write`; `CGO_ENABLED=0 go build ./...` both ways. **Doc:** [upstream/iproute2-bridge-write.md](upstream/iproute2-bridge-write.md), "Not submitted to netdev", with B77-B90 and K18-K24 predicted, each cited to v7.2.0 lines read with `git show`. Reading the source refined four predictions before any capture: `priority 40000` wraps negative and is dropped (B79), `state 128` likewise (B80), `mst set … state ""` prints "Error: invalid MSTI" (B86), and `mst set` range-checks its state where `link set` does not (B80). | | V116 | 26C | **Rows:** `tools/nlcapgen/matrix_brlinkwrite.go` generates `nix/microvms/workbench/brlinkwrite.rows.jsonl`, family `brlinkwrite` (registered in `nlcapgen/main.go`): 141 rows, plain only (a write prints nothing), proto route, module `bridge`, each in its own namespace. **Fixtures** (fixed MACs, `addrgenmode none` before up): `brl` (br0 `vlan_filtering 1`, dummy ports d1 and d2); `brlstp` (the same with `stp_state 1`); `brldown` (d1 down); `brmst` (`mst_enabled 1` at creation, vid 10 and 20 on d1 and br0, vid 10 mapped to MSTI 5); `brmstoff` (the same VLANs, MST off). **Accepted (92):** each of the 17 on/off words on and off (`mab on` only with `locked on learning on`), cost/priority/mcast_router/mcast_max_groups in range, each STP state by name and number, `backup_port`, `nobackup_port`, `backup_nhid`, `master`, `change`, `link s`, two multi-word requests, `dev d1` alone (B82), `dev br0 self cost 5` (K23), the ten narrowing boundaries that send nothing or a value the kernel takes, mst set with each state by name and number, `mst s` (B88), an ignored unknown word, MSTI 1 and 4094 (K24), and a set-then-show batch for each. Each has one readback: `bridge -d link show`, or `bridge mst show dev d1` on `brmst`. **Refused (49):** 24 by the kernel (K18-K24, the wraps it range-checks, the MST policy), 22 by bridge (usage, rc 234, the device texts, required arguments, invalid MSTI and state, NEXT_ARG, invarg), and three `-force` batches (rc 234 carries on, usage ends it, and a partly applied NAK). **Before the capture:** reading the kernel (`rtnl_bridge_setlink`, `br_setlink`, `br_setport`, `br_mst_process`, `br_mst_nl_policy`) corrected K24 (an unmapped MSTI is acked, not ENOENT) and moved the MSTI wraps' outcome from K24 to the policy. **Capture:** the workbench VM was off; booted (kernel 7.3.1, `bridge` 7.2.0), batch A to the scratchpad and batch B to the corpus, 141/141 rc as expected each, then powered off again (no cores, no namespaces left). `TestWsCorpusRows` then failed six rows: the MST policy's range refusal is ERANGE, not EINVAL (extack "integer out of range" as predicted). The six expectations were corrected and batch B re-run; the partial-apply batch gained `-d` (a plain `link show` does not print `hairpin`) and that one row was re-run in both batches. **Determinism:** `ip.rc`, `ip.err`, `ip.out` and every readback are identical in A and B on all 141 rows. Message types and flags are identical; bodies differ only in RTM_NEWLINK: `IFLA_BRPORT_FORWARD_DELAY_TIMER` (a live timer, 188 messages) and `ifi_flags` in `ll_init_map`'s AF_UNSPEC dump (linkwatch timing, 67), V097's two classes. **Requests**, decoded from each `ip.pcap`: REQUEST\|ACK; PROTINFO always with `NLA_F_NESTED` and empty when nothing is set (B82); AF_SPEC without it, FLAGS 2 for `master hwmode` (B81) and 3 for the reverse; `IFLA_BRIDGE_MST` without it and `MST_ENTRY` with it; `mcast_router abc` sends 0, `cost -1` 0xffffffff, `priority 70000` 0x1170, `state 300` and `mcast_router 300` 0x2c, `msti -1` 0xffff, `msti ""` 0 (B77-B80, B86, B87); the `-force` rc 234 batch sends its second line and the usage batch sends nothing (B84, B85). **Leads:** [upstream/iproute2-bridge-write.md](upstream/iproute2-bridge-write.md), each entry now with its rows: B77-B90 confirmed (B88's timestamp half source only); K18-K22 confirmed (K20's extack has `NL_SET_ERR_MSG_MOD`'s `bridge: ` prefix; K21's ENETDOWN covers `disabled` too on a port that is not running); K23 corrected (bare `dev br0` is EOPNOTSUPP for want of a master; with `self` the bridge acks and drops PROTINFO); K24 corrected (acked, nothing changes). **New:** K25, `br_setport` applies the port flags before range-checking cost, priority and state, so `hairpin on cost 70000` is refused with ERANGE and leaves hairpin on (ng-049's `-d` show); K26, a VLAN moved to a fresh MSTI starts disabled on every port (documented in `br_mst_vlan_sync_state`). **Tests:** `TestBrLinkWriteSpace` (row count; route proto; no row or pre step leaving its namespace; one readback per accepted row, the right one, none on a refusal; no duplicate; every brlink_modify keyword in an accepted row bar `self` and `hwmode`, which a dummy refuses; 41 table rows, each with description and expected, pinning every lead and K note to a row with its rc, refuser and errno, the boundary edges and the four batches; B82's row; deterministic generation). `go test ./pkg/xtcpnl/` (`TestWsCorpusRows` over all 141), `./internal/gobridge/`, `./tools/nlcapgen/` and `./internal/wsreplay/` pass. Corpus: 141 row dirs, 3.2 MB. | | V117 | 26P | **Code:** `pkg/xtcpnl/xtcpnl_bridge_write.go`, tagged `gobridge_write` (decision below): `BrU8`/`BrU16`/`BrU32` (an attribute sent only when given, brlink_modify's sentinels already decided); `BrPortProtinfo` and its `Append`, the 24 `IFLA_BRPORT_*` attributes in link.c:546-614's order; `BrAfSpecFlags` (`IFLA_AF_SPEC` without NLA_F_NESTED, FLAGS when non-zero, MODE when given); `BrMstEntry` (`AF_SPEC` > `BRIDGE_MST` > `MST_ENTRY`\|NESTED, MSTI u16, STATE u8); `BrLinkWrite` and `BuildBrLinkWriteRequest` (RTM_SETLINK, REQUEST\|ACK, ifinfomsg PF_BRIDGE, through `BuildWriteRequest`; a 512-byte buffer as the C's, which the widest request, 216 bytes, never reaches; `ErrBrLinkWriteEmpty` for a write with neither part). Types cite if_link.h and if_bridge.h. **no-write-encoders:** each daemon's `,gobridge_write` listing must name a further write file again (now `xtcpnl_bridge_write.go`, which the `treatment` xtcp2 does not already compile), beside 26X's `cmd/gobridge` control. **Tests** (tagged): `TestWsBrLinkWrite` over all 141 `ws/brlinkwrite` rows: O3, every captured SETLINK (118: 92 accepted, 24 kernel refusals, one in each of two `-force` batches) decodes through `ParseBridgeLink` and is rebuilt byte for byte, seq and pid aside; O2, no bridge refusal sends a SETLINK and each kernel refusal sends one; O4, each of 91 accepted writes is in the kernel's readback dump (`netlink_route_link.pcap` or `_mst.pcap`) with the value sent. One row is exempt by name (ec-066, K23: br0 drops PROTINFO); three kernel behaviors are pinned rather than exempted: `IFLA_BRPORT_LEARNING_SYNC` must be absent from the dump (K27), a written blocking state must read back forwarding (K28), and an unmapped MSTI must have no entry (K24, MSTI 1 and 4094). `TestBrLinkWriteEncode`: 7 table rows (description and expected: one attribute, flags and mode, an MST entry; no part, ErrBrLinkWriteEmpty; the 4-byte empty PROTINFO (B82), every field at its widest, 216 bytes; flags 0 sends no AF_SPEC), every one of the 24 fields alone round-tripping at its width, the NLA_F_NESTED conventions (PROTINFO and MST_ENTRY flagged, AF_SPEC and BRIDGE_MST not), and RTM_NEWVLAN still refused by the gate. Benchmarks: `BuildBrLinkWriteRequest` 555 ns, 3 allocs; decoding a captured SETLINK 1.3 µs, 2 allocs. `go test ./pkg/xtcpnl/ ./internal/gobridge/` passes untagged and with `-tags gobridge_write`. **Found:** K27, the software bridge never reads or reports `IFLA_BRPORT_LEARNING_SYNC` (only `ndo_dflt_bridge_getlink` and two switchdev drivers do), so `learning_sync on\|off` is acked and ignored (ec-011, ec-012); K28, `state blocking` on an STP-off bridge is undone by `br_port_state_selection` → `br_make_forwarding` (ec-055, ec-056). Both are in [upstream/iproute2-bridge-write.md](upstream/iproute2-bridge-write.md). | +| V118 | 26W | **Code** (tagged `gobridge_write`): `internal/gobridge/link_write.go` is brlink_modify: the words in C's order and with its strcmp; `parseOnOff` (parse_on_off; a failure is `retCode(-EINVAL)`, rc 234, so `-force` carries on: B84); `parseStpState`; the C's narrowings kept as the C keeps them, through four new `pkg/cint` conversions (`IntToSChar`, `IntToShort`, `LongToSChar`, `LongToU16`, with `TestCNarrowings`, 7 rows) and `cint.Bits` (B77-B80, B83); hwmode assigning the flags (B81); PROTINFO always sent (B82); usage on an unknown word (B85); dev checked after the loop (B90); the three device texts, `backup_port` looked up in the loop where the C does it (B89); C's `strtol`/`get_s32`/`get_u32` (base 0, saturation, `-0` as a u32). `mst_write.go` is mst_set: unknown words ignored bar a prefix of help, the `*s` MSTI check (B86), `__u16` MSTI (B87), `int` state range-checked to 0-255, nodev. Both build through `xtcpnl.BuildBrLinkWriteRequest` and go through 26X's `deliverWrite`. `link.go` and `mst.go` call `linkWrite`/`mstWrite`; `write_off.go` refuses them by name; `mst s` stays a set (B88). Package doc and `errNotImplemented` updated. **Corpus:** `TestGobridgeCorpus` adds `brlinkwrite` (141) when `writesBuilt`: all 485 rows replay byte for byte in stdout, stderr and rc, with every request bridge sent matched and none left. It splits each command with the monitor test's `shellWords` (sh's quoting), since `msti ""` is an empty word to the shell and `strings.Fields` handed gobridge two quote characters (the only two first-run failures, ng-022 and ng-041). Untagged, `TestGobridgeWriteCorpusRefused` holds each of the 141 rows to rc 255, empty stdout and `gobridge: not implemented: bridge link set` or `mst set`. `TestGobridgeBrLinkWriteReadbacks` replays all 92 readbacks (`bridge -d link show`, `bridge mst show dev d1`) in both builds. **Unit tests** (tagged, each row with description and expected, the last SETLINK decoded through `ParseBridgeLink`): `TestGobridgeLinkWrite` 40 rows (on/off, C's attribute order, numbers at C's widths, flags, backups, `change`; usage, 234, bad state, no dev, no such dev and backup port, bad hwmode, two invargs, NEXT_ARG, a NAK and an extack NAK; the B77-B80 and B83 narrowings; B81 both orders, B82, last value wins, `link s`, br0's own index); `TestGobridgeLinkWriteBatch` 4 rows (two SETLINKs; rc 234 then a good line, rc 1; a NAK then a good line, rc 1; usage ends it); `TestGobridgeMstWrite` 20 rows (names and numbers, any order; missing words, bad state, 256, bad MSTI, nodev, help, an extack NAK; MSTI -1, 70000, 4094, state 255; B86 both ways, an ignored word, `mst s`); `TestGobridgeCNumbers` 13 rows. **Fuzz:** `FuzzGobridgeLinkSet` (link set or mst set over up to 12 words drawn from every keyword and the corpus's values, or raw bytes, every request acked): 60 s under `systemd-run --user --scope -p MemoryMax=6G` with `-timeout`, 1,030,907 executions, 138 interesting inputs, no panic, every rc in {0, 1, 234, 255}, every SETLINK decoding. **Mutants** (each under the same cap, each restored to its checksum): (1) PROTINFO omitted when empty, (2) hwmode ORs, (3) cost masked to 16 bits, (4) priority saturated instead of narrowed, (5) on/off failure exits 255, (6) mst checks `*m`, (7) AF_SPEC sent with NLA_F_NESTED, (8) `mst s` is show: 8 of 8 killed, each by the corpus and a unit table (1 and 7 also by `TestWsBrLinkWrite`/`TestBrLinkWriteEncode`). **Coverage:** `internal/gobridge` 84.3% with the tag. `go test ./internal/gobridge/ ./pkg/xtcpnl/ ./pkg/cint/` passes untagged and tagged. No new upstream lead: every difference was in the harness. | | V402 | 6C | **Fresh-boot batches — the 6C gate's last task (and 7C's conditional).** Two batches, each on its own fresh boot of the workbench VM (kernel 7.3.1, iproute2 7.2.0; `nlcap-ws down` then `up`, the guest's `is-system-running` running before the first row), each running all four `ws/bridge*` row files through `nlcap-ws batch`, the committed corpus untouched. **Boot 1:** the batch the boot's own start rejected, re-run once the boot settled — 113 (`bridge`), 63 (`bridgex`), 94 (`bridgefdb`), 74 (`bridgemdb`), 344 of 344 OK. **Boot 2:** a second down+up — 344 of 344. **`nlcapgen verdiff` against the corpus:** `bridge` 0 differences (113 rows), `bridgex` 6 (the `brrtr -s` timer rows ec-021/022/023, pw-021/022/023, V101's allow-list), `bridgefdb` 0 (94), `bridgemdb` 6 (the temp-entry timer rows ec-005/006/008, pw-005/006/008 — V108's rows and their `-j -s`/`-s -o` twins). Boot 1 against boot 2 directly: the same profile, 0/6/0/6, the same rows. **A body-level pass** (a throwaway `tmp-bodydiff`, deleted; the corpus vs each boot's pcaps, message by message, seq and pid zeroed): every differing message is one of V097's two named classes — the `br` fixture's link replies at `IFLA_BRPORT_FORWARD_DELAY_TIMER` (offsets 360/364 of the 420-488-byte messages, 33 rows), and the NLMSG_ERROR bodies' echoed request seq (offsets 24, 28-30 and 60 in the 40-, 72- and 96-byte error shapes; `0x6b03d2bc` against `0x6b129194`, minutes apart; 28 rows). 58 rows (boot 1) and 61 rows (boot 2) differ in any body at all; every other byte of every other message is identical. The stats counters and the vxlan random source port, the 6C gate's own expected exceptions, never moved. **The first fresh-boot attempt failed 34 of 113 rows:** the batch fired 24 s after qemu started, `up` returning at ssh and the guest's systemd still settling, and the first wave's rows crosstalked at their ns lifecycle ("Cannot open network namespace" immediately after `NLCAP_NS_OK wsN"; "Cannot create namespace file: File exists" after ns-add's own cleanup; ec-010's pre step 0 creating br0 and pre step 1 finding it gone; "Cannot find device nlmon0"; `NLCAP_CAP_NOBIND`, datagrams=0). The mechanism was not pinned down; the wait is measured. A batch the same boot ran two hours later was 113 of 113, and a concurrent session's batch on the same boot (a `brmonitor` corpus, 44 rows, all OK) confirms the settled guest. `xtcp2-nlcap-ws up` now waits for `is-system-running` (running or degraded) before `NLCAP_WS_UP`, warning past the timeout. **The arc's disk:** the kernel closure was GC'd twice mid-arc (nothing pinned `nix build --no-link`, the store 98-99% full; the `linux-7.3.1` build needs ~35 GB and failed twice at 31-36 GB free), and two CLI attempts were killed at their own command timeouts (600 s and 2400 s against the ~45-min kernel rebuild); the closure is now rooted at `/tmp/gobridge-vm-root`. Gates: the batch's own, and `nlcap-ws`, `nix-fmt`, `test-goip-docs`, `netlink-audit`, `lint-baseline`. | ## Decision log diff --git a/internal/gobridge/corpus_test.go b/internal/gobridge/corpus_test.go index 7dacc00b6..1cfd6b783 100644 --- a/internal/gobridge/corpus_test.go +++ b/internal/gobridge/corpus_test.go @@ -19,6 +19,14 @@ const corpusGlob = "../../pkg/xtcpnl/testdata/*/ws/bridge*" // corpusRows is how many rows each corpus holds (V097, V101, V108). var corpusRows = map[string]int{"bridge": 113, "bridgex": 63, "bridgefdb": 94, "bridgemdb": 74} +// writeCorpusGlob is 26C's link set and mst set corpus, which only the +// gobridge_write build replays; the default build refuses every row +// (TestGobridgeWriteCorpusRefused). +const writeCorpusGlob = "../../pkg/xtcpnl/testdata/*/ws/brlinkwrite" + +// writeCorpusRows is brlinkwrite's row count (V116). +const writeCorpusRows = 141 + type cmdJSON struct { Cmd string `json:"cmd"` Axes map[string]string `json:"axes"` @@ -108,6 +116,14 @@ func TestGobridgeCorpus(t *testing.T) { if len(bases) == 0 { t.Fatal("no bridge ws corpus under testdata/*/ws/bridge*") } + if writesBuilt { + w, err := filepath.Glob(writeCorpusGlob) + if err != nil { + t.Fatal(err) + } + bases = append(bases, w...) + corpusRows["brlinkwrite"] = writeCorpusRows + } rows, jsonRows := 0, 0 perBase := map[string]int{} for _, base := range bases { @@ -132,7 +148,7 @@ func TestGobridgeCorpus(t *testing.T) { if c.Result.Status != "OK" { t.Fatalf("row status %s", c.Result.Status) } - args := strings.Fields(c.Cmd) + args := shellWords(c.Cmd) if len(args) == 0 || args[0] != "bridge" { t.Fatalf("cmd %q is not a bridge command", c.Cmd) } @@ -184,3 +200,54 @@ func TestGobridgeCorpus(t *testing.T) { } } } + +// TestGobridgeWriteCorpusRefused is the default build over brlinkwrite: +// each row's first command is a link set or mst set (a batch's first line +// included), which gobridge refuses by name after ll_init_map's dump, with +// nothing on stdout. +// +// go test ./internal/gobridge/ -run TestGobridgeWriteCorpusRefused +func TestGobridgeWriteCorpusRefused(t *testing.T) { + if writesBuilt { + t.Skip("gobridge_write replays brlinkwrite in TestGobridgeCorpus") + } + bases, err := filepath.Glob(writeCorpusGlob) + if err != nil || len(bases) == 0 { + t.Fatalf("no brlinkwrite corpus (%v)", err) + } + rows := 0 + for _, base := range bases { + base, err := filepath.Abs(base) + if err != nil { + t.Fatal(err) + } + entries, err := os.ReadDir(base) + if err != nil { + t.Fatal(err) + } + for _, e := range entries { + dir := filepath.Join(base, e.Name()) + c := readCmdJSON(t, dir) + rows++ + t.Run(e.Name(), func(t *testing.T) { + args := shellWords(c.Cmd)[1:] + first := c.Cmd + if c.Axes["batch"] != "" { + first = strings.SplitN(readFile(t, filepath.Join(dir, "b.txt")), "\n", 2)[0] + } + want := "gobridge: not implemented: bridge link set\n" + if strings.Contains(" "+first+" ", " mst ") { + want = "gobridge: not implemented: bridge mst set\n" + } + t.Chdir(dir) + got := replay(t, dir, args...) + if got.rc != 255 || got.stdout != "" || got.stderr != want { + t.Errorf("bridge %s: rc %d stdout %q stderr %q; want 255, \"\", %q", c.Cmd, got.rc, got.stdout, got.stderr, want) + } + }) + } + } + if rows != writeCorpusRows { + t.Errorf("%d brlinkwrite rows, want %d", rows, writeCorpusRows) + } +} diff --git a/internal/gobridge/gobridge.go b/internal/gobridge/gobridge.go index 6233812b4..ec1e9be5d 100644 --- a/internal/gobridge/gobridge.go +++ b/internal/gobridge/gobridge.go @@ -1,7 +1,7 @@ -// Package gobridge is a read-only Go clone of iproute2's bridge(8), the -// version the flake pins (7.2.0), for its link, vlan, vni, mst, fdb and -// mdb reads, built on pkg/xtcpnl's AF_BRIDGE link, vnifilter, vlan, -// neighbor and mdb decoders. +// Package gobridge is a Go clone of iproute2's bridge(8), the version the +// flake pins (7.2.0), for its link, vlan, vni, mst, fdb and mdb reads and, +// built with gobridge_write, its link set and mst set writes, on pkg/xtcpnl's +// AF_BRIDGE link, vnifilter, vlan, neighbor and mdb decoders. // // Like gotipc and govdpa, it exists to make xtcpnl's coverage something a // diff can check: replaying bridge's nlmon (ws) pcap corpus @@ -19,9 +19,12 @@ // stdin, -force), with -netns, -family, -4 and -6. A batch keeps bridge's // process state between lines, its leftover filters included (B28-B32, // F2, M3), and monitor's banner, closed socket and stamp counter -// (B62-B64). Every write (link set, vlan add/del/set, vlan global set, -// vni add/del, mst set, fdb add/append/replace/del/flush, mdb -// add/replace/del/flush) is refused. gobridge never writes. +// (B62-B64). With gobridge_write, link set and mst set lay out the +// RTM_SETLINK bridge sends (link_write.go, mst_write.go) and deliver it dry: +// to a replay, or to GOBRIDGE_WRITE_OUT (send_write.go); without the tag +// they are refused, as every other write is (vlan add/del/set, vlan global +// set, vni add/del, fdb add/append/replace/del/flush, mdb +// add/replace/del/flush). gobridge never applies a write. package gobridge import ( @@ -51,7 +54,8 @@ type retCode int func (e retCode) Error() string { return "return " + strconv.Itoa(int(e)) } -// errNotImplemented is a command gobridge does not clone: a write. +// errNotImplemented is a command gobridge does not clone: a write other than +// link set and mst set, or those two in a build without gobridge_write. var errNotImplemented = errors.New("gobridge: not implemented") // runner is bridge's globals: the output, the option counters, the diff --git a/internal/gobridge/link.go b/internal/gobridge/link.go index edba6a656..a69cb909a 100644 --- a/internal/gobridge/link.go +++ b/internal/gobridge/link.go @@ -19,7 +19,7 @@ func (r *runner) doLink(args []string) error { if len(args) > 0 { switch { case matches(args[0], "set"), matches(args[0], "change"): - return r.refuse("link set")(nil) + return r.linkWrite(args[1:]) case showWords(args[0], false): return r.linkShow(args[1:]) case matches(args[0], helpWord): diff --git a/internal/gobridge/link_write.go b/internal/gobridge/link_write.go new file mode 100644 index 000000000..ab51e4a43 --- /dev/null +++ b/internal/gobridge/link_write.go @@ -0,0 +1,306 @@ +//go:build gobridge_write + +package gobridge + +import ( + "math" + "strings" + + "github.com/randomizedcoder/xtcp2/pkg/cint" + "github.com/randomizedcoder/xtcp2/pkg/xtcpnl" + "golang.org/x/sys/unix" +) + +// bridge/link.c brlink_modify (332-639) at iproute2 v7.2.0: `bridge link +// set`, one RTM_SETLINK for PF_BRIDGE. The values are kept as the C keeps +// them, so the narrowing is the C's (upstream/iproute2-bridge-write.md): +// mcast_router is atoi into __s8 (B77), cost atoi into __u32 and sent only +// when > 0 (B78), priority atoi into __s16 (B79), state strtol into __s8 +// with no range (B80), mcast_max_groups get_s32 and sent only when >= 0 +// (B83). hwmode assigns the flags where self and master OR them (B81), +// PROTINFO is sent even when empty (B82), an on/off failure returns -EINVAL +// (rc 234, B84), an unknown word is usage (B85), and dev is checked only +// after the loop (B90), with its own device text (B89). + +// BRIDGE_FLAGS_* and BRIDGE_MODE_* (include/uapi/linux/if_bridge.h). +const ( + bridgeFlagsMaster = 1 + bridgeFlagsSelf = 2 + bridgeModeVeb = 0 + bridgeModeVepa = 1 +) + +// rcEINVAL is `return -EINVAL` from a command: parse_on_off's failure, +// which main returns as 234. +const rcEINVAL = retCode(-int(unix.EINVAL)) + +// linkWrite is brlink_modify; args follow `set` (or `change`). +func (r *runner) linkWrite(args []string) error { + var ( + dev string + haveDev bool + p xtcpnl.BrPortProtinfo + mcastRouter int8 = -1 + maxGroups int32 = -1 + cost uint32 + priority int16 = -1 + state int8 = -1 + mode xtcpnl.BrU16 // __s16 mode = -1: Set is mode >= 0 + flags uint16 + backupPort xtcpnl.BrU32 // int backup_port_idx = -1: Set is != -1 + backupNhid xtcpnl.BrU32 + ) + onOff := map[string]*xtcpnl.BrU8{ + "guard": &p.Guard, "hairpin": &p.Mode, "fastleave": &p.FastLeave, "root_block": &p.Protect, + "learning": &p.Learning, "learning_sync": &p.LearningSync, "flood": &p.UnicastFlood, + "mcast_flood": &p.McastFlood, "bcast_flood": &p.BcastFlood, "mcast_to_unicast": &p.McastToUcast, + "neigh_suppress": &p.NeighSuppress, "neigh_vlan_suppress": &p.NeighVlanSupp, + "neigh_forward_grat": &p.NeighFwdGrat, "vlan_tunnel": &p.VlanTunnel, "isolated": &p.Isolated, + "locked": &p.Locked, "mab": &p.Mab, + } + for i := 0; i < len(args); i++ { + w := args[i] + // NEXT_ARG: the word's value, or incomplete_command's exit. + next := func() (string, error) { + i++ + if i >= len(args) { + return "", r.incomplete() + } + return args[i], nil + } + if dst, ok := onOff[w]; ok { + v, err := next() + if err != nil { + return err + } + on, err := r.parseOnOff(w, v) + if err != nil { + return err + } + *dst = xtcpnl.BrU8{Set: true, V: on} + continue + } + var v string + switch w { + case wordDev, "mcast_router", "mcast_max_groups", "cost", "priority", "state", "hwmode", + "backup_port", "backup_nhid": + var err error + if v, err = next(); err != nil { + return err + } + } + switch w { + case wordDev: + dev, haveDev = v, true + case "mcast_router": + mcastRouter = cint.IntToSChar(atoi(v)) // B77 + case "mcast_max_groups": + g, ok := getS32(v) + if !ok { + return r.invarg("invalid mcast_max_groups", v) + } + maxGroups = g + case "cost": + cost = cint.Bits(atoi(v)) // B78 + case "priority": + priority = cint.IntToShort(atoi(v)) // B79 + case "state": + n, end, _ := strtol(v, 10) + state = cint.LongToSChar(n) // B80 + if v == "" || end != len(v) { + s := parseStpState(v) + if s < 0 { + r.errf("Error: invalid STP port state\n") + return retCode(-1) + } + state = s + } + case "hwmode": + flags = bridgeFlagsSelf // assigned, not ORed: B81 + switch v { + case "vepa": + mode = xtcpnl.BrU16{Set: true, V: bridgeModeVepa} + case "veb": + mode = xtcpnl.BrU16{Set: true, V: bridgeModeVeb} + default: + r.errf("Mode argument must be \"vepa\" or \"veb\".\n") + return retCode(-1) + } + case "self": + flags |= bridgeFlagsSelf + case "master": + flags |= bridgeFlagsMaster + case "backup_port": + idx, err := r.nameToIndex(v) + if err != nil { + return err + } + if idx == 0 { + r.errf("Error: device %s does not exist\n", v) + return retCode(-1) + } + backupPort = xtcpnl.BrU32{Set: true, V: idx} + case "nobackup_port": + backupPort = xtcpnl.BrU32{Set: true} + case "backup_nhid": + n, ok := getU32(v) + if !ok { + return r.invarg("invalid backup_nhid", v) + } + backupNhid = xtcpnl.BrU32{Set: true, V: n} + default: + return r.linkUsage() // B85 + } + } + if !haveDev { + r.errf("Device is a required argument.\n") // B90 + return retCode(-1) + } + idx, err := r.nameToIndex(dev) + if err != nil { + return err + } + if idx == 0 { + r.errf("Cannot find bridge device \"%s\"\n", dev) // B89 + return retCode(-1) + } + + // The sends' tests, link.c:546-614: the sentinels, and cost's > 0. + p.McastRouter = xtcpnl.BrU8{Set: mcastRouter >= 0, V: cint.SCharBits(mcastRouter)} + p.McastMaxGroups = xtcpnl.BrU32{Set: maxGroups >= 0, V: cint.Bits(maxGroups)} + p.Cost = xtcpnl.BrU32{Set: cost > 0, V: cost} + p.Priority = xtcpnl.BrU16{Set: priority >= 0, V: cint.ShortBits(priority)} + p.State = xtcpnl.BrU8{Set: state >= 0, V: cint.SCharBits(state)} + p.BackupPort = backupPort + p.BackupNhid = backupNhid + // ifi_index is an int assigned ll_name_to_index's unsigned. + w := xtcpnl.BrLinkWrite{Ifindex: cint.Int(idx), Protinfo: &p, AfSpec: xtcpnl.BrAfSpecFlags{Flags: flags, Mode: mode}} + return r.deliverWrite(xtcpnl.BuildBrLinkWriteRequest(&w, r.nextSeq())) +} + +// parseOnOff is lib/utils.c parse_on_off: "off" 0, "on" 1 (strcmp), or +// the error and -EINVAL, which brlink_modify returns (B84). +func (r *runner) parseOnOff(msg, v string) (uint8, error) { + switch v { + case "off": + return 0, nil + case "on": + return 1, nil + } + r.errf("Error: argument of \"%s\" must be one of \"off\", \"on\", not \"%s\"\n", msg, v) + return 0, rcEINVAL +} + +// parseStpState is bridge/link.c parse_stp_state: the BR_STATE_* index of +// an exact state name, or -1. +func parseStpState(s string) int8 { + for i, n := range xtcpnl.BridgePortStates { + if n == s { + return cint.LongToSChar(int64(i)) // 0-4 + } + } + return -1 +} + +// strtol is C strtol(s, &end, base) on a 64-bit long: leading space, a +// sign, base 0's 0x and 0 prefixes, the digits; end is the index past what +// was read (0 when no digit was), and a value past LONG_MAX or LONG_MIN +// saturates with over set (ERANGE). +func strtol(s string, base uint64) (v int64, end int, over bool) { + mag, neg, end, over := strtoMag(s, base) + if neg { + n, ok := cint.NegInt64(mag) + if over || !ok { + return math.MinInt64, end, true + } + return n, end, false + } + n, ok := cint.Int64(mag) + if over || !ok { + return math.MaxInt64, end, true + } + return n, end, false +} + +// strtoMag reads strtol's and strtoul's magnitude and sign. over is the +// magnitude past 2^64-1. +func strtoMag(s string, base uint64) (mag uint64, neg bool, end int, over bool) { + i := len(s) - len(strings.TrimLeft(s, " \t\n\v\f\r")) + if i < len(s) && (s[i] == '+' || s[i] == '-') { + neg = s[i] == '-' + i++ + } + hexPrefix := i+2 < len(s) && s[i] == '0' && (s[i+1] == 'x' || s[i+1] == 'X') + if hexPrefix { + _, hexPrefix = digitValue(s[i+2], 16) + } + switch { + case (base == 0 || base == 16) && hexPrefix: + base = 16 + i += 2 + case base == 0 && i < len(s) && s[i] == '0': + base = 8 + case base == 0: + base = 10 + } + start := i + for ; i < len(s); i++ { + d, ok := digitValue(s[i], base) + if !ok { + break + } + if mag > (math.MaxUint64-d)/base { + over = true + } + mag = mag*base + d + } + if i == start { + return 0, false, 0, false + } + return mag, neg, i, over +} + +// digitValue is c's value as a digit of base (at most 16), and whether it +// is one. +func digitValue(c byte, base uint64) (uint64, bool) { + var d uint64 + switch { + case c >= '0' && c <= '9': + d = uint64(c - '0') + case c >= 'a' && c <= 'f': + d = uint64(c-'a') + 10 + case c >= 'A' && c <= 'F': + d = uint64(c-'A') + 10 + default: + return 0, false + } + return d, d < base +} + +// getS32 is lib/utils.c get_s32(&v, s, 0): the whole string, in range. +func getS32(s string) (int32, bool) { + if s == "" { + return 0, false + } + v, end, over := strtol(s, 0) + if end == 0 || end != len(s) || over || v > math.MaxInt32 || v < math.MinInt32 { + return 0, false + } + return cint.LongToInt(v), true +} + +// getU32 is lib/utils.c get_u32(&v, s, 0): strtoul, the whole string, at +// most 0xffffffff. strtoul negates a "-" magnitude, so only "-0" passes. +func getU32(s string) (uint32, bool) { + if s == "" { + return 0, false + } + mag, neg, end, over := strtoMag(s, 0) + if end == 0 || end != len(s) || over { + return 0, false + } + if neg { + mag = -mag + } + return cint.U32From64(mag) +} diff --git a/internal/gobridge/link_write_test.go b/internal/gobridge/link_write_test.go new file mode 100644 index 000000000..d58ea0807 --- /dev/null +++ b/internal/gobridge/link_write_test.go @@ -0,0 +1,379 @@ +//go:build gobridge_write + +package gobridge + +import ( + "bytes" + "encoding/binary" + "fmt" + "slices" + "strings" + "testing" + + "github.com/randomizedcoder/xtcp2/pkg/xtcpnl" + "golang.org/x/sys/unix" +) + +// ack is the kernel's ack of a write. +func ack() Reply { return rep(nlErr(0)) } + +// sent is what a write row checks of the last SETLINK: the PROTINFO and +// AF_SPEC attributes as "type=value" in wire order, the MST entry, and +// whether PROTINFO and AF_SPEC were sent at all. +type sent struct { + port string // "" for none; "-" for no PROTINFO + spec string // "" for none or not sent + mst string // "msti/state", "" for none + ifindex int32 + setlinks int +} + +func lastSetlink(t *testing.T, reqs [][]byte) sent { + t.Helper() + var s sent + var last []byte + for _, r := range reqs { + if len(r) >= nlHeaderLen && binary.LittleEndian.Uint16(r[4:6]) == unix.RTM_SETLINK { + s.setlinks++ + last = r + } + } + if last == nil { + return s + } + l, err := xtcpnl.ParseBridgeLink(last[nlHeaderLen:]) + if err != nil { + t.Fatalf("ParseBridgeLink: %v", err) + } + s.ifindex = l.Index + s.port = "-" + if l.Attrs.Has(xtcpnl.IflaProtinfoCst) { + s.port = attrList(l.Attrs.Bytes(xtcpnl.IflaProtinfoCst)) + } + if l.Attrs.Has(xtcpnl.IflaAfSpecCst) && len(l.Mst) == 0 { + s.spec = attrList(l.Attrs.Bytes(xtcpnl.IflaAfSpecCst)) + } + if len(l.Mst) > 0 { + m, _ := l.Mst[0].Attrs.U16(xtcpnl.IflaBridgeMstEntryMsti) + st, _ := l.Mst[0].Attrs.U8(xtcpnl.IflaBridgeMstEntryState) + s.mst = fmt.Sprintf("%d/%d", m, st) + } + return s +} + +// attrList is a nest's attributes as "type=value" (value little-endian, by +// width), space-separated, in wire order. +func attrList(b []byte) string { + var out []string + if err := xtcpnl.WalkRawAttrs(b, func(raw uint16, v []byte) { + var n uint64 + for i := len(v) - 1; i >= 0; i-- { + n = n<<8 | uint64(v[i]) + } + out = append(out, fmt.Sprintf("%d=%d", raw, n)) + }); err != nil { + return "malformed" + } + return strings.Join(out, " ") +} + +type writeWant struct { + stderr string + rc int + sent sent +} + +func runWrite(t *testing.T, args string, replies []Reply, stdin string) writeWant { + t.Helper() + src := &fakeSource{replies: replies} + var out, errb bytes.Buffer + rc := run(config{src: src, stdin: strings.NewReader(stdin)}, shellWords(args), &out, &errb) + if out.Len() != 0 { + t.Errorf("stdout %q, want none", out.String()) + } + stderr := errb.String() + if strings.HasPrefix(stderr, "Usage: bridge link set") { + stderr = "Usage: bridge link set…" + } + return writeWant{stderr: stderr, rc: rc, sent: lastSetlink(t, src.reqs)} +} + +// TestGobridgeLinkWrite is linkWrite on scripted replies: cache() is +// ll_init_map (br0 3, d1 4, d2 5), then the SETLINK's answer. Attribute +// types: GUARD 5, MODE 4, PROTECT 6, FAST_LEAVE 7, LEARNING 8, +// UNICAST_FLOOD 9, COST 3, PRIORITY 2, STATE 1, MULTICAST_ROUTER 25, +// MCAST_MAX_GROUPS 42, BACKUP_PORT 34, BACKUP_NHID 44; AF_SPEC FLAGS 0, +// MODE 1. +func TestGobridgeLinkWrite(t *testing.T) { + ok := []Reply{cache(), ack()} + one := func(port string) sent { return sent{port: port, ifindex: 4, setlinks: 1} } + usage := "Usage: bridge link set…" + tests := []struct { + description string + args string + replies []Reply + expected writeWant + }{ + // Positive: on/off words, numbers, flags. + {"positive: hairpin on", "link set dev d1 hairpin on", ok, writeWant{sent: one("4=1")}}, + {"positive: hairpin off", "link set dev d1 hairpin off", ok, writeWant{sent: one("4=0")}}, + {"positive: guard, root_block, fastleave, learning, flood in C's order", "link set dev d1 flood on learning off fastleave on root_block on guard on", + ok, writeWant{sent: one("5=1 7=1 6=1 9=1 8=0")}}, + {"positive: the numbers at C's widths", "link set dev d1 cost 5 priority 3 state forwarding mcast_router 2 mcast_max_groups 9", + ok, writeWant{sent: one("25=2 42=9 3=5 2=3 1=3")}}, + {"positive: state by number", "link set dev d1 state 2", ok, writeWant{sent: one("1=2")}}, + {"positive: self", "link set dev d1 self", ok, writeWant{sent: sent{port: "", spec: "0=2", ifindex: 4, setlinks: 1}}}, + {"positive: master", "link set dev d1 master", ok, writeWant{sent: sent{port: "", spec: "0=1", ifindex: 4, setlinks: 1}}}, + {"positive: hwmode veb", "link set dev d1 hwmode veb", ok, writeWant{sent: sent{port: "", spec: "0=2 1=0", ifindex: 4, setlinks: 1}}}, + {"positive: backup_port by name, backup_nhid hex", "link set dev d1 backup_port d2 backup_nhid 0x10", ok, + writeWant{sent: one("34=5 44=16")}}, + {"positive: nobackup_port sends 0", "link set dev d1 nobackup_port", ok, writeWant{sent: one("34=0")}}, + {"positive: change is set", "link change dev d1 hairpin on", ok, writeWant{sent: one("4=1")}}, + // Negative: bridge's refusals, and the kernel's. + {"negative: an unknown word is usage (B85)", "link set dev d1 bogus on", []Reply{cache()}, writeWant{stderr: usage, rc: 255}}, + {"negative: hairpin maybe returns -EINVAL, 234 (B84)", "link set dev d1 hairpin maybe", []Reply{cache()}, + writeWant{stderr: "Error: argument of \"hairpin\" must be one of \"off\", \"on\", not \"maybe\"\n", rc: 234}}, + {"negative: a bad state name", "link set dev d1 state bogus", []Reply{cache()}, + writeWant{stderr: "Error: invalid STP port state\n", rc: 255}}, + {"negative: no dev, after the loop (B90)", "link set cost 5", []Reply{cache()}, + writeWant{stderr: "Device is a required argument.\n", rc: 255}}, + {"negative: no such dev (B89)", "link set dev nosuch cost 5", []Reply{cache(), rep(nlErr(unix.ENODEV))}, + writeWant{stderr: "Cannot find bridge device \"nosuch\"\n", rc: 255}}, + {"negative: no such backup port (B89)", "link set dev d1 backup_port nosuch", []Reply{cache(), rep(nlErr(unix.ENODEV))}, + writeWant{stderr: "Error: device nosuch does not exist\n", rc: 255}}, + {"negative: a bad hwmode", "link set dev d1 hwmode x", []Reply{cache()}, + writeWant{stderr: "Mode argument must be \"vepa\" or \"veb\".\n", rc: 255}}, + {"negative: mcast_max_groups past s32 is invarg (B83)", "link set dev d1 mcast_max_groups 4294967295", []Reply{cache()}, + writeWant{stderr: "Error: argument \"4294967295\" is wrong: invalid mcast_max_groups\n", rc: 255}}, + {"negative: backup_nhid -1 is invarg", "link set dev d1 backup_nhid -1", []Reply{cache()}, + writeWant{stderr: "Error: argument \"-1\" is wrong: invalid backup_nhid\n", rc: 255}}, + {"negative: dev with no value", "link set dev", []Reply{cache()}, + writeWant{stderr: "Command line is not complete. Try option \"help\"\n", rc: 255}}, + {"negative: the kernel's NAK", "link set dev d1 self", []Reply{cache(), rep(nlErr(unix.EOPNOTSUPP))}, + writeWant{stderr: "RTNETLINK answers: Operation not supported\n", rc: 255, sent: sent{port: "", spec: "0=2", ifindex: 4, setlinks: 1}}}, + {"negative: the kernel's extack NAK", "link set dev d1 mab on", []Reply{cache(), rep(doneErrAck(unix.EINVAL, "MAB needs locked"))}, + writeWant{stderr: "Error: MAB needs locked.\n", rc: 255, sent: one("40=1")}}, + // Boundary: C's narrowing. + {"boundary: mcast_router abc is atoi 0, sent (B77)", "link set dev d1 mcast_router abc", ok, writeWant{sent: one("25=0")}}, + {"boundary: mcast_router 200 is -56, dropped (B77)", "link set dev d1 mcast_router 200", ok, writeWant{sent: one("")}}, + {"boundary: mcast_router 300 is 44 (B77)", "link set dev d1 mcast_router 300", ok, writeWant{sent: one("25=44")}}, + {"boundary: cost 0 is not sent (B78)", "link set dev d1 cost 0", ok, writeWant{sent: one("")}}, + {"boundary: cost -1 is 0xffffffff (B78)", "link set dev d1 cost -1", ok, writeWant{sent: one("3=4294967295")}}, + {"boundary: priority 70000 is 4464 (B79)", "link set dev d1 priority 70000", ok, writeWant{sent: one("2=4464")}}, + {"boundary: priority 40000 is negative, dropped (B79)", "link set dev d1 priority 40000", ok, writeWant{sent: one("")}}, + {"boundary: state 200 is dropped (B80)", "link set dev d1 state 200", ok, writeWant{sent: one("")}}, + {"boundary: state 300 is 44 (B80)", "link set dev d1 state 300", ok, writeWant{sent: one("1=44")}}, + {"boundary: mcast_max_groups -1 is dropped (B83)", "link set dev d1 mcast_max_groups -1", ok, writeWant{sent: one("")}}, + {"boundary: mcast_max_groups 0x7fffffff", "link set dev d1 mcast_max_groups 0x7fffffff", ok, writeWant{sent: one("42=2147483647")}}, + // Corner. + {"corner: hwmode after master is self alone (B81)", "link set dev d1 master hwmode vepa", ok, + writeWant{sent: sent{port: "", spec: "0=2 1=1", ifindex: 4, setlinks: 1}}}, + {"corner: master after hwmode is both", "link set dev d1 hwmode vepa master", ok, + writeWant{sent: sent{port: "", spec: "0=3 1=1", ifindex: 4, setlinks: 1}}}, + {"corner: nothing to set is an empty PROTINFO (B82)", "link set dev d1", ok, writeWant{sent: one("")}}, + {"corner: the later of two values wins", "link set dev d1 cost 5 cost 6", ok, writeWant{sent: one("3=6")}}, + {"corner: link s is set", "link s dev d1 hairpin on", ok, writeWant{sent: one("4=1")}}, + {"corner: the bridge itself is sent its index", "link set dev br0 self", ok, + writeWant{sent: sent{port: "", spec: "0=2", ifindex: 3, setlinks: 1}}}, + } + for _, tc := range tests { + t.Run(tc.description, func(t *testing.T) { + if got := runWrite(t, tc.args, tc.replies, ""); got != tc.expected { + t.Errorf("bridge %s\n got %#v\n want %#v", tc.args, got, tc.expected) + } + }) + } +} + +// doneErrAck is an NLMSG_ERROR NAK with an extack message, capped. +func doneErrAck(errno unix.Errno, msg string) Msg { + body := cat(u32(negErrno(errno)), make([]byte, nlHeaderLen), at(unix.NLMSGERR_ATTR_MSG, append([]byte(msg), 0)...)) + return Msg{Type: unix.NLMSG_ERROR, Flags: unix.NLM_F_ACK_TLVS | unix.NLM_F_CAPPED, Body: body} +} + +// TestGobridgeLinkWriteBatch is -force over a 234 line and a good one: +// the batch carries on, sends both lines' requests that were built, and +// ends rc 1 (B84); a usage line ends it (B85). +func TestGobridgeLinkWriteBatch(t *testing.T) { + tests := []struct { + description string + stdin string + replies []Reply + expected writeWant + }{ + {"positive: two good lines, two SETLINKs", "link set dev d1 cost 5\nlink set dev d1 cost 6\n", + []Reply{cache(), ack(), ack()}, writeWant{sent: sent{port: "3=6", ifindex: 4, setlinks: 2}}}, + {"negative: rc 234 then a good line: carried on, rc 1 (B84)", "link set dev d1 hairpin maybe\nlink set dev d1 hairpin on\n", + []Reply{cache(), ack()}, writeWant{ + stderr: "Error: argument of \"hairpin\" must be one of \"off\", \"on\", not \"maybe\"\nCommand failed -:1\n", + rc: 1, sent: sent{port: "4=1", ifindex: 4, setlinks: 1}}}, + {"boundary: a NAK then a good line: carried on, rc 1", "link set dev d1 cost 70000\nlink set dev d1 cost 6\n", + []Reply{cache(), rep(nlErr(unix.ERANGE)), ack()}, writeWant{ + stderr: "RTNETLINK answers: Numerical result out of range\nCommand failed -:1\n", + rc: 1, sent: sent{port: "3=6", ifindex: 4, setlinks: 2}}}, + {"corner: usage ends the batch at once (B85)", "link set dev d1 bogus on\nlink set dev d1 hairpin on\n", + []Reply{cache()}, writeWant{stderr: "Usage: bridge link set…", rc: 255}}, + } + for _, tc := range tests { + t.Run(tc.description, func(t *testing.T) { + if got := runWrite(t, "-force -batch -", tc.replies, tc.stdin); got != tc.expected { + t.Errorf("got %#v\nwant %#v", got, tc.expected) + } + }) + } +} + +// TestGobridgeMstWrite is mstWrite on scripted replies. +func TestGobridgeMstWrite(t *testing.T) { + ok := []Reply{cache(), ack()} + m := func(s string) sent { return sent{port: "-", mst: s, ifindex: 4, setlinks: 1} } + req := "Device, MSTI and state are required arguments.\n" + tests := []struct { + description string + args string + replies []Reply + expected writeWant + }{ + {"positive: a state by name", "mst set dev d1 msti 5 state forwarding", ok, writeWant{sent: m("5/3")}}, + {"positive: a state by number", "mst set dev d1 msti 5 state 3", ok, writeWant{sent: m("5/3")}}, + {"positive: words in any order", "mst set state 1 msti 7 dev d1", ok, writeWant{sent: m("7/1")}}, + {"negative: no dev", "mst set msti 5 state 3", []Reply{cache()}, writeWant{stderr: req, rc: 255}}, + {"negative: no msti", "mst set dev d1 state 3", []Reply{cache()}, writeWant{stderr: req, rc: 255}}, + {"negative: no state", "mst set dev d1 msti 5", []Reply{cache()}, writeWant{stderr: req, rc: 255}}, + {"negative: a bad state", "mst set dev d1 msti 5 state bogus", []Reply{cache()}, + writeWant{stderr: "Error: invalid STP port state\n", rc: 255}}, + {"negative: state 256 is out of bridge's range", "mst set dev d1 msti 5 state 256", []Reply{cache()}, + writeWant{stderr: "Error: invalid STP port state\n", rc: 255}}, + {"negative: a bad MSTI", "mst set dev d1 msti abc state 3", []Reply{cache()}, writeWant{stderr: "Error: invalid MSTI\n", rc: 255}}, + {"negative: no such device is nodev's text (B89)", "mst set dev nosuch msti 5 state 3", []Reply{cache(), rep(nlErr(unix.ENODEV))}, + writeWant{stderr: "Cannot find device \"nosuch\"\n", rc: 255}}, + {"negative: help", "mst set dev d1 he", []Reply{cache()}, writeWant{stderr: "Usage: bridge mst set dev DEV msti MSTI state STATE\n bridge mst {show} [ dev DEV ]\n", rc: 255}}, + {"negative: the kernel's extack NAK", "mst set dev d1 msti 5 state 3", []Reply{cache(), rep(doneErrAck(unix.EBUSY, "bridge: MST off"))}, + writeWant{stderr: "Error: bridge: MST off.\n", rc: 255, sent: m("5/3")}}, + {"boundary: msti -1 is 65535 (B87)", "mst set dev d1 msti -1 state 3", ok, writeWant{sent: m("65535/3")}}, + {"boundary: msti 70000 is 4464 (B87)", "mst set dev d1 msti 70000 state 3", ok, writeWant{sent: m("4464/3")}}, + {"boundary: msti 4094", "mst set dev d1 msti 4094 state 3", ok, writeWant{sent: m("4094/3")}}, + {"boundary: state 255 passes bridge", "mst set dev d1 msti 5 state 255", ok, writeWant{sent: m("5/255")}}, + {"corner: an empty MSTI is sent as 0 (B86)", `mst set dev d1 msti "" state 3`, ok, writeWant{sent: m("0/3")}}, + {"corner: an empty state is an invalid MSTI (B86)", `mst set dev d1 msti 5 state ""`, []Reply{cache()}, + writeWant{stderr: "Error: invalid MSTI\n", rc: 255}}, + {"corner: an unknown word is ignored", "mst set dev d1 bogus msti 5 state 3", ok, writeWant{sent: m("5/3")}}, + {"corner: mst s is set (B88)", "mst s dev d1 msti 5 state 3", ok, writeWant{sent: m("5/3")}}, + } + for _, tc := range tests { + t.Run(tc.description, func(t *testing.T) { + if got := runWrite(t, tc.args, tc.replies, ""); got != tc.expected { + t.Errorf("bridge %s\n got %#v\n want %#v", tc.args, got, tc.expected) + } + }) + } +} + +// TestGobridgeCNumbers pins the C number parsers the writes use: strtol, +// get_s32 and get_u32, base 0 included. +func TestGobridgeCNumbers(t *testing.T) { + type want struct { + v int64 + end int + over bool + s32 int32 + s32ok bool + u32 uint32 + u32ok bool + strtol int64 // strtol(s, 10) + } + tests := []struct { + description string + in string + expected want + }{ + {"positive: decimal", "42", want{v: 42, end: 2, s32: 42, s32ok: true, u32: 42, u32ok: true, strtol: 42}}, + {"positive: hex, base 0", "0x10", want{v: 16, end: 4, s32: 16, s32ok: true, u32: 16, u32ok: true, strtol: 0}}, + {"positive: octal, base 0", "010", want{v: 8, end: 3, s32: 8, s32ok: true, u32: 8, u32ok: true, strtol: 10}}, + {"negative: no digits", "abc", want{}}, + {"negative: trailing junk", "5x", want{v: 5, end: 1, strtol: 5}}, + {"negative: -1 is not a u32", "-1", want{v: -1, end: 2, s32: -1, s32ok: true, strtol: -1}}, + {"boundary: MaxInt32", "2147483647", want{v: 2147483647, end: 10, s32: 2147483647, s32ok: true, u32: 2147483647, u32ok: true, strtol: 2147483647}}, + {"boundary: MaxUint32 is a u32, not an s32", "4294967295", want{v: 4294967295, end: 10, u32: 4294967295, u32ok: true, strtol: 4294967295}}, + {"boundary: past LONG_MAX saturates", "99999999999999999999", want{v: 1<<63 - 1, end: 20, over: true, strtol: 1<<63 - 1}}, + {"corner: leading space and +", " +7", want{v: 7, end: 3, s32: 7, s32ok: true, u32: 7, u32ok: true, strtol: 7}}, + {"corner: -0 is a u32", "-0", want{v: 0, end: 2, s32: 0, s32ok: true, u32: 0, u32ok: true, strtol: 0}}, + {"corner: 0x with no hex digit is 0, x left", "0x", want{v: 0, end: 1, strtol: 0}}, + {"corner: empty", "", want{}}, + } + for _, tc := range tests { + t.Run(tc.description, func(t *testing.T) { + var got want + got.v, got.end, got.over = strtol(tc.in, 0) + got.s32, got.s32ok = getS32(tc.in) + got.u32, got.u32ok = getU32(tc.in) + got.strtol, _, _ = strtol(tc.in, 10) + if got != tc.expected { + t.Errorf("%q\n got %+v\n want %+v", tc.in, got, tc.expected) + } + }) + } + if !slices.Contains(xtcpnl.BridgePortStates, "blocking") || parseStpState("blocking") != 4 || parseStpState("Blocking") != -1 { + t.Error("parseStpState is not parse_stp_state's strcmp") + } +} + +// fuzzLinkWords are the words FuzzGobridgeLinkSet draws from: every keyword +// of brlink_modify and mst_set, the values the corpus uses, and their edges. +var fuzzLinkWords = []string{ + "dev", "d1", "d2", "br0", "nosuch", "on", "off", "maybe", "", "help", "he", + "guard", "hairpin", "fastleave", "root_block", "learning", "learning_sync", "flood", "mcast_router", + "mcast_flood", "bcast_flood", "mcast_to_unicast", "mcast_max_groups", "cost", "priority", "state", + "hwmode", "vepa", "veb", "self", "master", "neigh_suppress", "neigh_vlan_suppress", "neigh_forward_grat", + "vlan_tunnel", "isolated", "locked", "mab", "backup_port", "nobackup_port", "backup_nhid", "msti", + "forwarding", "blocking", "disabled", "0", "1", "3", "4", "5", "63", "64", "200", "255", "256", "300", + "-1", "40000", "70000", "65535", "4294967295", "0x10", "010", "abc", " 7", "99999999999999999999", +} + +// FuzzGobridgeLinkSet runs link set and mst set on up to 12 drawn words +// (each byte picks one; a byte past the list is a raw one-byte word), with +// every request acked: gobridge must not panic, must exit as bridge can +// (0, 1, 234 or 255), and every SETLINK it sends must decode. +// +// go test -tags gobridge_write ./internal/gobridge/ -run XXX -fuzz FuzzGobridgeLinkSet -fuzztime 60s +func FuzzGobridgeLinkSet(f *testing.F) { + f.Add(false, []byte{0, 1, 13, 5}) + f.Add(true, []byte{0, 1, 41, 50, 25, 44}) + f.Add(false, []byte{}) + f.Add(false, []byte{0, 1, 23, 56, 24, 59, 25, 64}) + f.Add(true, []byte{41, 8, 25, 8, 0, 1}) + f.Fuzz(func(t *testing.T, mst bool, picks []byte) { + if len(picks) > 12 { + picks = picks[:12] + } + args := []string{"link", "set"} + if mst { + args = []string{"mst", "set"} + } + for _, p := range picks { + if int(p) < len(fuzzLinkWords) { + args = append(args, fuzzLinkWords[p]) + } else { + args = append(args, string([]byte{p})) + } + } + replies := []Reply{cache()} + for range 16 { + replies = append(replies, ack()) + } + src := &fakeSource{replies: replies} + var stdout, stderr bytes.Buffer + switch rc := run(config{src: src}, args, &stdout, &stderr); rc { + case 0, 1, 234, 255: + default: + t.Fatalf("%q: rc %d; stderr %q", args, rc, stderr.String()) + } + for _, r := range src.reqs { + if len(r) >= nlHeaderLen && binary.LittleEndian.Uint16(r[4:6]) == unix.RTM_SETLINK { + if _, err := xtcpnl.ParseBridgeLink(r[nlHeaderLen:]); err != nil { + t.Fatalf("%q: a SETLINK that does not decode: %v", args, err) + } + } + } + }) +} diff --git a/internal/gobridge/mst.go b/internal/gobridge/mst.go index 705bcade3..7b8f70ed0 100644 --- a/internal/gobridge/mst.go +++ b/internal/gobridge/mst.go @@ -23,7 +23,7 @@ func (r *runner) doMst(args []string) error { } switch w := args[0]; { case matches(w, "set"): - return r.refuse("mst set")(nil) + return r.mstWrite(args[1:]) case showWords(w, false): return r.mstShow(args[1:]) case matches(w, helpWord): diff --git a/internal/gobridge/mst_write.go b/internal/gobridge/mst_write.go new file mode 100644 index 000000000..212227671 --- /dev/null +++ b/internal/gobridge/mst_write.go @@ -0,0 +1,71 @@ +//go:build gobridge_write + +package gobridge + +import ( + "github.com/randomizedcoder/xtcp2/pkg/cint" + "github.com/randomizedcoder/xtcp2/pkg/xtcpnl" +) + +// bridge/mst.c mst_set (164-242) at iproute2 v7.2.0: `bridge mst set dev +// DEV msti MSTI state STATE`, one RTM_SETLINK whose IFLA_AF_SPEC holds +// IFLA_BRIDGE_MST > IFLA_BRIDGE_MST_ENTRY. Unknown words are ignored, bar a +// prefix of help (B85's contrast). The MSTI check tests the state's first +// byte, not the MSTI's (B86), and the MSTI is strtol narrowed to __u16 +// (B87). `mst s` reaches here: do_mst matches set before show (B88). + +// mstWrite is mst_set; args follow `set`. +func (r *runner) mstWrite(args []string) error { + var dev, msti, state *string + for i := 0; i < len(args); i++ { + var dst **string + switch args[i] { + case wordDev: + dst = &dev + case "msti": + dst = &msti + case "state": + dst = &state + default: + if matches(args[i], helpWord) { + return r.mstUsage() + } + continue + } + i++ // NEXT_ARG + if i >= len(args) { + return r.incomplete() + } + *dst = &args[i] + } + if dev == nil || msti == nil || state == nil { + r.errf("Device, MSTI and state are required arguments.\n") + return retCode(-1) + } + idx, err := r.nameToIndex(*dev) + if err != nil { + return err + } + if idx == 0 { + return r.nodev(*dev) + } + + m, mEnd, _ := strtol(*msti, 10) + // mst.c:208 tests *s, the state, where *m was meant (B86). + if *state == "" || mEnd != len(*msti) { + r.errf("Error: invalid MSTI\n") + return retCode(-1) + } + n, sEnd, _ := strtol(*state, 10) + st := cint.LongToInt(n) // int state = strtol(...) + if *state == "" || sEnd != len(*state) { + st = int32(parseStpState(*state)) + } + st8, ok := cint.U8(int(st)) + if !ok { + r.errf("Error: invalid STP port state\n") + return retCode(-1) + } + w := xtcpnl.BrLinkWrite{Ifindex: cint.Int(idx), Mst: &xtcpnl.BrMstEntry{Msti: cint.LongToU16(m), State: st8}} + return r.deliverWrite(xtcpnl.BuildBrLinkWriteRequest(&w, r.nextSeq())) +} diff --git a/internal/gobridge/readback_test.go b/internal/gobridge/readback_test.go index cd4f66d6f..aca8ee2f5 100644 --- a/internal/gobridge/readback_test.go +++ b/internal/gobridge/readback_test.go @@ -90,3 +90,53 @@ func TestGobridgeReadbacks(t *testing.T) { t.Skip("counted; replayed once 7R implements fdb and mdb show") } } + +// brLinkWriteReadbacks is how many brlinkwrite rows read back (V116): every +// accepted write, with `bridge -d link show` (link) or `bridge mst show +// dev d1` (mst). +const brLinkWriteReadbacks = 92 + +// TestGobridgeBrLinkWriteReadbacks replays each brlinkwrite readback through +// gobridge's read side and holds its stdout to the capture's, byte for byte, +// with every request asked for. They are reads, so both builds run them. +// +// go test ./internal/gobridge/ -run TestGobridgeBrLinkWriteReadbacks +func TestGobridgeBrLinkWriteReadbacks(t *testing.T) { + bases, err := filepath.Glob(writeCorpusGlob) + if err != nil || len(bases) == 0 { + t.Fatalf("no brlinkwrite corpus (%v)", err) + } + n := 0 + for _, base := range bases { + entries, err := os.ReadDir(base) + if err != nil { + t.Fatal(err) + } + for _, e := range entries { + dir := filepath.Join(base, e.Name()) + var rb readbackJSON + if err := json.Unmarshal([]byte(readFile(t, filepath.Join(dir, "cmd.json"))), &rb); err != nil { + t.Fatal(err) + } + for _, r := range rb.Readback { + n++ + t.Run(e.Name()+"/"+r.Name, func(t *testing.T) { + src, err := NewReplaySource(filepath.Join(dir, "netlink_route_"+r.Name+".pcap")) + if err != nil { + t.Fatal(err) + } + var out, errb bytes.Buffer + rc := run(config{src: src}, strings.Fields(r.Cmd)[1:], &out, &errb) + want := readFile(t, filepath.Join(dir, r.Name+".out")) + if rc != 0 || out.String() != want || errb.Len() != 0 || src.Pending() != 0 { + t.Fatalf("%s: rc %d pending %d stderr %q\n got %q\n want %q", + r.Cmd, rc, src.Pending(), errb.String(), out.String(), want) + } + }) + } + } + } + if n != brLinkWriteReadbacks { + t.Errorf("%d readbacks, want %d", n, brLinkWriteReadbacks) + } +} diff --git a/internal/gobridge/write_off.go b/internal/gobridge/write_off.go index 80f49b55f..cbd290c16 100644 --- a/internal/gobridge/write_off.go +++ b/internal/gobridge/write_off.go @@ -6,5 +6,11 @@ package gobridge // set are refused by name, as every other bridge write is (send_write.go is // the tagged build's). +// linkWrite refuses do_link's set and change. +func (r *runner) linkWrite([]string) error { return r.refuse("link set")(nil) } + +// mstWrite refuses do_mst's set. +func (r *runner) mstWrite([]string) error { return r.refuse("mst set")(nil) } + // writesBuilt is whether this build lays out link and mst writes. const writesBuilt = false diff --git a/pkg/cint/cint.go b/pkg/cint/cint.go index fff4a3a7a..9358b0e84 100644 --- a/pkg/cint/cint.go +++ b/pkg/cint/cint.go @@ -150,3 +150,26 @@ func U32From64(v uint64) (uint32, bool) { } return uint32(v), true } + +// IntToSChar is (signed char)n: an int's low 8 bits read as a signed char, +// as gcc narrows it, so 200 is -56 and 300 is 44. +func IntToSChar(n int32) int8 { + return SChar(uint8(Bits(n) & math.MaxUint8)) +} + +// IntToShort is (short)n: an int's low 16 bits read as a short, so 70000 is +// 4464 and 40000 is -25536. +func IntToShort(n int32) int16 { + return Short(uint16(Bits(n) & math.MaxUint16)) +} + +// LongToSChar is (signed char)l: a long's low 8 bits read as a signed char. +func LongToSChar(l int64) int8 { + return SChar(uint8(LongBits(l) & math.MaxUint8)) +} + +// LongToU16 is (__u16)l: a long's low 16 bits, so -1 is 0xffff and 70000 is +// 4464. +func LongToU16(l int64) uint16 { + return uint16(LongBits(l) & math.MaxUint16) +} diff --git a/pkg/cint/cint_test.go b/pkg/cint/cint_test.go index 15214fd16..bda69f69b 100644 --- a/pkg/cint/cint_test.go +++ b/pkg/cint/cint_test.go @@ -312,3 +312,45 @@ func TestShortSChar(t *testing.T) { }) } } + +// TestCNarrowings is the C narrowings bridge's argument parsers make: +// (signed char) and (short) of an int, (signed char) and (__u16) of a long. +// +// go test ./pkg/cint/ -run TestCNarrowings +func TestCNarrowings(t *testing.T) { + type want struct { + schar int8 // IntToSChar(int32(n)) and LongToSChar(n) + short int16 // IntToShort(int32(n)) + u16 uint16 // LongToU16(n) + } + tests := []struct { + description string + n int64 + expected want + }{ + {"positive: small values fit", 3, want{3, 3, 3}}, + {"negative: -1 stays -1 signed, 0xffff unsigned", -1, want{-1, -1, 0xffff}}, + {"boundary: 127, 128 and 255 around the char", 128, want{-128, 128, 128}}, + {"boundary: 200 is -56 as a char (B77, B80)", 200, want{-56, 200, 200}}, + {"boundary: 300 is 44 as a char", 300, want{44, 300, 300}}, + {"corner: 40000 is -25536 as a short (B79)", 40000, want{64, -25536, 40000}}, + {"corner: 70000 is 4464 as a short and a u16 (B79, B87)", 70000, want{112, 4464, 4464}}, + } + for _, tt := range tests { + t.Run(tt.description, func(t *testing.T) { + n32 := LongToInt(tt.n) + if got := IntToSChar(n32); got != tt.expected.schar { + t.Errorf("IntToSChar(%d) = %d, expected %d", n32, got, tt.expected.schar) + } + if got := LongToSChar(tt.n); got != tt.expected.schar { + t.Errorf("LongToSChar(%d) = %d, expected %d", tt.n, got, tt.expected.schar) + } + if got := IntToShort(n32); got != tt.expected.short { + t.Errorf("IntToShort(%d) = %d, expected %d", n32, got, tt.expected.short) + } + if got := LongToU16(tt.n); got != tt.expected.u16 { + t.Errorf("LongToU16(%d) = %d, expected %d", tt.n, got, tt.expected.u16) + } + }) + } +} From 034cdfc542ebd2a9d596998a91843d6cd9dfe126 Mon Sep 17 00:00:00 2001 From: randomizedcoder Date: Sat, 5 Dec 2026 00:32:26 -0800 Subject: [PATCH 5/8] docs(gobridge): 26B - bridge write doc completed, HEAD checked (DOC036) - upstream/iproute2-bridge-write.md: HEAD check (iproute2 d7e038f99479, torvalds 28a23309c8e4): every B lead present, every K note's code unchanged; At HEAD and gobridge columns filled. - K25 and K27 written up on their own: kernel-bridge-setport-partial-apply.md and kernel-bridge-learning-sync-ignored.md. Not submitted anywhere. - B64 gains an "Extended in increment 26" line: do_mst never zeroes timestamp. - gobridge.md: Increment 26 section. Checklist passes; four mutated copies of the doc fail it. Co-Authored-By: Claude Opus 5.5 --- docs/netlink/gobridge-status.md | 8 +- docs/netlink/gobridge.md | 42 +++++++++++ .../upstream/iproute2-bridge-monitor.md | 4 + .../netlink/upstream/iproute2-bridge-write.md | 73 +++++++++++++------ .../kernel-bridge-learning-sync-ignored.md | 64 ++++++++++++++++ .../kernel-bridge-setport-partial-apply.md | 58 +++++++++++++++ 6 files changed, 225 insertions(+), 24 deletions(-) create mode 100644 docs/netlink/upstream/kernel-bridge-learning-sync-ignored.md create mode 100644 docs/netlink/upstream/kernel-bridge-setport-partial-apply.md diff --git a/docs/netlink/gobridge-status.md b/docs/netlink/gobridge-status.md index 01d43d860..7850c171d 100644 --- a/docs/netlink/gobridge-status.md +++ b/docs/netlink/gobridge-status.md @@ -108,6 +108,9 @@ (`link_write.go`, `mst_write.go`) and replays all 141 `brlinkwrite` rows byte for byte, requests included; untagged it refuses each by name. 92 readbacks replay in both builds; the fuzz run found nothing and 8 of 8 mutants are killed (V118). + 26B is done: the HEAD check finds every B lead present and every K note's kernel code + unchanged; K25 and K27 are written up as kernel defects of their own; the doc's checklist + passes (DOC036). ## Contents @@ -134,7 +137,7 @@ | 6X — bridge, the rest | batch, force, netns, family, router ports: capture → parser → clone → bug hunt → live | done | V101, V102, V103, DOC033, V104 | | 7 — fdb and mdb | readbacks → capture → parser → clone → bug hunt → live | done | V105, V106, V107, V108, DOC034, V109 | | 25 — monitor | groundwork → capture → parser → clone → bug hunt → live | done | V110, V111, V112, V113, DOC035, V114 | -| 26 — writes: link set, mst set | groundwork → capture → encoders → clone → bug hunt → live | in progress | V115, V116, V117, V118 | +| 26 — writes: link set, mst set | groundwork → capture → encoders → clone → bug hunt → live | in progress | V115, V116, V117, V118, DOC036 | ## Task checklist @@ -167,7 +170,7 @@ | [x] | 26C | `matrix_brlinkwrite.go`, accepted, boundary, refused and batch rows, two batches | done | V116 | | [x] | 26P | `BrPortProtinfo`, `BrAfSpecFlags`, `BrMstEntry`; `BuildBrLinkWriteRequest`; `TestWsBrLinkWrite` | done | V117 | | [x] | 26W | gobridge `link_write.go`, `mst_write.go`; corpus, unit, fuzz, mutants | done | V118 | -| [ ] | 26B | B77+ and K18+ completed, HEAD checked | not started | DOC036 | +| [x] | 26B | B77+ and K18+ completed, HEAD checked | done | DOC036 | | [ ] | 26L | live diff of every `brlinkwrite` row | not started | V119 | ## Verification ledger @@ -202,6 +205,7 @@ | V116 | 26C | **Rows:** `tools/nlcapgen/matrix_brlinkwrite.go` generates `nix/microvms/workbench/brlinkwrite.rows.jsonl`, family `brlinkwrite` (registered in `nlcapgen/main.go`): 141 rows, plain only (a write prints nothing), proto route, module `bridge`, each in its own namespace. **Fixtures** (fixed MACs, `addrgenmode none` before up): `brl` (br0 `vlan_filtering 1`, dummy ports d1 and d2); `brlstp` (the same with `stp_state 1`); `brldown` (d1 down); `brmst` (`mst_enabled 1` at creation, vid 10 and 20 on d1 and br0, vid 10 mapped to MSTI 5); `brmstoff` (the same VLANs, MST off). **Accepted (92):** each of the 17 on/off words on and off (`mab on` only with `locked on learning on`), cost/priority/mcast_router/mcast_max_groups in range, each STP state by name and number, `backup_port`, `nobackup_port`, `backup_nhid`, `master`, `change`, `link s`, two multi-word requests, `dev d1` alone (B82), `dev br0 self cost 5` (K23), the ten narrowing boundaries that send nothing or a value the kernel takes, mst set with each state by name and number, `mst s` (B88), an ignored unknown word, MSTI 1 and 4094 (K24), and a set-then-show batch for each. Each has one readback: `bridge -d link show`, or `bridge mst show dev d1` on `brmst`. **Refused (49):** 24 by the kernel (K18-K24, the wraps it range-checks, the MST policy), 22 by bridge (usage, rc 234, the device texts, required arguments, invalid MSTI and state, NEXT_ARG, invarg), and three `-force` batches (rc 234 carries on, usage ends it, and a partly applied NAK). **Before the capture:** reading the kernel (`rtnl_bridge_setlink`, `br_setlink`, `br_setport`, `br_mst_process`, `br_mst_nl_policy`) corrected K24 (an unmapped MSTI is acked, not ENOENT) and moved the MSTI wraps' outcome from K24 to the policy. **Capture:** the workbench VM was off; booted (kernel 7.3.1, `bridge` 7.2.0), batch A to the scratchpad and batch B to the corpus, 141/141 rc as expected each, then powered off again (no cores, no namespaces left). `TestWsCorpusRows` then failed six rows: the MST policy's range refusal is ERANGE, not EINVAL (extack "integer out of range" as predicted). The six expectations were corrected and batch B re-run; the partial-apply batch gained `-d` (a plain `link show` does not print `hairpin`) and that one row was re-run in both batches. **Determinism:** `ip.rc`, `ip.err`, `ip.out` and every readback are identical in A and B on all 141 rows. Message types and flags are identical; bodies differ only in RTM_NEWLINK: `IFLA_BRPORT_FORWARD_DELAY_TIMER` (a live timer, 188 messages) and `ifi_flags` in `ll_init_map`'s AF_UNSPEC dump (linkwatch timing, 67), V097's two classes. **Requests**, decoded from each `ip.pcap`: REQUEST\|ACK; PROTINFO always with `NLA_F_NESTED` and empty when nothing is set (B82); AF_SPEC without it, FLAGS 2 for `master hwmode` (B81) and 3 for the reverse; `IFLA_BRIDGE_MST` without it and `MST_ENTRY` with it; `mcast_router abc` sends 0, `cost -1` 0xffffffff, `priority 70000` 0x1170, `state 300` and `mcast_router 300` 0x2c, `msti -1` 0xffff, `msti ""` 0 (B77-B80, B86, B87); the `-force` rc 234 batch sends its second line and the usage batch sends nothing (B84, B85). **Leads:** [upstream/iproute2-bridge-write.md](upstream/iproute2-bridge-write.md), each entry now with its rows: B77-B90 confirmed (B88's timestamp half source only); K18-K22 confirmed (K20's extack has `NL_SET_ERR_MSG_MOD`'s `bridge: ` prefix; K21's ENETDOWN covers `disabled` too on a port that is not running); K23 corrected (bare `dev br0` is EOPNOTSUPP for want of a master; with `self` the bridge acks and drops PROTINFO); K24 corrected (acked, nothing changes). **New:** K25, `br_setport` applies the port flags before range-checking cost, priority and state, so `hairpin on cost 70000` is refused with ERANGE and leaves hairpin on (ng-049's `-d` show); K26, a VLAN moved to a fresh MSTI starts disabled on every port (documented in `br_mst_vlan_sync_state`). **Tests:** `TestBrLinkWriteSpace` (row count; route proto; no row or pre step leaving its namespace; one readback per accepted row, the right one, none on a refusal; no duplicate; every brlink_modify keyword in an accepted row bar `self` and `hwmode`, which a dummy refuses; 41 table rows, each with description and expected, pinning every lead and K note to a row with its rc, refuser and errno, the boundary edges and the four batches; B82's row; deterministic generation). `go test ./pkg/xtcpnl/` (`TestWsCorpusRows` over all 141), `./internal/gobridge/`, `./tools/nlcapgen/` and `./internal/wsreplay/` pass. Corpus: 141 row dirs, 3.2 MB. | | V117 | 26P | **Code:** `pkg/xtcpnl/xtcpnl_bridge_write.go`, tagged `gobridge_write` (decision below): `BrU8`/`BrU16`/`BrU32` (an attribute sent only when given, brlink_modify's sentinels already decided); `BrPortProtinfo` and its `Append`, the 24 `IFLA_BRPORT_*` attributes in link.c:546-614's order; `BrAfSpecFlags` (`IFLA_AF_SPEC` without NLA_F_NESTED, FLAGS when non-zero, MODE when given); `BrMstEntry` (`AF_SPEC` > `BRIDGE_MST` > `MST_ENTRY`\|NESTED, MSTI u16, STATE u8); `BrLinkWrite` and `BuildBrLinkWriteRequest` (RTM_SETLINK, REQUEST\|ACK, ifinfomsg PF_BRIDGE, through `BuildWriteRequest`; a 512-byte buffer as the C's, which the widest request, 216 bytes, never reaches; `ErrBrLinkWriteEmpty` for a write with neither part). Types cite if_link.h and if_bridge.h. **no-write-encoders:** each daemon's `,gobridge_write` listing must name a further write file again (now `xtcpnl_bridge_write.go`, which the `treatment` xtcp2 does not already compile), beside 26X's `cmd/gobridge` control. **Tests** (tagged): `TestWsBrLinkWrite` over all 141 `ws/brlinkwrite` rows: O3, every captured SETLINK (118: 92 accepted, 24 kernel refusals, one in each of two `-force` batches) decodes through `ParseBridgeLink` and is rebuilt byte for byte, seq and pid aside; O2, no bridge refusal sends a SETLINK and each kernel refusal sends one; O4, each of 91 accepted writes is in the kernel's readback dump (`netlink_route_link.pcap` or `_mst.pcap`) with the value sent. One row is exempt by name (ec-066, K23: br0 drops PROTINFO); three kernel behaviors are pinned rather than exempted: `IFLA_BRPORT_LEARNING_SYNC` must be absent from the dump (K27), a written blocking state must read back forwarding (K28), and an unmapped MSTI must have no entry (K24, MSTI 1 and 4094). `TestBrLinkWriteEncode`: 7 table rows (description and expected: one attribute, flags and mode, an MST entry; no part, ErrBrLinkWriteEmpty; the 4-byte empty PROTINFO (B82), every field at its widest, 216 bytes; flags 0 sends no AF_SPEC), every one of the 24 fields alone round-tripping at its width, the NLA_F_NESTED conventions (PROTINFO and MST_ENTRY flagged, AF_SPEC and BRIDGE_MST not), and RTM_NEWVLAN still refused by the gate. Benchmarks: `BuildBrLinkWriteRequest` 555 ns, 3 allocs; decoding a captured SETLINK 1.3 µs, 2 allocs. `go test ./pkg/xtcpnl/ ./internal/gobridge/` passes untagged and with `-tags gobridge_write`. **Found:** K27, the software bridge never reads or reports `IFLA_BRPORT_LEARNING_SYNC` (only `ndo_dflt_bridge_getlink` and two switchdev drivers do), so `learning_sync on\|off` is acked and ignored (ec-011, ec-012); K28, `state blocking` on an STP-off bridge is undone by `br_port_state_selection` → `br_make_forwarding` (ec-055, ec-056). Both are in [upstream/iproute2-bridge-write.md](upstream/iproute2-bridge-write.md). | | V118 | 26W | **Code** (tagged `gobridge_write`): `internal/gobridge/link_write.go` is brlink_modify: the words in C's order and with its strcmp; `parseOnOff` (parse_on_off; a failure is `retCode(-EINVAL)`, rc 234, so `-force` carries on: B84); `parseStpState`; the C's narrowings kept as the C keeps them, through four new `pkg/cint` conversions (`IntToSChar`, `IntToShort`, `LongToSChar`, `LongToU16`, with `TestCNarrowings`, 7 rows) and `cint.Bits` (B77-B80, B83); hwmode assigning the flags (B81); PROTINFO always sent (B82); usage on an unknown word (B85); dev checked after the loop (B90); the three device texts, `backup_port` looked up in the loop where the C does it (B89); C's `strtol`/`get_s32`/`get_u32` (base 0, saturation, `-0` as a u32). `mst_write.go` is mst_set: unknown words ignored bar a prefix of help, the `*s` MSTI check (B86), `__u16` MSTI (B87), `int` state range-checked to 0-255, nodev. Both build through `xtcpnl.BuildBrLinkWriteRequest` and go through 26X's `deliverWrite`. `link.go` and `mst.go` call `linkWrite`/`mstWrite`; `write_off.go` refuses them by name; `mst s` stays a set (B88). Package doc and `errNotImplemented` updated. **Corpus:** `TestGobridgeCorpus` adds `brlinkwrite` (141) when `writesBuilt`: all 485 rows replay byte for byte in stdout, stderr and rc, with every request bridge sent matched and none left. It splits each command with the monitor test's `shellWords` (sh's quoting), since `msti ""` is an empty word to the shell and `strings.Fields` handed gobridge two quote characters (the only two first-run failures, ng-022 and ng-041). Untagged, `TestGobridgeWriteCorpusRefused` holds each of the 141 rows to rc 255, empty stdout and `gobridge: not implemented: bridge link set` or `mst set`. `TestGobridgeBrLinkWriteReadbacks` replays all 92 readbacks (`bridge -d link show`, `bridge mst show dev d1`) in both builds. **Unit tests** (tagged, each row with description and expected, the last SETLINK decoded through `ParseBridgeLink`): `TestGobridgeLinkWrite` 40 rows (on/off, C's attribute order, numbers at C's widths, flags, backups, `change`; usage, 234, bad state, no dev, no such dev and backup port, bad hwmode, two invargs, NEXT_ARG, a NAK and an extack NAK; the B77-B80 and B83 narrowings; B81 both orders, B82, last value wins, `link s`, br0's own index); `TestGobridgeLinkWriteBatch` 4 rows (two SETLINKs; rc 234 then a good line, rc 1; a NAK then a good line, rc 1; usage ends it); `TestGobridgeMstWrite` 20 rows (names and numbers, any order; missing words, bad state, 256, bad MSTI, nodev, help, an extack NAK; MSTI -1, 70000, 4094, state 255; B86 both ways, an ignored word, `mst s`); `TestGobridgeCNumbers` 13 rows. **Fuzz:** `FuzzGobridgeLinkSet` (link set or mst set over up to 12 words drawn from every keyword and the corpus's values, or raw bytes, every request acked): 60 s under `systemd-run --user --scope -p MemoryMax=6G` with `-timeout`, 1,030,907 executions, 138 interesting inputs, no panic, every rc in {0, 1, 234, 255}, every SETLINK decoding. **Mutants** (each under the same cap, each restored to its checksum): (1) PROTINFO omitted when empty, (2) hwmode ORs, (3) cost masked to 16 bits, (4) priority saturated instead of narrowed, (5) on/off failure exits 255, (6) mst checks `*m`, (7) AF_SPEC sent with NLA_F_NESTED, (8) `mst s` is show: 8 of 8 killed, each by the corpus and a unit table (1 and 7 also by `TestWsBrLinkWrite`/`TestBrLinkWriteEncode`). **Coverage:** `internal/gobridge` 84.3% with the tag. `go test ./internal/gobridge/ ./pkg/xtcpnl/ ./pkg/cint/` passes untagged and tagged. No new upstream lead: every difference was in the harness. | +| DOC036 | 26B | **Doc:** [upstream/iproute2-bridge-write.md](upstream/iproute2-bridge-write.md), still "Not submitted to netdev", is completed. Its new "HEAD check" section covers both trees, read-only through the GitHub mirrors. **iproute2:** the mirror's `main`, `d7e038f99479` (2026-12-02, the same as 25B). `bridge/link.c`, `bridge/mst.c`, `bridge/bridge.c` and `include/uapi/linux/if_bridge.h` are byte-identical to v7.2.0. In `lib/utils.c` the change is the `resolve_address` cache and `getcmdline`; `__parse_one_of`, `parse_on_off`, `get_u32`, `get_s32`, `nodev`, `matches`, `incomplete_command` and `invarg` are byte-identical (each function extracted and hashed). `if_link.h` gains `IFLA_PACING_OFFLOAD` at the end of the `IFLA_*` enum, moving no `IFLA_BRPORT_*`. `lib/libnetlink.c`'s commits are 25B's four, none on the ack or extack path. Every B lead is present. **Linux:** torvalds `master` `28a23309c8e4` (2026-12-05). Since v7.4-rc4, `net/bridge/` has `75dc1bad7897` (`nf_conntrack_bridge.c`) and `da4a53461d46` (`br_mdb.c`, and `br_private.h`'s `BR_SGRP_F_NEW`, checked hunk by hunk). `rtnetlink.c` and the two uapi headers have none. Every K note is unchanged. **Summary:** the "At HEAD" column is filled (14 present), and the gobridge column now says copied (26W). **Kernel defects written up on their own** (the plan's rule for "an attribute silently ignored" and the like), each with code citations at v7.4-rc4, history, the rows that show it, and fix options for the user, not sent: [upstream/kernel-bridge-setport-partial-apply.md](upstream/kernel-bridge-setport-partial-apply.md) (K25: `br_setport` commits the flags at br_netlink.c:1015 before the cost, priority, state, router and backup checks at 1024-1096, with no rollback; ng-049, and ng-004 for `rtnl_bridge_setlink`'s master-then-self); [upstream/kernel-bridge-learning-sync-ignored.md](upstream/kernel-bridge-learning-sync-ignored.md) (K27: no setter arm, no policy entry, no dump of `IFLA_BRPORT_LEARNING_SYNC` in the software bridge since `efacacdaf7cb` (2014); only qeth's `self` path implements it; ec-011, ec-012). **Extension line:** B64 in [upstream/iproute2-bridge-monitor.md](upstream/iproute2-bridge-monitor.md) gains "Extended in increment 26": `do_mst` never zeroes `timestamp` (mst.c has no reference to it), source only, pointing at B88. gobridge already models it (`doMst` has no reset). **Docs:** [gobridge.md](gobridge.md) gains "Increment 26": the task table, the dry-run model and how the clone is put together. **Checklist** (`doc036chk.py`, grep over the write doc and the monitor doc), all passing. Positive: every B77-B90 has a summary row and an entry, and every K18-K28 a settled entry. Negative: each confirmed lead and K note names an ec or ng row; no row is outside the range; every row has its At HEAD answer. Boundary: B and K are contiguous. Corner: B64's extension line points back, and both kernel docs are linked. Four mutated copies of the doc (a removed summary row, a row with no pinning row, an unfilled At HEAD, an unlinked kernel doc) each fail it. **Bug-class candidates** for the user, unchanged in bug-classes.md: an always-sent empty container (B82), a C narrowing that wraps or drops silently (B77, B79, B80, B87), and a refusal after a partial apply (K25). | | V402 | 6C | **Fresh-boot batches — the 6C gate's last task (and 7C's conditional).** Two batches, each on its own fresh boot of the workbench VM (kernel 7.3.1, iproute2 7.2.0; `nlcap-ws down` then `up`, the guest's `is-system-running` running before the first row), each running all four `ws/bridge*` row files through `nlcap-ws batch`, the committed corpus untouched. **Boot 1:** the batch the boot's own start rejected, re-run once the boot settled — 113 (`bridge`), 63 (`bridgex`), 94 (`bridgefdb`), 74 (`bridgemdb`), 344 of 344 OK. **Boot 2:** a second down+up — 344 of 344. **`nlcapgen verdiff` against the corpus:** `bridge` 0 differences (113 rows), `bridgex` 6 (the `brrtr -s` timer rows ec-021/022/023, pw-021/022/023, V101's allow-list), `bridgefdb` 0 (94), `bridgemdb` 6 (the temp-entry timer rows ec-005/006/008, pw-005/006/008 — V108's rows and their `-j -s`/`-s -o` twins). Boot 1 against boot 2 directly: the same profile, 0/6/0/6, the same rows. **A body-level pass** (a throwaway `tmp-bodydiff`, deleted; the corpus vs each boot's pcaps, message by message, seq and pid zeroed): every differing message is one of V097's two named classes — the `br` fixture's link replies at `IFLA_BRPORT_FORWARD_DELAY_TIMER` (offsets 360/364 of the 420-488-byte messages, 33 rows), and the NLMSG_ERROR bodies' echoed request seq (offsets 24, 28-30 and 60 in the 40-, 72- and 96-byte error shapes; `0x6b03d2bc` against `0x6b129194`, minutes apart; 28 rows). 58 rows (boot 1) and 61 rows (boot 2) differ in any body at all; every other byte of every other message is identical. The stats counters and the vxlan random source port, the 6C gate's own expected exceptions, never moved. **The first fresh-boot attempt failed 34 of 113 rows:** the batch fired 24 s after qemu started, `up` returning at ssh and the guest's systemd still settling, and the first wave's rows crosstalked at their ns lifecycle ("Cannot open network namespace" immediately after `NLCAP_NS_OK wsN"; "Cannot create namespace file: File exists" after ns-add's own cleanup; ec-010's pre step 0 creating br0 and pre step 1 finding it gone; "Cannot find device nlmon0"; `NLCAP_CAP_NOBIND`, datagrams=0). The mechanism was not pinned down; the wait is measured. A batch the same boot ran two hours later was 113 of 113, and a concurrent session's batch on the same boot (a `brmonitor` corpus, 44 rows, all OK) confirms the settled guest. `xtcp2-nlcap-ws up` now waits for `is-system-running` (running or degraded) before `NLCAP_WS_UP`, warning past the timeout. **The arc's disk:** the kernel closure was GC'd twice mid-arc (nothing pinned `nix build --no-link`, the store 98-99% full; the `linux-7.3.1` build needs ~35 GB and failed twice at 31-36 GB free), and two CLI attempts were killed at their own command timeouts (600 s and 2400 s against the ~45-min kernel rebuild); the closure is now rooted at `/tmp/gobridge-vm-root`. Gates: the batch's own, and `nlcap-ws`, `nix-fmt`, `test-goip-docs`, `netlink-audit`, `lint-baseline`. | ## Decision log diff --git a/docs/netlink/gobridge.md b/docs/netlink/gobridge.md index b19c9af0d..7c87dd754 100644 --- a/docs/netlink/gobridge.md +++ b/docs/netlink/gobridge.md @@ -702,3 +702,45 @@ K10-K17), not submitted to netdev. The ledger rows in [gobridge-status.md](gobri that every show zeroes (B64). - **Crashes:** the crash bridge has on a crafted file (B20 through `monitor file`) is refused by name, as 6R's are. + +## Increment 26 — writes: `bridge link set` and `bridge mst set` (V115–V119, DOC036) + +gobridge's first writes, built only with the `gobridge_write` tag: `bridge link set` (and `change`) and `bridge mst +set`, each one RTM_SETLINK for PF_BRIDGE, byte for byte with bridge 7.2.0. The default `gobridge` stays untagged +and refuses them by name, as it refuses every other write. Planned 2026-12-04 after increment 25, going bottom-up: +the port first, then 27 vlan (add/del/set, global set), 28 vni, 29 fdb, 30 mdb. Leads are in +[upstream/iproute2-bridge-write.md](upstream/iproute2-bridge-write.md) (B77-B90, K18-K28). Two kernel defects have +their own docs: [kernel-bridge-setport-partial-apply.md](upstream/kernel-bridge-setport-partial-apply.md) (K25) +and [kernel-bridge-learning-sync-ignored.md](upstream/kernel-bridge-learning-sync-ignored.md) (K27). None is +submitted to netdev. The ledger rows in [gobridge-status.md](gobridge-status.md) have the detail. + +| task | what | ledger | +|---|---|---| +| 26X | the `gobridge_write` tag wired as `gotc_write` is; no-write-encoders over internal/gobridge; `send_write.go` (dry-run delivery); `LiveSource.Talk` refuses anything but a GET in every build | V115 | +| 26C | `ws/brlinkwrite`, 141 rows over five fixtures: 92 accepted writes with readbacks, 46 refusals, 3 `-force` batches; two batches on one boot | V116 | +| 26P | `pkg/xtcpnl/xtcpnl_bridge_write.go` (tagged); `TestWsBrLinkWrite` rebuilds all 118 captured SETLINKs and checks 91 against the kernel's readback | V117 | +| 26W | `link_write.go` and `mst_write.go`; the corpus replay, 77 unit rows, a fuzz, 8 mutants | V118 | +| 26B | the doc's HEAD check; K25 and K27 written up on their own; B64's extension line | DOC036 | +| 26L | gobridge next to `bridge` 7.2.0 on the workbench, every `brlinkwrite` row | V119 | + +**The dry-run model** (gotc's, from increment 17): + +- **Nothing is applied.** A replay source matches the request with bridge's, byte for byte (seq and pid aside), + and answers with the recorded ack, so a NAK prints as bridge prints it (`RTNETLINK answers: …`, or the extack) + and returns -1. +- **On the kernel socket,** the request goes to the file `GOBRIDGE_WRITE_OUT` names, truncated by the run's first + write. Without that variable, gobridge refuses with `ErrWriteNotApplied` (rc 1). +- **The socket never carries a write.** `LiveSource.Talk` refuses anything but an RTM_GET*, whatever the build. + +**How the clone is put together:** + +- **Words:** brlink_modify's strcmp, in its order. An unknown word is usage (B85); `dev` is checked after the loop + (B90). +- **Values are narrowed as the C narrows them,** through `pkg/cint`: `atoi` into `__s8` (mcast_router, B77), `__u32` + (cost, sent only when > 0, B78) and `__s16` (priority, B79), `strtol` into `__s8` (state, B80), `get_s32` + (mcast_max_groups, B83) and `get_u32` (backup_nhid). +- **parse_on_off's failure is `retCode(-EINVAL)`:** rc 234, and a `-force` batch carries on (B84). +- **The request:** `xtcpnl.BuildBrLinkWriteRequest` writes PROTINFO always, even empty (B82), and with NLA_F_NESTED. + It writes AF_SPEC only for a flag or a mode, and without NLA_F_NESTED. `hwmode` assigns the flags (B81). +- **mst set:** unknown words are ignored; the MSTI check reads the state (B86); the MSTI is a `__u16` (B87). + `mst s` is a set, because do_mst matches set before show (B88). diff --git a/docs/netlink/upstream/iproute2-bridge-monitor.md b/docs/netlink/upstream/iproute2-bridge-monitor.md index afa5e4d45..ae6bd7baf 100644 --- a/docs/netlink/upstream/iproute2-bridge-monitor.md +++ b/docs/netlink/upstream/iproute2-bridge-monitor.md @@ -173,6 +173,10 @@ These extend [B28, B29](iproute2-bridge-print-paths.md#b28-b29-batch-lines-inher - **B64 (confirmed, ec-029):** `fdb show`, `link show`, `mdb show`, `vlan show` and `vni show` each set `timestamp = 0`. `bridge -t -batch` with `fdb show` then `monitor file m.bin` prints no `print_timestamp` lines; the one `Timestamp:` line is the file's own NLMSG_TSTAMP record. + - **Extended in increment 26:** `mst` is the one object that never zeroes it. `do_mst` (mst.c:244-263) has no + `timestamp = 0`, unlike `do_link` (link.c:691) and the others, so neither `mst show` nor `mst set` resets + `-t`: `bridge -t -batch` with an `mst` line then `monitor file m.bin` keeps the stamps. Source only, no row + (B88 in [iproute2-bridge-write.md](iproute2-bridge-write.md#b86-b88-mst-sets-checks-and-dispatch)). - **B69 (confirmed, ec-027):** the show commands' filters are statics too, and the printers apply them in monitor mode. After `fdb show dev d1`, `monitor file m.bin` prints the fdb events on d1 without `dev d1` (the filter hides the column) and drops the delete on d2 altogether. Link, mdb, vlan and vni events are unaffected. diff --git a/docs/netlink/upstream/iproute2-bridge-write.md b/docs/netlink/upstream/iproute2-bridge-write.md index 259bad66a..4ee84c052 100644 --- a/docs/netlink/upstream/iproute2-bridge-write.md +++ b/docs/netlink/upstream/iproute2-bridge-write.md @@ -1,12 +1,15 @@ # iproute2 `bridge` writes: `link set` and `mst set` narrow their numbers, send an empty container, and disagree on errors -**Status (2026-12-05, increment 26, through 26P):** +**Status (2026-12-05, increment 26, complete through 26B):** - **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. - **Settled against the corpus.** 26C (V116) captured 141 `ws/brlinkwrite` rows and settled every lead and kernel note: B77–B90 confirmed, K18–K22 confirmed, K23 and K24 corrected, and K25 and K26 new. 26P (V117) checked every - accepted write against the kernel's own readback dump and found K27 and K28. 26B (DOC036) adds the HEAD check. Later write increments (27 vlan, 28 vni, 29 fdb, 30 mdb) add their sections here. + accepted write against the kernel's own readback dump and found K27 and K28. 26B (DOC036) ran the + [HEAD check](#head-check): every B lead is still present, and every K note's kernel code is unchanged. K25 and K27 + stand on their own as kernel defects, in [kernel-bridge-setport-partial-apply.md](kernel-bridge-setport-partial-apply.md) + and [kernel-bridge-learning-sync-ignored.md](kernel-bridge-learning-sync-ignored.md). Later write increments (27 vlan, 28 vni, 29 fdb, 30 mdb) add their sections here. - **Source:** - Line numbers are iproute2 **v7.2.0** (`880505966c17`, 2026-08-17): `bridge/link.c` (`brlink_modify`, 332-639; `parse_stp_state`, 82-95; `do_link`, 688-708), `bridge/mst.c` (`mst_set`, 164-242; `do_mst`, 244-263) and @@ -33,6 +36,7 @@ ## Contents +- [HEAD check](#head-check) - [Summary](#summary) - [B77–B80, B83, B87. Narrowed numbers](#b77b80-b83-b87-narrowed-numbers) - [B81, B82. The containers](#b81-b82-the-containers) @@ -42,26 +46,49 @@ - [K18–K28. Kernel notes](#k18k28-kernel-notes) - [Bug-class candidates](#bug-class-candidates) +## HEAD check + +Checked 2026-12-05 (26B, DOC036), read-only through the GitHub mirrors. + +- **iproute2:** the mirror's `main`, `d7e038f99479` (2026-12-02), as in 25B. + - `bridge/link.c`, `bridge/mst.c`, `bridge/bridge.c` and `include/uapi/linux/if_bridge.h` are byte-identical to + v7.2.0. + - In `lib/utils.c` the change is the `resolve_address` cache and `getcmdline`. `__parse_one_of`, `parse_on_off`, + `get_u32`, `get_s32`, `nodev`, `matches`, `incomplete_command` and `invarg` are byte-identical. + - `include/uapi/linux/if_link.h` gains `IFLA_PACING_OFFLOAD` at the end of the `IFLA_*` enum. No `IFLA_BRPORT_*` + value moves. + - `lib/libnetlink.c`'s four commits are the ones 25B checked. None touches `rtnl_talk`'s ack handling or + `nl_dump_ext_ack`'s extack print. + + **Every B lead is still present at HEAD.** +- **Linux:** torvalds `master`, `28a23309c8e4` (2026-12-05). + - Since v7.4-rc4, `net/bridge/` has `75dc1bad7897` (`netfilter/nf_conntrack_bridge.c`) and `da4a53461d46` + (`br_mdb.c`, and `br_private.h`'s `BR_SGRP_F_NEW`). + - `net/core/rtnetlink.c`, `include/uapi/linux/if_bridge.h` and `include/uapi/linux/if_link.h` have no commits. + - `br_netlink.c`, `br_mst.c`, `br_stp.c`, `br_stp_if.c` and `br_multicast.c` are untouched. + + **Every K note's code is unchanged at HEAD.** + ## Summary -**L** is `bridge link set`, **M** is `bridge mst set`. "At HEAD" is filled in by 26B. +**L** is `bridge link set`, **M** is `bridge mst set`. | Lead | Where (v7.2.0) | Class | What | Pinned by | Status | At HEAD | gobridge | |---|---|---|---|---|---|---|---| -| B77 | link.c:355, 414-416, 557 | C9, C11 | `mcast_router` is `atoi` into `__s8`: `abc` sends 0, `200` is dropped, `300` sends 44 | ec-074, ec-075, ng-013 | confirmed | — | refused (26W copies) | -| B78 | link.c:367, 436-438, 578 | C9 | `cost` is `atoi` into `__u32`, sent only when `> 0`: `0` and `x` send nothing, `-1` sends 0xffffffff | ec-067, ec-068, ng-007 | confirmed | — | refused (26W copies) | -| B79 | link.c:368, 439-441, 581 | C9, C11 | `priority` is `atoi` into `__s16`: `70000` sends 4464; `-1` and `40000` are dropped | ec-069, ec-070, ng-009 | confirmed | — | refused (26W copies) | -| B80 | link.c:369, 442-454, 584 | C9, C11 | `state` is `strtol` into `__s8` with no range: `200`, `128` and `-1` are dropped, `300` sends 44 | ec-071–ec-073, ng-011, ng-027 | confirmed | — | refused (26W copies) | -| B81 | link.c:455-466 | C9 | `hwmode` assigns `flags = BRIDGE_FLAGS_SELF`, wiping an earlier `master` | ng-003, ng-004 | confirmed | — | refused (26W copies) | -| B82 | link.c:543-544, 616 | C9, C11 | `IFLA_PROTINFO` is always sent: `L dev d1` sends an empty nest and exits 0 | ec-065, ng-001 | confirmed | — | refused (26W copies) | -| B83 | link.c:359, 432-435, 569 | C9 | `mcast_max_groups` is `get_s32`: a negative is dropped; `4294967295` is `invarg` | ec-076, ng-029 | confirmed | — | refused (26W copies) | -| B84 | utils.c:1795-1815; link.c `return ret` arms | C8, C16 | a bad on/off value returns `-EINVAL`, rc 234, so `-force` carries on | ng-026, ng-033, ng-047 | confirmed | — | refused (26W copies) | -| B85 | link.c:523-525 | C9, C16 | an unknown word is `usage()`, rc 255, ending a `-force` batch; `mst set` ignores unknown words | ng-025, ng-031, ng-048, ec-088 | confirmed | — | refused (26W copies) | -| B86 | mst.c:207-211 | C9 | the MSTI check tests `*s` (state), not `*m`: `msti ""` sends MSTI 0, and `state ""` prints "invalid MSTI" | ng-022, ng-041 | confirmed | — | refused (26W copies) | -| B87 | mst.c:178, 207 | C9, C11 | `msti` is `strtol` into `__u16`: `-1` sends 65535, `70000` sends 4464 | ng-020, ng-021 | confirmed | — | refused (26W copies) | -| B88 | mst.c:244-249 | C9, C16 | `set` is prefix-matched before `show`, so `bridge mst s` is a set; `do_mst` never zeroes `timestamp` | ec-087; source only for the stamp | confirmed | — | refused by name (`mst s`, TestGobridgeWriteRefusedUntagged) | -| B89 | link.c:510-514, 534-537; mst.c:204-205 | C10 | three texts for a missing device: `Cannot find bridge device "X"`, `Error: device X does not exist`, `Cannot find device "X"` | ng-035, ng-036, ng-037 | confirmed | — | refused (26W copies) | -| B90 | link.c:528-531 | C9 | `dev` is checked after the loop: `L cost 5` parses every word, then prints "Device is a required argument." | ng-032, ng-033 | confirmed | — | refused (26W copies) | +| B77 | link.c:355, 414-416, 557 | C9, C11 | `mcast_router` is `atoi` into `__s8`: `abc` sends 0, `200` is dropped, `300` sends 44 | ec-074, ec-075, ng-013 | confirmed | present | copied (26W) | +| B78 | link.c:367, 436-438, 578 | C9 | `cost` is `atoi` into `__u32`, sent only when `> 0`: `0` and `x` send nothing, `-1` sends 0xffffffff | ec-067, ec-068, ng-007 | confirmed | present | copied (26W) | +| B79 | link.c:368, 439-441, 581 | C9, C11 | `priority` is `atoi` into `__s16`: `70000` sends 4464; `-1` and `40000` are dropped | ec-069, ec-070, ng-009 | confirmed | present | copied (26W) | +| B80 | link.c:369, 442-454, 584 | C9, C11 | `state` is `strtol` into `__s8` with no range: `200`, `128` and `-1` are dropped, `300` sends 44 | ec-071–ec-073, ng-011, ng-027 | confirmed | present | copied (26W) | +| B81 | link.c:455-466 | C9 | `hwmode` assigns `flags = BRIDGE_FLAGS_SELF`, wiping an earlier `master` | ng-003, ng-004 | confirmed | present | copied (26W) | +| B82 | link.c:543-544, 616 | C9, C11 | `IFLA_PROTINFO` is always sent: `L dev d1` sends an empty nest and exits 0 | ec-065, ng-001 | confirmed | present | copied (26W) | +| B83 | link.c:359, 432-435, 569 | C9 | `mcast_max_groups` is `get_s32`: a negative is dropped; `4294967295` is `invarg` | ec-076, ng-029 | confirmed | present | copied (26W) | +| B84 | utils.c:1795-1815; link.c `return ret` arms | C8, C16 | a bad on/off value returns `-EINVAL`, rc 234, so `-force` carries on | ng-026, ng-033, ng-047 | confirmed | present | copied (26W) | +| B85 | link.c:523-525 | C9, C16 | an unknown word is `usage()`, rc 255, ending a `-force` batch; `mst set` ignores unknown words | ng-025, ng-031, ng-048, ec-088 | confirmed | present | copied (26W) | +| B86 | mst.c:207-211 | C9 | the MSTI check tests `*s` (state), not `*m`: `msti ""` sends MSTI 0, and `state ""` prints "invalid MSTI" | ng-022, ng-041 | confirmed | present | copied (26W) | +| B87 | mst.c:178, 207 | C9, C11 | `msti` is `strtol` into `__u16`: `-1` sends 65535, `70000` sends 4464 | ng-020, ng-021 | confirmed | present | copied (26W) | +| B88 | mst.c:244-249 | C9, C16 | `set` is prefix-matched before `show`, so `bridge mst s` is a set; `do_mst` never zeroes `timestamp` | ec-087; source only for the stamp | confirmed | present | copied (26W); refused by name untagged | +| B89 | link.c:510-514, 534-537; mst.c:204-205 | C10 | three texts for a missing device: `Cannot find bridge device "X"`, `Error: device X does not exist`, `Cannot find device "X"` | ng-035, ng-036, ng-037 | confirmed | present | copied (26W) | +| B90 | link.c:528-531 | C9 | `dev` is checked after the loop: `L cost 5` parses every word, then prints "Device is a required argument." | ng-032, ng-033 | confirmed | present | copied (26W) | ## B77–B80, B83, B87. Narrowed numbers @@ -108,8 +135,9 @@ either way. Each value below is read from the row's `ip.pcap`. (`br_mst_nl_policy`, MSTI 1–4094) refuses both: `Error: integer out of range.`, ERANGE, rc 255 (ng-020, ng-021). - **Status:** confirmed. The plan predicted the kernel's answer through K24; it is the policy instead. -**gobridge:** refused by name in the default build. 26W copies each narrowing, pinned by `TestGobridgeLinkWrite`'s -and `TestGobridgeMstWrite`'s boundary rows. +**gobridge:** with `gobridge_write`, each narrowing is copied (26W), pinned by `TestGobridgeLinkWrite`'s and +`TestGobridgeMstWrite`'s boundary rows and by the corpus replay; the default build refuses `link set` and `mst set` +by name. ## B81, B82. The containers @@ -212,8 +240,8 @@ linux v7.4-rc4 (`b6a9fa34ce41`), each against its rows. locked, …) first, then the cost, priority and state, returning at the first range error. `link set dev d1 hairpin on cost 70000` is refused with ERANGE, yet the `-d link show` after it in the batch has `hairpin on` (ng-049). Nothing tells the caller which half landed. B81's reverse order (ng-004) is the same shape one level up, - in `rtnl_bridge_setlink`'s master-then-self sequence. Not a standalone defect report yet: a candidate for - `kernel-.md` in 26B if the HEAD check shows it unchanged. + in `rtnl_bridge_setlink`'s master-then-self sequence. Unchanged at HEAD; written up on its own in + [kernel-bridge-setport-partial-apply.md](kernel-bridge-setport-partial-apply.md). - **K26, new (documented behavior):** a VLAN moved into an MSTI that no other VLAN of the port is in starts `disabled` on every port (`br_mst_vlan_sync_state`, br_mst.c:136-154, says so in a comment). The `brmst` fixture's d1 is `disabled` in MSTI 5 before any `mst set` (ec-090's readback), so mapping a VLAN to a fresh MSTI stops its @@ -226,7 +254,8 @@ linux v7.4-rc4 (`b6a9fa34ce41`), each against its rows. `IFLA_BRPORT_LEARNING_SYNC` 1 to the bridge, which acks with no extack and stores nothing, and `bridge -d link show` cannot show it either way (ec-011, ec-012: `TestWsBrLinkWrite` finds the attribute absent from the readback). The deprecated nested parse (`nla_parse_nested_deprecated`) is what lets an attribute the setter never looks at through - without complaint. A candidate `kernel-.md` for 26B, with K25. + without complaint. Unchanged at HEAD; written up on its own in + [kernel-bridge-learning-sync-ignored.md](kernel-bridge-learning-sync-ignored.md). - **K28, new (26P): `state blocking` does not stick on a bridge without STP.** `br_set_port_state` sets blocking, then calls `br_port_state_selection` (br_stp.c), which treats a designated port as one to forward: `br_make_forwarding` moves a blocking port to forwarding at once when `stp_enabled` is `BR_NO_STP`. The write is diff --git a/docs/netlink/upstream/kernel-bridge-learning-sync-ignored.md b/docs/netlink/upstream/kernel-bridge-learning-sync-ignored.md new file mode 100644 index 000000000..e91a42fba --- /dev/null +++ b/docs/netlink/upstream/kernel-bridge-learning-sync-ignored.md @@ -0,0 +1,64 @@ +# Kernel: a software bridge acks `IFLA_BRPORT_LEARNING_SYNC` and ignores it (K27) + +**Status:** recorded only. Not submitted to netdev. + +**Found:** 2026-12-05, in the gobridge increment 26 encoder oracle (26P, `docs/netlink/gobridge-status.md` V117). +Kernel notes K18–K28 for bridge writes are in [iproute2-bridge-write.md](iproute2-bridge-write.md); this note is +K27 there. + +**Code checked:** linux v7.4-rc4 (`b6a9fa34ce41`), and torvalds `master` at `28a23309c8e4` (2026-12-05), where +`net/bridge/` has only `75dc1bad7897` (netfilter) and `da4a53461d46` (br_mdb.c) since rc4, and +`net/core/rtnetlink.c` and `include/uapi/linux/if_link.h` have none. **Seen live:** workbench kernel 7.3.1, +`bridge` 7.2.0. + +## Summary + +`bridge link set dev PORT learning_sync on|off` sends `IFLA_BRPORT_LEARNING_SYNC` inside `IFLA_PROTINFO` with no +flags, so `rtnl_bridge_setlink` hands it to the port's master, the software bridge. The bridge acks it with no +error and no extack, and changes nothing: no code on that path reads the attribute, and the bridge's dump never +reports it. The uapi documents the attribute as controlling "whether a given port will sync MAC addresses learned +on device port to bridge FDB", and iproute2's usage lists `learning_sync {on | off}` beside the flags that work, so +a caller has no way to tell the request was dropped, and no way to read the setting back. + +## Code (v7.4-rc4) + +- **The setter has no arm for it.** `br_setport` (net/bridge/br_netlink.c:951) maps each port flag with + `br_set_port_flag(&set, &clear, tb, IFLA_BRPORT_*, BR_*)`: MODE, GUARD, FAST_LEAVE, PROTECT, LEARNING, + UNICAST_FLOOD, MCAST_FLOOD, MCAST_TO_UCAST, BCAST_FLOOD, PROXYARP, PROXYARP_WIFI, VLAN_TUNNEL, NEIGH_SUPPRESS, + ISOLATED, LOCKED, MAB, NEIGH_VLAN_SUPPRESS and NEIGH_FORWARD_GRAT. `IFLA_BRPORT_LEARNING_SYNC` is not among them, + and no other line of br_netlink.c mentions it. +- **The policy does not name it,** and the parse is the lenient one: `br_setlink` parses PROTINFO with + `nla_parse_nested_deprecated(tb, IFLA_BRPORT_MAX, protinfo, br_port_policy, NULL)` (br_netlink.c:1136). An + attribute the policy leaves out is stored in `tb[]` unvalidated, and an attribute nobody reads from `tb[]` is + dropped without a word. +- **The dump does not report it.** `br_port_fill_attrs` (br_netlink.c:234) puts the other flags; `LEARNING_SYNC` + is put only by `ndo_dflt_bridge_getlink` (net/core/rtnetlink.c:5507), which serves a driver's `self` dump. +- **Where it does work.** `BR_LEARNING_SYNC` is set by the prestera and mlxsw switchdev drivers on their own ports, + and the s390 qeth driver's `ndo_bridge_setlink` reads `IFLA_BRPORT_LEARNING_SYNC` with `self`, refusing it with + "Operation not supported by HW" (EOPNOTSUPP) when the device cannot (drivers/s390/net/qeth_l2_main.c:1004-1010). + So the attribute is meaningful only on the `self` path to a device that implements it. +- **History.** `efacacdaf7cb` ("bridge: add new brport flag LEARNING_SYNC", 2014-11-28) added the uapi value and + `BR_LEARNING_SYNC`, and `2c3c031c8f89` added it to `ndo_dflt_bridge_getlink`. Neither, nor anything since, gave + the software bridge's setter or dump an arm for it. + +## Seen live + +Rows `brlinkwrite/ec-011` (`bridge link set dev d1 learning_sync on`) and `ec-012` (`… off`), on br0 with dummy +ports: + +- the captured request carries `IFLA_PROTINFO|NLA_F_NESTED` holding `IFLA_BRPORT_LEARNING_SYNC` 1 (or 0), with no + `IFLA_AF_SPEC` flags, so it goes to the master; +- the kernel acks it, rc 0, nothing on stderr; +- the readback, `bridge -d link show` (`netlink_route_link.pcap`), has no `IFLA_BRPORT_LEARNING_SYNC` for d1, and + every other attribute is as before. + +`TestWsBrLinkWrite` (pkg/xtcpnl, `-tags gobridge_write`) pins this: for any accepted write that set it, the +attribute must be absent from the kernel's dump. + +## What a fix could look like (for the user to judge, not sent) + +- Refuse it on the master path: give `br_port_policy` an entry for `IFLA_BRPORT_LEARNING_SYNC` that `br_setport` + rejects with an extack such as "learning_sync is only supported by devices, use self", or +- implement it as a port flag the software bridge stores and reports (it has nothing to sync, so storing it is of + doubtful use), or +- on the iproute2 side, document in bridge.8 that `learning_sync` needs `self`. diff --git a/docs/netlink/upstream/kernel-bridge-setport-partial-apply.md b/docs/netlink/upstream/kernel-bridge-setport-partial-apply.md new file mode 100644 index 000000000..99f947de6 --- /dev/null +++ b/docs/netlink/upstream/kernel-bridge-setport-partial-apply.md @@ -0,0 +1,58 @@ +# Kernel: a refused bridge port write is partly applied (K25) + +**Status:** recorded only. Not submitted to netdev. + +**Found:** 2026-12-05, in the gobridge increment 26 capture (26C, `docs/netlink/gobridge-status.md` V116). Kernel +notes K18–K28 for bridge writes are in [iproute2-bridge-write.md](iproute2-bridge-write.md); this note is K25 there. + +**Code checked:** linux v7.4-rc4 (`b6a9fa34ce41`), and torvalds `master` at `28a23309c8e4` (2026-12-05): since rc4, +`net/bridge/` has only `75dc1bad7897` (netfilter) and `da4a53461d46` (br_mdb.c, br_private.h's +`BR_SGRP_F_NEW`), and `net/core/rtnetlink.c` none. **Seen live:** workbench kernel 7.3.1, `bridge` 7.2.0. + +## Summary + +One RTM_SETLINK for a bridge port can carry port flags (hairpin, learning, flood, locked, …) beside the cost, the +priority, the STP state, the multicast router type and the backup port. `br_setport` commits every flag first, and +only then range-checks the rest, returning at the first error. So a request refused with ERANGE or EINVAL has +already changed the port's flags. The caller gets an error for the whole request and has no way to know that half +of it landed. The same shape sits one level up: `rtnl_bridge_setlink` runs the master's setlink, then the device's, +and a failure in the second leaves the first applied. + +## Code (v7.4-rc4) + +- **Flags first, committed.** `br_setport` (net/bridge/br_netlink.c:951) collects every flag attribute into + set/clear masks, checks MAB's precondition, offers the change to switchdev (`br_switchdev_set_port_flag`, 1009), + then commits it with `try_cmpxchg(&p->flags, …)` (1015) and runs `br_port_flags_change` (1020). +- **Then the checked values, each returning on error.** The cost (`br_stp_set_path_cost`, 1024: ERANGE outside + 1–65535), the priority (`br_stp_set_port_priority`, 1032: ERANGE above 63), the state (`br_set_port_state`, 1040: + EINVAL above 4, EBUSY under kernel STP, ENETDOWN on a port that is not up), the multicast router type + (`br_multicast_set_port_router`, 1053: EINVAL above 3) and the backup port (`nbp_backup_change`, 1096). A failure + in one of these leaves the flags, and any earlier value in that list, as already set; the values after it (say + the backup port, after a cost that failed) are not applied at all. +- **No rollback,** and no extack saying which attribute failed: the range checks return a bare errno. +- **One level up.** `rtnl_bridge_setlink` (net/core/rtnetlink.c:5695-5773) calls the master's + `ndo_bridge_setlink` (5744) and clears `BRIDGE_FLAGS_MASTER` (5749) before calling the device's own (5756) for + `BRIDGE_FLAGS_SELF`. When both flags are set and the device's call fails, the master's changes stay. + +## Seen live + +Row `brlinkwrite/ng-049`, `bridge -d -force -batch b.txt` with + +``` +link set dev d1 hairpin on cost 70000 +link show dev d1 +``` + +- The first line sends `IFLA_BRPORT_MODE` 1 and `IFLA_BRPORT_COST` 70000. The kernel answers ERANGE and bridge prints + `RTNETLINK answers: Numerical result out of range` and `Command failed b.txt:1`. +- The second line's dump shows d1 with `hairpin on`: the refused request's flag was applied. + +Row `brlinkwrite/ng-004` (`bridge link set dev d1 hwmode vepa master`) is the upper-level shape: FLAGS 3 makes +`rtnl_bridge_setlink` run the bridge's setlink, then the dummy's missing one, which fails with EOPNOTSUPP. + +## What a fix could look like (for the user to judge, not sent) + +- Validate every value before committing anything: check cost, priority, state, router type and backup port first, + then commit the flags and values together. The range checks are pure, so they can move ahead of the commit. +- Or set an extack naming the failing attribute (`NL_SET_ERR_MSG_ATTR`), so the caller at least learns which one + it was, and document that a failed setlink may be partly applied. From 6360a14eb9114cc89f7a4e0dff1b17803d48f252 Mon Sep 17 00:00:00 2001 From: randomizedcoder Date: Sat, 5 Dec 2026 00:45:33 -0800 Subject: [PATCH 6/8] fix(gobridge): 26W lint - word constants, linkWrite split, prealloc lint-baseline at 2decedb1e gained tier1 gocyclo (linkWrite 32 > 30) and tier2 goconst/prealloc findings, all from 26W: - the shared words (locked, master, self, state, learning, mcast_max_groups, mcast_router, neigh_forward_grat, neigh_suppress) are constants beside wordDev, used across the package's printers and parsers; - linkWrite's per-word switch moves to linkWord over a linkArgs struct; - the fuzz target preallocates its replies. Tests pass in both builds; the 8 mutants are still killed. Co-Authored-By: Claude Opus 5.5 --- internal/gobridge/fdb.go | 16 +- internal/gobridge/gobridge.go | 11 ++ internal/gobridge/link.go | 28 ++-- internal/gobridge/link_write.go | 227 ++++++++++++++------------- internal/gobridge/link_write_test.go | 3 +- internal/gobridge/mdb.go | 2 +- internal/gobridge/mst_write.go | 2 +- internal/gobridge/vlan.go | 6 +- 8 files changed, 158 insertions(+), 137 deletions(-) diff --git a/internal/gobridge/fdb.go b/internal/gobridge/fdb.go index b1c95ee8a..33ed4609b 100644 --- a/internal/gobridge/fdb.go +++ b/internal/gobridge/fdb.go @@ -116,7 +116,7 @@ func (r *runner) fdbShow(args []string) error { return r.duparg("vlan", args[i]) } r.fdbVlan = cint.Bits(atoi(args[i])) - case w == "state": + case w == wordState: if !next() { return r.incomplete() } @@ -351,7 +351,7 @@ func (r *runner) printFdb(m Msg) (int, error) { } // A hard newline: -o is not honored (F11). st := r.stateN2A(state) - o.str(printAny, colorNone, "state", st+"\n", st) + o.str(printAny, colorNone, wordState, st+"\n", st) o.closeObject() return 0, nil } @@ -391,7 +391,7 @@ func (r *runner) fdbMasterName(tb xtcpnl.AttrTable) error { if err != nil { return err } - r.o.str(printAny, colorNone, "master", "master "+name+" ", name) + r.o.str(printAny, colorNone, wordMaster, "master "+name+" ", name) return nil } @@ -520,13 +520,13 @@ func (r *runner) fdbFlags(flags uint8, ext uint32) { set bool name string }{ - {flags&unix.NTF_SELF != 0, "self"}, + {flags&unix.NTF_SELF != 0, wordSelf}, {flags&unix.NTF_ROUTER != 0, "router"}, {flags&unix.NTF_EXT_LEARNED != 0, "extern_learn"}, {flags&unix.NTF_OFFLOADED != 0, "offload"}, - {flags&unix.NTF_MASTER != 0, "master"}, + {flags&unix.NTF_MASTER != 0, wordMaster}, {flags&xtcpnl.NtfSticky != 0, "sticky"}, - {ext&xtcpnl.NtfExtLocked != 0, "locked"}, + {ext&xtcpnl.NtfExtLocked != 0, wordLocked}, } { if f.set { o.str(printAny, colorNone, "", f.name+" ", f.name) @@ -621,9 +621,9 @@ func (r *runner) fdbGetParse(args []string) (fdbGetArgs, error) { return a, r.invarg("invalid VNI\n", args[i]) } a.vni = v - case w == "self": + case w == wordSelf: a.g.Flags |= unix.NTF_SELF - case matches(w, "master"): + case matches(w, wordMaster): a.g.Flags |= unix.NTF_MASTER case matches(w, "vlan"): // The duplicate test comes before NEXT_ARG, so it names "vlan". diff --git a/internal/gobridge/gobridge.go b/internal/gobridge/gobridge.go index ec1e9be5d..295b6bec7 100644 --- a/internal/gobridge/gobridge.go +++ b/internal/gobridge/gobridge.go @@ -167,6 +167,17 @@ const ( wordVni = "vni" wordSrcVni = "src_vni" wordPermanent = "permanent" + + // Port flags and words link set parses and the printers print. + wordLocked = "locked" + wordMaster = "master" + wordSelf = "self" + wordState = "state" + wordLearning = "learning" + wordMcastMaxGroups = "mcast_max_groups" + wordMcastRouter = "mcast_router" + wordNeighForwardGrat = "neigh_forward_grat" + wordNeighSuppress = "neigh_suppress" ) // matches is lib/utils.c matches(prefix, s) == 0: prefix is a non-empty diff --git a/internal/gobridge/link.go b/internal/gobridge/link.go index a69cb909a..c903b82ee 100644 --- a/internal/gobridge/link.go +++ b/internal/gobridge/link.go @@ -30,8 +30,8 @@ func (r *runner) doLink(args []string) error { return r.linkShow(nil) } -// linkShow is brlink_show. Its loop tests "master" after "dev" with no -// else (B1): a dev value of "master" is read again as the keyword. +// linkShow is brlink_show. Its loop tests wordMaster after "dev" with no +// else (B1): a dev value of wordMaster is read again as the keyword. func (r *runner) linkShow(args []string) error { var dev, master string for i := 0; i < len(args); i++ { @@ -45,13 +45,13 @@ func (r *runner) linkShow(args []string) error { } dev = args[i] } - if args[i] == "master" { + if args[i] == wordMaster { if i+1 >= len(args) { return r.incomplete() } i++ if master != "" { - return r.duparg("master", args[i]) + return r.duparg(wordMaster, args[i]) } master = args[i] } @@ -117,15 +117,15 @@ func (r *runner) linkUsage() error { } // stpStates is link.c stp_states[]. -var stpStates = [...]string{"disabled", "listening", "learning", "forwarding", "blocking"} +var stpStates = [...]string{"disabled", "listening", wordLearning, "forwarding", "blocking"} // printSTPState is print_stp_state. func (r *runner) printSTPState(state uint8) { if int(state) < len(stpStates) { - r.o.str(printAny, colorNone, "state", "state "+stpStates[state]+" ", stpStates[state]) + r.o.str(printAny, colorNone, wordState, "state "+stpStates[state]+" ", stpStates[state]) return } - r.o.uint(printAny, "state", "state ("+strconv.Itoa(int(state))+") ", uint32(state)) + r.o.uint(printAny, wordState, "state ("+strconv.Itoa(int(state))+") ", uint32(state)) } // printLinkinfo is print_linkinfo. It returns the callback's int (-1 ends @@ -178,7 +178,7 @@ func (r *runner) printLinkinfo(m Msg) (int, error) { if err != nil { return -1, err } - o.str(printAny, colorNone, "master", "master "+n+" ", n) + o.str(printAny, colorNone, wordMaster, "master "+n+" ", n) } if l.Attrs.Has(xtcpnl.IflaProtinfoCst) { r.printProtinfo(l) @@ -299,16 +299,16 @@ var brportDetail = []struct { {unix.IFLA_BRPORT_GUARD, "guard", false}, {unix.IFLA_BRPORT_PROTECT, "root_block", false}, {unix.IFLA_BRPORT_FAST_LEAVE, "fastleave", false}, - {unix.IFLA_BRPORT_LEARNING, "learning", false}, + {unix.IFLA_BRPORT_LEARNING, wordLearning, false}, {unix.IFLA_BRPORT_LEARNING_SYNC, "learning_sync", false}, {unix.IFLA_BRPORT_UNICAST_FLOOD, "flood", false}, {unix.IFLA_BRPORT_MCAST_FLOOD, "mcast_flood", false}, {unix.IFLA_BRPORT_BCAST_FLOOD, "bcast_flood", false}, - {unix.IFLA_BRPORT_MULTICAST_ROUTER, "mcast_router", true}, + {unix.IFLA_BRPORT_MULTICAST_ROUTER, wordMcastRouter, true}, {unix.IFLA_BRPORT_MCAST_TO_UCAST, "mcast_to_unicast", false}, - {unix.IFLA_BRPORT_NEIGH_SUPPRESS, "neigh_suppress", false}, + {unix.IFLA_BRPORT_NEIGH_SUPPRESS, wordNeighSuppress, false}, {unix.IFLA_BRPORT_NEIGH_VLAN_SUPPRESS, "neigh_vlan_suppress", false}, - {xtcpnl.IflaBrportNeighForwardGrat, "neigh_forward_grat", false}, + {xtcpnl.IflaBrportNeighForwardGrat, wordNeighForwardGrat, false}, {unix.IFLA_BRPORT_VLAN_TUNNEL, "vlan_tunnel", false}, } @@ -319,10 +319,10 @@ var brportTail = []struct { u32 bool }{ {unix.IFLA_BRPORT_ISOLATED, "isolated", false}, - {unix.IFLA_BRPORT_LOCKED, "locked", false}, + {unix.IFLA_BRPORT_LOCKED, wordLocked, false}, {unix.IFLA_BRPORT_MAB, "mab", false}, {unix.IFLA_BRPORT_MCAST_N_GROUPS, "mcast_n_groups", true}, - {unix.IFLA_BRPORT_MCAST_MAX_GROUPS, "mcast_max_groups", true}, + {unix.IFLA_BRPORT_MCAST_MAX_GROUPS, wordMcastMaxGroups, true}, } // printProtinfo is print_protinfo: the nest's state, priority and cost, diff --git a/internal/gobridge/link_write.go b/internal/gobridge/link_write.go index ab51e4a43..dbb6f8519 100644 --- a/internal/gobridge/link_write.go +++ b/internal/gobridge/link_write.go @@ -34,45 +34,54 @@ const ( // which main returns as 234. const rcEINVAL = retCode(-int(unix.EINVAL)) +// linkArgs is brlink_modify's locals: the PROTINFO's on/off words set in +// place, and the values kept as the C keeps them until the send decides. +type linkArgs struct { + dev string + haveDev bool + p xtcpnl.BrPortProtinfo + mcastRouter int8 // __s8, -1 unset + maxGroups int32 + cost uint32 + priority int16 + state int8 + mode xtcpnl.BrU16 // __s16 mode = -1: Set is mode >= 0 + flags uint16 + backupPort xtcpnl.BrU32 // int backup_port_idx = -1: Set is != -1 + backupNhid xtcpnl.BrU32 +} + +// linkValueWords are brlink_modify's keywords that take a value (NEXT_ARG), +// besides the on/off words. +var linkValueWords = map[string]bool{ + wordDev: true, wordMcastRouter: true, wordMcastMaxGroups: true, "cost": true, "priority": true, + wordState: true, "hwmode": true, "backup_port": true, "backup_nhid": true, +} + // linkWrite is brlink_modify; args follow `set` (or `change`). func (r *runner) linkWrite(args []string) error { - var ( - dev string - haveDev bool - p xtcpnl.BrPortProtinfo - mcastRouter int8 = -1 - maxGroups int32 = -1 - cost uint32 - priority int16 = -1 - state int8 = -1 - mode xtcpnl.BrU16 // __s16 mode = -1: Set is mode >= 0 - flags uint16 - backupPort xtcpnl.BrU32 // int backup_port_idx = -1: Set is != -1 - backupNhid xtcpnl.BrU32 - ) + a := linkArgs{mcastRouter: -1, maxGroups: -1, priority: -1, state: -1} + p := &a.p onOff := map[string]*xtcpnl.BrU8{ "guard": &p.Guard, "hairpin": &p.Mode, "fastleave": &p.FastLeave, "root_block": &p.Protect, - "learning": &p.Learning, "learning_sync": &p.LearningSync, "flood": &p.UnicastFlood, + wordLearning: &p.Learning, "learning_sync": &p.LearningSync, "flood": &p.UnicastFlood, "mcast_flood": &p.McastFlood, "bcast_flood": &p.BcastFlood, "mcast_to_unicast": &p.McastToUcast, - "neigh_suppress": &p.NeighSuppress, "neigh_vlan_suppress": &p.NeighVlanSupp, - "neigh_forward_grat": &p.NeighFwdGrat, "vlan_tunnel": &p.VlanTunnel, "isolated": &p.Isolated, - "locked": &p.Locked, "mab": &p.Mab, + wordNeighSuppress: &p.NeighSuppress, "neigh_vlan_suppress": &p.NeighVlanSupp, + wordNeighForwardGrat: &p.NeighFwdGrat, "vlan_tunnel": &p.VlanTunnel, "isolated": &p.Isolated, + wordLocked: &p.Locked, "mab": &p.Mab, } for i := 0; i < len(args); i++ { w := args[i] - // NEXT_ARG: the word's value, or incomplete_command's exit. - next := func() (string, error) { - i++ + dst, isOnOff := onOff[w] + var v string + if isOnOff || linkValueWords[w] { + i++ // NEXT_ARG if i >= len(args) { - return "", r.incomplete() + return r.incomplete() } - return args[i], nil + v = args[i] } - if dst, ok := onOff[w]; ok { - v, err := next() - if err != nil { - return err - } + if isOnOff { on, err := r.parseOnOff(w, v) if err != nil { return err @@ -80,104 +89,104 @@ func (r *runner) linkWrite(args []string) error { *dst = xtcpnl.BrU8{Set: true, V: on} continue } - var v string - switch w { - case wordDev, "mcast_router", "mcast_max_groups", "cost", "priority", "state", "hwmode", - "backup_port", "backup_nhid": - var err error - if v, err = next(); err != nil { - return err - } - } - switch w { - case wordDev: - dev, haveDev = v, true - case "mcast_router": - mcastRouter = cint.IntToSChar(atoi(v)) // B77 - case "mcast_max_groups": - g, ok := getS32(v) - if !ok { - return r.invarg("invalid mcast_max_groups", v) - } - maxGroups = g - case "cost": - cost = cint.Bits(atoi(v)) // B78 - case "priority": - priority = cint.IntToShort(atoi(v)) // B79 - case "state": - n, end, _ := strtol(v, 10) - state = cint.LongToSChar(n) // B80 - if v == "" || end != len(v) { - s := parseStpState(v) - if s < 0 { - r.errf("Error: invalid STP port state\n") - return retCode(-1) - } - state = s - } - case "hwmode": - flags = bridgeFlagsSelf // assigned, not ORed: B81 - switch v { - case "vepa": - mode = xtcpnl.BrU16{Set: true, V: bridgeModeVepa} - case "veb": - mode = xtcpnl.BrU16{Set: true, V: bridgeModeVeb} - default: - r.errf("Mode argument must be \"vepa\" or \"veb\".\n") - return retCode(-1) - } - case "self": - flags |= bridgeFlagsSelf - case "master": - flags |= bridgeFlagsMaster - case "backup_port": - idx, err := r.nameToIndex(v) - if err != nil { - return err - } - if idx == 0 { - r.errf("Error: device %s does not exist\n", v) - return retCode(-1) - } - backupPort = xtcpnl.BrU32{Set: true, V: idx} - case "nobackup_port": - backupPort = xtcpnl.BrU32{Set: true} - case "backup_nhid": - n, ok := getU32(v) - if !ok { - return r.invarg("invalid backup_nhid", v) - } - backupNhid = xtcpnl.BrU32{Set: true, V: n} - default: - return r.linkUsage() // B85 + if err := r.linkWord(&a, w, v); err != nil { + return err } } - if !haveDev { + if !a.haveDev { r.errf("Device is a required argument.\n") // B90 return retCode(-1) } - idx, err := r.nameToIndex(dev) + idx, err := r.nameToIndex(a.dev) if err != nil { return err } if idx == 0 { - r.errf("Cannot find bridge device \"%s\"\n", dev) // B89 + r.errf("Cannot find bridge device \"%s\"\n", a.dev) // B89 return retCode(-1) } // The sends' tests, link.c:546-614: the sentinels, and cost's > 0. - p.McastRouter = xtcpnl.BrU8{Set: mcastRouter >= 0, V: cint.SCharBits(mcastRouter)} - p.McastMaxGroups = xtcpnl.BrU32{Set: maxGroups >= 0, V: cint.Bits(maxGroups)} - p.Cost = xtcpnl.BrU32{Set: cost > 0, V: cost} - p.Priority = xtcpnl.BrU16{Set: priority >= 0, V: cint.ShortBits(priority)} - p.State = xtcpnl.BrU8{Set: state >= 0, V: cint.SCharBits(state)} - p.BackupPort = backupPort - p.BackupNhid = backupNhid + p.McastRouter = xtcpnl.BrU8{Set: a.mcastRouter >= 0, V: cint.SCharBits(a.mcastRouter)} + p.McastMaxGroups = xtcpnl.BrU32{Set: a.maxGroups >= 0, V: cint.Bits(a.maxGroups)} + p.Cost = xtcpnl.BrU32{Set: a.cost > 0, V: a.cost} + p.Priority = xtcpnl.BrU16{Set: a.priority >= 0, V: cint.ShortBits(a.priority)} + p.State = xtcpnl.BrU8{Set: a.state >= 0, V: cint.SCharBits(a.state)} + p.BackupPort = a.backupPort + p.BackupNhid = a.backupNhid // ifi_index is an int assigned ll_name_to_index's unsigned. - w := xtcpnl.BrLinkWrite{Ifindex: cint.Int(idx), Protinfo: &p, AfSpec: xtcpnl.BrAfSpecFlags{Flags: flags, Mode: mode}} + w := xtcpnl.BrLinkWrite{Ifindex: cint.Int(idx), Protinfo: p, AfSpec: xtcpnl.BrAfSpecFlags{Flags: a.flags, Mode: a.mode}} return r.deliverWrite(xtcpnl.BuildBrLinkWriteRequest(&w, r.nextSeq())) } +// linkWord is one non-on/off arm of brlink_modify's loop; v is its value +// when it takes one. +func (r *runner) linkWord(a *linkArgs, w, v string) error { + switch w { + case wordDev: + a.dev, a.haveDev = v, true + case wordMcastRouter: + a.mcastRouter = cint.IntToSChar(atoi(v)) // B77 + case wordMcastMaxGroups: + g, ok := getS32(v) + if !ok { + return r.invarg("invalid mcast_max_groups", v) + } + a.maxGroups = g + case "cost": + a.cost = cint.Bits(atoi(v)) // B78 + case "priority": + a.priority = cint.IntToShort(atoi(v)) // B79 + case wordState: + n, end, _ := strtol(v, 10) + a.state = cint.LongToSChar(n) // B80 + if v == "" || end != len(v) { + s := parseStpState(v) + if s < 0 { + r.errf("Error: invalid STP port state\n") + return retCode(-1) + } + a.state = s + } + case "hwmode": + a.flags = bridgeFlagsSelf // assigned, not ORed: B81 + switch v { + case "vepa": + a.mode = xtcpnl.BrU16{Set: true, V: bridgeModeVepa} + case "veb": + a.mode = xtcpnl.BrU16{Set: true, V: bridgeModeVeb} + default: + r.errf("Mode argument must be \"vepa\" or \"veb\".\n") + return retCode(-1) + } + case wordSelf: + a.flags |= bridgeFlagsSelf + case wordMaster: + a.flags |= bridgeFlagsMaster + case "backup_port": + idx, err := r.nameToIndex(v) + if err != nil { + return err + } + if idx == 0 { + r.errf("Error: device %s does not exist\n", v) + return retCode(-1) + } + a.backupPort = xtcpnl.BrU32{Set: true, V: idx} + case "nobackup_port": + a.backupPort = xtcpnl.BrU32{Set: true} + case "backup_nhid": + n, ok := getU32(v) + if !ok { + return r.invarg("invalid backup_nhid", v) + } + a.backupNhid = xtcpnl.BrU32{Set: true, V: n} + default: + return r.linkUsage() // B85 + } + return nil +} + // parseOnOff is lib/utils.c parse_on_off: "off" 0, "on" 1 (strcmp), or // the error and -EINVAL, which brlink_modify returns (B84). func (r *runner) parseOnOff(msg, v string) (uint8, error) { diff --git a/internal/gobridge/link_write_test.go b/internal/gobridge/link_write_test.go index d58ea0807..2f50ff84c 100644 --- a/internal/gobridge/link_write_test.go +++ b/internal/gobridge/link_write_test.go @@ -357,7 +357,8 @@ func FuzzGobridgeLinkSet(f *testing.F) { args = append(args, string([]byte{p})) } } - replies := []Reply{cache()} + replies := make([]Reply, 0, 17) + replies = append(replies, cache()) for range 16 { replies = append(replies, ack()) } diff --git a/internal/gobridge/mdb.go b/internal/gobridge/mdb.go index 0b98778bb..3d52d1ea8 100644 --- a/internal/gobridge/mdb.go +++ b/internal/gobridge/mdb.go @@ -255,7 +255,7 @@ func (r *runner) printMdbEntry(ifindex uint32, info []byte) error { if e.State&mdbPermanent != 0 { state = wordPermanent } - o.str(printAny, colorNone, "state", " "+state, state) + o.str(printAny, colorNone, wordState, " "+state, state) if r.details { if err := r.mdbDetails(tb, af); err != nil { return err diff --git a/internal/gobridge/mst_write.go b/internal/gobridge/mst_write.go index 212227671..a2e0c00df 100644 --- a/internal/gobridge/mst_write.go +++ b/internal/gobridge/mst_write.go @@ -24,7 +24,7 @@ func (r *runner) mstWrite(args []string) error { dst = &dev case "msti": dst = &msti - case "state": + case wordState: dst = &state default: if matches(args[i], helpWord) { diff --git a/internal/gobridge/vlan.go b/internal/gobridge/vlan.go index 2eb6e40fe..96c46c43d 100644 --- a/internal/gobridge/vlan.go +++ b/internal/gobridge/vlan.go @@ -551,12 +551,12 @@ func (r *runner) printVlanOpts(val []byte, index uint32) error { r.printSTPState(state) if vtb.Has(entryMcastRouter) { v, _ := vtb.U8(entryMcastRouter) - o.uint(printAny, "mcast_router", "mcast_router "+strconv.Itoa(int(v))+" ", uint32(v)) + o.uint(printAny, wordMcastRouter, "mcast_router "+strconv.Itoa(int(v))+" ", uint32(v)) } for _, g := range []struct { id uint16 key string - }{{entryMcastNGroups, "mcast_n_groups"}, {entryMcastMaxGroup, "mcast_max_groups"}} { + }{{entryMcastNGroups, "mcast_n_groups"}, {entryMcastMaxGroup, wordMcastMaxGroups}} { if vtb.Has(g.id) { v, _ := vtb.U32(g.id) o.uint(printAny, g.key, g.key+" "+strconv.FormatUint(uint64(v), 10)+" ", v) @@ -565,7 +565,7 @@ func (r *runner) printVlanOpts(val []byte, index uint32) error { for _, g := range []struct { id uint16 key string - }{{entryNeighSuppress, "neigh_suppress"}, {entryNeighFwdGrat, "neigh_forward_grat"}} { + }{{entryNeighSuppress, wordNeighSuppress}, {entryNeighFwdGrat, wordNeighForwardGrat}} { if vtb.Has(g.id) { v, _ := vtb.U8(g.id) o.onOff(printAny, g.key, g.key+" %s ", v != 0) From 3e72b5cc1f2a17c18f6a7b7c5a11acfe723efc72 Mon Sep 17 00:00:00 2001 From: randomizedcoder Date: Sat, 5 Dec 2026 00:54:00 -0800 Subject: [PATCH 7/8] docs(gobridge): 26L - live diff of every brlinkwrite row (V119) gobridge (gobridge_write, dry run to GOBRIDGE_WRITE_OUT) beside bridge 7.2.0 (applied, nlmon captured) on the workbench, kernel 7.3.1: requests identical 141/141, bridge's own refusals 22/22, readbacks 92/92, in two batches agreeing on all 1,148 files; bridge matches its corpus 141/141. Nothing new found. Increment 26 complete. Co-Authored-By: Claude Opus 5.5 --- docs/netlink/gobridge-status.md | 9 +++++++-- docs/netlink/upstream/iproute2-bridge-write.md | 6 ++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/docs/netlink/gobridge-status.md b/docs/netlink/gobridge-status.md index 7850c171d..2082adddd 100644 --- a/docs/netlink/gobridge-status.md +++ b/docs/netlink/gobridge-status.md @@ -111,6 +111,10 @@ 26B is done: the HEAD check finds every B lead present and every K note's kernel code unchanged; K25 and K27 are written up as kernel defects of their own; the doc's checklist passes (DOC036). + 26L is done: on the workbench, gobridge (dry run) beside `bridge` 7.2.0 (applied, captured) + on every `brlinkwrite` row: requests identical on 141 of 141, bridge's own refusals + identical on 22 of 22, readbacks identical on 92 of 92, in two batches that agree file for + file; `bridge` matches its corpus on 141 of 141 (V119). ## Contents @@ -137,7 +141,7 @@ | 6X — bridge, the rest | batch, force, netns, family, router ports: capture → parser → clone → bug hunt → live | done | V101, V102, V103, DOC033, V104 | | 7 — fdb and mdb | readbacks → capture → parser → clone → bug hunt → live | done | V105, V106, V107, V108, DOC034, V109 | | 25 — monitor | groundwork → capture → parser → clone → bug hunt → live | done | V110, V111, V112, V113, DOC035, V114 | -| 26 — writes: link set, mst set | groundwork → capture → encoders → clone → bug hunt → live | in progress | V115, V116, V117, V118, DOC036 | +| 26 — writes: link set, mst set | groundwork → capture → encoders → clone → bug hunt → live | done | V115, V116, V117, V118, DOC036, V119 | ## Task checklist @@ -171,7 +175,7 @@ | [x] | 26P | `BrPortProtinfo`, `BrAfSpecFlags`, `BrMstEntry`; `BuildBrLinkWriteRequest`; `TestWsBrLinkWrite` | done | V117 | | [x] | 26W | gobridge `link_write.go`, `mst_write.go`; corpus, unit, fuzz, mutants | done | V118 | | [x] | 26B | B77+ and K18+ completed, HEAD checked | done | DOC036 | -| [ ] | 26L | live diff of every `brlinkwrite` row | not started | V119 | +| [x] | 26L | live diff of every `brlinkwrite` row | done | V119 | ## Verification ledger @@ -206,6 +210,7 @@ | V117 | 26P | **Code:** `pkg/xtcpnl/xtcpnl_bridge_write.go`, tagged `gobridge_write` (decision below): `BrU8`/`BrU16`/`BrU32` (an attribute sent only when given, brlink_modify's sentinels already decided); `BrPortProtinfo` and its `Append`, the 24 `IFLA_BRPORT_*` attributes in link.c:546-614's order; `BrAfSpecFlags` (`IFLA_AF_SPEC` without NLA_F_NESTED, FLAGS when non-zero, MODE when given); `BrMstEntry` (`AF_SPEC` > `BRIDGE_MST` > `MST_ENTRY`\|NESTED, MSTI u16, STATE u8); `BrLinkWrite` and `BuildBrLinkWriteRequest` (RTM_SETLINK, REQUEST\|ACK, ifinfomsg PF_BRIDGE, through `BuildWriteRequest`; a 512-byte buffer as the C's, which the widest request, 216 bytes, never reaches; `ErrBrLinkWriteEmpty` for a write with neither part). Types cite if_link.h and if_bridge.h. **no-write-encoders:** each daemon's `,gobridge_write` listing must name a further write file again (now `xtcpnl_bridge_write.go`, which the `treatment` xtcp2 does not already compile), beside 26X's `cmd/gobridge` control. **Tests** (tagged): `TestWsBrLinkWrite` over all 141 `ws/brlinkwrite` rows: O3, every captured SETLINK (118: 92 accepted, 24 kernel refusals, one in each of two `-force` batches) decodes through `ParseBridgeLink` and is rebuilt byte for byte, seq and pid aside; O2, no bridge refusal sends a SETLINK and each kernel refusal sends one; O4, each of 91 accepted writes is in the kernel's readback dump (`netlink_route_link.pcap` or `_mst.pcap`) with the value sent. One row is exempt by name (ec-066, K23: br0 drops PROTINFO); three kernel behaviors are pinned rather than exempted: `IFLA_BRPORT_LEARNING_SYNC` must be absent from the dump (K27), a written blocking state must read back forwarding (K28), and an unmapped MSTI must have no entry (K24, MSTI 1 and 4094). `TestBrLinkWriteEncode`: 7 table rows (description and expected: one attribute, flags and mode, an MST entry; no part, ErrBrLinkWriteEmpty; the 4-byte empty PROTINFO (B82), every field at its widest, 216 bytes; flags 0 sends no AF_SPEC), every one of the 24 fields alone round-tripping at its width, the NLA_F_NESTED conventions (PROTINFO and MST_ENTRY flagged, AF_SPEC and BRIDGE_MST not), and RTM_NEWVLAN still refused by the gate. Benchmarks: `BuildBrLinkWriteRequest` 555 ns, 3 allocs; decoding a captured SETLINK 1.3 µs, 2 allocs. `go test ./pkg/xtcpnl/ ./internal/gobridge/` passes untagged and with `-tags gobridge_write`. **Found:** K27, the software bridge never reads or reports `IFLA_BRPORT_LEARNING_SYNC` (only `ndo_dflt_bridge_getlink` and two switchdev drivers do), so `learning_sync on\|off` is acked and ignored (ec-011, ec-012); K28, `state blocking` on an STP-off bridge is undone by `br_port_state_selection` → `br_make_forwarding` (ec-055, ec-056). Both are in [upstream/iproute2-bridge-write.md](upstream/iproute2-bridge-write.md). | | V118 | 26W | **Code** (tagged `gobridge_write`): `internal/gobridge/link_write.go` is brlink_modify: the words in C's order and with its strcmp; `parseOnOff` (parse_on_off; a failure is `retCode(-EINVAL)`, rc 234, so `-force` carries on: B84); `parseStpState`; the C's narrowings kept as the C keeps them, through four new `pkg/cint` conversions (`IntToSChar`, `IntToShort`, `LongToSChar`, `LongToU16`, with `TestCNarrowings`, 7 rows) and `cint.Bits` (B77-B80, B83); hwmode assigning the flags (B81); PROTINFO always sent (B82); usage on an unknown word (B85); dev checked after the loop (B90); the three device texts, `backup_port` looked up in the loop where the C does it (B89); C's `strtol`/`get_s32`/`get_u32` (base 0, saturation, `-0` as a u32). `mst_write.go` is mst_set: unknown words ignored bar a prefix of help, the `*s` MSTI check (B86), `__u16` MSTI (B87), `int` state range-checked to 0-255, nodev. Both build through `xtcpnl.BuildBrLinkWriteRequest` and go through 26X's `deliverWrite`. `link.go` and `mst.go` call `linkWrite`/`mstWrite`; `write_off.go` refuses them by name; `mst s` stays a set (B88). Package doc and `errNotImplemented` updated. **Corpus:** `TestGobridgeCorpus` adds `brlinkwrite` (141) when `writesBuilt`: all 485 rows replay byte for byte in stdout, stderr and rc, with every request bridge sent matched and none left. It splits each command with the monitor test's `shellWords` (sh's quoting), since `msti ""` is an empty word to the shell and `strings.Fields` handed gobridge two quote characters (the only two first-run failures, ng-022 and ng-041). Untagged, `TestGobridgeWriteCorpusRefused` holds each of the 141 rows to rc 255, empty stdout and `gobridge: not implemented: bridge link set` or `mst set`. `TestGobridgeBrLinkWriteReadbacks` replays all 92 readbacks (`bridge -d link show`, `bridge mst show dev d1`) in both builds. **Unit tests** (tagged, each row with description and expected, the last SETLINK decoded through `ParseBridgeLink`): `TestGobridgeLinkWrite` 40 rows (on/off, C's attribute order, numbers at C's widths, flags, backups, `change`; usage, 234, bad state, no dev, no such dev and backup port, bad hwmode, two invargs, NEXT_ARG, a NAK and an extack NAK; the B77-B80 and B83 narrowings; B81 both orders, B82, last value wins, `link s`, br0's own index); `TestGobridgeLinkWriteBatch` 4 rows (two SETLINKs; rc 234 then a good line, rc 1; a NAK then a good line, rc 1; usage ends it); `TestGobridgeMstWrite` 20 rows (names and numbers, any order; missing words, bad state, 256, bad MSTI, nodev, help, an extack NAK; MSTI -1, 70000, 4094, state 255; B86 both ways, an ignored word, `mst s`); `TestGobridgeCNumbers` 13 rows. **Fuzz:** `FuzzGobridgeLinkSet` (link set or mst set over up to 12 words drawn from every keyword and the corpus's values, or raw bytes, every request acked): 60 s under `systemd-run --user --scope -p MemoryMax=6G` with `-timeout`, 1,030,907 executions, 138 interesting inputs, no panic, every rc in {0, 1, 234, 255}, every SETLINK decoding. **Mutants** (each under the same cap, each restored to its checksum): (1) PROTINFO omitted when empty, (2) hwmode ORs, (3) cost masked to 16 bits, (4) priority saturated instead of narrowed, (5) on/off failure exits 255, (6) mst checks `*m`, (7) AF_SPEC sent with NLA_F_NESTED, (8) `mst s` is show: 8 of 8 killed, each by the corpus and a unit table (1 and 7 also by `TestWsBrLinkWrite`/`TestBrLinkWriteEncode`). **Coverage:** `internal/gobridge` 84.3% with the tag. `go test ./internal/gobridge/ ./pkg/xtcpnl/ ./pkg/cint/` passes untagged and tagged. No new upstream lead: every difference was in the harness. | | DOC036 | 26B | **Doc:** [upstream/iproute2-bridge-write.md](upstream/iproute2-bridge-write.md), still "Not submitted to netdev", is completed. Its new "HEAD check" section covers both trees, read-only through the GitHub mirrors. **iproute2:** the mirror's `main`, `d7e038f99479` (2026-12-02, the same as 25B). `bridge/link.c`, `bridge/mst.c`, `bridge/bridge.c` and `include/uapi/linux/if_bridge.h` are byte-identical to v7.2.0. In `lib/utils.c` the change is the `resolve_address` cache and `getcmdline`; `__parse_one_of`, `parse_on_off`, `get_u32`, `get_s32`, `nodev`, `matches`, `incomplete_command` and `invarg` are byte-identical (each function extracted and hashed). `if_link.h` gains `IFLA_PACING_OFFLOAD` at the end of the `IFLA_*` enum, moving no `IFLA_BRPORT_*`. `lib/libnetlink.c`'s commits are 25B's four, none on the ack or extack path. Every B lead is present. **Linux:** torvalds `master` `28a23309c8e4` (2026-12-05). Since v7.4-rc4, `net/bridge/` has `75dc1bad7897` (`nf_conntrack_bridge.c`) and `da4a53461d46` (`br_mdb.c`, and `br_private.h`'s `BR_SGRP_F_NEW`, checked hunk by hunk). `rtnetlink.c` and the two uapi headers have none. Every K note is unchanged. **Summary:** the "At HEAD" column is filled (14 present), and the gobridge column now says copied (26W). **Kernel defects written up on their own** (the plan's rule for "an attribute silently ignored" and the like), each with code citations at v7.4-rc4, history, the rows that show it, and fix options for the user, not sent: [upstream/kernel-bridge-setport-partial-apply.md](upstream/kernel-bridge-setport-partial-apply.md) (K25: `br_setport` commits the flags at br_netlink.c:1015 before the cost, priority, state, router and backup checks at 1024-1096, with no rollback; ng-049, and ng-004 for `rtnl_bridge_setlink`'s master-then-self); [upstream/kernel-bridge-learning-sync-ignored.md](upstream/kernel-bridge-learning-sync-ignored.md) (K27: no setter arm, no policy entry, no dump of `IFLA_BRPORT_LEARNING_SYNC` in the software bridge since `efacacdaf7cb` (2014); only qeth's `self` path implements it; ec-011, ec-012). **Extension line:** B64 in [upstream/iproute2-bridge-monitor.md](upstream/iproute2-bridge-monitor.md) gains "Extended in increment 26": `do_mst` never zeroes `timestamp` (mst.c has no reference to it), source only, pointing at B88. gobridge already models it (`doMst` has no reset). **Docs:** [gobridge.md](gobridge.md) gains "Increment 26": the task table, the dry-run model and how the clone is put together. **Checklist** (`doc036chk.py`, grep over the write doc and the monitor doc), all passing. Positive: every B77-B90 has a summary row and an entry, and every K18-K28 a settled entry. Negative: each confirmed lead and K note names an ec or ng row; no row is outside the range; every row has its At HEAD answer. Boundary: B and K are contiguous. Corner: B64's extension line points back, and both kernel docs are linked. Four mutated copies of the doc (a removed summary row, a row with no pinning row, an unfilled At HEAD, an unlinked kernel doc) each fail it. **Bug-class candidates** for the user, unchanged in bug-classes.md: an always-sent empty container (B82), a C narrowing that wraps or drops silently (B77, B79, B80, B87), and a refusal after a partial apply (K25). | +| V119 | 26L | **Live diff:** the workbench VM was off; booted for this (kernel 7.3.1, `bridge` 7.2.0 at `/nix/store/x1pwsbz5…-iproute2-7.2.0`), powered off after. gobridge with `gobridge_write`, built with `go build -trimpath -tags gobridge_write ./cmd/gobridge` at `216dc015a` (the nix `gobridge` attribute is untagged by design) and added to the store the guest shares (`/nix/store/04vq43ib…-gobridge-write-216dc015a`). The script is generated from `brlinkwrite.rows.jsonl`: each row gets a fresh netns with `lo` up and `nlmon0` up, then the row's `pre` steps; gobridge runs first, live, with `GOBRIDGE_WRITE_OUT` (its ll_init_map and name lookups go to the kernel; its write goes to the file); then `bridge` runs and applies the write while `tcpdump --immediate-mode` captures `nlmon0`; then each readback runs with both tools on the state bridge left. **Compared** on the host (`cmp.py`): gobridge's requests against bridge's captured RTM_SETLINKs, seq and pid zeroed; for the 22 rows where bridge refuses before sending, stdout, stderr and rc of both; for the 114 single-command rows that send, gobridge's dry run is silent with rc 0 (a kernel refusal cannot reach it); and each readback's output and rc. **Result:** requests identical on 141 of 141 (118 SETLINKs, the batches included), refusals 22 of 22, dry runs 114 of 114, readbacks 92 of 92, in batches C and D, which agree on all 1,148 files. `bridge`'s stdout, stderr and rc match the 26C corpus on 141 of 141 in both, so K18-K28 behaved live as captured (K25's hairpin, K27's missing attribute and K28's forwarding readback included). **Earlier runs:** batch A captured nothing (tcpdump's TPACKET_V3 block held the packets past the 0.3 s SIGINT: "5 packets received by filter, 0 captured"); B, with `--immediate-mode`, was clean like C and D but ran the binary from before 26W's lint fix, so C and D were run on `216dc015a`. **Guest left as found:** no namespaces, no core files, result directories removed; `bridge` (autoloaded by the fixtures; only `nlmon` and `dummy` were loaded at boot) was unloaded, `llc` stayed until the power-off; never rebooted mid-use; powered off, as it was. The workbench CLI's store path had been garbage-collected between 26C and 26L (built with `--no-link`), so it and the tool paths are now built with GC roots. **Bugs found:** none new. | | V402 | 6C | **Fresh-boot batches — the 6C gate's last task (and 7C's conditional).** Two batches, each on its own fresh boot of the workbench VM (kernel 7.3.1, iproute2 7.2.0; `nlcap-ws down` then `up`, the guest's `is-system-running` running before the first row), each running all four `ws/bridge*` row files through `nlcap-ws batch`, the committed corpus untouched. **Boot 1:** the batch the boot's own start rejected, re-run once the boot settled — 113 (`bridge`), 63 (`bridgex`), 94 (`bridgefdb`), 74 (`bridgemdb`), 344 of 344 OK. **Boot 2:** a second down+up — 344 of 344. **`nlcapgen verdiff` against the corpus:** `bridge` 0 differences (113 rows), `bridgex` 6 (the `brrtr -s` timer rows ec-021/022/023, pw-021/022/023, V101's allow-list), `bridgefdb` 0 (94), `bridgemdb` 6 (the temp-entry timer rows ec-005/006/008, pw-005/006/008 — V108's rows and their `-j -s`/`-s -o` twins). Boot 1 against boot 2 directly: the same profile, 0/6/0/6, the same rows. **A body-level pass** (a throwaway `tmp-bodydiff`, deleted; the corpus vs each boot's pcaps, message by message, seq and pid zeroed): every differing message is one of V097's two named classes — the `br` fixture's link replies at `IFLA_BRPORT_FORWARD_DELAY_TIMER` (offsets 360/364 of the 420-488-byte messages, 33 rows), and the NLMSG_ERROR bodies' echoed request seq (offsets 24, 28-30 and 60 in the 40-, 72- and 96-byte error shapes; `0x6b03d2bc` against `0x6b129194`, minutes apart; 28 rows). 58 rows (boot 1) and 61 rows (boot 2) differ in any body at all; every other byte of every other message is identical. The stats counters and the vxlan random source port, the 6C gate's own expected exceptions, never moved. **The first fresh-boot attempt failed 34 of 113 rows:** the batch fired 24 s after qemu started, `up` returning at ssh and the guest's systemd still settling, and the first wave's rows crosstalked at their ns lifecycle ("Cannot open network namespace" immediately after `NLCAP_NS_OK wsN"; "Cannot create namespace file: File exists" after ns-add's own cleanup; ec-010's pre step 0 creating br0 and pre step 1 finding it gone; "Cannot find device nlmon0"; `NLCAP_CAP_NOBIND`, datagrams=0). The mechanism was not pinned down; the wait is measured. A batch the same boot ran two hours later was 113 of 113, and a concurrent session's batch on the same boot (a `brmonitor` corpus, 44 rows, all OK) confirms the settled guest. `xtcp2-nlcap-ws up` now waits for `is-system-running` (running or degraded) before `NLCAP_WS_UP`, warning past the timeout. **The arc's disk:** the kernel closure was GC'd twice mid-arc (nothing pinned `nix build --no-link`, the store 98-99% full; the `linux-7.3.1` build needs ~35 GB and failed twice at 31-36 GB free), and two CLI attempts were killed at their own command timeouts (600 s and 2400 s against the ~45-min kernel rebuild); the closure is now rooted at `/tmp/gobridge-vm-root`. Gates: the batch's own, and `nlcap-ws`, `nix-fmt`, `test-goip-docs`, `netlink-audit`, `lint-baseline`. | ## Decision log diff --git a/docs/netlink/upstream/iproute2-bridge-write.md b/docs/netlink/upstream/iproute2-bridge-write.md index 4ee84c052..4fb56e8cd 100644 --- a/docs/netlink/upstream/iproute2-bridge-write.md +++ b/docs/netlink/upstream/iproute2-bridge-write.md @@ -1,6 +1,6 @@ # iproute2 `bridge` writes: `link set` and `mst set` narrow their numbers, send an empty container, and disagree on errors -**Status (2026-12-05, increment 26, complete through 26B):** +**Status (2026-12-05, increment 26, complete):** - **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. @@ -9,7 +9,9 @@ accepted write against the kernel's own readback dump and found K27 and K28. 26B (DOC036) ran the [HEAD check](#head-check): every B lead is still present, and every K note's kernel code is unchanged. K25 and K27 stand on their own as kernel defects, in [kernel-bridge-setport-partial-apply.md](kernel-bridge-setport-partial-apply.md) - and [kernel-bridge-learning-sync-ignored.md](kernel-bridge-learning-sync-ignored.md). Later write increments (27 vlan, 28 vni, 29 fdb, 30 mdb) add their sections here. + and [kernel-bridge-learning-sync-ignored.md](kernel-bridge-learning-sync-ignored.md). 26L (V119) ran gobridge beside + `bridge` on every row live: requests identical on 141 of 141, and `bridge` identical to its corpus on 141 of 141, + so every lead and K note behaved live as captured; nothing new was found. Later write increments (27 vlan, 28 vni, 29 fdb, 30 mdb) add their sections here. - **Source:** - Line numbers are iproute2 **v7.2.0** (`880505966c17`, 2026-08-17): `bridge/link.c` (`brlink_modify`, 332-639; `parse_stp_state`, 82-95; `do_link`, 688-708), `bridge/mst.c` (`mst_set`, 164-242; `do_mst`, 244-263) and From fe9e932403a8dd7999869848df801c422e11e823 Mon Sep 17 00:00:00 2001 From: randomizedcoder Date: Sat, 5 Dec 2026 08:52:40 -0800 Subject: [PATCH 8/8] docs(gobridge): 26 - DOC039 for 26B, and the write notes' index rows Rebased on main 4a9a9345b, which renumbered 25B from DOC035 to DOC038 (the events plan holds DOC035-DOC037; DOC IDs are repo-unique). 26B had taken DOC036, the events plan's too: it becomes DOC039, the next free, in gobridge.md, gobridge-status.md and the note, and events-export-status's next-free line moves to DOC040. The summary table's 25 row still said DOC035; it now says DOC038. The upstream index gains the three notes increment 26 added, the gap main's 81bea3af5 closed for increment 25: iproute2-bridge-write.md (B77-B90, K18-K28), kernel-bridge-setport-partial-apply.md (K25) and kernel-bridge-learning-sync-ignored.md (K27). Co-Authored-By: Claude Opus 5.5 --- docs/netlink/events-export-status.md | 2 +- docs/netlink/gobridge-status.md | 10 +++++----- docs/netlink/gobridge.md | 4 ++-- docs/netlink/upstream/README.md | 3 +++ docs/netlink/upstream/iproute2-bridge-write.md | 4 ++-- 5 files changed, 13 insertions(+), 10 deletions(-) diff --git a/docs/netlink/events-export-status.md b/docs/netlink/events-export-status.md index be0f77f40..a1af20eb5 100644 --- a/docs/netlink/events-export-status.md +++ b/docs/netlink/events-export-status.md @@ -40,7 +40,7 @@ - States are `not started`, `in progress`, `blocked`, `done` or `deferred`. There are no percentages. - A task is `done` only when its gates have passed and the evidence is in the [ledger](#verification-ledger). -- Evidence IDs (`V###` for code and VM runs, `DOC###` for docs) are immutable and append-only. The next free ID is V405; the next free DOC is DOC039 (DOC038 is the gobridge monitor arc's 25B, renumbered from its landed DOC035 — a collision with the events plan's DOC035 — by the events export arc's index-row fix). +- Evidence IDs (`V###` for code and VM runs, `DOC###` for docs) are immutable and append-only. The next free ID is V405; the next free DOC is DOC040 (DOC039 is the gobridge write arc's 26B; DOC038 is the gobridge monitor arc's 25B, renumbered from its landed DOC035 — a collision with the events plan's DOC035 — by the events export arc's index-row fix). - Task IDs (`EXM`, `EXP`, `EXD`, `EXC`, `EXU` with `-Tmm` suffixes) are never renumbered. ## Phase states diff --git a/docs/netlink/gobridge-status.md b/docs/netlink/gobridge-status.md index 2082adddd..86ad3e891 100644 --- a/docs/netlink/gobridge-status.md +++ b/docs/netlink/gobridge-status.md @@ -110,7 +110,7 @@ the fuzz run found nothing and 8 of 8 mutants are killed (V118). 26B is done: the HEAD check finds every B lead present and every K note's kernel code unchanged; K25 and K27 are written up as kernel defects of their own; the doc's checklist - passes (DOC036). + passes (DOC039). 26L is done: on the workbench, gobridge (dry run) beside `bridge` 7.2.0 (applied, captured) on every `brlinkwrite` row: requests identical on 141 of 141, bridge's own refusals identical on 22 of 22, readbacks identical on 92 of 92, in two batches that agree file for @@ -140,8 +140,8 @@ | 6 — bridge | wsreplay → capture → parser → tests → `gobridge` clone → bug hunt | done | V096, DOC031, V097, V098, V099, DOC032, V100, V402 | | 6X — bridge, the rest | batch, force, netns, family, router ports: capture → parser → clone → bug hunt → live | done | V101, V102, V103, DOC033, V104 | | 7 — fdb and mdb | readbacks → capture → parser → clone → bug hunt → live | done | V105, V106, V107, V108, DOC034, V109 | -| 25 — monitor | groundwork → capture → parser → clone → bug hunt → live | done | V110, V111, V112, V113, DOC035, V114 | -| 26 — writes: link set, mst set | groundwork → capture → encoders → clone → bug hunt → live | done | V115, V116, V117, V118, DOC036, V119 | +| 25 — monitor | groundwork → capture → parser → clone → bug hunt → live | done | V110, V111, V112, V113, DOC038, V114 | +| 26 — writes: link set, mst set | groundwork → capture → encoders → clone → bug hunt → live | done | V115, V116, V117, V118, DOC039, V119 | ## Task checklist @@ -174,7 +174,7 @@ | [x] | 26C | `matrix_brlinkwrite.go`, accepted, boundary, refused and batch rows, two batches | done | V116 | | [x] | 26P | `BrPortProtinfo`, `BrAfSpecFlags`, `BrMstEntry`; `BuildBrLinkWriteRequest`; `TestWsBrLinkWrite` | done | V117 | | [x] | 26W | gobridge `link_write.go`, `mst_write.go`; corpus, unit, fuzz, mutants | done | V118 | -| [x] | 26B | B77+ and K18+ completed, HEAD checked | done | DOC036 | +| [x] | 26B | B77+ and K18+ completed, HEAD checked | done | DOC039 | | [x] | 26L | live diff of every `brlinkwrite` row | done | V119 | ## Verification ledger @@ -209,7 +209,7 @@ | V116 | 26C | **Rows:** `tools/nlcapgen/matrix_brlinkwrite.go` generates `nix/microvms/workbench/brlinkwrite.rows.jsonl`, family `brlinkwrite` (registered in `nlcapgen/main.go`): 141 rows, plain only (a write prints nothing), proto route, module `bridge`, each in its own namespace. **Fixtures** (fixed MACs, `addrgenmode none` before up): `brl` (br0 `vlan_filtering 1`, dummy ports d1 and d2); `brlstp` (the same with `stp_state 1`); `brldown` (d1 down); `brmst` (`mst_enabled 1` at creation, vid 10 and 20 on d1 and br0, vid 10 mapped to MSTI 5); `brmstoff` (the same VLANs, MST off). **Accepted (92):** each of the 17 on/off words on and off (`mab on` only with `locked on learning on`), cost/priority/mcast_router/mcast_max_groups in range, each STP state by name and number, `backup_port`, `nobackup_port`, `backup_nhid`, `master`, `change`, `link s`, two multi-word requests, `dev d1` alone (B82), `dev br0 self cost 5` (K23), the ten narrowing boundaries that send nothing or a value the kernel takes, mst set with each state by name and number, `mst s` (B88), an ignored unknown word, MSTI 1 and 4094 (K24), and a set-then-show batch for each. Each has one readback: `bridge -d link show`, or `bridge mst show dev d1` on `brmst`. **Refused (49):** 24 by the kernel (K18-K24, the wraps it range-checks, the MST policy), 22 by bridge (usage, rc 234, the device texts, required arguments, invalid MSTI and state, NEXT_ARG, invarg), and three `-force` batches (rc 234 carries on, usage ends it, and a partly applied NAK). **Before the capture:** reading the kernel (`rtnl_bridge_setlink`, `br_setlink`, `br_setport`, `br_mst_process`, `br_mst_nl_policy`) corrected K24 (an unmapped MSTI is acked, not ENOENT) and moved the MSTI wraps' outcome from K24 to the policy. **Capture:** the workbench VM was off; booted (kernel 7.3.1, `bridge` 7.2.0), batch A to the scratchpad and batch B to the corpus, 141/141 rc as expected each, then powered off again (no cores, no namespaces left). `TestWsCorpusRows` then failed six rows: the MST policy's range refusal is ERANGE, not EINVAL (extack "integer out of range" as predicted). The six expectations were corrected and batch B re-run; the partial-apply batch gained `-d` (a plain `link show` does not print `hairpin`) and that one row was re-run in both batches. **Determinism:** `ip.rc`, `ip.err`, `ip.out` and every readback are identical in A and B on all 141 rows. Message types and flags are identical; bodies differ only in RTM_NEWLINK: `IFLA_BRPORT_FORWARD_DELAY_TIMER` (a live timer, 188 messages) and `ifi_flags` in `ll_init_map`'s AF_UNSPEC dump (linkwatch timing, 67), V097's two classes. **Requests**, decoded from each `ip.pcap`: REQUEST\|ACK; PROTINFO always with `NLA_F_NESTED` and empty when nothing is set (B82); AF_SPEC without it, FLAGS 2 for `master hwmode` (B81) and 3 for the reverse; `IFLA_BRIDGE_MST` without it and `MST_ENTRY` with it; `mcast_router abc` sends 0, `cost -1` 0xffffffff, `priority 70000` 0x1170, `state 300` and `mcast_router 300` 0x2c, `msti -1` 0xffff, `msti ""` 0 (B77-B80, B86, B87); the `-force` rc 234 batch sends its second line and the usage batch sends nothing (B84, B85). **Leads:** [upstream/iproute2-bridge-write.md](upstream/iproute2-bridge-write.md), each entry now with its rows: B77-B90 confirmed (B88's timestamp half source only); K18-K22 confirmed (K20's extack has `NL_SET_ERR_MSG_MOD`'s `bridge: ` prefix; K21's ENETDOWN covers `disabled` too on a port that is not running); K23 corrected (bare `dev br0` is EOPNOTSUPP for want of a master; with `self` the bridge acks and drops PROTINFO); K24 corrected (acked, nothing changes). **New:** K25, `br_setport` applies the port flags before range-checking cost, priority and state, so `hairpin on cost 70000` is refused with ERANGE and leaves hairpin on (ng-049's `-d` show); K26, a VLAN moved to a fresh MSTI starts disabled on every port (documented in `br_mst_vlan_sync_state`). **Tests:** `TestBrLinkWriteSpace` (row count; route proto; no row or pre step leaving its namespace; one readback per accepted row, the right one, none on a refusal; no duplicate; every brlink_modify keyword in an accepted row bar `self` and `hwmode`, which a dummy refuses; 41 table rows, each with description and expected, pinning every lead and K note to a row with its rc, refuser and errno, the boundary edges and the four batches; B82's row; deterministic generation). `go test ./pkg/xtcpnl/` (`TestWsCorpusRows` over all 141), `./internal/gobridge/`, `./tools/nlcapgen/` and `./internal/wsreplay/` pass. Corpus: 141 row dirs, 3.2 MB. | | V117 | 26P | **Code:** `pkg/xtcpnl/xtcpnl_bridge_write.go`, tagged `gobridge_write` (decision below): `BrU8`/`BrU16`/`BrU32` (an attribute sent only when given, brlink_modify's sentinels already decided); `BrPortProtinfo` and its `Append`, the 24 `IFLA_BRPORT_*` attributes in link.c:546-614's order; `BrAfSpecFlags` (`IFLA_AF_SPEC` without NLA_F_NESTED, FLAGS when non-zero, MODE when given); `BrMstEntry` (`AF_SPEC` > `BRIDGE_MST` > `MST_ENTRY`\|NESTED, MSTI u16, STATE u8); `BrLinkWrite` and `BuildBrLinkWriteRequest` (RTM_SETLINK, REQUEST\|ACK, ifinfomsg PF_BRIDGE, through `BuildWriteRequest`; a 512-byte buffer as the C's, which the widest request, 216 bytes, never reaches; `ErrBrLinkWriteEmpty` for a write with neither part). Types cite if_link.h and if_bridge.h. **no-write-encoders:** each daemon's `,gobridge_write` listing must name a further write file again (now `xtcpnl_bridge_write.go`, which the `treatment` xtcp2 does not already compile), beside 26X's `cmd/gobridge` control. **Tests** (tagged): `TestWsBrLinkWrite` over all 141 `ws/brlinkwrite` rows: O3, every captured SETLINK (118: 92 accepted, 24 kernel refusals, one in each of two `-force` batches) decodes through `ParseBridgeLink` and is rebuilt byte for byte, seq and pid aside; O2, no bridge refusal sends a SETLINK and each kernel refusal sends one; O4, each of 91 accepted writes is in the kernel's readback dump (`netlink_route_link.pcap` or `_mst.pcap`) with the value sent. One row is exempt by name (ec-066, K23: br0 drops PROTINFO); three kernel behaviors are pinned rather than exempted: `IFLA_BRPORT_LEARNING_SYNC` must be absent from the dump (K27), a written blocking state must read back forwarding (K28), and an unmapped MSTI must have no entry (K24, MSTI 1 and 4094). `TestBrLinkWriteEncode`: 7 table rows (description and expected: one attribute, flags and mode, an MST entry; no part, ErrBrLinkWriteEmpty; the 4-byte empty PROTINFO (B82), every field at its widest, 216 bytes; flags 0 sends no AF_SPEC), every one of the 24 fields alone round-tripping at its width, the NLA_F_NESTED conventions (PROTINFO and MST_ENTRY flagged, AF_SPEC and BRIDGE_MST not), and RTM_NEWVLAN still refused by the gate. Benchmarks: `BuildBrLinkWriteRequest` 555 ns, 3 allocs; decoding a captured SETLINK 1.3 µs, 2 allocs. `go test ./pkg/xtcpnl/ ./internal/gobridge/` passes untagged and with `-tags gobridge_write`. **Found:** K27, the software bridge never reads or reports `IFLA_BRPORT_LEARNING_SYNC` (only `ndo_dflt_bridge_getlink` and two switchdev drivers do), so `learning_sync on\|off` is acked and ignored (ec-011, ec-012); K28, `state blocking` on an STP-off bridge is undone by `br_port_state_selection` → `br_make_forwarding` (ec-055, ec-056). Both are in [upstream/iproute2-bridge-write.md](upstream/iproute2-bridge-write.md). | | V118 | 26W | **Code** (tagged `gobridge_write`): `internal/gobridge/link_write.go` is brlink_modify: the words in C's order and with its strcmp; `parseOnOff` (parse_on_off; a failure is `retCode(-EINVAL)`, rc 234, so `-force` carries on: B84); `parseStpState`; the C's narrowings kept as the C keeps them, through four new `pkg/cint` conversions (`IntToSChar`, `IntToShort`, `LongToSChar`, `LongToU16`, with `TestCNarrowings`, 7 rows) and `cint.Bits` (B77-B80, B83); hwmode assigning the flags (B81); PROTINFO always sent (B82); usage on an unknown word (B85); dev checked after the loop (B90); the three device texts, `backup_port` looked up in the loop where the C does it (B89); C's `strtol`/`get_s32`/`get_u32` (base 0, saturation, `-0` as a u32). `mst_write.go` is mst_set: unknown words ignored bar a prefix of help, the `*s` MSTI check (B86), `__u16` MSTI (B87), `int` state range-checked to 0-255, nodev. Both build through `xtcpnl.BuildBrLinkWriteRequest` and go through 26X's `deliverWrite`. `link.go` and `mst.go` call `linkWrite`/`mstWrite`; `write_off.go` refuses them by name; `mst s` stays a set (B88). Package doc and `errNotImplemented` updated. **Corpus:** `TestGobridgeCorpus` adds `brlinkwrite` (141) when `writesBuilt`: all 485 rows replay byte for byte in stdout, stderr and rc, with every request bridge sent matched and none left. It splits each command with the monitor test's `shellWords` (sh's quoting), since `msti ""` is an empty word to the shell and `strings.Fields` handed gobridge two quote characters (the only two first-run failures, ng-022 and ng-041). Untagged, `TestGobridgeWriteCorpusRefused` holds each of the 141 rows to rc 255, empty stdout and `gobridge: not implemented: bridge link set` or `mst set`. `TestGobridgeBrLinkWriteReadbacks` replays all 92 readbacks (`bridge -d link show`, `bridge mst show dev d1`) in both builds. **Unit tests** (tagged, each row with description and expected, the last SETLINK decoded through `ParseBridgeLink`): `TestGobridgeLinkWrite` 40 rows (on/off, C's attribute order, numbers at C's widths, flags, backups, `change`; usage, 234, bad state, no dev, no such dev and backup port, bad hwmode, two invargs, NEXT_ARG, a NAK and an extack NAK; the B77-B80 and B83 narrowings; B81 both orders, B82, last value wins, `link s`, br0's own index); `TestGobridgeLinkWriteBatch` 4 rows (two SETLINKs; rc 234 then a good line, rc 1; a NAK then a good line, rc 1; usage ends it); `TestGobridgeMstWrite` 20 rows (names and numbers, any order; missing words, bad state, 256, bad MSTI, nodev, help, an extack NAK; MSTI -1, 70000, 4094, state 255; B86 both ways, an ignored word, `mst s`); `TestGobridgeCNumbers` 13 rows. **Fuzz:** `FuzzGobridgeLinkSet` (link set or mst set over up to 12 words drawn from every keyword and the corpus's values, or raw bytes, every request acked): 60 s under `systemd-run --user --scope -p MemoryMax=6G` with `-timeout`, 1,030,907 executions, 138 interesting inputs, no panic, every rc in {0, 1, 234, 255}, every SETLINK decoding. **Mutants** (each under the same cap, each restored to its checksum): (1) PROTINFO omitted when empty, (2) hwmode ORs, (3) cost masked to 16 bits, (4) priority saturated instead of narrowed, (5) on/off failure exits 255, (6) mst checks `*m`, (7) AF_SPEC sent with NLA_F_NESTED, (8) `mst s` is show: 8 of 8 killed, each by the corpus and a unit table (1 and 7 also by `TestWsBrLinkWrite`/`TestBrLinkWriteEncode`). **Coverage:** `internal/gobridge` 84.3% with the tag. `go test ./internal/gobridge/ ./pkg/xtcpnl/ ./pkg/cint/` passes untagged and tagged. No new upstream lead: every difference was in the harness. | -| DOC036 | 26B | **Doc:** [upstream/iproute2-bridge-write.md](upstream/iproute2-bridge-write.md), still "Not submitted to netdev", is completed. Its new "HEAD check" section covers both trees, read-only through the GitHub mirrors. **iproute2:** the mirror's `main`, `d7e038f99479` (2026-12-02, the same as 25B). `bridge/link.c`, `bridge/mst.c`, `bridge/bridge.c` and `include/uapi/linux/if_bridge.h` are byte-identical to v7.2.0. In `lib/utils.c` the change is the `resolve_address` cache and `getcmdline`; `__parse_one_of`, `parse_on_off`, `get_u32`, `get_s32`, `nodev`, `matches`, `incomplete_command` and `invarg` are byte-identical (each function extracted and hashed). `if_link.h` gains `IFLA_PACING_OFFLOAD` at the end of the `IFLA_*` enum, moving no `IFLA_BRPORT_*`. `lib/libnetlink.c`'s commits are 25B's four, none on the ack or extack path. Every B lead is present. **Linux:** torvalds `master` `28a23309c8e4` (2026-12-05). Since v7.4-rc4, `net/bridge/` has `75dc1bad7897` (`nf_conntrack_bridge.c`) and `da4a53461d46` (`br_mdb.c`, and `br_private.h`'s `BR_SGRP_F_NEW`, checked hunk by hunk). `rtnetlink.c` and the two uapi headers have none. Every K note is unchanged. **Summary:** the "At HEAD" column is filled (14 present), and the gobridge column now says copied (26W). **Kernel defects written up on their own** (the plan's rule for "an attribute silently ignored" and the like), each with code citations at v7.4-rc4, history, the rows that show it, and fix options for the user, not sent: [upstream/kernel-bridge-setport-partial-apply.md](upstream/kernel-bridge-setport-partial-apply.md) (K25: `br_setport` commits the flags at br_netlink.c:1015 before the cost, priority, state, router and backup checks at 1024-1096, with no rollback; ng-049, and ng-004 for `rtnl_bridge_setlink`'s master-then-self); [upstream/kernel-bridge-learning-sync-ignored.md](upstream/kernel-bridge-learning-sync-ignored.md) (K27: no setter arm, no policy entry, no dump of `IFLA_BRPORT_LEARNING_SYNC` in the software bridge since `efacacdaf7cb` (2014); only qeth's `self` path implements it; ec-011, ec-012). **Extension line:** B64 in [upstream/iproute2-bridge-monitor.md](upstream/iproute2-bridge-monitor.md) gains "Extended in increment 26": `do_mst` never zeroes `timestamp` (mst.c has no reference to it), source only, pointing at B88. gobridge already models it (`doMst` has no reset). **Docs:** [gobridge.md](gobridge.md) gains "Increment 26": the task table, the dry-run model and how the clone is put together. **Checklist** (`doc036chk.py`, grep over the write doc and the monitor doc), all passing. Positive: every B77-B90 has a summary row and an entry, and every K18-K28 a settled entry. Negative: each confirmed lead and K note names an ec or ng row; no row is outside the range; every row has its At HEAD answer. Boundary: B and K are contiguous. Corner: B64's extension line points back, and both kernel docs are linked. Four mutated copies of the doc (a removed summary row, a row with no pinning row, an unfilled At HEAD, an unlinked kernel doc) each fail it. **Bug-class candidates** for the user, unchanged in bug-classes.md: an always-sent empty container (B82), a C narrowing that wraps or drops silently (B77, B79, B80, B87), and a refusal after a partial apply (K25). | +| DOC039 | 26B | **Doc:** [upstream/iproute2-bridge-write.md](upstream/iproute2-bridge-write.md), still "Not submitted to netdev", is completed. Its new "HEAD check" section covers both trees, read-only through the GitHub mirrors. **iproute2:** the mirror's `main`, `d7e038f99479` (2026-12-02, the same as 25B). `bridge/link.c`, `bridge/mst.c`, `bridge/bridge.c` and `include/uapi/linux/if_bridge.h` are byte-identical to v7.2.0. In `lib/utils.c` the change is the `resolve_address` cache and `getcmdline`; `__parse_one_of`, `parse_on_off`, `get_u32`, `get_s32`, `nodev`, `matches`, `incomplete_command` and `invarg` are byte-identical (each function extracted and hashed). `if_link.h` gains `IFLA_PACING_OFFLOAD` at the end of the `IFLA_*` enum, moving no `IFLA_BRPORT_*`. `lib/libnetlink.c`'s commits are 25B's four, none on the ack or extack path. Every B lead is present. **Linux:** torvalds `master` `28a23309c8e4` (2026-12-05). Since v7.4-rc4, `net/bridge/` has `75dc1bad7897` (`nf_conntrack_bridge.c`) and `da4a53461d46` (`br_mdb.c`, and `br_private.h`'s `BR_SGRP_F_NEW`, checked hunk by hunk). `rtnetlink.c` and the two uapi headers have none. Every K note is unchanged. **Summary:** the "At HEAD" column is filled (14 present), and the gobridge column now says copied (26W). **Kernel defects written up on their own** (the plan's rule for "an attribute silently ignored" and the like), each with code citations at v7.4-rc4, history, the rows that show it, and fix options for the user, not sent: [upstream/kernel-bridge-setport-partial-apply.md](upstream/kernel-bridge-setport-partial-apply.md) (K25: `br_setport` commits the flags at br_netlink.c:1015 before the cost, priority, state, router and backup checks at 1024-1096, with no rollback; ng-049, and ng-004 for `rtnl_bridge_setlink`'s master-then-self); [upstream/kernel-bridge-learning-sync-ignored.md](upstream/kernel-bridge-learning-sync-ignored.md) (K27: no setter arm, no policy entry, no dump of `IFLA_BRPORT_LEARNING_SYNC` in the software bridge since `efacacdaf7cb` (2014); only qeth's `self` path implements it; ec-011, ec-012). **Extension line:** B64 in [upstream/iproute2-bridge-monitor.md](upstream/iproute2-bridge-monitor.md) gains "Extended in increment 26": `do_mst` never zeroes `timestamp` (mst.c has no reference to it), source only, pointing at B88. gobridge already models it (`doMst` has no reset). **Docs:** [gobridge.md](gobridge.md) gains "Increment 26": the task table, the dry-run model and how the clone is put together. **Checklist** (`doc036chk.py`, grep over the write doc and the monitor doc), all passing. Positive: every B77-B90 has a summary row and an entry, and every K18-K28 a settled entry. Negative: each confirmed lead and K note names an ec or ng row; no row is outside the range; every row has its At HEAD answer. Boundary: B and K are contiguous. Corner: B64's extension line points back, and both kernel docs are linked. Four mutated copies of the doc (a removed summary row, a row with no pinning row, an unfilled At HEAD, an unlinked kernel doc) each fail it. **Bug-class candidates** for the user, unchanged in bug-classes.md: an always-sent empty container (B82), a C narrowing that wraps or drops silently (B77, B79, B80, B87), and a refusal after a partial apply (K25). | | V119 | 26L | **Live diff:** the workbench VM was off; booted for this (kernel 7.3.1, `bridge` 7.2.0 at `/nix/store/x1pwsbz5…-iproute2-7.2.0`), powered off after. gobridge with `gobridge_write`, built with `go build -trimpath -tags gobridge_write ./cmd/gobridge` at `216dc015a` (the nix `gobridge` attribute is untagged by design) and added to the store the guest shares (`/nix/store/04vq43ib…-gobridge-write-216dc015a`). The script is generated from `brlinkwrite.rows.jsonl`: each row gets a fresh netns with `lo` up and `nlmon0` up, then the row's `pre` steps; gobridge runs first, live, with `GOBRIDGE_WRITE_OUT` (its ll_init_map and name lookups go to the kernel; its write goes to the file); then `bridge` runs and applies the write while `tcpdump --immediate-mode` captures `nlmon0`; then each readback runs with both tools on the state bridge left. **Compared** on the host (`cmp.py`): gobridge's requests against bridge's captured RTM_SETLINKs, seq and pid zeroed; for the 22 rows where bridge refuses before sending, stdout, stderr and rc of both; for the 114 single-command rows that send, gobridge's dry run is silent with rc 0 (a kernel refusal cannot reach it); and each readback's output and rc. **Result:** requests identical on 141 of 141 (118 SETLINKs, the batches included), refusals 22 of 22, dry runs 114 of 114, readbacks 92 of 92, in batches C and D, which agree on all 1,148 files. `bridge`'s stdout, stderr and rc match the 26C corpus on 141 of 141 in both, so K18-K28 behaved live as captured (K25's hairpin, K27's missing attribute and K28's forwarding readback included). **Earlier runs:** batch A captured nothing (tcpdump's TPACKET_V3 block held the packets past the 0.3 s SIGINT: "5 packets received by filter, 0 captured"); B, with `--immediate-mode`, was clean like C and D but ran the binary from before 26W's lint fix, so C and D were run on `216dc015a`. **Guest left as found:** no namespaces, no core files, result directories removed; `bridge` (autoloaded by the fixtures; only `nlmon` and `dummy` were loaded at boot) was unloaded, `llc` stayed until the power-off; never rebooted mid-use; powered off, as it was. The workbench CLI's store path had been garbage-collected between 26C and 26L (built with `--no-link`), so it and the tool paths are now built with GC roots. **Bugs found:** none new. | | V402 | 6C | **Fresh-boot batches — the 6C gate's last task (and 7C's conditional).** Two batches, each on its own fresh boot of the workbench VM (kernel 7.3.1, iproute2 7.2.0; `nlcap-ws down` then `up`, the guest's `is-system-running` running before the first row), each running all four `ws/bridge*` row files through `nlcap-ws batch`, the committed corpus untouched. **Boot 1:** the batch the boot's own start rejected, re-run once the boot settled — 113 (`bridge`), 63 (`bridgex`), 94 (`bridgefdb`), 74 (`bridgemdb`), 344 of 344 OK. **Boot 2:** a second down+up — 344 of 344. **`nlcapgen verdiff` against the corpus:** `bridge` 0 differences (113 rows), `bridgex` 6 (the `brrtr -s` timer rows ec-021/022/023, pw-021/022/023, V101's allow-list), `bridgefdb` 0 (94), `bridgemdb` 6 (the temp-entry timer rows ec-005/006/008, pw-005/006/008 — V108's rows and their `-j -s`/`-s -o` twins). Boot 1 against boot 2 directly: the same profile, 0/6/0/6, the same rows. **A body-level pass** (a throwaway `tmp-bodydiff`, deleted; the corpus vs each boot's pcaps, message by message, seq and pid zeroed): every differing message is one of V097's two named classes — the `br` fixture's link replies at `IFLA_BRPORT_FORWARD_DELAY_TIMER` (offsets 360/364 of the 420-488-byte messages, 33 rows), and the NLMSG_ERROR bodies' echoed request seq (offsets 24, 28-30 and 60 in the 40-, 72- and 96-byte error shapes; `0x6b03d2bc` against `0x6b129194`, minutes apart; 28 rows). 58 rows (boot 1) and 61 rows (boot 2) differ in any body at all; every other byte of every other message is identical. The stats counters and the vxlan random source port, the 6C gate's own expected exceptions, never moved. **The first fresh-boot attempt failed 34 of 113 rows:** the batch fired 24 s after qemu started, `up` returning at ssh and the guest's systemd still settling, and the first wave's rows crosstalked at their ns lifecycle ("Cannot open network namespace" immediately after `NLCAP_NS_OK wsN"; "Cannot create namespace file: File exists" after ns-add's own cleanup; ec-010's pre step 0 creating br0 and pre step 1 finding it gone; "Cannot find device nlmon0"; `NLCAP_CAP_NOBIND`, datagrams=0). The mechanism was not pinned down; the wait is measured. A batch the same boot ran two hours later was 113 of 113, and a concurrent session's batch on the same boot (a `brmonitor` corpus, 44 rows, all OK) confirms the settled guest. `xtcp2-nlcap-ws up` now waits for `is-system-running` (running or degraded) before `NLCAP_WS_UP`, warning past the timeout. **The arc's disk:** the kernel closure was GC'd twice mid-arc (nothing pinned `nix build --no-link`, the store 98-99% full; the `linux-7.3.1` build needs ~35 GB and failed twice at 31-36 GB free), and two CLI attempts were killed at their own command timeouts (600 s and 2400 s against the ~45-min kernel rebuild); the closure is now rooted at `/tmp/gobridge-vm-root`. Gates: the batch's own, and `nlcap-ws`, `nix-fmt`, `test-goip-docs`, `netlink-audit`, `lint-baseline`. | diff --git a/docs/netlink/gobridge.md b/docs/netlink/gobridge.md index 7c87dd754..1672a721f 100644 --- a/docs/netlink/gobridge.md +++ b/docs/netlink/gobridge.md @@ -703,7 +703,7 @@ K10-K17), not submitted to netdev. The ledger rows in [gobridge-status.md](gobri - **Crashes:** the crash bridge has on a crafted file (B20 through `monitor file`) is refused by name, as 6R's are. -## Increment 26 — writes: `bridge link set` and `bridge mst set` (V115–V119, DOC036) +## Increment 26 — writes: `bridge link set` and `bridge mst set` (V115–V119, DOC039) gobridge's first writes, built only with the `gobridge_write` tag: `bridge link set` (and `change`) and `bridge mst set`, each one RTM_SETLINK for PF_BRIDGE, byte for byte with bridge 7.2.0. The default `gobridge` stays untagged @@ -720,7 +720,7 @@ submitted to netdev. The ledger rows in [gobridge-status.md](gobridge-status.md) | 26C | `ws/brlinkwrite`, 141 rows over five fixtures: 92 accepted writes with readbacks, 46 refusals, 3 `-force` batches; two batches on one boot | V116 | | 26P | `pkg/xtcpnl/xtcpnl_bridge_write.go` (tagged); `TestWsBrLinkWrite` rebuilds all 118 captured SETLINKs and checks 91 against the kernel's readback | V117 | | 26W | `link_write.go` and `mst_write.go`; the corpus replay, 77 unit rows, a fuzz, 8 mutants | V118 | -| 26B | the doc's HEAD check; K25 and K27 written up on their own; B64's extension line | DOC036 | +| 26B | the doc's HEAD check; K25 and K27 written up on their own; B64's extension line | DOC039 | | 26L | gobridge next to `bridge` 7.2.0 on the workbench, every `brlinkwrite` row | V119 | **The dry-run model** (gotc's, from increment 17): diff --git a/docs/netlink/upstream/README.md b/docs/netlink/upstream/README.md index c33229d75..daf363421 100644 --- a/docs/netlink/upstream/README.md +++ b/docs/netlink/upstream/README.md @@ -23,6 +23,9 @@ found by a capture, reproduced, fixed, tested, reviewed — and ready to send. | [iproute2-tipc-print-paths.md](iproute2-tipc-print-paths.md) | `tipc -j link get broadcast` dies of SIGSEGV, `tipc -h node get identity` calls a NULL help, `parse_attrs` writes `tb[type]` unbounded; thirteen more, two more crashes | ≤ HEAD | no | the 93-row tipc ws corpus (pw-022, exit 139) | not yet; drafts | | [iproute2-bridge-print-paths.md](iproute2-bridge-print-paths.md) | `bridge fdb show` cannot filter a port name, a dump stops at the first port, four NULL reads, filters that leak between batch lines, and inconsistent exits and JSON — B1-B57 and K1-K9 | ≤ HEAD | no | the bridge ws corpus (6C/V097, 6X-C/V101, 7C/V108) and the `gobridge` unit rows | not yet; drafts | | [iproute2-bridge-monitor.md](iproute2-bridge-monitor.md) | `bridge monitor` joins groups its bare form never joins (fdb, mdb, vlan, vni — the plain command silently misses them), a word order that decides which tool printed a line, `-j` ignored in monitor mode, `file` mode that ignores its selectors, and statics that outlive their command — B58–B76 and K10–K17 | ≤ HEAD | no | the `ws/brmonitor` corpus (25C/V111) and the `gobridge` monitor clone (25R/V113) | not yet; drafts | +| [iproute2-bridge-write.md](iproute2-bridge-write.md) | `bridge link set` and `bridge mst set` narrow their numbers through `atoi`/`strtol` (an MSTI of 70000 is sent as 4464, `mcast_router abc` turns router mode off), always send an empty `IFLA_PROTINFO`, test the wrong pointer for an empty MSTI, let `hwmode` wipe `master`, and print four different device-lookup errors — B77–B90 and K18–K28 | ≤ HEAD | no | the `ws/brlinkwrite` corpus (26C/V116), the encoder oracle (26P/V117) and the `gobridge` write clone (26W/V118) | not yet; drafts | +| [kernel-bridge-setport-partial-apply.md](kernel-bridge-setport-partial-apply.md) | A bridge port setlink refused with ERANGE or EINVAL has already committed its port flags (`hairpin on cost 70000` is refused, yet hairpin is on) — K25 | kernel 7.3.1 observed; 7.4-rc4 and torvalds `28a23309c8e4` checked | no | `ws/brlinkwrite` ng-049 (26C/V116) | not yet; recorded only | +| [kernel-bridge-learning-sync-ignored.md](kernel-bridge-learning-sync-ignored.md) | A software bridge acks `IFLA_BRPORT_LEARNING_SYNC` on a port, changes nothing and never reports it — K27 | kernel 7.3.1 observed; 7.4-rc4 and torvalds `28a23309c8e4` checked | no | `ws/brlinkwrite` ec-011/ec-012, `TestWsBrLinkWrite` (26P/V117) | not yet; recorded only | | [iproute2-tunnel-tuntap.md](iproute2-tunnel-tuntap.md) | `ip tunnel show` overflows the stack on a long name, `ip tuntap` double-fcloses its file, text inside `-j`, an uninitialized byte, filters that match the wrong tunnels — T1-T25 | 7.2.0, ≤ HEAD | no | the 217-row tunnel corpus (8C/V002) and the `tnlsys` sidecars | not yet; drafts | | [iproute2-tc-qdisc-class.md](iproute2-tc-qdisc-class.md) | `tc qdisc show`'s `-g` walks a freed graph, a double free across batch lines, text inside `-j`, JSON keys that differ by path, filters that stick between commands — Q1-Q36 | 7.2.0, ≤ HEAD | Q14 only — `9dd1bec6b863` (2026-11-09, untagged) | the tc corpus (`ws/tcqdisc/` 142 rows, `ws/tcclass/` 82; 9C/V002), replayed byte for byte by `gotc` | not yet; drafts | | [iproute2-tc-filter.md](iproute2-tc-filter.md) | Filter and chain JSON, overflowing preferences, sticky filters, handle parsers and exit statuses | 7.2.0; later status in note | see note | `ws/tcfilter/`, increment 10 | not yet; drafts | diff --git a/docs/netlink/upstream/iproute2-bridge-write.md b/docs/netlink/upstream/iproute2-bridge-write.md index 4fb56e8cd..7857ff5fd 100644 --- a/docs/netlink/upstream/iproute2-bridge-write.md +++ b/docs/netlink/upstream/iproute2-bridge-write.md @@ -6,7 +6,7 @@ this directory. No patch, no PR, no sign-off. - **Settled against the corpus.** 26C (V116) captured 141 `ws/brlinkwrite` rows and settled every lead and kernel note: B77–B90 confirmed, K18–K22 confirmed, K23 and K24 corrected, and K25 and K26 new. 26P (V117) checked every - accepted write against the kernel's own readback dump and found K27 and K28. 26B (DOC036) ran the + accepted write against the kernel's own readback dump and found K27 and K28. 26B (DOC039) ran the [HEAD check](#head-check): every B lead is still present, and every K note's kernel code is unchanged. K25 and K27 stand on their own as kernel defects, in [kernel-bridge-setport-partial-apply.md](kernel-bridge-setport-partial-apply.md) and [kernel-bridge-learning-sync-ignored.md](kernel-bridge-learning-sync-ignored.md). 26L (V119) ran gobridge beside @@ -50,7 +50,7 @@ ## HEAD check -Checked 2026-12-05 (26B, DOC036), read-only through the GitHub mirrors. +Checked 2026-12-05 (26B, DOC039), read-only through the GitHub mirrors. - **iproute2:** the mirror's `main`, `d7e038f99479` (2026-12-02), as in 25B. - `bridge/link.c`, `bridge/mst.c`, `bridge/bridge.c` and `include/uapi/linux/if_bridge.h` are byte-identical to