From ea47532aeb355fe16ea8b9a6546602d147865d8e Mon Sep 17 00:00:00 2001 From: "randomizedcoder dave.seddon.ca@gmail.com" Date: Mon, 23 Nov 2026 14:53:56 -0800 Subject: [PATCH 1/8] feat(tnlsys): tunnel/tuntap sidecar, tnlsnap ptrace recorder, goip GOIP_TNLSYS (8S, V001) ip tunnel and ip tuntap ask the kernel outside netlink: SIOCGETTUNNEL, SIOCGETPRL and SIOCGET6RD ioctls, /sys/class/net tun props and a /proc walk. internal/tnlsys is the seam: Live asks the kernel (with a spill window, since ip6gre writes 76 bytes into whatever it is given), and Snapshot answers from a JSON sidecar keyed by each ioctl's exact input, because a fallback device answers per the parameters passed. tnlsnap records the sidecar by running ip under ptrace (threads followed), plus the tun props and the tun descriptor walk. goip's runCtx.sys comes from GOIP_TNLSYS, an empty snapshot under GOIP_REPLAY, or Live. Co-Authored-By: Claude Opus 5.5 --- cmd/tnlsnap/main.go | 95 +++++ cmd/tnlsnap/main_test.go | 144 +++++++ docs/netlink/goip-tunnel-status.md | 59 +++ docs/netlink/goip-tunnel.md | 110 +++++ internal/goip/dispatch.go | 4 + internal/goip/goip.go | 22 + internal/goip/tnlsys_seam_test.go | 64 +++ internal/tnlsys/live_linux.go | 211 ++++++++++ internal/tnlsys/snapshot.go | 221 ++++++++++ internal/tnlsys/tnlsys.go | 169 ++++++++ internal/tnlsys/tnlsys_test.go | 582 +++++++++++++++++++++++++++ internal/tnlsys/trace_linux_amd64.go | 309 ++++++++++++++ internal/tnlsys/trace_other.go | 13 + nix/binaries.nix | 6 + 14 files changed, 2009 insertions(+) create mode 100644 cmd/tnlsnap/main.go create mode 100644 cmd/tnlsnap/main_test.go create mode 100644 docs/netlink/goip-tunnel-status.md create mode 100644 docs/netlink/goip-tunnel.md create mode 100644 internal/goip/tnlsys_seam_test.go create mode 100644 internal/tnlsys/live_linux.go create mode 100644 internal/tnlsys/snapshot.go create mode 100644 internal/tnlsys/tnlsys.go create mode 100644 internal/tnlsys/tnlsys_test.go create mode 100644 internal/tnlsys/trace_linux_amd64.go create mode 100644 internal/tnlsys/trace_other.go diff --git a/cmd/tnlsnap/main.go b/cmd/tnlsnap/main.go new file mode 100644 index 000000000..7855f2c72 --- /dev/null +++ b/cmd/tnlsnap/main.go @@ -0,0 +1,95 @@ +// Command tnlsnap records the tnlsys snapshot (internal/tnlsys) of one +// `ip` run: the tunnel ioctls it makes, traced under ptrace with their +// exact input and output; the tun properties of every device in +// /sys/class/net; and the /dev/net/tun descriptors in /proc. +// +// tnlsnap -- -j tunnel show +// +// runs `ip -j tunnel show`, the `ip` first on PATH. It runs nothing but +// `ip`: it is a root ptrace tool in the capture guest, and its arguments +// come from a rows file. +// +// It prints the snapshot as JSON on stdout; the traced run's own stdout, +// stderr and exit status go into it rather than through. A capture row +// runs it as a readback beside the `ip` it captures, and goip replays the +// row with GOIP_TNLSYS naming the result. It exits 1 when the trace or a +// walk fails, and 2 on bad usage. +package main + +import ( + "errors" + "fmt" + "io" + "os" + "os/exec" + "path/filepath" + + "github.com/randomizedcoder/xtcp2/internal/tnlsys" +) + +func main() { + os.Exit(run(os.Args[1:], os.Stdout, os.Stderr)) +} + +func run(args []string, stdout, stderr io.Writer) int { + if len(args) < 2 || args[0] != "--" { + fmt.Fprintln(stderr, "usage: tnlsnap -- IP-ARG...") + return 2 + } + b, err := snapshotIP(args[1:]) + if err != nil { + fmt.Fprintf(stderr, "tnlsnap: %v\n", err) + return 1 + } + if _, err := stdout.Write(b); err != nil { + fmt.Fprintf(stderr, "tnlsnap: %v\n", err) + return 1 + } + return 0 +} + +// snapshotIP records `ip ARGS`. The program is fixed, ip as PATH +// resolves it, and the arguments reach it as its argv, never a shell. +func snapshotIP(args []string) ([]byte, error) { + path, err := exec.LookPath("ip") + if err != nil { + return nil, err + } + return snapshot(&exec.Cmd{Path: path, Args: append([]string{"ip"}, args...)}, tnlsys.Live{}) +} + +func snapshot(cmd *exec.Cmd, live tnlsys.Live) ([]byte, error) { + r, recs, err := tnlsys.Trace(cmd) + if err != nil { + return nil, err + } + s := tnlsys.Snapshot{Ioctls: recs, Run: r} + devs, err := netDevs(live) + if err != nil { + return nil, err + } + s.RecordProps(live, devs) + fds, err := live.TunFDs() + if err != nil { + return nil, err + } + s.Fds = &fds + return s.Marshal() +} + +// netDevs lists /sys/class/net. +func netDevs(live tnlsys.Live) ([]string, error) { + root := live.SysRoot + if root == "" { + root = "/sys" + } + ents, err := os.ReadDir(filepath.Join(root, "class", "net")) + if err != nil { + return nil, errors.Join(errors.New("listing devices"), err) + } + devs := make([]string, 0, len(ents)) + for _, e := range ents { + devs = append(devs, e.Name()) + } + return devs, nil +} diff --git a/cmd/tnlsnap/main_test.go b/cmd/tnlsnap/main_test.go new file mode 100644 index 000000000..369d2d1ae --- /dev/null +++ b/cmd/tnlsnap/main_test.go @@ -0,0 +1,144 @@ +package main + +import ( + "bytes" + "fmt" + "os" + "os/exec" + "path/filepath" + "strings" + "testing" + + "github.com/randomizedcoder/xtcp2/internal/tnlsys" +) + +const helperEnv = "TNLSNAP_HELPER" + +func TestMain(m *testing.M) { + if os.Getenv(helperEnv) == "1" { + fmt.Print("helper out") + os.Exit(4) + } + os.Exit(m.Run()) +} + +// self is the test binary re-run as the helper TestMain turns it into. +func self() *exec.Cmd { + return &exec.Cmd{Path: os.Args[0], Args: []string{os.Args[0], "-test.run=^$"}} +} + +func TestRunUsage(t *testing.T) { + tests := []struct { + description string + args []string + wantRC int + wantErr string + }{ + {"negative: no arguments", nil, 2, "usage: tnlsnap -- IP-ARG..."}, + {"negative: arguments without --", []string{"tunnel", "show"}, 2, "usage"}, + {"boundary: -- with no ip arguments", []string{"--"}, 2, "usage"}, + {"negative: no ip on PATH", []string{"--", "tunnel"}, 1, "tnlsnap: exec: \"ip\""}, + } + t.Setenv("PATH", t.TempDir()) + for _, tc := range tests { + t.Run(tc.description, func(t *testing.T) { + var out, errb bytes.Buffer + if rc := run(tc.args, &out, &errb); rc != tc.wantRC { + t.Errorf("rc = %d, want %d", rc, tc.wantRC) + } + if !strings.Contains(errb.String(), tc.wantErr) || out.Len() != 0 { + t.Errorf("stderr = %q, stdout = %q", errb.String(), out.String()) + } + }) + } +} + +func TestSnapshot(t *testing.T) { + t.Setenv(helperEnv, "1") + sys, proc := t.TempDir(), t.TempDir() + for name, v := range map[string]string{ + "devices/virtual/net/tap0/tun_flags": "0x1002\n", + "devices/virtual/net/tap0/owner": "-1\n", + "devices/virtual/net/tap0/group": "100\n", + "devices/virtual/net/d0/ifindex": "2\n", + "class/net/bonding_masters": "\n", + } { + p := filepath.Join(sys, name) + if err := os.MkdirAll(filepath.Dir(p), 0o755); err != nil { + t.Fatal(err) + } + if err := os.WriteFile(p, []byte(v), 0o600); err != nil { + t.Fatal(err) + } + } + for _, d := range []string{"tap0", "d0"} { + if err := os.Symlink("../../devices/virtual/net/"+d, filepath.Join(sys, "class/net", d)); err != nil { + t.Fatal(err) + } + } + b, err := snapshot(self(), tnlsys.Live{SysRoot: sys, ProcRoot: proc}) + if err != nil { + t.Fatal(err) + } + s, err := tnlsys.Parse(b) + if err != nil { + t.Fatal(err) + } + fds, fdErr := s.TunFDs() + tests := []struct { + description string + got, want any + }{ + {"positive: the traced run's status", s.Run.RC, 4}, + {"positive: the traced run's stdout is kept, not passed through", s.Run.Stdout, "helper out"}, + {"positive: tap0's three props", len(s.Props), 3}, + {"positive: group read", s.Props[2].Value, "100\n"}, + {"negative: no ioctls from a command that makes none", len(s.Ioctls), 0}, + {"corner: d0 and bonding_masters are not tun devices", s.Props[0].Dev, "tap0"}, + {"boundary: an empty /proc is a recorded empty walk", fmt.Sprint(len(fds), fdErr), "0 "}, + } + for _, tc := range tests { + t.Run(tc.description, func(t *testing.T) { + if tc.got != tc.want { + t.Errorf("got %v, want %v", tc.got, tc.want) + } + }) + } + t.Run("negative: a missing sysfs is an error", func(t *testing.T) { + if _, err := snapshot(self(), tnlsys.Live{SysRoot: filepath.Join(sys, "nope"), ProcRoot: proc}); err == nil { + t.Error("no error") + } + }) +} + +func TestRunIP(t *testing.T) { + bin := t.TempDir() + if err := os.Symlink(os.Args[0], filepath.Join(bin, "ip")); err != nil { + t.Fatal(err) + } + t.Setenv("PATH", bin) + t.Setenv(helperEnv, "1") + var out, errb bytes.Buffer + rc := run([]string{"--", "-j", "tunnel", "show"}, &out, &errb) + s, err := tnlsys.Parse(out.Bytes()) + if err != nil { + t.Fatalf("rc %d, stderr %q: %v", rc, errb.String(), err) + } + tests := []struct { + description string + got, want any + }{ + {"positive: tnlsnap exits 0 whatever ip exits", rc, 0}, + {"positive: ip's status is recorded", s.Run.RC, 4}, + {"positive: argv is ip and the arguments", fmt.Sprint(s.Run.Argv), "[ip -j tunnel show]"}, + {"negative: nothing on stderr", errb.String(), ""}, + {"corner: the walk is recorded on the live /proc", s.Fds != nil, true}, + } + for _, tc := range tests { + t.Run(tc.description, func(t *testing.T) { + if tc.got != tc.want { + t.Errorf("got %v, want %v", tc.got, tc.want) + } + }) + } +} diff --git a/docs/netlink/goip-tunnel-status.md b/docs/netlink/goip-tunnel-status.md new file mode 100644 index 000000000..6195f3c92 --- /dev/null +++ b/docs/netlink/goip-tunnel-status.md @@ -0,0 +1,59 @@ +# goip tunnel, tunl6 and tuntap: implementation status + +**Last updated:** 2026-11-23 + +**Summary:** +- The design is in [goip-tunnel.md](goip-tunnel.md); this document tracks progress against it. This increment + numbers its evidence from **V001 / DOC001**. +- **8S (the sidecar): done.** + - `internal/tnlsys` answers the ioctl, sysfs and `/proc` questions, live or from a JSON snapshot. + - `tnlsnap` records a snapshot by running the real `ip` under ptrace, keyed by each ioctl's exact input bytes. + - goip has its `GOIP_TNLSYS` seam (V001). + +## Contents + +- [Update rules](#update-rules) +- [Task checklist](#task-checklist) +- [Verification ledger](#verification-ledger) +- [Decision log](#decision-log) + +## Update rules + +- A state is one of `not started`, `in progress`, `blocked`, `done` or `deferred`. No percentages. +- A task is `done` only when its gates have passed and its evidence is in the [ledger](#verification-ledger). +- Evidence IDs (`V###` for code and VM runs, `DOC###` for docs) are immutable and append-only. +- Task IDs are never renumbered. + +## Task checklist + +| Done | Task | Work | State | Evidence | +|---|---|---|---|---| +| [x] | 8S | `internal/tnlsys`, `cmd/tnlsnap`, goip `runCtx.sys` | done | V001 | +| [ ] | 8C | `matrix_tunnel.go`, `matrix_tuntap.go`, two batches | not started | | +| [ ] | 8P | `xtcpnl_tunnel_parm.go` + table tests + fuzz + O-check | not started | | +| [ ] | 8R | goip `obj_tunnel.go`, `obj_tuntap.go`; corpus replay | not started | | +| [ ] | 8B | `upstream/iproute2-tunnel-tuntap.md` | not started | | +| [ ] | 8L | live diff | not started | | + +## Verification ledger + +| ID | Task | Evidence | +|---|---|---| +| V001 | 8S | **Package `internal/tnlsys`:** `Sys` (`Ioctl`, `ReadProp`, `TunFDs`) and the three request constants; the struct sizes 52/76/16/24, `IfName` (cut like `strlcpy`) and `ArgSize`. `Live` makes a raw `SYS_IOCTL` with a 64-byte `0xA5` spill window, reads sysfs under an `os.Root` at `/sys` (so the `class/net` symlinks resolve inside it), and walks `/proc` unsorted, self excluded. `Snapshot` matches each ioctl on family, request, name and input bytes. A miss is `ErrNotRecorded`. `Parse` refuses unknown fields, bad hex, unknown requests, negative errnos and out longer than in. `Trace` (linux/amd64) is a ptrace tracer that follows threads; other arches get a stub. **Tool:** `cmd/tnlsnap` (nix package `tnlsnap` in `nix/binaries.nix`): `tnlsnap -- ARGS` traces `ip ARGS` and prints the snapshot (traced ioctls, the tun devices' props, the tun descriptor walk, and the run's argv, rc, stdout and stderr). It runs nothing but `ip` as PATH resolves it, since it is a root ptrace tool fed from a rows file; `Trace` takes an `*exec.Cmd` and runs the ptrace work on a goroutine that keeps its thread locked until it exits. **goip:** `runCtx.sys` comes from `openSys`: `GOIP_TNLSYS`, else an empty snapshot under `GOIP_REPLAY`, else `Live`. **Tests:** `TestTnlsys`, 12 rows. Positive: a JSON round trip; a fallback device answering per input; the same device with zero input; spill returned; a 16-router PRL. Negative: recorded ENODEV; unrecorded input; unknown device. Boundary: empty snapshot; an argument 1 byte short. Corner: v4 and v6 under one name; a 17-byte name cut to 15. `TestSnapshotProps` 5 rows, `TestSnapshotTunFDs` 3, `TestParseRefuses` 8, `TestIfNameAndArgSize` 10, `TestLoad` 3 and `TestSocketError` 3. `TestLiveIoctl`, 5 rows, unprivileged: ENODEV; a write request refused; an empty argument and one over 64 KiB refused; family 9999 failing at `socket(2)` as `SocketError`. `TestSpillOf` 4. `TestLiveReadProp`, 7 rows over a fake sysfs, including a slash or `..` in the device and a symlink out of the root. `TestLiveTunFDs`, 6 rows over a fake `/proc`: comm present or missing; `12x` scanning as pid 12, as sscanf's `%d` does; `2a` reading fdinfo 2; self, `self`, non-tun links and a missing fdinfo skipped. `TestTrace`, 10 rows, unprivileged: the test binary re-run as a helper makes `SIOCGETTUNNEL` on `lo` (EOPNOTSUPP) and `SIOCGET6RD` on `nosuch0` (ENODEV), and the tracer records both with family, name and input, plus the helper's rc 3, stdout and stderr. `cmd/tnlsnap`: `TestRunUsage` 4 rows (no ip on PATH among them); `TestSnapshot` 8, over a fake sysfs and `/proc`, with `bonding_masters` and a non-tun `d0` skipped; `TestRunIP` 5, a fake `ip` on PATH (the test binary) recorded with its rc 4 and argv. `internal/goip` `TestOpenSys`, 6 rows. **Manual:** in `unshare -rn` on the host, with an ipip `t1`, `tnlsnap -- ip tunnel show` recorded `SIOCGETTUNNEL` for `tunl0` and `t1` (zero input, 52-byte outputs naming each). Coverage: tnlsys 82.3%, tnlsnap 87.2%. Gates: `go test -race ./internal/tnlsys/ ./cmd/tnlsnap/ ./internal/goip/`, vet (amd64 and arm64), gofmt, golangci-lint (comprehensive) 0 issues on the three packages, `CGO_ENABLED=0 go build ./...`. | + +## Decision log + +- **2026-11-23: record by tracing `ip`, not by asking every question (8S, a change from the plan).** + - The plan's `Record(sys, links)` would have asked each tunnel with a zeroed argument. But the kernel answers a + fallback device per the input (`ip_tunnel_ctl` looks up the tunnel the passed parm describes). And + `ip -6 tunnel show` fills the input with the ifindex and filter name, and the named path with the parsed + arguments. + - So tnlsnap runs `ip` itself under ptrace and records each ioctl with its exact input, and the snapshot matches on + it. A question goip asks that `ip` did not ask is `ErrNotRecorded` (a replay error), not the plan's `ENODEV`. A + wrong goip input therefore fails loudly instead of replaying another answer. + - The plan's `TestLiveSys` (root only) became the unprivileged `TestTrace` and `TestLiveIoctl`, plus the manual + user-namespace run in V001. 8C and 8L exercise the rest in the VM. +- **2026-11-23: the spill window (8S).** + - A v4 `ip tunnel show NAME` on an ip6gre device passes 52 bytes, and the kernel writes 76 (lead T19). `Live` and + `Trace` therefore watch 64 bytes past every argument. + - `Live` does so for memory safety too: a Go slice the kernel overruns would corrupt the heap. diff --git a/docs/netlink/goip-tunnel.md b/docs/netlink/goip-tunnel.md new file mode 100644 index 000000000..4ada225a1 --- /dev/null +++ b/docs/netlink/goip-tunnel.md @@ -0,0 +1,110 @@ +# goip `ip tunnel`, `ip -6 tunnel` and `ip tuntap`: design + +**Status:** increment 8, in progress. Progress is tracked in [goip-tunnel-status.md](goip-tunnel-status.md). +Findings will go in `upstream/iproute2-tunnel-tuntap.md` (8B; not submitted to netdev). + +## Contents + +- [Scope](#scope) +- [Why netlink is not enough](#why-netlink-is-not-enough) +- [The sidecar: internal/tnlsys](#the-sidecar-internaltnlsys) +- [Recording: tnlsnap](#recording-tnlsnap) +- [Replay in goip](#replay-in-goip) +- [Tasks](#tasks) + +## Scope + +**In:** +- `ip [-4|-6] tunnel [show|list|lst] [filters]` and the `tunl6` object. +- `ip tuntap|tap [show|list|lst]`. +- The options `-j -p -s -d -o`. + +goip must reproduce iproute2 7.2.0's stdout, stderr and exit status byte for byte. + +**Out:** the writes (`tunnel add/change/del/prl/6rd`, `tuntap add/del`) are ioctl or `TUNSETIFF` writes. goip refuses +them with `ErrNotImplemented`. + +## Why netlink is not enough + +`ip tunnel show` (`ip/tunnel.c` `do_tunnels_list`) dumps the links over rtnetlink. Then, for each link whose ARPHRD +matches the family, it asks the device with `SIOCGETTUNNEL`. The ioctl passes a `struct ip_tunnel_parm` (52 bytes) or +`struct ip6_tnl_parm2` (76 bytes) through `ifr_data`. An isatap tunnel adds `SIOCGETPRL` and a sit tunnel adds +`SIOCGET6RD`. With a mode, or a name starting with `gre`, `ipip`, `sit`, `isatap` or `vti`, it skips the dump and +asks the named device, or the mode's fallback device. + +`ip tuntap show` dumps links of kind `tun`. For each one it reads `/sys/class/net/DEV/{tun_flags,owner,group}`. Under +`-d` it walks `/proc/[0-9]*/fd/[0-9]*` for descriptors linked to `/dev/net/tun`, then reads their `fdinfo` and the +process's `comm`. + +None of that is netlink, so nlmon does not see it. strace shows the ioctl but not the struct behind `ifr_data`. + +**The answer depends on the question.** For a fallback device (`tunl0`, `gre0`, `sit0`, `ip_vti0`, `ip6tnl0`, +`ip6gre0`), the kernel looks up the tunnel the passed parameters describe and returns that tunnel's parameters, or the +fallback's own: +- `net/ipv4/ip_tunnel.c` `ip_tunnel_ctl`, `case SIOCGETTUNNEL`; +- `net/ipv6/ip6_tunnel.c` `ip6_tnl_siocdevprivate`; +- `net/ipv6/ip6_gre.c` `ip6gre_tunnel_siocdevprivate`. + +`ip -6 tunnel show` also fills each input itself (`ip6_tnl_parm_initialize`), with the link's ifindex and the filter +name. A snapshot keyed by device name alone would answer the wrong question. + +## The sidecar: internal/tnlsys + +`tnlsys.Sys` is the seam: + +```go +Ioctl(family int, req uint32, name string, arg []byte) (spill []byte, err error) +ReadProp(dev, prop string) (string, error) +TunFDs() ([]TunFD, error) +``` + +- **`Live`** asks the kernel: + - It makes a raw `SYS_IOCTL` on a fresh `SOCK_DGRAM` socket of the family, as `tnl_get_ioctl` does. The ifreq is + laid out as in `pkg/linkmonitor`. + - The kernel writes into a copy of the argument that is `SpillWindow` bytes longer, filled with `0xA5`. A reply + larger than the argument therefore lands in memory Live owns, and comes back as `spill` instead of corrupting the + heap. ip6gre copies 76 bytes whatever it was given. + - sysfs and procfs are read under `os.Root`. + - The `/proc` walk keeps directory order, as glob's `GLOB_NOSORT` does, and skips the caller's own pid. +- **`Snapshot`** answers from a JSON sidecar. Each ioctl is keyed by family, request, name (cut as `strlcpy` cuts it) + and the exact input bytes. + - A recorded failure comes back as its errno. + - A question the recording never saw is `ErrNotRecorded`, a replay error. It is never `ENODEV`, because a real + `ENODEV` is recorded as such. + +## Recording: tnlsnap + +`tnlsnap -- ip ARGS...` (`cmd/tnlsnap`, nix package `tnlsnap`) does three things: +1. It runs the real `ip` under ptrace (`tnlsys.Trace`, linux/amd64). At each `ioctl` entry for the three requests, it + reads the ifreq, then the argument plus `SpillWindow` bytes. At the exit, it reads the same window again. + - The family comes from the `socket(2)` that made the descriptor. + - A `SIOCGETPRL` argument is sized from its own `datalen`. + - Threads are followed (`PTRACE_O_TRACECLONE`), so a multithreaded test helper records as `ip` does. +2. It records `tun_flags`, `owner` and `group` of every tun device in `/sys/class/net`. +3. It records the `/dev/net/tun` descriptor walk. + +It prints the snapshot as JSON. The traced run's own stdout, stderr and status go into the snapshot's `run`, so a +capture can check that the recorded run matched the captured one. + +A capture row runs it as a readback, `{name: "tnlsys", cmd: "tnlsnap -- ip "}`. The readback goes to +the row's `tnlsys.out`. + +## Replay in goip + +`runCtx.sys` comes from `openSys` (`internal/goip/goip.go`): +- `GOIP_TNLSYS=` loads a snapshot. +- `GOIP_REPLAY` without it gives an empty snapshot, so a replay never asks the host's kernel. +- Otherwise the kernel is asked live. + +It is an environment variable, as `GOIP_REPLAY` is, so goip's argv stays ip's. + +## Tasks + +| Task | Work | +|---|---| +| 8S | `internal/tnlsys`, `cmd/tnlsnap`, goip's `runCtx.sys` | +| 8C | capture spaces `tunnel` and `tuntap` (`tools/nlcapgen`), with the `tnlsys` readback | +| 8P | `pkg/xtcpnl/xtcpnl_tunnel_parm.go`: the parm, PRL and 6rd structs, and `tun_flags` | +| 8R | goip `obj_tunnel.go`, `obj_tuntap.go`; corpus replay with the sidecar | +| 8B | the bug hunt: `upstream/iproute2-tunnel-tuntap.md` | +| 8L | live diff on the workbench VM | diff --git a/internal/goip/dispatch.go b/internal/goip/dispatch.go index e1004ac36..5509c8b80 100644 --- a/internal/goip/dispatch.go +++ b/internal/goip/dispatch.go @@ -7,6 +7,7 @@ import ( "time" "github.com/randomizedcoder/xtcp2/internal/goip/req" + "github.com/randomizedcoder/xtcp2/internal/tnlsys" "golang.org/x/sys/unix" ) @@ -246,6 +247,9 @@ func wideStatsObject(args []string) bool { type runCtx struct { src Source lltab *LLTab + // sys answers what tunnel and tuntap ask outside netlink: the + // SIOCGETTUNNEL family of ioctls, sysfs and /proc. See openSys. + sys tnlsys.Sys // in is stdin, which only the showdump and restore verbs read. in io.Reader out io.Writer diff --git a/internal/goip/goip.go b/internal/goip/goip.go index 85b367eee..cd068681a 100644 --- a/internal/goip/goip.go +++ b/internal/goip/goip.go @@ -5,6 +5,8 @@ import ( "fmt" "io" "os" + + "github.com/randomizedcoder/xtcp2/internal/tnlsys" ) // Exit codes, matching `ip`: 1 for a usage or argument error, 2 for a runtime @@ -127,6 +129,10 @@ func run(args []string, stdin io.Reader, stdout, stderr io.Writer) int { }() c.src = src + if c.sys, err = openSys(); err != nil { + fmt.Fprintf(stderr, "goip: %v\n", err) + return ExitFailure + } if err := obj.run(c, args[1:]); err != nil { fmt.Fprintf(stderr, "goip: %v\n", err) @@ -227,6 +233,22 @@ func openSource() (Source, func() error, error) { return s, s.Close, nil } +// openSys picks what tunnel and tuntap ask outside netlink: the snapshot +// GOIP_TNLSYS names (a tnlsnap sidecar, internal/tnlsys), an empty one +// under GOIP_REPLAY, so a replay never asks the host's kernel and a +// question its capture did not record fails as a replay error, or the +// live kernel. Like GOIP_REPLAY it is an environment variable so goip's +// argv stays ip's. +func openSys() (tnlsys.Sys, error) { + if p := os.Getenv("GOIP_TNLSYS"); p != "" { + return tnlsys.Load(p) + } + if _, ok := replayPathFromEnv(); ok { + return &tnlsys.Snapshot{}, nil + } + return tnlsys.Live{}, nil +} + // missLoopCount is utils.c's missarg for `-loops` with no count, which exits // -1, so the status is 255. func missLoopCount(stderr io.Writer) int { diff --git a/internal/goip/tnlsys_seam_test.go b/internal/goip/tnlsys_seam_test.go new file mode 100644 index 000000000..2e0ab4caa --- /dev/null +++ b/internal/goip/tnlsys_seam_test.go @@ -0,0 +1,64 @@ +package goip + +import ( + "os" + "path/filepath" + "strings" + "testing" + + "github.com/randomizedcoder/xtcp2/internal/tnlsys" +) + +func TestOpenSys(t *testing.T) { + dir := t.TempDir() + good := filepath.Join(dir, "tnlsys.out") + if err := os.WriteFile(good, []byte(`{"tunfds":[]}`), 0o600); err != nil { + t.Fatal(err) + } + bad := filepath.Join(dir, "bad.out") + if err := os.WriteFile(bad, []byte(`{"bogus":1}`), 0o600); err != nil { + t.Fatal(err) + } + tests := []struct { + description string + tnlsys string + replay string + want string + wantErr string + }{ + {"positive: GOIP_TNLSYS loads the snapshot", good, "", "snapshot-recorded", ""}, + {"positive: GOIP_TNLSYS wins over GOIP_REPLAY", good, "x.pcap", "snapshot-recorded", ""}, + {"positive: no variables asks the kernel", "", "", "live", ""}, + {"negative: a missing sidecar is an error", filepath.Join(dir, "nope"), "", "", "no such file"}, + {"negative: a malformed sidecar is an error", bad, "", "", "unknown field"}, + {"corner: a replay with no sidecar answers nothing, never the host", "", "x.pcap", "snapshot-empty", ""}, + } + for _, tc := range tests { + t.Run(tc.description, func(t *testing.T) { + t.Setenv("GOIP_TNLSYS", tc.tnlsys) + t.Setenv("GOIP_REPLAY", tc.replay) + sys, err := openSys() + if tc.wantErr != "" { + if err == nil || !strings.Contains(err.Error(), tc.wantErr) { + t.Fatalf("err = %v, want %q", err, tc.wantErr) + } + return + } + if err != nil { + t.Fatal(err) + } + got := "live" + if s, ok := sys.(*tnlsys.Snapshot); ok { + got = "snapshot-empty" + if _, err := s.TunFDs(); err == nil { + got = "snapshot-recorded" + } + } else if _, ok := sys.(tnlsys.Live); !ok { + got = "other" + } + if got != tc.want { + t.Errorf("sys = %s, want %s", got, tc.want) + } + }) + } +} diff --git a/internal/tnlsys/live_linux.go b/internal/tnlsys/live_linux.go new file mode 100644 index 000000000..29caaf180 --- /dev/null +++ b/internal/tnlsys/live_linux.go @@ -0,0 +1,211 @@ +package tnlsys + +import ( + "errors" + "io" + "os" + "path" + "runtime" + "strconv" + "unsafe" + + "golang.org/x/sys/unix" +) + +// spillFill is what Live fills the bytes past an argument with, so a +// kernel write there shows. +const spillFill = 0xA5 + +// tunDev is TUNDEV, the path a tun descriptor's /proc link reads. +const tunDev = "/dev/net/tun" + +// Live asks the kernel. SysRoot and ProcRoot default to /sys and /proc; +// a test points them at a fake tree. +type Live struct { + SysRoot string + ProcRoot string +} + +// ifreqData is struct ifreq with the ifr_data member, as +// pkg/linkmonitor's ethtoolIfreq: the pointer stays visible to the GC, and +// the union is 24 bytes on 64-bit Linux, 16 on 32-bit. +type ifreqData struct { + name [ifNameSize]byte + data unsafe.Pointer + padding [8 + unsafe.Sizeof(uintptr(0))]byte +} + +// Ioctl makes req on a fresh socket, as tnl_get_ioctl and tnl_gen_ioctl +// do. The kernel writes into a copy of arg SpillWindow bytes longer, so a +// reply larger than arg lands in Go memory Live owns and comes back as +// spill instead of corrupting the heap. +func (l Live) Ioctl(family int, req uint32, name string, arg []byte) (spill []byte, err error) { + if !knownReq(req) || len(arg) == 0 || len(arg) > maxArg { + return nil, ErrRequest + } + fd, err := unix.Socket(family, unix.SOCK_DGRAM|unix.SOCK_CLOEXEC, 0) + if err != nil { + return nil, &SocketError{Err: err} + } + defer func() { + if cerr := unix.Close(fd); cerr != nil && err == nil { + err = cerr + } + }() + buf := make([]byte, len(arg)+SpillWindow) + copy(buf, arg) + for i := len(arg); i < len(buf); i++ { + buf[i] = spillFill + } + var ifr ifreqData + copy(ifr.name[:], IfName(name)) + ifr.data = unsafe.Pointer(&buf[0]) + _, _, errno := unix.Syscall(unix.SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(unsafe.Pointer(&ifr))) + runtime.KeepAlive(buf) + if errno != 0 { + return nil, errno + } + copy(arg, buf) + return spillOf(buf[len(arg):]), nil +} + +// spillOf is the window past an argument when the kernel wrote into it, +// nil when every byte is still spillFill. +func spillOf(w []byte) []byte { + for _, c := range w { + if c != spillFill { + return append([]byte(nil), w...) + } + } + return nil +} + +func (l Live) sysRoot() string { + if l.SysRoot != "" { + return l.SysRoot + } + return "/sys" +} + +func (l Live) procRoot() string { + if l.ProcRoot != "" { + return l.ProcRoot + } + return "/proc" +} + +// ReadProp reads /sys/class/net/DEV/PROP under an os.Root at SysRoot: the +// class/net entries are symlinks into devices/, which stay inside it. A +// name with a slash, or "." or "..", is ENOENT, as no device has one. +func (l Live) ReadProp(dev, prop string) (string, error) { + if !plainName(dev) || !plainName(prop) { + return "", unix.ENOENT + } + b, err := l.readSys(path.Join("class/net", dev, prop)) + if err != nil { + return "", errnoOf(err) + } + return string(b), nil +} + +func (l Live) readSys(name string) (b []byte, err error) { + r, err := os.OpenRoot(l.sysRoot()) + if err != nil { + return nil, err + } + defer closeInto(r, &err) + return r.ReadFile(name) +} + +// plainName is a single path element. +func plainName(s string) bool { + return s != "" && s != "." && s != ".." && path.Base(s) == s && s[0] != '/' +} + +// TunFDs is show_processes' walk: /proc/[0-9]*/fd/[0-9]* in directory +// order (glob with GLOB_NOSORT), the caller's own pid skipped, the +// descriptors whose link is /dev/net/tun kept with their fdinfo and their +// process's comm. A process or descriptor that goes away mid-walk is +// skipped; `ip` prints perror for those, which no recording reproduces. +func (l Live) TunFDs() (_ []TunFD, err error) { + r, err := os.OpenRoot(l.procRoot()) + if err != nil { + return nil, err + } + defer closeInto(r, &err) + pids, err := readDirNames(r, ".") + if err != nil { + return nil, err + } + self := os.Getpid() + out := []TunFD{} + for _, p := range pids { + pid, ok := leadingInt(p) + if !ok || pid == self { + continue + } + fds, err := readDirNames(r, p+"/fd") + if err != nil { + continue + } + for _, f := range fds { + fd, ok := leadingInt(f) + if !ok { + continue + } + link, err := r.Readlink(p + "/fd/" + f) + if err != nil || link != tunDev { + continue + } + info, err := r.ReadFile(p + "/fdinfo/" + strconv.Itoa(fd)) + if err != nil { + continue + } + t := TunFD{Pid: pid, FD: fd, FdInfo: string(info)} + if comm, err := r.ReadFile(p + "/comm"); err == nil { + t.Comm = string(comm) + } else { + t.NoComm = true + } + out = append(out, t) + } + } + return out, nil +} + +// readDirNames is a directory's names unsorted, in the order readdir +// returns them, as glob's GLOB_NOSORT leaves them. +func readDirNames(r *os.Root, dir string) (_ []string, err error) { + f, err := r.Open(dir) + if err != nil { + return nil, err + } + defer closeInto(f, &err) + names, err := f.Readdirnames(-1) + if err != nil && !errors.Is(err, io.EOF) { + return nil, err + } + return names, nil +} + +// leadingInt is sscanf's %d on a name glob's [0-9]* matched: the leading +// digits, which must be there. +func leadingInt(s string) (int, bool) { + n := 0 + for n < len(s) && s[n] >= '0' && s[n] <= '9' { + n++ + } + if n == 0 { + return 0, false + } + v, err := strconv.Atoi(s[:n]) + return v, err == nil +} + +// closeInto closes c, reporting its error through *err unless an earlier +// one is already there. +func closeInto(c io.Closer, err *error) { + if cerr := c.Close(); cerr != nil && *err == nil { + *err = cerr + } +} diff --git a/internal/tnlsys/snapshot.go b/internal/tnlsys/snapshot.go new file mode 100644 index 000000000..2a4ca7960 --- /dev/null +++ b/internal/tnlsys/snapshot.go @@ -0,0 +1,221 @@ +package tnlsys + +import ( + "bytes" + "encoding/hex" + "encoding/json" + "errors" + "fmt" + "os" + + "golang.org/x/sys/unix" +) + +// IoctlRec is one ioctl `ip` made: what it passed and what came back. +// In, Out and Spill are hex. Out is absent when the call failed and wrote +// nothing; Spill is what the kernel wrote past the argument, absent for +// nothing. +type IoctlRec struct { + Family int `json:"family"` + Req string `json:"req"` + Name string `json:"name"` + In string `json:"in"` + Out string `json:"out,omitempty"` + Spill string `json:"spill,omitempty"` + Errno unix.Errno `json:"errno,omitempty"` +} + +// PropRec is one sysfs property: its content, or the errno opening or +// reading it failed with. +type PropRec struct { + Dev string `json:"dev"` + Prop string `json:"prop"` + Value string `json:"value,omitempty"` + Errno unix.Errno `json:"errno,omitempty"` +} + +// Run is the traced `ip` run a snapshot came from, kept so a capture can +// check the recording saw the run the capture did. +type Run struct { + Argv []string `json:"argv"` + RC int `json:"rc"` + Stdout string `json:"stdout"` + Stderr string `json:"stderr"` +} + +// Snapshot is a recorded Sys: the JSON sidecar a capture row carries. +// A question it holds no answer for is ErrNotRecorded. +type Snapshot struct { + Ioctls []IoctlRec `json:"ioctls,omitempty"` + Props []PropRec `json:"props,omitempty"` + // Fds is nil when the walk was not recorded, and an empty slice + // when it found nothing. + Fds *[]TunFD `json:"tunfds,omitempty"` + Run *Run `json:"run,omitempty"` + + ioctls []ioctlEntry +} + +// ioctlEntry is an IoctlRec decoded. +type ioctlEntry struct { + family int + req uint32 + name string + in, out, spill []byte + errno unix.Errno +} + +// Load reads a snapshot file. +func Load(path string) (*Snapshot, error) { + b, err := os.ReadFile(path) + if err != nil { + return nil, fmt.Errorf("tnlsys: %w", err) + } + return Parse(b) +} + +// Parse decodes a snapshot, refusing unknown fields, bad hex and unknown +// requests, so a hand-edited sidecar fails loudly. +func Parse(b []byte) (*Snapshot, error) { + var s Snapshot + d := json.NewDecoder(bytes.NewReader(b)) + d.DisallowUnknownFields() + if err := d.Decode(&s); err != nil { + return nil, fmt.Errorf("tnlsys: snapshot: %w", err) + } + if d.More() { + return nil, errors.New("tnlsys: snapshot: trailing data") + } + if err := s.decode(); err != nil { + return nil, err + } + return &s, nil +} + +func (s *Snapshot) decode() error { + s.ioctls = make([]ioctlEntry, 0, len(s.Ioctls)) + for i, r := range s.Ioctls { + e, err := decodeIoctl(r) + if err != nil { + return fmt.Errorf("tnlsys: snapshot ioctl %d: %w", i, err) + } + s.ioctls = append(s.ioctls, e) + } + return nil +} + +func decodeIoctl(r IoctlRec) (ioctlEntry, error) { + req, ok := reqByName(r.Req) + if !ok { + return ioctlEntry{}, fmt.Errorf("unknown request %q", r.Req) + } + e := ioctlEntry{family: r.Family, req: req, name: IfName(r.Name), errno: r.Errno} + var err error + if e.in, err = hex.DecodeString(r.In); err != nil { + return ioctlEntry{}, fmt.Errorf("in: %w", err) + } + if e.out, err = hex.DecodeString(r.Out); err != nil { + return ioctlEntry{}, fmt.Errorf("out: %w", err) + } + if e.spill, err = hex.DecodeString(r.Spill); err != nil { + return ioctlEntry{}, fmt.Errorf("spill: %w", err) + } + if len(e.out) > len(e.in) { + return ioctlEntry{}, fmt.Errorf("out is %d bytes, in %d", len(e.out), len(e.in)) + } + return e, nil +} + +// Marshal is the snapshot as the sidecar file holds it. +func (s *Snapshot) Marshal() ([]byte, error) { + b, err := json.MarshalIndent(s, "", " ") + if err != nil { + return nil, fmt.Errorf("tnlsys: snapshot: %w", err) + } + return append(b, '\n'), nil +} + +// AddIoctl records one ioctl, as Trace and tests build a snapshot. +func (s *Snapshot) AddIoctl(family int, req uint32, name string, in, out, spill []byte, errno unix.Errno) { + r := IoctlRec{ + Family: family, Req: ReqName(req), Name: IfName(name), + In: hex.EncodeToString(in), Out: hex.EncodeToString(out), + Spill: hex.EncodeToString(spill), Errno: errno, + } + s.Ioctls = append(s.Ioctls, r) + s.ioctls = append(s.ioctls, ioctlEntry{ + family: family, req: req, name: r.Name, + in: bytes.Clone(in), out: bytes.Clone(out), spill: bytes.Clone(spill), errno: errno, + }) +} + +// Ioctl answers from the recording: the entry with the same family, +// request, name and input bytes. +func (s *Snapshot) Ioctl(family int, req uint32, name string, arg []byte) ([]byte, error) { + name = IfName(name) + for _, e := range s.ioctls { + if e.family != family || e.req != req || e.name != name || !bytes.Equal(e.in, arg) { + continue + } + copy(arg, e.out) + if e.errno != 0 { + return nil, e.errno + } + return bytes.Clone(e.spill), nil + } + return nil, fmt.Errorf("%w: %s %s family %d", ErrNotRecorded, ReqName(req), name, family) +} + +// ReadProp answers from the recording. +func (s *Snapshot) ReadProp(dev, prop string) (string, error) { + for _, p := range s.Props { + if p.Dev != dev || p.Prop != prop { + continue + } + if p.Errno != 0 { + return "", p.Errno + } + return p.Value, nil + } + return "", fmt.Errorf("%w: prop %s/%s", ErrNotRecorded, dev, prop) +} + +// TunFDs answers from the recording. +func (s *Snapshot) TunFDs() ([]TunFD, error) { + if s.Fds == nil { + return nil, fmt.Errorf("%w: tun descriptors", ErrNotRecorded) + } + return append([]TunFD(nil), (*s.Fds)...), nil +} + +// TunProps are the sysfs files print_tuntap reads. +var TunProps = []string{"tun_flags", "owner", "group"} + +// RecordProps reads TunProps of every tun device in devs through sys into +// s, failures as their errno. An entry with no tun_flags file (ENOENT, or +// ENOTDIR for a file such as bonding_masters) is not a tun device and is +// skipped: print_tuntap reads the files only for links of kind "tun". +func (s *Snapshot) RecordProps(sys Sys, devs []string) { + for _, d := range devs { + if _, err := sys.ReadProp(d, TunProps[0]); errors.Is(err, unix.ENOENT) || errors.Is(err, unix.ENOTDIR) { + continue + } + for _, p := range TunProps { + v, err := sys.ReadProp(d, p) + r := PropRec{Dev: d, Prop: p, Value: v} + if err != nil { + r.Value, r.Errno = "", errnoOf(err) + } + s.Props = append(s.Props, r) + } + } +} + +// errnoOf is err's errno, EIO for an error that carries none. +func errnoOf(err error) unix.Errno { + var e unix.Errno + if errors.As(err, &e) { + return e + } + return unix.EIO +} diff --git a/internal/tnlsys/tnlsys.go b/internal/tnlsys/tnlsys.go new file mode 100644 index 000000000..19366c5fc --- /dev/null +++ b/internal/tnlsys/tnlsys.go @@ -0,0 +1,169 @@ +// Package tnlsys answers the questions `ip tunnel` and `ip tuntap` ask the +// kernel outside netlink, live or from a recorded snapshot. +// +// iproute2 7.2.0's `ip tunnel show` dumps the links over rtnetlink, then +// asks each tunnel for its parameters with a SIOCGETTUNNEL ioctl +// (ip/tunnel.c tnl_get_ioctl), an isatap tunnel for its routers with +// SIOCGETPRL and a sit tunnel for its 6rd prefix with SIOCGET6RD. +// `ip tuntap show` reads /sys/class/net/DEV/{tun_flags,owner,group} +// (lib/utils.c read_prop) and, under -d, walks /proc for the processes +// holding /dev/net/tun (ip/iptuntap.c show_processes). nlmon sees none of +// that, and strace does not dump the struct behind ifr_data, so a netlink +// capture alone cannot replay these objects. +// +// Sys is the seam: Live asks the kernel, Snapshot answers from a JSON +// sidecar, and Trace (tnlsnap) records one by running the real `ip` under +// ptrace, so a snapshot holds exactly the ioctls `ip` made, each keyed by +// the bytes it passed in. That matters because the kernel's answer for a +// fallback device (gre0, ip6tnl0, ...) depends on those bytes: it looks up +// the tunnel the passed parameters describe (net/ipv4/ip_tunnel.c +// ip_tunnel_ctl, net/ipv6/ip6_tunnel.c ip6_tnl_siocdevprivate). +// +// The package has no goip imports: goip and tnlsnap both use it. +package tnlsys + +import ( + "errors" + "fmt" + "strings" +) + +// The ioctls `ip` reads tunnels with (include/uapi/linux/if_tunnel.h: +// SIOCDEVPRIVATE plus 0, 4 and 8). +const ( + SIOCGETTUNNEL uint32 = 0x89F0 + SIOCGETPRL uint32 = 0x89F4 + SIOCGET6RD uint32 = 0x89F8 +) + +// The C struct sizes those ioctls carry. +const ( + // IPTunnelParmSize is sizeof(struct ip_tunnel_parm): name[16], link, + // i_flags, o_flags, i_key, o_key and a 20-byte struct iphdr. + IPTunnelParmSize = 52 + // IP6TnlParm2Size is sizeof(struct ip6_tnl_parm2). + IP6TnlParm2Size = 76 + // TunnelPRLSize is sizeof(struct ip_tunnel_prl). + TunnelPRLSize = 16 + // Tunnel6RDSize is sizeof(struct ip_tunnel_6rd). + Tunnel6RDSize = 24 +) + +// SpillWindow is how many bytes past an ioctl's argument Live and Trace +// watch. A kernel that answers with a larger struct than `ip` passed +// writes past the buffer: ip6gre copies a 76-byte ip6_tnl_parm2 whatever +// buffer it was given, so `ip tunnel show` naming an ip6gre device has it +// write 24 bytes past a 52-byte ip_tunnel_parm. +const SpillWindow = 64 + +// maxArg bounds an ioctl argument: a SIOCGETPRL buffer is 16 bytes per +// router, and `ip` asks for 16. +const maxArg = 64 << 10 + +// ifNameSize is IFNAMSIZ. +const ifNameSize = 16 + +// ErrNotRecorded is a snapshot asked a question its recording never saw. +// It is a replay error, not a kernel answer: a recorded failure comes back +// as its errno. +var ErrNotRecorded = errors.New("tnlsys: not in the snapshot") + +// ErrRequest is an ioctl Live refuses to make: not one of the three gets, +// or an argument of no or absurd size. +var ErrRequest = errors.New("tnlsys: ioctl request refused") + +// SocketError is socket(2) failing before the ioctl, which `ip` reports as +// "create socket failed: %s". +type SocketError struct{ Err error } + +func (e *SocketError) Error() string { return "tnlsys: socket: " + e.Err.Error() } + +func (e *SocketError) Unwrap() error { return e.Err } + +// TunFD is one /dev/net/tun descriptor show_processes finds: the process +// and descriptor numbers, the descriptor's fdinfo text (whose "iff:" line +// names the device), and the process's comm file, NoComm when it could not +// be read (get_task_name failing, which `ip` prints as ""). +type TunFD struct { + Pid int `json:"pid"` + FD int `json:"fd"` + FdInfo string `json:"fdinfo"` + Comm string `json:"comm,omitempty"` + NoComm bool `json:"nocomm,omitempty"` +} + +// Sys is what `ip tunnel` and `ip tuntap` ask outside netlink. +type Sys interface { + // Ioctl makes req on a SOCK_DGRAM socket of family for the device + // name (cut as strlcpy into ifr_name cuts it), with arg as ifr_data. + // arg is updated in place. spill is what the kernel wrote past arg, + // nil for nothing. A kernel refusal is its unix.Errno. + Ioctl(family int, req uint32, name string, arg []byte) (spill []byte, err error) + // ReadProp is the content of /sys/class/net/DEV/PROP, or its errno. + ReadProp(dev, prop string) (string, error) + // TunFDs is every /dev/net/tun descriptor in /proc, in directory + // order, the caller's own excluded. + TunFDs() ([]TunFD, error) +} + +// ReqName names a request for a snapshot. +func ReqName(req uint32) string { + switch req { + case SIOCGETTUNNEL: + return "SIOCGETTUNNEL" + case SIOCGETPRL: + return "SIOCGETPRL" + case SIOCGET6RD: + return "SIOCGET6RD" + } + return fmt.Sprintf("%#x", req) +} + +// reqByName is ReqName's inverse for the three known requests. +func reqByName(s string) (uint32, bool) { + for _, r := range []uint32{SIOCGETTUNNEL, SIOCGETPRL, SIOCGET6RD} { + if ReqName(r) == s { + return r, true + } + } + return 0, false +} + +// knownReq is whether req is one of the three gets. +func knownReq(req uint32) bool { + _, ok := reqByName(ReqName(req)) + return ok +} + +// IfName is name as strlcpy(ifr.ifr_name, name, IFNAMSIZ) leaves it: cut +// at a NUL and at IFNAMSIZ-1 bytes. +func IfName(name string) string { + if i := strings.IndexByte(name, 0); i >= 0 { + name = name[:i] + } + if len(name) > ifNameSize-1 { + name = name[:ifNameSize-1] + } + return name +} + +// ArgSize is the argument size `ip` passes for req: the parm struct of +// family for SIOCGETTUNNEL, 16 routers for SIOCGETPRL, one ip_tunnel_6rd +// for SIOCGET6RD. +func ArgSize(family int, req uint32) int { + switch req { + case SIOCGETTUNNEL: + if family == afInet6 { + return IP6TnlParm2Size + } + return IPTunnelParmSize + case SIOCGETPRL: + return 16 * TunnelPRLSize + case SIOCGET6RD: + return Tunnel6RDSize + } + return 0 +} + +// afInet6 is AF_INET6, spelled here so the package builds off Linux. +const afInet6 = 10 diff --git a/internal/tnlsys/tnlsys_test.go b/internal/tnlsys/tnlsys_test.go new file mode 100644 index 000000000..346976753 --- /dev/null +++ b/internal/tnlsys/tnlsys_test.go @@ -0,0 +1,582 @@ +package tnlsys + +import ( + "bytes" + "encoding/hex" + "errors" + "fmt" + "os" + "os/exec" + "path/filepath" + "slices" + "strings" + "testing" + + "golang.org/x/sys/unix" +) + +// helperEnv makes the test binary, run as a child, the command TestTrace +// traces. +const helperEnv = "TNLSYS_TRACE_HELPER" + +func TestMain(m *testing.M) { + if os.Getenv(helperEnv) == "1" { + os.Exit(traceHelper()) + } + os.Exit(m.Run()) +} + +// traceHelper makes two tunnel ioctls and one other, writes to both +// streams and exits 3. +func traceHelper() int { + var l Live + a := make([]byte, IPTunnelParmSize) + copy(a, "lo") + _, err1 := l.Ioctl(unix.AF_INET, SIOCGETTUNNEL, "lo", a) + b := make([]byte, Tunnel6RDSize) + _, err2 := l.Ioctl(unix.AF_INET, SIOCGET6RD, "nosuch0", b) + fmt.Printf("%v|%v\n", err1, err2) + fmt.Fprint(os.Stderr, "helper stderr") + return 3 +} + +func parm(name string, fill byte) []byte { + b := bytes.Repeat([]byte{fill}, IPTunnelParmSize) + copy(b, name+"\x00") + return b +} + +// fixture is a snapshot built the way Trace builds one. +func fixture() *Snapshot { + var s Snapshot + s.AddIoctl(unix.AF_INET, SIOCGETTUNNEL, "gre1", parm("", 0), parm("gre1", 1), nil, 0) + s.AddIoctl(unix.AF_INET, SIOCGETTUNNEL, "gre0", parm("", 0), parm("gre0", 2), nil, 0) + s.AddIoctl(unix.AF_INET, SIOCGETTUNNEL, "gre0", parm("", 7), parm("gre9", 3), nil, 0) + s.AddIoctl(unix.AF_INET6, SIOCGETTUNNEL, "gre1", parm("", 0), parm("gre1", 4), nil, 0) + s.AddIoctl(unix.AF_INET, SIOCGETTUNNEL, "gone0", parm("", 0), nil, nil, unix.ENODEV) + s.AddIoctl(unix.AF_INET, SIOCGETTUNNEL, "ip6gre1", parm("", 0), parm("ip6gre1", 5), []byte{9, 9}, 0) + s.AddIoctl(unix.AF_INET, SIOCGETPRL, "isa1", make([]byte, 16*TunnelPRLSize), bytes.Repeat([]byte{6}, 16*TunnelPRLSize), nil, 0) + s.Props = []PropRec{ + {Dev: "tap0", Prop: "tun_flags", Value: "0x1002\n"}, + {Dev: "tap0", Prop: "owner", Value: "-1\n"}, + {Dev: "tap1", Prop: "group", Errno: unix.ENOENT}, + } + fds := []TunFD{{Pid: 10, FD: 3, FdInfo: "iff:\ttap0\n", Comm: "holder\n"}} + s.Fds = &fds + return &s +} + +// roundTrip is s through its JSON form. +func roundTrip(t *testing.T, s *Snapshot) *Snapshot { + t.Helper() + b, err := s.Marshal() + if err != nil { + t.Fatal(err) + } + got, err := Parse(b) + if err != nil { + t.Fatalf("Parse(%s): %v", b, err) + } + return got +} + +func TestTnlsys(t *testing.T) { + type ask struct { + family int + req uint32 + name string + in []byte + } + tests := []struct { + description string + snap func(t *testing.T) *Snapshot + ask ask + wantOut []byte + wantSpill []byte + wantErr error + }{ + { + description: "positive: an ioctl after a JSON round trip answers its recorded output", + snap: func(t *testing.T) *Snapshot { return roundTrip(t, fixture()) }, + ask: ask{unix.AF_INET, SIOCGETTUNNEL, "gre1", parm("", 0)}, + wantOut: parm("gre1", 1), + }, + { + description: "positive: a fallback device answers per input bytes", + snap: func(t *testing.T) *Snapshot { return roundTrip(t, fixture()) }, + ask: ask{unix.AF_INET, SIOCGETTUNNEL, "gre0", parm("", 7)}, + wantOut: parm("gre9", 3), + }, + { + description: "positive: the same fallback device with zero input answers itself", + snap: func(t *testing.T) *Snapshot { return fixture() }, + ask: ask{unix.AF_INET, SIOCGETTUNNEL, "gre0", parm("", 0)}, + wantOut: parm("gre0", 2), + }, + { + description: "positive: the kernel's write past the argument comes back as spill", + snap: func(t *testing.T) *Snapshot { return roundTrip(t, fixture()) }, + ask: ask{unix.AF_INET, SIOCGETTUNNEL, "ip6gre1", parm("", 0)}, + wantOut: parm("ip6gre1", 5), + wantSpill: []byte{9, 9}, + }, + { + description: "positive: a PRL read of 16 routers", + snap: func(t *testing.T) *Snapshot { return roundTrip(t, fixture()) }, + ask: ask{unix.AF_INET, SIOCGETPRL, "isa1", make([]byte, 16*TunnelPRLSize)}, + wantOut: bytes.Repeat([]byte{6}, 16*TunnelPRLSize), + }, + { + description: "negative: a recorded errno comes back as itself, the argument untouched", + snap: func(t *testing.T) *Snapshot { return roundTrip(t, fixture()) }, + ask: ask{unix.AF_INET, SIOCGETTUNNEL, "gone0", parm("", 0)}, + wantOut: parm("", 0), + wantErr: unix.ENODEV, + }, + { + description: "negative: input bytes never recorded are not recorded, not ENODEV", + snap: func(t *testing.T) *Snapshot { return fixture() }, + ask: ask{unix.AF_INET, SIOCGETTUNNEL, "gre1", parm("", 1)}, + wantOut: parm("", 1), + wantErr: ErrNotRecorded, + }, + { + description: "negative: an unknown device is not recorded", + snap: func(t *testing.T) *Snapshot { return fixture() }, + ask: ask{unix.AF_INET, SIOCGETTUNNEL, "nosuch", parm("", 0)}, + wantOut: parm("", 0), + wantErr: ErrNotRecorded, + }, + { + description: "boundary: an empty snapshot answers nothing", + snap: func(t *testing.T) *Snapshot { + s, err := Parse([]byte("{}")) + if err != nil { + t.Fatal(err) + } + return s + }, + ask: ask{unix.AF_INET, SIOCGETTUNNEL, "gre1", parm("", 0)}, + wantOut: parm("", 0), + wantErr: ErrNotRecorded, + }, + { + description: "boundary: an argument one byte short of the recorded input misses", + snap: func(t *testing.T) *Snapshot { return fixture() }, + ask: ask{unix.AF_INET, SIOCGETTUNNEL, "gre1", parm("", 0)[:IPTunnelParmSize-1]}, + wantOut: parm("", 0)[:IPTunnelParmSize-1], + wantErr: ErrNotRecorded, + }, + { + description: "corner: v4 and v6 under one name are kept apart", + snap: func(t *testing.T) *Snapshot { return roundTrip(t, fixture()) }, + ask: ask{unix.AF_INET6, SIOCGETTUNNEL, "gre1", parm("", 0)}, + wantOut: parm("gre1", 4), + }, + { + description: "corner: a name longer than IFNAMSIZ-1 is cut as strlcpy cuts it", + snap: func(t *testing.T) *Snapshot { + var s Snapshot + s.AddIoctl(unix.AF_INET, SIOCGETTUNNEL, "abcdefghijklmnopq", parm("", 0), parm("x", 1), nil, 0) + return roundTrip(t, &s) + }, + ask: ask{unix.AF_INET, SIOCGETTUNNEL, "abcdefghijklmnoXYZ", parm("", 0)}, + wantOut: parm("x", 1), + }, + } + for _, tc := range tests { + t.Run(tc.description, func(t *testing.T) { + s := tc.snap(t) + arg := bytes.Clone(tc.ask.in) + spill, err := s.Ioctl(tc.ask.family, tc.ask.req, tc.ask.name, arg) + if !errors.Is(err, tc.wantErr) || (tc.wantErr == nil && err != nil) { + t.Fatalf("err = %v, want %v", err, tc.wantErr) + } + if !bytes.Equal(arg, tc.wantOut) { + t.Errorf("arg = %x\nwant %x", arg, tc.wantOut) + } + if !bytes.Equal(spill, tc.wantSpill) { + t.Errorf("spill = %x, want %x", spill, tc.wantSpill) + } + }) + } +} + +func TestSnapshotProps(t *testing.T) { + tests := []struct { + description string + dev, prop string + want string + wantErr error + }{ + {"positive: a recorded value", "tap0", "tun_flags", "0x1002\n", nil}, + {"positive: owner -1 is kept as text", "tap0", "owner", "-1\n", nil}, + {"negative: a recorded open failure is its errno", "tap1", "group", "", unix.ENOENT}, + {"negative: an unrecorded prop", "tap0", "group", "", ErrNotRecorded}, + {"corner: an unrecorded device", "tap9", "owner", "", ErrNotRecorded}, + } + s := roundTrip(t, fixture()) + for _, tc := range tests { + t.Run(tc.description, func(t *testing.T) { + got, err := s.ReadProp(tc.dev, tc.prop) + if !errors.Is(err, tc.wantErr) || (tc.wantErr == nil && err != nil) { + t.Fatalf("err = %v, want %v", err, tc.wantErr) + } + if got != tc.want { + t.Errorf("value = %q, want %q", got, tc.want) + } + }) + } +} + +func TestSnapshotTunFDs(t *testing.T) { + empty := []TunFD{} + tests := []struct { + description string + fds *[]TunFD + want []TunFD + wantErr error + }{ + {"positive: the recorded walk", fixture().Fds, []TunFD{{Pid: 10, FD: 3, FdInfo: "iff:\ttap0\n", Comm: "holder\n"}}, nil}, + {"boundary: a recorded walk that found nothing", &empty, []TunFD{}, nil}, + {"negative: no walk recorded", nil, nil, ErrNotRecorded}, + } + for _, tc := range tests { + t.Run(tc.description, func(t *testing.T) { + s := roundTrip(t, &Snapshot{Fds: tc.fds}) + got, err := s.TunFDs() + if !errors.Is(err, tc.wantErr) || (tc.wantErr == nil && err != nil) { + t.Fatalf("err = %v, want %v", err, tc.wantErr) + } + if !slices.Equal(got, tc.want) { + t.Errorf("fds = %+v, want %+v", got, tc.want) + } + }) + } +} + +func TestParseRefuses(t *testing.T) { + tests := []struct { + description string + json string + want string + }{ + {"negative: malformed hex in", `{"ioctls":[{"family":2,"req":"SIOCGETTUNNEL","name":"x","in":"zz"}]}`, "in: encoding/hex"}, + {"negative: odd-length hex out", `{"ioctls":[{"family":2,"req":"SIOCGETTUNNEL","name":"x","in":"00","out":"0"}]}`, "out: encoding/hex"}, + {"negative: an unknown request", `{"ioctls":[{"family":2,"req":"SIOCADDTUNNEL","name":"x","in":""}]}`, `unknown request "SIOCADDTUNNEL"`}, + {"negative: out longer than in", `{"ioctls":[{"family":2,"req":"SIOCGET6RD","name":"x","in":"00","out":"0000"}]}`, "out is 2 bytes, in 1"}, + {"negative: a negative errno", `{"props":[{"dev":"a","prop":"b","errno":-1}]}`, "cannot unmarshal"}, + {"negative: an unknown field", `{"ioctl":[]}`, "unknown field"}, + {"negative: trailing data", `{} {}`, "trailing data"}, + {"boundary: not JSON", ``, "EOF"}, + } + for _, tc := range tests { + t.Run(tc.description, func(t *testing.T) { + _, err := Parse([]byte(tc.json)) + if err == nil || !strings.Contains(err.Error(), tc.want) { + t.Fatalf("err = %v, want it to contain %q", err, tc.want) + } + }) + } +} + +func TestIfNameAndArgSize(t *testing.T) { + tests := []struct { + description string + got, want any + }{ + {"positive: a short name is kept", IfName("gre1"), "gre1"}, + {"boundary: fifteen bytes are kept", IfName("abcdefghijklmno"), "abcdefghijklmno"}, + {"boundary: sixteen bytes lose the last", IfName("abcdefghijklmnop"), "abcdefghijklmno"}, + {"corner: a NUL ends the name", IfName("ab\x00cd"), "ab"}, + {"positive: v4 parm size", ArgSize(unix.AF_INET, SIOCGETTUNNEL), IPTunnelParmSize}, + {"positive: v6 parm size", ArgSize(unix.AF_INET6, SIOCGETTUNNEL), IP6TnlParm2Size}, + {"positive: PRL buffer is 16 routers", ArgSize(unix.AF_INET, SIOCGETPRL), 256}, + {"positive: 6rd size", ArgSize(unix.AF_INET, SIOCGET6RD), Tunnel6RDSize}, + {"negative: an unknown request has no size", ArgSize(unix.AF_INET, 0x89F1), 0}, + {"negative: an unknown request is named in hex", ReqName(0x89F1), "0x89f1"}, + } + for _, tc := range tests { + t.Run(tc.description, func(t *testing.T) { + if tc.got != tc.want { + t.Errorf("got %v, want %v", tc.got, tc.want) + } + }) + } +} + +func TestLiveIoctl(t *testing.T) { + tests := []struct { + description string + family int + req uint32 + name string + arg []byte + wantErr error + wantSocket bool + }{ + {"negative: no such device", unix.AF_INET, SIOCGETTUNNEL, "nosuch0", parm("", 0), unix.ENODEV, false}, + {"negative: a write request is refused before any socket", unix.AF_INET, 0x89F1, "lo", parm("", 0), ErrRequest, false}, + {"boundary: an empty argument is refused", unix.AF_INET, SIOCGETTUNNEL, "lo", nil, ErrRequest, false}, + {"boundary: an argument over 64 KiB is refused", unix.AF_INET, SIOCGETPRL, "lo", make([]byte, maxArg+1), ErrRequest, false}, + {"corner: a family with no sockets fails at socket(2)", 9999, SIOCGETTUNNEL, "lo", parm("", 0), unix.EAFNOSUPPORT, true}, + } + for _, tc := range tests { + t.Run(tc.description, func(t *testing.T) { + in := bytes.Clone(tc.arg) + spill, err := Live{}.Ioctl(tc.family, tc.req, tc.name, tc.arg) + if !errors.Is(err, tc.wantErr) { + t.Fatalf("err = %v, want %v", err, tc.wantErr) + } + var se *SocketError + if errors.As(err, &se) != tc.wantSocket { + t.Errorf("SocketError = %v, want %v", errors.As(err, &se), tc.wantSocket) + } + if spill != nil || !bytes.Equal(in, tc.arg) { + t.Errorf("a failed ioctl changed its argument or spilled: %x", spill) + } + }) + } +} + +func TestSpillOf(t *testing.T) { + fill := bytes.Repeat([]byte{spillFill}, 4) + tests := []struct { + description string + window []byte + want []byte + }{ + {"positive: an untouched window is no spill", fill, nil}, + {"positive: one written byte returns the window", []byte{spillFill, 0, spillFill, spillFill}, []byte{spillFill, 0, spillFill, spillFill}}, + {"boundary: an empty window", nil, nil}, + {"corner: the last byte written", []byte{spillFill, spillFill, spillFill, 1}, []byte{spillFill, spillFill, spillFill, 1}}, + } + for _, tc := range tests { + t.Run(tc.description, func(t *testing.T) { + if got := spillOf(tc.window); !bytes.Equal(got, tc.want) { + t.Errorf("spillOf = %x, want %x", got, tc.want) + } + }) + } +} + +// writeTree makes files (content) and symlinks ("-> target") under root. +func writeTree(t *testing.T, root string, tree map[string]string) { + t.Helper() + for name, v := range tree { + p := filepath.Join(root, name) + if err := os.MkdirAll(filepath.Dir(p), 0o755); err != nil { + t.Fatal(err) + } + if target, ok := strings.CutPrefix(v, "-> "); ok { + if err := os.Symlink(target, p); err != nil { + t.Fatal(err) + } + continue + } + if err := os.WriteFile(p, []byte(v), 0o600); err != nil { + t.Fatal(err) + } + } +} + +func TestLiveReadProp(t *testing.T) { + root := t.TempDir() + writeTree(t, root, map[string]string{ + "devices/virtual/net/tap0/tun_flags": "0x1002\n", + "devices/virtual/net/tap0/owner": "-1\n", + "class/net/tap0": "-> ../../devices/virtual/net/tap0", + "class/net/esc": "-> ../../../", + }) + tests := []struct { + description string + dev, prop string + want string + wantErr error + }{ + {"positive: through the class/net symlink", "tap0", "tun_flags", "0x1002\n", nil}, + {"positive: owner", "tap0", "owner", "-1\n", nil}, + {"negative: a missing prop", "tap0", "group", "", unix.ENOENT}, + {"negative: a missing device", "tap9", "owner", "", unix.ENOENT}, + {"corner: a dev with a slash never leaves class/net", "../../devices/virtual/net/tap0", "owner", "", unix.ENOENT}, + {"corner: a dev of .. is refused", "..", "owner", "", unix.ENOENT}, + {"corner: a symlink out of the root is refused", "esc", "owner", "", nil}, + } + l := Live{SysRoot: root} + for _, tc := range tests { + t.Run(tc.description, func(t *testing.T) { + got, err := l.ReadProp(tc.dev, tc.prop) + if tc.wantErr == nil && tc.want == "" { + if err == nil { + t.Fatalf("read %q out of the root", got) + } + return + } + if !errors.Is(err, tc.wantErr) || (tc.wantErr == nil && err != nil) { + t.Fatalf("err = %v, want %v", err, tc.wantErr) + } + if got != tc.want { + t.Errorf("value = %q, want %q", got, tc.want) + } + }) + } +} + +func TestLiveTunFDs(t *testing.T) { + root := t.TempDir() + self := fmt.Sprint(os.Getpid()) + writeTree(t, root, map[string]string{ + "100/fd/3": "-> /dev/net/tun", + "100/fd/4": "-> /dev/null", + "100/fdinfo/3": "pos:\t0\niff:\ttap0\n", + "100/comm": "holder\n", + "102/fd/5": "-> /dev/net/tun", + "102/fdinfo/5": "iff:\ttun1\n", + "103/fd/6": "-> /dev/net/tun", + "104/fd/7": "-> /dev/net/tunnel", + "12x/fd/8": "-> /dev/net/tun", + "12x/fdinfo/8": "iff:\ttap0\n", + "self/fd/9": "-> /dev/net/tun", + self + "/fd/1": "-> /dev/net/tun", + self + "/fdinfo/1": "iff:\ttap0\n", + "100/fd/x1": "-> /dev/net/tun", + "105/fd/2a": "-> /dev/net/tun", + "105/fdinfo/2": "iff:\tq\n", + "105/comm": "a\n", + }) + got, err := Live{ProcRoot: root}.TunFDs() + if err != nil { + t.Fatal(err) + } + slices.SortFunc(got, func(a, b TunFD) int { return a.Pid*100 + a.FD - b.Pid*100 - b.FD }) + tests := []struct { + description string + want TunFD + }{ + {"corner: a name with leading digits scans as sscanf's %d", TunFD{Pid: 12, FD: 8, FdInfo: "iff:\ttap0\n", NoComm: true}}, + {"positive: a tun descriptor with fdinfo and comm", TunFD{Pid: 100, FD: 3, FdInfo: "pos:\t0\niff:\ttap0\n", Comm: "holder\n"}}, + {"negative: no comm file is NoComm", TunFD{Pid: 102, FD: 5, FdInfo: "iff:\ttun1\n", NoComm: true}}, + {"corner: an fd name with leading digits reads fdinfo by the number", TunFD{Pid: 105, FD: 2, FdInfo: "iff:\tq\n", Comm: "a\n"}}, + } + for i, tc := range tests { + t.Run(tc.description, func(t *testing.T) { + if i >= len(got) || got[i] != tc.want { + t.Errorf("walk = %+v, want %+v at %d", got, tc.want, i) + } + }) + } + t.Run("boundary: only those four; no fdinfo, another device, non-numeric names and self are skipped", func(t *testing.T) { + if len(got) != len(tests) { + t.Errorf("walk = %+v", got) + } + }) + t.Run("negative: a missing root is an error", func(t *testing.T) { + if _, err := (Live{ProcRoot: filepath.Join(root, "nope")}).TunFDs(); err == nil { + t.Error("no error") + } + }) +} + +func TestTrace(t *testing.T) { + t.Setenv(helperEnv, "1") + run, recs, err := Trace(&exec.Cmd{Path: os.Args[0], Args: []string{os.Args[0], "-test.run=^$"}}) + if errors.Is(err, unix.EPERM) { + t.Skipf("ptrace not permitted here: %v", err) + } + if err != nil { + t.Fatal(err) + } + in := parm("lo", 0) + tests := []struct { + description string + got, want any + }{ + {"positive: the exit status", run.RC, 3}, + {"positive: stdout is the helper's", run.Stdout, fmt.Sprintf("%v|%v\n", unix.EOPNOTSUPP, unix.ENODEV)}, + {"positive: stderr is the helper's", run.Stderr, "helper stderr"}, + {"positive: two tunnel ioctls, nothing else", len(recs), 2}, + {"positive: the first's family from its socket", recField(recs, 0, "family"), unix.AF_INET}, + {"positive: the first's input as passed", recField(recs, 0, "in"), hex.EncodeToString(in)}, + {"negative: the first failed EOPNOTSUPP, no output", recField(recs, 0, "errno+out"), fmt.Sprint(unix.EOPNOTSUPP) + "|"}, + {"negative: the second is ENODEV for its device", recField(recs, 1, "name+errno"), "nosuch0|" + fmt.Sprint(unix.ENODEV)}, + {"boundary: the 6rd input is 24 bytes", recField(recs, 1, "in"), strings.Repeat("00", Tunnel6RDSize)}, + {"corner: the argv is kept", len(run.Argv), 2}, + } + for _, tc := range tests { + t.Run(tc.description, func(t *testing.T) { + if tc.got != tc.want { + t.Errorf("got %v, want %v (recs %+v)", tc.got, tc.want, recs) + } + }) + } +} + +func recField(recs []IoctlRec, i int, f string) any { + if i >= len(recs) { + return nil + } + r := recs[i] + switch f { + case "family": + return r.Family + case "in": + return r.In + case "errno+out": + return fmt.Sprint(r.Errno) + "|" + r.Out + case "name+errno": + return r.Name + "|" + fmt.Sprint(r.Errno) + } + return nil +} + +func TestLoad(t *testing.T) { + dir := t.TempDir() + b, err := fixture().Marshal() + if err != nil { + t.Fatal(err) + } + good := filepath.Join(dir, "tnlsys.out") + if err := os.WriteFile(good, b, 0o600); err != nil { + t.Fatal(err) + } + tests := []struct { + description string + path string + wantIoctls int + wantErr bool + }{ + {"positive: a marshaled snapshot loads whole", good, len(fixture().Ioctls), false}, + {"negative: a missing file", filepath.Join(dir, "nope"), 0, true}, + {"corner: a directory is not a snapshot", dir, 0, true}, + } + for _, tc := range tests { + t.Run(tc.description, func(t *testing.T) { + s, err := Load(tc.path) + if (err != nil) != tc.wantErr { + t.Fatalf("err = %v, want error %v", err, tc.wantErr) + } + if err == nil && len(s.Ioctls) != tc.wantIoctls { + t.Errorf("ioctls = %d, want %d", len(s.Ioctls), tc.wantIoctls) + } + }) + } +} + +func TestSocketError(t *testing.T) { + e := &SocketError{Err: unix.EAFNOSUPPORT} + tests := []struct { + description string + got, want any + }{ + {"positive: the message names socket", e.Error(), "tnlsys: socket: " + unix.EAFNOSUPPORT.Error()}, + {"positive: it unwraps to the errno", errors.Is(e, unix.EAFNOSUPPORT), true}, + {"negative: not another errno", errors.Is(e, unix.ENODEV), false}, + } + for _, tc := range tests { + t.Run(tc.description, func(t *testing.T) { + if tc.got != tc.want { + t.Errorf("got %v, want %v", tc.got, tc.want) + } + }) + } +} diff --git a/internal/tnlsys/trace_linux_amd64.go b/internal/tnlsys/trace_linux_amd64.go new file mode 100644 index 000000000..cd096796c --- /dev/null +++ b/internal/tnlsys/trace_linux_amd64.go @@ -0,0 +1,309 @@ +package tnlsys + +import ( + "bytes" + "encoding/binary" + "errors" + "fmt" + "io" + "os" + "os/exec" + "runtime" + "syscall" + + "github.com/randomizedcoder/xtcp2/pkg/cint" + "golang.org/x/sys/unix" +) + +// ifreqSize is sizeof(struct ifreq) on x86_64, and ifrDataOff the +// offset of ifr_data in it. +const ( + ifreqSize = 40 + ifrDataOff = 16 +) + +// syscallStop is the stop signal PTRACE_O_TRACESYSGOOD gives a syscall +// stop. +const syscallStop = syscall.SIGTRAP | 0x80 + +// Trace runs cmd under ptrace and records every tunnel ioctl it makes: +// family (from the socket(2) the descriptor came from), request, device +// name and the argument before and after, with what the kernel wrote past +// it. The run's stdout, stderr and status come back in Run; cmd's own +// Stdout, Stderr and SysProcAttr are replaced. Threads are followed. +func Trace(cmd *exec.Cmd) (*Run, []IoctlRec, error) { + type result struct { + run *Run + recs []IoctlRec + err error + } + ch := make(chan result, 1) + // Every ptrace request must come from the thread that started the + // tracee: PTRACE_TRACEME makes that thread its tracer. The goroutine + // keeps its thread locked to the end, so the thread exits with it and + // never returns to the scheduler as some tracee's tracer. + go func() { + runtime.LockOSThread() + r, recs, err := trace(cmd) + ch <- result{r, recs, err} + }() + res := <-ch + return res.run, res.recs, res.err +} + +func trace(cmd *exec.Cmd) (*Run, []IoctlRec, error) { + outR, outW, err := os.Pipe() + if err != nil { + return nil, nil, fmt.Errorf("tnlsys: trace: %w", err) + } + errR, errW, err := os.Pipe() + if err != nil { + return nil, nil, joinClose(fmt.Errorf("tnlsys: trace: %w", err), outR, outW) + } + cmd.Stdout, cmd.Stderr = outW, errW + cmd.SysProcAttr = &syscall.SysProcAttr{Ptrace: true} + if err := cmd.Start(); err != nil { + return nil, nil, joinClose(fmt.Errorf("tnlsys: trace: %w", err), outR, outW, errR, errW) + } + if err := joinClose(nil, outW, errW); err != nil { + return nil, nil, err + } + stdout, stderr := drain(outR), drain(errR) + + t := tracer{pid: cmd.Process.Pid, fam: map[int]int{}} + rc, terr := t.run() + run := &Run{Argv: append([]string(nil), cmd.Args...), RC: rc, Stdout: string(<-stdout), Stderr: string(<-stderr)} + if cerr := joinClose(nil, outR, errR); terr == nil { + terr = cerr + } + return run, t.recs, terr +} + +// drain reads r to EOF on its own goroutine. +func drain(r io.Reader) <-chan []byte { + ch := make(chan []byte, 1) + go func() { + var b bytes.Buffer + if _, err := b.ReadFrom(r); err != nil { + b.WriteString("\n[tnlsys: read: " + err.Error() + "]") + } + ch <- b.Bytes() + }() + return ch +} + +// joinClose closes every file, joining their errors onto err. +func joinClose(err error, fs ...*os.File) error { + for _, f := range fs { + err = errors.Join(err, f.Close()) + } + return err +} + +// tracer is one traced process's state. +type tracer struct { + pid int + fam map[int]int // descriptor -> socket(2) domain, process-wide + recs []IoctlRec + thr map[int]*thread +} + +// thread is one traced thread's syscall state: entry and exit stops +// alternate per thread. +type thread struct { + inSyscall bool + nr uint64 + sockDom int + pend *pendingIoctl +} + +// pendingIoctl is an ioctl seen at entry, waiting for its exit. +type pendingIoctl struct { + family int + req uint32 + name string + arg uintptr + size int + in []byte // size + SpillWindow bytes +} + +// run steps the tracee's threads from syscall stop to syscall stop until +// the process exits, returning its exit status (128+N for a signal, as a +// shell reports it). Threads are followed (PTRACE_O_TRACECLONE) so a +// multithreaded command, a Go test helper say, is recorded whole. +func (t *tracer) run() (int, error) { + var ws unix.WaitStatus + if _, err := unix.Wait4(t.pid, &ws, 0, nil); err != nil { + return -1, fmt.Errorf("tnlsys: trace: wait: %w", err) + } + if !ws.Stopped() { + return -1, fmt.Errorf("tnlsys: trace: tracee did not stop at exec (%#x)", uint32(ws)) + } + opts := unix.PTRACE_O_TRACESYSGOOD | unix.PTRACE_O_EXITKILL | unix.PTRACE_O_TRACECLONE + if err := unix.PtraceSetOptions(t.pid, opts); err != nil { + return -1, fmt.Errorf("tnlsys: trace: options: %w", err) + } + t.thr = map[int]*thread{t.pid: {}} + if err := unix.PtraceSyscall(t.pid, 0); err != nil { + return -1, fmt.Errorf("tnlsys: trace: resume: %w", err) + } + for { + tid, err := unix.Wait4(-1, &ws, unix.WALL, nil) + if err != nil { + return -1, fmt.Errorf("tnlsys: trace: wait: %w", err) + } + if ws.Exited() || ws.Signaled() { + delete(t.thr, tid) + if tid == t.pid { + return t.status(ws), nil + } + continue + } + sig := 0 + switch { + case !ws.Stopped(): + case ws.StopSignal() == syscallStop: + if err := t.syscallStop(tid); err != nil { + return -1, err + } + case ws.StopSignal() == syscall.SIGTRAP: + // PTRACE_EVENT_CLONE and the like: resume without a signal. + case ws.StopSignal() == syscall.SIGSTOP && t.thr[tid] == nil: + t.thr[tid] = &thread{} // a new thread's first stop + default: + sig = int(ws.StopSignal()) + } + if err := unix.PtraceSyscall(tid, sig); err != nil && !errors.Is(err, unix.ESRCH) { + return -1, fmt.Errorf("tnlsys: trace: resume %d: %w", tid, err) + } + } +} + +// status is an exit status as a shell reports it. +func (t *tracer) status(ws unix.WaitStatus) int { + if ws.Signaled() { + return 128 + int(ws.Signal()) + } + return ws.ExitStatus() +} + +// syscallStop handles one entry or exit stop of thread tid. +func (t *tracer) syscallStop(tid int) error { + th := t.thr[tid] + if th == nil { + th = &thread{} + t.thr[tid] = th + } + var regs unix.PtraceRegs + if err := unix.PtraceGetRegs(tid, ®s); err != nil { + return fmt.Errorf("tnlsys: trace: regs: %w", err) + } + th.inSyscall = !th.inSyscall + if th.inSyscall { + th.nr = regs.Orig_rax + return t.entry(th, tid, ®s) + } + return t.exit(th, tid, ®s) +} + +func (t *tracer) entry(th *thread, tid int, regs *unix.PtraceRegs) error { + switch th.nr { + case unix.SYS_SOCKET: + th.sockDom = int(cint.Low32(regs.Rdi)) + case unix.SYS_IOCTL: + req := cint.Low32(regs.Rsi) + if !knownReq(req) { + return nil + } + return t.ioctlEntry(th, tid, int(cint.Low32(regs.Rdi)), req, uintptr(regs.Rdx)) + } + return nil +} + +func (t *tracer) ioctlEntry(th *thread, tid int, fd int, req uint32, ifrAddr uintptr) error { + ifr := make([]byte, ifreqSize) + if err := t.peek(tid, ifrAddr, ifr); err != nil { + return err + } + p := &pendingIoctl{ + family: t.fam[fd], req: req, + name: IfName(string(ifr[:ifNameSize])), + arg: uintptr(binary.LittleEndian.Uint64(ifr[ifrDataOff:])), + } + switch req { + case SIOCGETPRL: + hdr := make([]byte, TunnelPRLSize) + if err := t.peek(tid, p.arg, hdr); err != nil { + return err + } + datalen := int(binary.LittleEndian.Uint32(hdr[8:12])) + p.size = min(TunnelPRLSize+datalen, maxArg) + default: + p.size = ArgSize(p.family, req) + } + p.in = make([]byte, p.size+SpillWindow) + if err := t.peek(tid, p.arg, p.in); err != nil { + return err + } + th.pend = p + return nil +} + +func (t *tracer) exit(th *thread, tid int, regs *unix.PtraceRegs) error { + errno, failed := retErrno(regs.Rax) + switch th.nr { + case unix.SYS_SOCKET: + if !failed { + t.fam[int(cint.Low32(regs.Rax))] = th.sockDom + } + case unix.SYS_IOCTL: + p := th.pend + th.pend = nil + if p == nil { + return nil + } + return t.ioctlExit(tid, p, errno) + } + return nil +} + +// retErrno reads a syscall's return register: the kernel returns -errno, +// -4095 to -1, for a failure. +func retErrno(rax uint64) (unix.Errno, bool) { + if rax < ^uint64(4095) { + return 0, false + } + return unix.Errno(^rax + 1), true +} + +func (t *tracer) ioctlExit(tid int, p *pendingIoctl, errno unix.Errno) error { + var s Snapshot + if errno != 0 { + s.AddIoctl(p.family, p.req, p.name, p.in[:p.size], nil, nil, errno) + t.recs = append(t.recs, s.Ioctls...) + return nil + } + out := make([]byte, len(p.in)) + if err := t.peek(tid, p.arg, out); err != nil { + return err + } + var spill []byte + if !bytes.Equal(out[p.size:], p.in[p.size:]) { + spill = out[p.size:] + } + s.AddIoctl(p.family, p.req, p.name, p.in[:p.size], out[:p.size], spill, 0) + t.recs = append(t.recs, s.Ioctls...) + return nil +} + +// peek reads len(b) bytes of thread tid's memory at addr. +func (t *tracer) peek(tid int, addr uintptr, b []byte) error { + n, err := unix.PtracePeekData(tid, addr, b) + if err != nil { + return fmt.Errorf("tnlsys: trace: peek %#x: %w", addr, err) + } + if n != len(b) { + return fmt.Errorf("tnlsys: trace: peek %#x: %d of %d bytes", addr, n, len(b)) + } + return nil +} diff --git a/internal/tnlsys/trace_other.go b/internal/tnlsys/trace_other.go new file mode 100644 index 000000000..eb81a7ba8 --- /dev/null +++ b/internal/tnlsys/trace_other.go @@ -0,0 +1,13 @@ +//go:build !(linux && amd64) + +package tnlsys + +import ( + "errors" + "os/exec" +) + +// Trace reads syscall registers, which only the x86_64 tracer knows. +func Trace(cmd *exec.Cmd) (*Run, []IoctlRec, error) { + return nil, nil, errors.New("tnlsys: trace: only linux/amd64") +} diff --git a/nix/binaries.nix b/nix/binaries.nix index 46f48454d..08408f140 100644 --- a/nix/binaries.nix +++ b/nix/binaries.nix @@ -100,6 +100,12 @@ let # and ParseBrVlanTables (internal/gobridge), and without a capture asks # the kernel, so a live run can diff it against the pinned bridge. "gobridge" + # tnlsnap records what `ip tunnel` and `ip tuntap` ask outside netlink + # (internal/tnlsys): it runs `ip` under ptrace and prints the tunnel + # ioctls, tun sysfs properties and /dev/net/tun holders as the JSON + # sidecar goip's GOIP_TNLSYS replays. A capture row runs it as a + # readback, so it has to be in the guest. + "tnlsnap" "ipmeta-bootstrap" "ipfeed-collector" "kafka_to_clickhouse" From dc4d5e99dfeacca00882c82130e929524b9076fa Mon Sep 17 00:00:00 2001 From: "randomizedcoder dave.seddon.ca@gmail.com" Date: Mon, 23 Nov 2026 15:31:20 -0800 Subject: [PATCH 2/8] test(nlcapgen): tunnel and tuntap captures with tnlsys sidecars, 217 rows (8C, V002) Two capture spaces: tunnel (171 rows: ip tunnel and ip -6 tunnel show, plain and -j, the list, named and mode paths, filters, batch and 27 negatives) and tuntap (46 rows, including -d with python TUNSETIFF holders and a holder in another namespace). Each row carries a tnlsys readback: tnlsnap traces ip again and records its ioctls, the tun props and, when ip would walk it, /proc. Two batches on one workbench boot agree byte for byte except for the holder pids of the eight -d rows with holders, and every sidecar's traced run matches the captured ip. The batches found two recorder faults, fixed here. The spill kept ip's own stack past the kernel's write, so the tracer now fills the window with 0xA5, cuts at the last changed byte and restores the rest; gre6x's spill is exactly the 24 bytes ip6gre writes past 52. The /proc walk ran for every row and picked up other rows' holders, so it now runs only when ip would walk it, mirroring ip.c's option loop and object order. goip's hermetic import test now allows internal/tnlsys, which 8S added without updating it. Co-Authored-By: Claude Opus 5.5 --- cmd/tnlsnap/main.go | 114 +++++++- cmd/tnlsnap/main_test.go | 54 +++- docs/netlink/goip-tunnel-status.md | 21 +- docs/netlink/goip-tunnel.md | 15 +- internal/goip/imports_test.go | 3 + internal/tnlsys/live_linux.go | 13 +- internal/tnlsys/tnlsys_test.go | 5 +- internal/tnlsys/trace_linux_amd64.go | 41 ++- nix/microvms/workbench/tunnel.rows.jsonl | 174 +++++++++++ nix/microvms/workbench/tuntap.rows.jsonl | 49 ++++ .../testdata/7_3_1/ws/tunnel/ec-001/cmd.json | 45 +++ .../testdata/7_3_1/ws/tunnel/ec-001/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-001/ip.out | 4 + .../testdata/7_3_1/ws/tunnel/ec-001/ip.pcap | Bin 0 -> 15720 bytes .../testdata/7_3_1/ws/tunnel/ec-001/ip.rc | 1 + .../tunnel/ec-001/netlink_route_tnlsys.pcap | Bin 0 -> 15720 bytes .../7_3_1/ws/tunnel/ec-001/tnlsys.out | 49 ++++ .../testdata/7_3_1/ws/tunnel/ec-002/cmd.json | 45 +++ .../testdata/7_3_1/ws/tunnel/ec-002/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-002/ip.out | 4 + .../testdata/7_3_1/ws/tunnel/ec-002/ip.pcap | Bin 0 -> 6180 bytes .../testdata/7_3_1/ws/tunnel/ec-002/ip.rc | 1 + .../tunnel/ec-002/netlink_route_tnlsys.pcap | Bin 0 -> 6180 bytes .../7_3_1/ws/tunnel/ec-002/tnlsys.out | 37 +++ .../testdata/7_3_1/ws/tunnel/ec-003/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/ec-003/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-003/ip.out | 20 ++ .../testdata/7_3_1/ws/tunnel/ec-003/ip.pcap | Bin 0 -> 33348 bytes .../testdata/7_3_1/ws/tunnel/ec-003/ip.rc | 1 + .../tunnel/ec-003/netlink_route_tnlsys.pcap | Bin 0 -> 33348 bytes .../7_3_1/ws/tunnel/ec-003/tnlsys.out | 140 +++++++++ .../testdata/7_3_1/ws/tunnel/ec-004/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/ec-004/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-004/ip.out | 20 ++ .../testdata/7_3_1/ws/tunnel/ec-004/ip.pcap | Bin 0 -> 33348 bytes .../testdata/7_3_1/ws/tunnel/ec-004/ip.rc | 1 + .../tunnel/ec-004/netlink_route_tnlsys.pcap | Bin 0 -> 33348 bytes .../7_3_1/ws/tunnel/ec-004/tnlsys.out | 139 +++++++++ .../testdata/7_3_1/ws/tunnel/ec-005/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/ec-005/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-005/ip.out | 20 ++ .../testdata/7_3_1/ws/tunnel/ec-005/ip.pcap | Bin 0 -> 33348 bytes .../testdata/7_3_1/ws/tunnel/ec-005/ip.rc | 1 + .../tunnel/ec-005/netlink_route_tnlsys.pcap | Bin 0 -> 33348 bytes .../7_3_1/ws/tunnel/ec-005/tnlsys.out | 140 +++++++++ .../testdata/7_3_1/ws/tunnel/ec-006/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/ec-006/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-006/ip.out | 20 ++ .../testdata/7_3_1/ws/tunnel/ec-006/ip.pcap | Bin 0 -> 33348 bytes .../testdata/7_3_1/ws/tunnel/ec-006/ip.rc | 1 + .../tunnel/ec-006/netlink_route_tnlsys.pcap | Bin 0 -> 33348 bytes .../7_3_1/ws/tunnel/ec-006/tnlsys.out | 140 +++++++++ .../testdata/7_3_1/ws/tunnel/ec-007/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/ec-007/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-007/ip.out | 20 ++ .../testdata/7_3_1/ws/tunnel/ec-007/ip.pcap | Bin 0 -> 33348 bytes .../testdata/7_3_1/ws/tunnel/ec-007/ip.rc | 1 + .../tunnel/ec-007/netlink_route_tnlsys.pcap | Bin 0 -> 33348 bytes .../7_3_1/ws/tunnel/ec-007/tnlsys.out | 140 +++++++++ .../testdata/7_3_1/ws/tunnel/ec-008/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/ec-008/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-008/ip.out | 20 ++ .../testdata/7_3_1/ws/tunnel/ec-008/ip.pcap | Bin 0 -> 33348 bytes .../testdata/7_3_1/ws/tunnel/ec-008/ip.rc | 1 + .../tunnel/ec-008/netlink_route_tnlsys.pcap | Bin 0 -> 33348 bytes .../7_3_1/ws/tunnel/ec-008/tnlsys.out | 140 +++++++++ .../testdata/7_3_1/ws/tunnel/ec-009/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/ec-009/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-009/ip.out | 20 ++ .../testdata/7_3_1/ws/tunnel/ec-009/ip.pcap | Bin 0 -> 33348 bytes .../testdata/7_3_1/ws/tunnel/ec-009/ip.rc | 1 + .../tunnel/ec-009/netlink_route_tnlsys.pcap | Bin 0 -> 33348 bytes .../7_3_1/ws/tunnel/ec-009/tnlsys.out | 141 +++++++++ .../testdata/7_3_1/ws/tunnel/ec-010/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/ec-010/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-010/ip.out | 76 +++++ .../testdata/7_3_1/ws/tunnel/ec-010/ip.pcap | Bin 0 -> 33348 bytes .../testdata/7_3_1/ws/tunnel/ec-010/ip.rc | 1 + .../tunnel/ec-010/netlink_route_tnlsys.pcap | Bin 0 -> 33348 bytes .../7_3_1/ws/tunnel/ec-010/tnlsys.out | 141 +++++++++ .../testdata/7_3_1/ws/tunnel/ec-011/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/ec-011/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-011/ip.out | 20 ++ .../testdata/7_3_1/ws/tunnel/ec-011/ip.pcap | Bin 0 -> 33348 bytes .../testdata/7_3_1/ws/tunnel/ec-011/ip.rc | 1 + .../tunnel/ec-011/netlink_route_tnlsys.pcap | Bin 0 -> 33348 bytes .../7_3_1/ws/tunnel/ec-011/tnlsys.out | 141 +++++++++ .../testdata/7_3_1/ws/tunnel/ec-012/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/ec-012/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-012/ip.out | 14 + .../testdata/7_3_1/ws/tunnel/ec-012/ip.pcap | Bin 0 -> 33348 bytes .../testdata/7_3_1/ws/tunnel/ec-012/ip.rc | 1 + .../tunnel/ec-012/netlink_route_tnlsys.pcap | Bin 0 -> 33348 bytes .../7_3_1/ws/tunnel/ec-012/tnlsys.out | 141 +++++++++ .../testdata/7_3_1/ws/tunnel/ec-013/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/ec-013/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-013/ip.out | 20 ++ .../testdata/7_3_1/ws/tunnel/ec-013/ip.pcap | Bin 0 -> 33348 bytes .../testdata/7_3_1/ws/tunnel/ec-013/ip.rc | 1 + .../tunnel/ec-013/netlink_route_tnlsys.pcap | Bin 0 -> 33348 bytes .../7_3_1/ws/tunnel/ec-013/tnlsys.out | 141 +++++++++ .../testdata/7_3_1/ws/tunnel/ec-014/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/ec-014/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-014/ip.out | 5 + .../testdata/7_3_1/ws/tunnel/ec-014/ip.pcap | Bin 0 -> 33204 bytes .../testdata/7_3_1/ws/tunnel/ec-014/ip.rc | 1 + .../tunnel/ec-014/netlink_route_tnlsys.pcap | Bin 0 -> 33204 bytes .../7_3_1/ws/tunnel/ec-014/tnlsys.out | 114 ++++++++ .../testdata/7_3_1/ws/tunnel/ec-015/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/ec-015/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-015/ip.out | 14 + .../testdata/7_3_1/ws/tunnel/ec-015/ip.pcap | Bin 0 -> 33348 bytes .../testdata/7_3_1/ws/tunnel/ec-015/ip.rc | 1 + .../tunnel/ec-015/netlink_route_tnlsys.pcap | Bin 0 -> 33348 bytes .../7_3_1/ws/tunnel/ec-015/tnlsys.out | 135 +++++++++ .../testdata/7_3_1/ws/tunnel/ec-016/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/ec-016/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-016/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/ec-016/ip.pcap | Bin 0 -> 33356 bytes .../testdata/7_3_1/ws/tunnel/ec-016/ip.rc | 1 + .../tunnel/ec-016/netlink_route_tnlsys.pcap | Bin 0 -> 33356 bytes .../7_3_1/ws/tunnel/ec-016/tnlsys.out | 114 ++++++++ .../testdata/7_3_1/ws/tunnel/ec-017/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/ec-017/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-017/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/ec-017/ip.pcap | Bin 0 -> 33204 bytes .../testdata/7_3_1/ws/tunnel/ec-017/ip.rc | 1 + .../tunnel/ec-017/netlink_route_tnlsys.pcap | Bin 0 -> 33204 bytes .../7_3_1/ws/tunnel/ec-017/tnlsys.out | 36 +++ .../testdata/7_3_1/ws/tunnel/ec-018/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/ec-018/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-018/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/ec-018/ip.pcap | Bin 0 -> 33204 bytes .../testdata/7_3_1/ws/tunnel/ec-018/ip.rc | 1 + .../tunnel/ec-018/netlink_route_tnlsys.pcap | Bin 0 -> 33204 bytes .../7_3_1/ws/tunnel/ec-018/tnlsys.out | 22 ++ .../testdata/7_3_1/ws/tunnel/ec-019/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/ec-019/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-019/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/ec-019/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ec-019/ip.rc | 1 + .../tunnel/ec-019/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ec-019/tnlsys.out | 29 ++ .../testdata/7_3_1/ws/tunnel/ec-020/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/ec-020/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-020/ip.out | 0 .../testdata/7_3_1/ws/tunnel/ec-020/ip.pcap | Bin 0 -> 33204 bytes .../testdata/7_3_1/ws/tunnel/ec-020/ip.rc | 1 + .../tunnel/ec-020/netlink_route_tnlsys.pcap | Bin 0 -> 33204 bytes .../7_3_1/ws/tunnel/ec-020/tnlsys.out | 13 + .../testdata/7_3_1/ws/tunnel/ec-021/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/ec-021/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-021/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/ec-021/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ec-021/ip.rc | 1 + .../tunnel/ec-021/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ec-021/tnlsys.out | 23 ++ .../testdata/7_3_1/ws/tunnel/ec-022/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/ec-022/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-022/ip.out | 5 + .../testdata/7_3_1/ws/tunnel/ec-022/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ec-022/ip.rc | 1 + .../tunnel/ec-022/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ec-022/tnlsys.out | 22 ++ .../testdata/7_3_1/ws/tunnel/ec-023/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/ec-023/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-023/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/ec-023/ip.pcap | Bin 0 -> 168 bytes .../testdata/7_3_1/ws/tunnel/ec-023/ip.rc | 1 + .../tunnel/ec-023/netlink_route_tnlsys.pcap | Bin 0 -> 168 bytes .../7_3_1/ws/tunnel/ec-023/tnlsys.out | 22 ++ .../testdata/7_3_1/ws/tunnel/ec-024/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/ec-024/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-024/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/ec-024/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ec-024/ip.rc | 1 + .../tunnel/ec-024/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ec-024/tnlsys.out | 22 ++ .../testdata/7_3_1/ws/tunnel/ec-025/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/ec-025/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-025/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/ec-025/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ec-025/ip.rc | 1 + .../tunnel/ec-025/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ec-025/tnlsys.out | 22 ++ .../testdata/7_3_1/ws/tunnel/ec-026/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/ec-026/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-026/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/ec-026/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ec-026/ip.rc | 1 + .../tunnel/ec-026/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ec-026/tnlsys.out | 23 ++ .../testdata/7_3_1/ws/tunnel/ec-027/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/ec-027/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-027/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/ec-027/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ec-027/ip.rc | 1 + .../tunnel/ec-027/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ec-027/tnlsys.out | 23 ++ .../testdata/7_3_1/ws/tunnel/ec-028/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/ec-028/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-028/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/ec-028/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ec-028/ip.rc | 1 + .../tunnel/ec-028/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ec-028/tnlsys.out | 30 ++ .../testdata/7_3_1/ws/tunnel/ec-029/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/ec-029/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-029/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/ec-029/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ec-029/ip.rc | 1 + .../tunnel/ec-029/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ec-029/tnlsys.out | 30 ++ .../testdata/7_3_1/ws/tunnel/ec-030/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/ec-030/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-030/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/ec-030/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ec-030/ip.rc | 1 + .../tunnel/ec-030/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ec-030/tnlsys.out | 23 ++ .../testdata/7_3_1/ws/tunnel/ec-031/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/ec-031/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-031/ip.out | 5 + .../testdata/7_3_1/ws/tunnel/ec-031/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ec-031/ip.rc | 1 + .../tunnel/ec-031/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ec-031/tnlsys.out | 23 ++ .../testdata/7_3_1/ws/tunnel/ec-032/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/ec-032/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-032/ip.out | 5 + .../testdata/7_3_1/ws/tunnel/ec-032/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ec-032/ip.rc | 1 + .../tunnel/ec-032/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ec-032/tnlsys.out | 29 ++ .../testdata/7_3_1/ws/tunnel/ec-033/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/ec-033/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-033/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/ec-033/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ec-033/ip.rc | 1 + .../tunnel/ec-033/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ec-033/tnlsys.out | 25 ++ .../testdata/7_3_1/ws/tunnel/ec-034/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/ec-034/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-034/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/ec-034/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ec-034/ip.rc | 1 + .../tunnel/ec-034/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ec-034/tnlsys.out | 27 ++ .../testdata/7_3_1/ws/tunnel/ec-035/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/ec-035/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-035/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/ec-035/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ec-035/ip.rc | 1 + .../tunnel/ec-035/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ec-035/tnlsys.out | 31 ++ .../testdata/7_3_1/ws/tunnel/ec-036/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/ec-036/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-036/ip.out | 3 + .../testdata/7_3_1/ws/tunnel/ec-036/ip.pcap | Bin 0 -> 14432 bytes .../testdata/7_3_1/ws/tunnel/ec-036/ip.rc | 1 + .../tunnel/ec-036/netlink_route_tnlsys.pcap | Bin 0 -> 14432 bytes .../7_3_1/ws/tunnel/ec-036/tnlsys.out | 37 +++ .../testdata/7_3_1/ws/tunnel/ec-037/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/ec-037/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-037/ip.out | 3 + .../testdata/7_3_1/ws/tunnel/ec-037/ip.pcap | Bin 0 -> 14432 bytes .../testdata/7_3_1/ws/tunnel/ec-037/ip.rc | 1 + .../tunnel/ec-037/netlink_route_tnlsys.pcap | Bin 0 -> 14432 bytes .../7_3_1/ws/tunnel/ec-037/tnlsys.out | 36 +++ .../testdata/7_3_1/ws/tunnel/ec-038/cmd.json | 64 +++++ .../testdata/7_3_1/ws/tunnel/ec-038/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-038/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/ec-038/ip.pcap | Bin 0 -> 18804 bytes .../testdata/7_3_1/ws/tunnel/ec-038/ip.rc | 1 + .../tunnel/ec-038/netlink_route_tnlsys.pcap | Bin 0 -> 18804 bytes .../7_3_1/ws/tunnel/ec-038/tnlsys.out | 36 +++ .../testdata/7_3_1/ws/tunnel/ec-039/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/ec-039/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-039/ip.out | 12 + .../testdata/7_3_1/ws/tunnel/ec-039/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/ec-039/ip.rc | 1 + .../tunnel/ec-039/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/ec-039/tnlsys.out | 71 +++++ .../testdata/7_3_1/ws/tunnel/ec-040/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/ec-040/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-040/ip.out | 12 + .../testdata/7_3_1/ws/tunnel/ec-040/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/ec-040/ip.rc | 1 + .../tunnel/ec-040/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/ec-040/tnlsys.out | 70 +++++ .../testdata/7_3_1/ws/tunnel/ec-041/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/ec-041/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-041/ip.out | 12 + .../testdata/7_3_1/ws/tunnel/ec-041/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/ec-041/ip.rc | 1 + .../tunnel/ec-041/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/ec-041/tnlsys.out | 71 +++++ .../testdata/7_3_1/ws/tunnel/ec-042/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/ec-042/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-042/ip.out | 44 +++ .../testdata/7_3_1/ws/tunnel/ec-042/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/ec-042/ip.rc | 1 + .../tunnel/ec-042/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/ec-042/tnlsys.out | 72 +++++ .../testdata/7_3_1/ws/tunnel/ec-043/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/ec-043/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-043/ip.out | 8 + .../testdata/7_3_1/ws/tunnel/ec-043/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/ec-043/ip.rc | 1 + .../tunnel/ec-043/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/ec-043/tnlsys.out | 72 +++++ .../testdata/7_3_1/ws/tunnel/ec-044/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/ec-044/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-044/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/ec-044/ip.pcap | Bin 0 -> 168 bytes .../testdata/7_3_1/ws/tunnel/ec-044/ip.rc | 1 + .../tunnel/ec-044/netlink_route_tnlsys.pcap | Bin 0 -> 168 bytes .../7_3_1/ws/tunnel/ec-044/tnlsys.out | 23 ++ .../testdata/7_3_1/ws/tunnel/ec-045/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/ec-045/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-045/ip.out | 5 + .../testdata/7_3_1/ws/tunnel/ec-045/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/ec-045/ip.rc | 1 + .../tunnel/ec-045/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/ec-045/tnlsys.out | 24 ++ .../testdata/7_3_1/ws/tunnel/ec-046/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/ec-046/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-046/ip.out | 5 + .../testdata/7_3_1/ws/tunnel/ec-046/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ec-046/ip.rc | 1 + .../tunnel/ec-046/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ec-046/tnlsys.out | 24 ++ .../testdata/7_3_1/ws/tunnel/ec-047/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/ec-047/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-047/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/ec-047/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ec-047/ip.rc | 1 + .../tunnel/ec-047/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ec-047/tnlsys.out | 23 ++ .../testdata/7_3_1/ws/tunnel/ec-048/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/ec-048/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-048/ip.out | 7 + .../testdata/7_3_1/ws/tunnel/ec-048/ip.pcap | Bin 0 -> 10752 bytes .../testdata/7_3_1/ws/tunnel/ec-048/ip.rc | 1 + .../tunnel/ec-048/netlink_route_tnlsys.pcap | Bin 0 -> 10752 bytes .../7_3_1/ws/tunnel/ec-048/tnlsys.out | 73 +++++ .../testdata/7_3_1/ws/tunnel/ec-049/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/ec-049/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-049/ip.out | 4 + .../testdata/7_3_1/ws/tunnel/ec-049/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/ec-049/ip.rc | 1 + .../tunnel/ec-049/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/ec-049/tnlsys.out | 73 +++++ .../testdata/7_3_1/ws/tunnel/ec-050/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/ec-050/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-050/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/ec-050/ip.pcap | Bin 0 -> 10752 bytes .../testdata/7_3_1/ws/tunnel/ec-050/ip.rc | 1 + .../tunnel/ec-050/netlink_route_tnlsys.pcap | Bin 0 -> 10752 bytes .../7_3_1/ws/tunnel/ec-050/tnlsys.out | 73 +++++ .../testdata/7_3_1/ws/tunnel/ec-051/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/ec-051/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-051/ip.out | 4 + .../testdata/7_3_1/ws/tunnel/ec-051/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/ec-051/ip.rc | 1 + .../tunnel/ec-051/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/ec-051/tnlsys.out | 73 +++++ .../testdata/7_3_1/ws/tunnel/ec-052/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/ec-052/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-052/ip.out | 12 + .../testdata/7_3_1/ws/tunnel/ec-052/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/ec-052/ip.rc | 1 + .../tunnel/ec-052/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/ec-052/tnlsys.out | 73 +++++ .../testdata/7_3_1/ws/tunnel/ec-053/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/ec-053/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-053/ip.out | 4 + .../testdata/7_3_1/ws/tunnel/ec-053/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/ec-053/ip.rc | 1 + .../tunnel/ec-053/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/ec-053/tnlsys.out | 72 +++++ .../testdata/7_3_1/ws/tunnel/ec-054/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/ec-054/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-054/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/ec-054/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/ec-054/ip.rc | 1 + .../tunnel/ec-054/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/ec-054/tnlsys.out | 73 +++++ .../testdata/7_3_1/ws/tunnel/ec-055/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/ec-055/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-055/ip.out | 9 + .../testdata/7_3_1/ws/tunnel/ec-055/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/ec-055/ip.rc | 1 + .../tunnel/ec-055/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/ec-055/tnlsys.out | 73 +++++ .../testdata/7_3_1/ws/tunnel/ec-056/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/ec-056/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-056/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/ec-056/ip.pcap | Bin 0 -> 10904 bytes .../testdata/7_3_1/ws/tunnel/ec-056/ip.rc | 1 + .../tunnel/ec-056/netlink_route_tnlsys.pcap | Bin 0 -> 10904 bytes .../7_3_1/ws/tunnel/ec-056/tnlsys.out | 73 +++++ .../testdata/7_3_1/ws/tunnel/ec-057/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/ec-057/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-057/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/ec-057/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/ec-057/ip.rc | 1 + .../tunnel/ec-057/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/ec-057/tnlsys.out | 73 +++++ .../testdata/7_3_1/ws/tunnel/ec-058/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/ec-058/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-058/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/ec-058/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/ec-058/ip.rc | 1 + .../tunnel/ec-058/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/ec-058/tnlsys.out | 73 +++++ .../testdata/7_3_1/ws/tunnel/ec-059/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/ec-059/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-059/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/ec-059/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/ec-059/ip.rc | 1 + .../tunnel/ec-059/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/ec-059/tnlsys.out | 73 +++++ .../testdata/7_3_1/ws/tunnel/ec-060/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/ec-060/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-060/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/ec-060/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/ec-060/ip.rc | 1 + .../tunnel/ec-060/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/ec-060/tnlsys.out | 73 +++++ .../testdata/7_3_1/ws/tunnel/ec-061/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/ec-061/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-061/ip.out | 12 + .../testdata/7_3_1/ws/tunnel/ec-061/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/ec-061/ip.rc | 1 + .../tunnel/ec-061/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/ec-061/tnlsys.out | 73 +++++ .../testdata/7_3_1/ws/tunnel/ec-062/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/ec-062/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-062/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/ec-062/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/ec-062/ip.rc | 1 + .../tunnel/ec-062/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/ec-062/tnlsys.out | 72 +++++ .../testdata/7_3_1/ws/tunnel/ec-063/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/ec-063/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-063/ip.out | 12 + .../testdata/7_3_1/ws/tunnel/ec-063/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/ec-063/ip.rc | 1 + .../tunnel/ec-063/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/ec-063/tnlsys.out | 73 +++++ .../testdata/7_3_1/ws/tunnel/ec-064/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/ec-064/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-064/ip.out | 4 + .../testdata/7_3_1/ws/tunnel/ec-064/ip.pcap | Bin 0 -> 25516 bytes .../testdata/7_3_1/ws/tunnel/ec-064/ip.rc | 1 + .../tunnel/ec-064/netlink_route_tnlsys.pcap | Bin 0 -> 25516 bytes .../7_3_1/ws/tunnel/ec-064/tnlsys.out | 49 ++++ .../testdata/7_3_1/ws/tunnel/ec-065/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/ec-065/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-065/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/ec-065/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ec-065/ip.rc | 1 + .../tunnel/ec-065/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ec-065/tnlsys.out | 23 ++ .../testdata/7_3_1/ws/tunnel/ec-066/cmd.json | 74 +++++ .../testdata/7_3_1/ws/tunnel/ec-066/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-066/ip.out | 5 + .../testdata/7_3_1/ws/tunnel/ec-066/ip.pcap | Bin 0 -> 23724 bytes .../testdata/7_3_1/ws/tunnel/ec-066/ip.rc | 1 + .../tunnel/ec-066/netlink_route_tnlsys.pcap | Bin 0 -> 23724 bytes .../7_3_1/ws/tunnel/ec-066/tnlsys.out | 56 ++++ .../testdata/7_3_1/ws/tunnel/ec-067/cmd.json | 74 +++++ .../testdata/7_3_1/ws/tunnel/ec-067/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-067/ip.out | 3 + .../testdata/7_3_1/ws/tunnel/ec-067/ip.pcap | Bin 0 -> 9956 bytes .../testdata/7_3_1/ws/tunnel/ec-067/ip.rc | 1 + .../tunnel/ec-067/netlink_route_tnlsys.pcap | Bin 0 -> 9956 bytes .../7_3_1/ws/tunnel/ec-067/tnlsys.out | 36 +++ .../testdata/7_3_1/ws/tunnel/ec-068/cmd.json | 74 +++++ .../testdata/7_3_1/ws/tunnel/ec-068/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-068/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/ec-068/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ec-068/ip.rc | 1 + .../tunnel/ec-068/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ec-068/tnlsys.out | 22 ++ .../testdata/7_3_1/ws/tunnel/ec-069/b.txt | 2 + .../testdata/7_3_1/ws/tunnel/ec-069/cmd.json | 115 ++++++++ .../testdata/7_3_1/ws/tunnel/ec-069/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-069/ip.out | 40 +++ .../testdata/7_3_1/ws/tunnel/ec-069/ip.pcap | Bin 0 -> 66496 bytes .../testdata/7_3_1/ws/tunnel/ec-069/ip.rc | 1 + .../tunnel/ec-069/netlink_route_tnlsys.pcap | Bin 0 -> 66496 bytes .../7_3_1/ws/tunnel/ec-069/tnlsys.out | 266 +++++++++++++++++ .../testdata/7_3_1/ws/tunnel/ec-070/b.txt | 2 + .../testdata/7_3_1/ws/tunnel/ec-070/cmd.json | 115 ++++++++ .../testdata/7_3_1/ws/tunnel/ec-070/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-070/ip.out | 21 ++ .../testdata/7_3_1/ws/tunnel/ec-070/ip.pcap | Bin 0 -> 33348 bytes .../testdata/7_3_1/ws/tunnel/ec-070/ip.rc | 1 + .../tunnel/ec-070/netlink_route_tnlsys.pcap | Bin 0 -> 33348 bytes .../7_3_1/ws/tunnel/ec-070/tnlsys.out | 147 ++++++++++ .../testdata/7_3_1/ws/tunnel/ec-071/b.txt | 2 + .../testdata/7_3_1/ws/tunnel/ec-071/cmd.json | 115 ++++++++ .../testdata/7_3_1/ws/tunnel/ec-071/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-071/ip.out | 23 ++ .../testdata/7_3_1/ws/tunnel/ec-071/ip.pcap | Bin 0 -> 47724 bytes .../testdata/7_3_1/ws/tunnel/ec-071/ip.rc | 1 + .../tunnel/ec-071/netlink_route_tnlsys.pcap | Bin 0 -> 47724 bytes .../7_3_1/ws/tunnel/ec-071/tnlsys.out | 161 +++++++++++ .../testdata/7_3_1/ws/tunnel/ec-072/b.txt | 2 + .../testdata/7_3_1/ws/tunnel/ec-072/cmd.json | 85 ++++++ .../testdata/7_3_1/ws/tunnel/ec-072/ip.err | 0 .../testdata/7_3_1/ws/tunnel/ec-072/ip.out | 4 + .../testdata/7_3_1/ws/tunnel/ec-072/ip.pcap | Bin 0 -> 25660 bytes .../testdata/7_3_1/ws/tunnel/ec-072/ip.rc | 1 + .../tunnel/ec-072/netlink_route_tnlsys.pcap | Bin 0 -> 25660 bytes .../7_3_1/ws/tunnel/ec-072/tnlsys.out | 56 ++++ .../testdata/7_3_1/ws/tunnel/ng-001/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/ng-001/ip.err | 1 + .../testdata/7_3_1/ws/tunnel/ng-001/ip.out | 0 .../testdata/7_3_1/ws/tunnel/ng-001/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ng-001/ip.rc | 1 + .../tunnel/ng-001/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ng-001/tnlsys.out | 22 ++ .../testdata/7_3_1/ws/tunnel/ng-002/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/ng-002/ip.err | 1 + .../testdata/7_3_1/ws/tunnel/ng-002/ip.out | 0 .../testdata/7_3_1/ws/tunnel/ng-002/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ng-002/ip.rc | 1 + .../tunnel/ng-002/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ng-002/tnlsys.out | 14 + .../testdata/7_3_1/ws/tunnel/ng-003/cmd.json | 45 +++ .../testdata/7_3_1/ws/tunnel/ng-003/ip.err | 1 + .../testdata/7_3_1/ws/tunnel/ng-003/ip.out | 0 .../testdata/7_3_1/ws/tunnel/ng-003/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ng-003/ip.rc | 1 + .../tunnel/ng-003/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ng-003/tnlsys.out | 14 + .../testdata/7_3_1/ws/tunnel/ng-004/cmd.json | 45 +++ .../testdata/7_3_1/ws/tunnel/ng-004/ip.err | 1 + .../testdata/7_3_1/ws/tunnel/ng-004/ip.out | 0 .../testdata/7_3_1/ws/tunnel/ng-004/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ng-004/ip.rc | 1 + .../tunnel/ng-004/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ng-004/tnlsys.out | 16 ++ .../testdata/7_3_1/ws/tunnel/ng-005/cmd.json | 45 +++ .../testdata/7_3_1/ws/tunnel/ng-005/ip.err | 1 + .../testdata/7_3_1/ws/tunnel/ng-005/ip.out | 0 .../testdata/7_3_1/ws/tunnel/ng-005/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ng-005/ip.rc | 1 + .../tunnel/ng-005/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ng-005/tnlsys.out | 13 + .../testdata/7_3_1/ws/tunnel/ng-006/cmd.json | 45 +++ .../testdata/7_3_1/ws/tunnel/ng-006/ip.err | 2 + .../testdata/7_3_1/ws/tunnel/ng-006/ip.out | 0 .../testdata/7_3_1/ws/tunnel/ng-006/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ng-006/ip.rc | 1 + .../tunnel/ng-006/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ng-006/tnlsys.out | 14 + .../testdata/7_3_1/ws/tunnel/ng-007/cmd.json | 45 +++ .../testdata/7_3_1/ws/tunnel/ng-007/ip.err | 2 + .../testdata/7_3_1/ws/tunnel/ng-007/ip.out | 0 .../testdata/7_3_1/ws/tunnel/ng-007/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ng-007/ip.rc | 1 + .../tunnel/ng-007/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ng-007/tnlsys.out | 14 + .../testdata/7_3_1/ws/tunnel/ng-008/cmd.json | 45 +++ .../testdata/7_3_1/ws/tunnel/ng-008/ip.err | 1 + .../testdata/7_3_1/ws/tunnel/ng-008/ip.out | 0 .../testdata/7_3_1/ws/tunnel/ng-008/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ng-008/ip.rc | 1 + .../tunnel/ng-008/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ng-008/tnlsys.out | 14 + .../testdata/7_3_1/ws/tunnel/ng-009/cmd.json | 45 +++ .../testdata/7_3_1/ws/tunnel/ng-009/ip.err | 1 + .../testdata/7_3_1/ws/tunnel/ng-009/ip.out | 0 .../testdata/7_3_1/ws/tunnel/ng-009/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ng-009/ip.rc | 1 + .../tunnel/ng-009/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ng-009/tnlsys.out | 14 + .../testdata/7_3_1/ws/tunnel/ng-010/cmd.json | 45 +++ .../testdata/7_3_1/ws/tunnel/ng-010/ip.err | 1 + .../testdata/7_3_1/ws/tunnel/ng-010/ip.out | 0 .../testdata/7_3_1/ws/tunnel/ng-010/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ng-010/ip.rc | 1 + .../tunnel/ng-010/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ng-010/tnlsys.out | 14 + .../testdata/7_3_1/ws/tunnel/ng-011/cmd.json | 45 +++ .../testdata/7_3_1/ws/tunnel/ng-011/ip.err | 1 + .../testdata/7_3_1/ws/tunnel/ng-011/ip.out | 0 .../testdata/7_3_1/ws/tunnel/ng-011/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ng-011/ip.rc | 1 + .../tunnel/ng-011/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ng-011/tnlsys.out | 16 ++ .../testdata/7_3_1/ws/tunnel/ng-012/cmd.json | 45 +++ .../testdata/7_3_1/ws/tunnel/ng-012/ip.err | 13 + .../testdata/7_3_1/ws/tunnel/ng-012/ip.out | 0 .../testdata/7_3_1/ws/tunnel/ng-012/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ng-012/ip.rc | 1 + .../tunnel/ng-012/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ng-012/tnlsys.out | 13 + .../testdata/7_3_1/ws/tunnel/ng-013/cmd.json | 46 +++ .../testdata/7_3_1/ws/tunnel/ng-013/ip.err | 1 + .../testdata/7_3_1/ws/tunnel/ng-013/ip.out | 0 .../testdata/7_3_1/ws/tunnel/ng-013/ip.pcap | Bin 0 -> 212 bytes .../testdata/7_3_1/ws/tunnel/ng-013/ip.rc | 1 + .../tunnel/ng-013/netlink_route_tnlsys.pcap | Bin 0 -> 212 bytes .../7_3_1/ws/tunnel/ng-013/tnlsys.out | 14 + .../testdata/7_3_1/ws/tunnel/ng-014/cmd.json | 45 +++ .../testdata/7_3_1/ws/tunnel/ng-014/ip.err | 1 + .../testdata/7_3_1/ws/tunnel/ng-014/ip.out | 0 .../testdata/7_3_1/ws/tunnel/ng-014/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ng-014/ip.rc | 1 + .../tunnel/ng-014/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ng-014/tnlsys.out | 12 + .../testdata/7_3_1/ws/tunnel/ng-015/cmd.json | 45 +++ .../testdata/7_3_1/ws/tunnel/ng-015/ip.err | 13 + .../testdata/7_3_1/ws/tunnel/ng-015/ip.out | 0 .../testdata/7_3_1/ws/tunnel/ng-015/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ng-015/ip.rc | 1 + .../tunnel/ng-015/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ng-015/tnlsys.out | 12 + .../testdata/7_3_1/ws/tunnel/ng-016/cmd.json | 45 +++ .../testdata/7_3_1/ws/tunnel/ng-016/ip.err | 1 + .../testdata/7_3_1/ws/tunnel/ng-016/ip.out | 0 .../testdata/7_3_1/ws/tunnel/ng-016/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ng-016/ip.rc | 1 + .../tunnel/ng-016/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ng-016/tnlsys.out | 13 + .../testdata/7_3_1/ws/tunnel/ng-017/cmd.json | 45 +++ .../testdata/7_3_1/ws/tunnel/ng-017/ip.err | 1 + .../testdata/7_3_1/ws/tunnel/ng-017/ip.out | 0 .../testdata/7_3_1/ws/tunnel/ng-017/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ng-017/ip.rc | 1 + .../tunnel/ng-017/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ng-017/tnlsys.out | 12 + .../testdata/7_3_1/ws/tunnel/ng-018/cmd.json | 45 +++ .../testdata/7_3_1/ws/tunnel/ng-018/ip.err | 1 + .../testdata/7_3_1/ws/tunnel/ng-018/ip.out | 0 .../testdata/7_3_1/ws/tunnel/ng-018/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ng-018/ip.rc | 1 + .../tunnel/ng-018/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ng-018/tnlsys.out | 17 ++ .../testdata/7_3_1/ws/tunnel/ng-019/cmd.json | 45 +++ .../testdata/7_3_1/ws/tunnel/ng-019/ip.err | 1 + .../testdata/7_3_1/ws/tunnel/ng-019/ip.out | 0 .../testdata/7_3_1/ws/tunnel/ng-019/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ng-019/ip.rc | 1 + .../tunnel/ng-019/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ng-019/tnlsys.out | 12 + .../testdata/7_3_1/ws/tunnel/ng-020/cmd.json | 45 +++ .../testdata/7_3_1/ws/tunnel/ng-020/ip.err | 1 + .../testdata/7_3_1/ws/tunnel/ng-020/ip.out | 0 .../testdata/7_3_1/ws/tunnel/ng-020/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ng-020/ip.rc | 1 + .../tunnel/ng-020/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ng-020/tnlsys.out | 12 + .../testdata/7_3_1/ws/tunnel/ng-021/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/ng-021/ip.err | 1 + .../testdata/7_3_1/ws/tunnel/ng-021/ip.out | 0 .../testdata/7_3_1/ws/tunnel/ng-021/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ng-021/ip.rc | 1 + .../tunnel/ng-021/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ng-021/tnlsys.out | 23 ++ .../testdata/7_3_1/ws/tunnel/ng-022/cmd.json | 45 +++ .../testdata/7_3_1/ws/tunnel/ng-022/ip.err | 1 + .../testdata/7_3_1/ws/tunnel/ng-022/ip.out | 0 .../testdata/7_3_1/ws/tunnel/ng-022/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ng-022/ip.rc | 1 + .../tunnel/ng-022/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ng-022/tnlsys.out | 15 + .../testdata/7_3_1/ws/tunnel/ng-023/cmd.json | 45 +++ .../testdata/7_3_1/ws/tunnel/ng-023/ip.err | 1 + .../testdata/7_3_1/ws/tunnel/ng-023/ip.out | 0 .../testdata/7_3_1/ws/tunnel/ng-023/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ng-023/ip.rc | 1 + .../tunnel/ng-023/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ng-023/tnlsys.out | 15 + .../testdata/7_3_1/ws/tunnel/ng-024/cmd.json | 45 +++ .../testdata/7_3_1/ws/tunnel/ng-024/ip.err | 1 + .../testdata/7_3_1/ws/tunnel/ng-024/ip.out | 0 .../testdata/7_3_1/ws/tunnel/ng-024/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ng-024/ip.rc | 1 + .../tunnel/ng-024/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ng-024/tnlsys.out | 15 + .../testdata/7_3_1/ws/tunnel/ng-025/cmd.json | 45 +++ .../testdata/7_3_1/ws/tunnel/ng-025/ip.err | 1 + .../testdata/7_3_1/ws/tunnel/ng-025/ip.out | 0 .../testdata/7_3_1/ws/tunnel/ng-025/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ng-025/ip.rc | 1 + .../tunnel/ng-025/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ng-025/tnlsys.out | 15 + .../testdata/7_3_1/ws/tunnel/ng-026/cmd.json | 45 +++ .../testdata/7_3_1/ws/tunnel/ng-026/ip.err | 1 + .../testdata/7_3_1/ws/tunnel/ng-026/ip.out | 0 .../testdata/7_3_1/ws/tunnel/ng-026/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ng-026/ip.rc | 1 + .../tunnel/ng-026/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ng-026/tnlsys.out | 13 + .../testdata/7_3_1/ws/tunnel/ng-027/cmd.json | 45 +++ .../testdata/7_3_1/ws/tunnel/ng-027/ip.err | 16 ++ .../testdata/7_3_1/ws/tunnel/ng-027/ip.out | 0 .../testdata/7_3_1/ws/tunnel/ng-027/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/ng-027/ip.rc | 1 + .../tunnel/ng-027/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/ng-027/tnlsys.out | 13 + .../testdata/7_3_1/ws/tunnel/pw-001/cmd.json | 45 +++ .../testdata/7_3_1/ws/tunnel/pw-001/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-001/ip.out | 3 + .../testdata/7_3_1/ws/tunnel/pw-001/ip.pcap | Bin 0 -> 6180 bytes .../testdata/7_3_1/ws/tunnel/pw-001/ip.rc | 1 + .../tunnel/pw-001/netlink_route_tnlsys.pcap | Bin 0 -> 6180 bytes .../7_3_1/ws/tunnel/pw-001/tnlsys.out | 36 +++ .../testdata/7_3_1/ws/tunnel/pw-002/cmd.json | 45 +++ .../testdata/7_3_1/ws/tunnel/pw-002/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-002/ip.out | 5 + .../testdata/7_3_1/ws/tunnel/pw-002/ip.pcap | Bin 0 -> 15720 bytes .../testdata/7_3_1/ws/tunnel/pw-002/ip.rc | 1 + .../tunnel/pw-002/netlink_route_tnlsys.pcap | Bin 0 -> 15720 bytes .../7_3_1/ws/tunnel/pw-002/tnlsys.out | 50 ++++ .../testdata/7_3_1/ws/tunnel/pw-003/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/pw-003/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-003/ip.out | 15 + .../testdata/7_3_1/ws/tunnel/pw-003/ip.pcap | Bin 0 -> 33348 bytes .../testdata/7_3_1/ws/tunnel/pw-003/ip.rc | 1 + .../tunnel/pw-003/netlink_route_tnlsys.pcap | Bin 0 -> 33348 bytes .../7_3_1/ws/tunnel/pw-003/tnlsys.out | 141 +++++++++ .../testdata/7_3_1/ws/tunnel/pw-004/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/pw-004/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-004/ip.out | 15 + .../testdata/7_3_1/ws/tunnel/pw-004/ip.pcap | Bin 0 -> 33348 bytes .../testdata/7_3_1/ws/tunnel/pw-004/ip.rc | 1 + .../tunnel/pw-004/netlink_route_tnlsys.pcap | Bin 0 -> 33348 bytes .../7_3_1/ws/tunnel/pw-004/tnlsys.out | 140 +++++++++ .../testdata/7_3_1/ws/tunnel/pw-005/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/pw-005/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-005/ip.out | 15 + .../testdata/7_3_1/ws/tunnel/pw-005/ip.pcap | Bin 0 -> 33348 bytes .../testdata/7_3_1/ws/tunnel/pw-005/ip.rc | 1 + .../tunnel/pw-005/netlink_route_tnlsys.pcap | Bin 0 -> 33348 bytes .../7_3_1/ws/tunnel/pw-005/tnlsys.out | 141 +++++++++ .../testdata/7_3_1/ws/tunnel/pw-006/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/pw-006/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-006/ip.out | 15 + .../testdata/7_3_1/ws/tunnel/pw-006/ip.pcap | Bin 0 -> 33348 bytes .../testdata/7_3_1/ws/tunnel/pw-006/ip.rc | 1 + .../tunnel/pw-006/netlink_route_tnlsys.pcap | Bin 0 -> 33348 bytes .../7_3_1/ws/tunnel/pw-006/tnlsys.out | 141 +++++++++ .../testdata/7_3_1/ws/tunnel/pw-007/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/pw-007/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-007/ip.out | 15 + .../testdata/7_3_1/ws/tunnel/pw-007/ip.pcap | Bin 0 -> 33348 bytes .../testdata/7_3_1/ws/tunnel/pw-007/ip.rc | 1 + .../tunnel/pw-007/netlink_route_tnlsys.pcap | Bin 0 -> 33348 bytes .../7_3_1/ws/tunnel/pw-007/tnlsys.out | 141 +++++++++ .../testdata/7_3_1/ws/tunnel/pw-008/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/pw-008/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-008/ip.out | 15 + .../testdata/7_3_1/ws/tunnel/pw-008/ip.pcap | Bin 0 -> 33348 bytes .../testdata/7_3_1/ws/tunnel/pw-008/ip.rc | 1 + .../tunnel/pw-008/netlink_route_tnlsys.pcap | Bin 0 -> 33348 bytes .../7_3_1/ws/tunnel/pw-008/tnlsys.out | 141 +++++++++ .../testdata/7_3_1/ws/tunnel/pw-009/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/pw-009/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-009/ip.out | 15 + .../testdata/7_3_1/ws/tunnel/pw-009/ip.pcap | Bin 0 -> 33348 bytes .../testdata/7_3_1/ws/tunnel/pw-009/ip.rc | 1 + .../tunnel/pw-009/netlink_route_tnlsys.pcap | Bin 0 -> 33348 bytes .../7_3_1/ws/tunnel/pw-009/tnlsys.out | 142 +++++++++ .../testdata/7_3_1/ws/tunnel/pw-010/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/pw-010/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-010/ip.out | 71 +++++ .../testdata/7_3_1/ws/tunnel/pw-010/ip.pcap | Bin 0 -> 33348 bytes .../testdata/7_3_1/ws/tunnel/pw-010/ip.rc | 1 + .../tunnel/pw-010/netlink_route_tnlsys.pcap | Bin 0 -> 33348 bytes .../7_3_1/ws/tunnel/pw-010/tnlsys.out | 142 +++++++++ .../testdata/7_3_1/ws/tunnel/pw-011/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/pw-011/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-011/ip.out | 15 + .../testdata/7_3_1/ws/tunnel/pw-011/ip.pcap | Bin 0 -> 33348 bytes .../testdata/7_3_1/ws/tunnel/pw-011/ip.rc | 1 + .../tunnel/pw-011/netlink_route_tnlsys.pcap | Bin 0 -> 33348 bytes .../7_3_1/ws/tunnel/pw-011/tnlsys.out | 142 +++++++++ .../testdata/7_3_1/ws/tunnel/pw-012/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/pw-012/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-012/ip.out | 15 + .../testdata/7_3_1/ws/tunnel/pw-012/ip.pcap | Bin 0 -> 33348 bytes .../testdata/7_3_1/ws/tunnel/pw-012/ip.rc | 1 + .../tunnel/pw-012/netlink_route_tnlsys.pcap | Bin 0 -> 33348 bytes .../7_3_1/ws/tunnel/pw-012/tnlsys.out | 142 +++++++++ .../testdata/7_3_1/ws/tunnel/pw-013/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/pw-013/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-013/ip.out | 112 ++++++++ .../testdata/7_3_1/ws/tunnel/pw-013/ip.pcap | Bin 0 -> 33348 bytes .../testdata/7_3_1/ws/tunnel/pw-013/ip.rc | 1 + .../tunnel/pw-013/netlink_route_tnlsys.pcap | Bin 0 -> 33348 bytes .../7_3_1/ws/tunnel/pw-013/tnlsys.out | 142 +++++++++ .../testdata/7_3_1/ws/tunnel/pw-014/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/pw-014/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-014/ip.out | 2 + .../testdata/7_3_1/ws/tunnel/pw-014/ip.pcap | Bin 0 -> 33204 bytes .../testdata/7_3_1/ws/tunnel/pw-014/ip.rc | 1 + .../tunnel/pw-014/netlink_route_tnlsys.pcap | Bin 0 -> 33204 bytes .../7_3_1/ws/tunnel/pw-014/tnlsys.out | 115 ++++++++ .../testdata/7_3_1/ws/tunnel/pw-015/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/pw-015/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-015/ip.out | 9 + .../testdata/7_3_1/ws/tunnel/pw-015/ip.pcap | Bin 0 -> 33348 bytes .../testdata/7_3_1/ws/tunnel/pw-015/ip.rc | 1 + .../tunnel/pw-015/netlink_route_tnlsys.pcap | Bin 0 -> 33348 bytes .../7_3_1/ws/tunnel/pw-015/tnlsys.out | 136 +++++++++ .../testdata/7_3_1/ws/tunnel/pw-016/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/pw-016/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-016/ip.out | 2 + .../testdata/7_3_1/ws/tunnel/pw-016/ip.pcap | Bin 0 -> 33356 bytes .../testdata/7_3_1/ws/tunnel/pw-016/ip.rc | 1 + .../tunnel/pw-016/netlink_route_tnlsys.pcap | Bin 0 -> 33356 bytes .../7_3_1/ws/tunnel/pw-016/tnlsys.out | 115 ++++++++ .../testdata/7_3_1/ws/tunnel/pw-017/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/pw-017/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-017/ip.out | 2 + .../testdata/7_3_1/ws/tunnel/pw-017/ip.pcap | Bin 0 -> 33204 bytes .../testdata/7_3_1/ws/tunnel/pw-017/ip.rc | 1 + .../tunnel/pw-017/netlink_route_tnlsys.pcap | Bin 0 -> 33204 bytes .../7_3_1/ws/tunnel/pw-017/tnlsys.out | 37 +++ .../testdata/7_3_1/ws/tunnel/pw-018/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/pw-018/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-018/ip.out | 2 + .../testdata/7_3_1/ws/tunnel/pw-018/ip.pcap | Bin 0 -> 33204 bytes .../testdata/7_3_1/ws/tunnel/pw-018/ip.rc | 1 + .../tunnel/pw-018/netlink_route_tnlsys.pcap | Bin 0 -> 33204 bytes .../7_3_1/ws/tunnel/pw-018/tnlsys.out | 23 ++ .../testdata/7_3_1/ws/tunnel/pw-019/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/pw-019/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-019/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/pw-019/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/pw-019/ip.rc | 1 + .../tunnel/pw-019/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/pw-019/tnlsys.out | 30 ++ .../testdata/7_3_1/ws/tunnel/pw-020/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/pw-020/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-020/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/pw-020/ip.pcap | Bin 0 -> 33204 bytes .../testdata/7_3_1/ws/tunnel/pw-020/ip.rc | 1 + .../tunnel/pw-020/netlink_route_tnlsys.pcap | Bin 0 -> 33204 bytes .../7_3_1/ws/tunnel/pw-020/tnlsys.out | 14 + .../testdata/7_3_1/ws/tunnel/pw-021/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/pw-021/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-021/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/pw-021/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/pw-021/ip.rc | 1 + .../tunnel/pw-021/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/pw-021/tnlsys.out | 24 ++ .../testdata/7_3_1/ws/tunnel/pw-022/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/pw-022/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-022/ip.out | 5 + .../testdata/7_3_1/ws/tunnel/pw-022/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/pw-022/ip.rc | 1 + .../tunnel/pw-022/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/pw-022/tnlsys.out | 23 ++ .../testdata/7_3_1/ws/tunnel/pw-023/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/pw-023/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-023/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/pw-023/ip.pcap | Bin 0 -> 168 bytes .../testdata/7_3_1/ws/tunnel/pw-023/ip.rc | 1 + .../tunnel/pw-023/netlink_route_tnlsys.pcap | Bin 0 -> 168 bytes .../7_3_1/ws/tunnel/pw-023/tnlsys.out | 23 ++ .../testdata/7_3_1/ws/tunnel/pw-024/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/pw-024/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-024/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/pw-024/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/pw-024/ip.rc | 1 + .../tunnel/pw-024/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/pw-024/tnlsys.out | 23 ++ .../testdata/7_3_1/ws/tunnel/pw-025/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/pw-025/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-025/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/pw-025/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/pw-025/ip.rc | 1 + .../tunnel/pw-025/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/pw-025/tnlsys.out | 23 ++ .../testdata/7_3_1/ws/tunnel/pw-026/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/pw-026/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-026/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/pw-026/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/pw-026/ip.rc | 1 + .../tunnel/pw-026/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/pw-026/tnlsys.out | 24 ++ .../testdata/7_3_1/ws/tunnel/pw-027/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/pw-027/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-027/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/pw-027/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/pw-027/ip.rc | 1 + .../tunnel/pw-027/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/pw-027/tnlsys.out | 24 ++ .../testdata/7_3_1/ws/tunnel/pw-028/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/pw-028/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-028/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/pw-028/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/pw-028/ip.rc | 1 + .../tunnel/pw-028/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/pw-028/tnlsys.out | 31 ++ .../testdata/7_3_1/ws/tunnel/pw-029/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/pw-029/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-029/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/pw-029/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/pw-029/ip.rc | 1 + .../tunnel/pw-029/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/pw-029/tnlsys.out | 31 ++ .../testdata/7_3_1/ws/tunnel/pw-030/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/pw-030/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-030/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/pw-030/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/pw-030/ip.rc | 1 + .../tunnel/pw-030/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/pw-030/tnlsys.out | 24 ++ .../testdata/7_3_1/ws/tunnel/pw-031/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/pw-031/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-031/ip.out | 5 + .../testdata/7_3_1/ws/tunnel/pw-031/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/pw-031/ip.rc | 1 + .../tunnel/pw-031/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/pw-031/tnlsys.out | 24 ++ .../testdata/7_3_1/ws/tunnel/pw-032/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/pw-032/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-032/ip.out | 5 + .../testdata/7_3_1/ws/tunnel/pw-032/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/pw-032/ip.rc | 1 + .../tunnel/pw-032/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/pw-032/tnlsys.out | 30 ++ .../testdata/7_3_1/ws/tunnel/pw-033/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/pw-033/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-033/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/pw-033/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/pw-033/ip.rc | 1 + .../tunnel/pw-033/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/pw-033/tnlsys.out | 26 ++ .../testdata/7_3_1/ws/tunnel/pw-034/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/pw-034/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-034/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/pw-034/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/pw-034/ip.rc | 1 + .../tunnel/pw-034/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/pw-034/tnlsys.out | 28 ++ .../testdata/7_3_1/ws/tunnel/pw-035/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/pw-035/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-035/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/pw-035/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/pw-035/ip.rc | 1 + .../tunnel/pw-035/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/pw-035/tnlsys.out | 32 +++ .../testdata/7_3_1/ws/tunnel/pw-036/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/pw-036/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-036/ip.out | 4 + .../testdata/7_3_1/ws/tunnel/pw-036/ip.pcap | Bin 0 -> 14432 bytes .../testdata/7_3_1/ws/tunnel/pw-036/ip.rc | 1 + .../tunnel/pw-036/netlink_route_tnlsys.pcap | Bin 0 -> 14432 bytes .../7_3_1/ws/tunnel/pw-036/tnlsys.out | 38 +++ .../testdata/7_3_1/ws/tunnel/pw-037/cmd.json | 109 +++++++ .../testdata/7_3_1/ws/tunnel/pw-037/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-037/ip.out | 4 + .../testdata/7_3_1/ws/tunnel/pw-037/ip.pcap | Bin 0 -> 14432 bytes .../testdata/7_3_1/ws/tunnel/pw-037/ip.rc | 1 + .../tunnel/pw-037/netlink_route_tnlsys.pcap | Bin 0 -> 14432 bytes .../7_3_1/ws/tunnel/pw-037/tnlsys.out | 37 +++ .../testdata/7_3_1/ws/tunnel/pw-038/cmd.json | 64 +++++ .../testdata/7_3_1/ws/tunnel/pw-038/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-038/ip.out | 2 + .../testdata/7_3_1/ws/tunnel/pw-038/ip.pcap | Bin 0 -> 18804 bytes .../testdata/7_3_1/ws/tunnel/pw-038/ip.rc | 1 + .../tunnel/pw-038/netlink_route_tnlsys.pcap | Bin 0 -> 18804 bytes .../7_3_1/ws/tunnel/pw-038/tnlsys.out | 37 +++ .../testdata/7_3_1/ws/tunnel/pw-039/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/pw-039/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-039/ip.out | 9 + .../testdata/7_3_1/ws/tunnel/pw-039/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/pw-039/ip.rc | 1 + .../tunnel/pw-039/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/pw-039/tnlsys.out | 72 +++++ .../testdata/7_3_1/ws/tunnel/pw-040/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/pw-040/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-040/ip.out | 9 + .../testdata/7_3_1/ws/tunnel/pw-040/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/pw-040/ip.rc | 1 + .../tunnel/pw-040/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/pw-040/tnlsys.out | 71 +++++ .../testdata/7_3_1/ws/tunnel/pw-041/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/pw-041/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-041/ip.out | 9 + .../testdata/7_3_1/ws/tunnel/pw-041/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/pw-041/ip.rc | 1 + .../tunnel/pw-041/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/pw-041/tnlsys.out | 72 +++++ .../testdata/7_3_1/ws/tunnel/pw-042/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/pw-042/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-042/ip.out | 41 +++ .../testdata/7_3_1/ws/tunnel/pw-042/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/pw-042/ip.rc | 1 + .../tunnel/pw-042/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/pw-042/tnlsys.out | 73 +++++ .../testdata/7_3_1/ws/tunnel/pw-043/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/pw-043/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-043/ip.out | 9 + .../testdata/7_3_1/ws/tunnel/pw-043/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/pw-043/ip.rc | 1 + .../tunnel/pw-043/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/pw-043/tnlsys.out | 73 +++++ .../testdata/7_3_1/ws/tunnel/pw-044/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/pw-044/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-044/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/pw-044/ip.pcap | Bin 0 -> 168 bytes .../testdata/7_3_1/ws/tunnel/pw-044/ip.rc | 1 + .../tunnel/pw-044/netlink_route_tnlsys.pcap | Bin 0 -> 168 bytes .../7_3_1/ws/tunnel/pw-044/tnlsys.out | 24 ++ .../testdata/7_3_1/ws/tunnel/pw-045/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/pw-045/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-045/ip.out | 6 + .../testdata/7_3_1/ws/tunnel/pw-045/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/pw-045/ip.rc | 1 + .../tunnel/pw-045/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/pw-045/tnlsys.out | 25 ++ .../testdata/7_3_1/ws/tunnel/pw-046/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/pw-046/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-046/ip.out | 5 + .../testdata/7_3_1/ws/tunnel/pw-046/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/pw-046/ip.rc | 1 + .../tunnel/pw-046/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/pw-046/tnlsys.out | 25 ++ .../testdata/7_3_1/ws/tunnel/pw-047/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/pw-047/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-047/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/pw-047/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/pw-047/ip.rc | 1 + .../tunnel/pw-047/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/pw-047/tnlsys.out | 24 ++ .../testdata/7_3_1/ws/tunnel/pw-048/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/pw-048/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-048/ip.out | 4 + .../testdata/7_3_1/ws/tunnel/pw-048/ip.pcap | Bin 0 -> 10752 bytes .../testdata/7_3_1/ws/tunnel/pw-048/ip.rc | 1 + .../tunnel/pw-048/netlink_route_tnlsys.pcap | Bin 0 -> 10752 bytes .../7_3_1/ws/tunnel/pw-048/tnlsys.out | 74 +++++ .../testdata/7_3_1/ws/tunnel/pw-049/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/pw-049/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-049/ip.out | 5 + .../testdata/7_3_1/ws/tunnel/pw-049/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/pw-049/ip.rc | 1 + .../tunnel/pw-049/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/pw-049/tnlsys.out | 74 +++++ .../testdata/7_3_1/ws/tunnel/pw-050/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/pw-050/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-050/ip.out | 2 + .../testdata/7_3_1/ws/tunnel/pw-050/ip.pcap | Bin 0 -> 10752 bytes .../testdata/7_3_1/ws/tunnel/pw-050/ip.rc | 1 + .../tunnel/pw-050/netlink_route_tnlsys.pcap | Bin 0 -> 10752 bytes .../7_3_1/ws/tunnel/pw-050/tnlsys.out | 74 +++++ .../testdata/7_3_1/ws/tunnel/pw-051/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/pw-051/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-051/ip.out | 5 + .../testdata/7_3_1/ws/tunnel/pw-051/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/pw-051/ip.rc | 1 + .../tunnel/pw-051/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/pw-051/tnlsys.out | 74 +++++ .../testdata/7_3_1/ws/tunnel/pw-052/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/pw-052/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-052/ip.out | 9 + .../testdata/7_3_1/ws/tunnel/pw-052/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/pw-052/ip.rc | 1 + .../tunnel/pw-052/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/pw-052/tnlsys.out | 74 +++++ .../testdata/7_3_1/ws/tunnel/pw-053/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/pw-053/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-053/ip.out | 5 + .../testdata/7_3_1/ws/tunnel/pw-053/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/pw-053/ip.rc | 1 + .../tunnel/pw-053/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/pw-053/tnlsys.out | 73 +++++ .../testdata/7_3_1/ws/tunnel/pw-054/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/pw-054/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-054/ip.out | 2 + .../testdata/7_3_1/ws/tunnel/pw-054/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/pw-054/ip.rc | 1 + .../tunnel/pw-054/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/pw-054/tnlsys.out | 74 +++++ .../testdata/7_3_1/ws/tunnel/pw-055/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/pw-055/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-055/ip.out | 6 + .../testdata/7_3_1/ws/tunnel/pw-055/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/pw-055/ip.rc | 1 + .../tunnel/pw-055/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/pw-055/tnlsys.out | 74 +++++ .../testdata/7_3_1/ws/tunnel/pw-056/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/pw-056/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-056/ip.out | 2 + .../testdata/7_3_1/ws/tunnel/pw-056/ip.pcap | Bin 0 -> 10904 bytes .../testdata/7_3_1/ws/tunnel/pw-056/ip.rc | 1 + .../tunnel/pw-056/netlink_route_tnlsys.pcap | Bin 0 -> 10904 bytes .../7_3_1/ws/tunnel/pw-056/tnlsys.out | 74 +++++ .../testdata/7_3_1/ws/tunnel/pw-057/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/pw-057/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-057/ip.out | 2 + .../testdata/7_3_1/ws/tunnel/pw-057/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/pw-057/ip.rc | 1 + .../tunnel/pw-057/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/pw-057/tnlsys.out | 74 +++++ .../testdata/7_3_1/ws/tunnel/pw-058/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/pw-058/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-058/ip.out | 2 + .../testdata/7_3_1/ws/tunnel/pw-058/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/pw-058/ip.rc | 1 + .../tunnel/pw-058/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/pw-058/tnlsys.out | 74 +++++ .../testdata/7_3_1/ws/tunnel/pw-059/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/pw-059/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-059/ip.out | 2 + .../testdata/7_3_1/ws/tunnel/pw-059/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/pw-059/ip.rc | 1 + .../tunnel/pw-059/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/pw-059/tnlsys.out | 74 +++++ .../testdata/7_3_1/ws/tunnel/pw-060/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/pw-060/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-060/ip.out | 2 + .../testdata/7_3_1/ws/tunnel/pw-060/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/pw-060/ip.rc | 1 + .../tunnel/pw-060/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/pw-060/tnlsys.out | 74 +++++ .../testdata/7_3_1/ws/tunnel/pw-061/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/pw-061/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-061/ip.out | 9 + .../testdata/7_3_1/ws/tunnel/pw-061/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/pw-061/ip.rc | 1 + .../tunnel/pw-061/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/pw-061/tnlsys.out | 74 +++++ .../testdata/7_3_1/ws/tunnel/pw-062/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/pw-062/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-062/ip.out | 2 + .../testdata/7_3_1/ws/tunnel/pw-062/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/pw-062/ip.rc | 1 + .../tunnel/pw-062/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/pw-062/tnlsys.out | 73 +++++ .../testdata/7_3_1/ws/tunnel/pw-063/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/pw-063/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-063/ip.out | 9 + .../testdata/7_3_1/ws/tunnel/pw-063/ip.pcap | Bin 0 -> 10896 bytes .../testdata/7_3_1/ws/tunnel/pw-063/ip.rc | 1 + .../tunnel/pw-063/netlink_route_tnlsys.pcap | Bin 0 -> 10896 bytes .../7_3_1/ws/tunnel/pw-063/tnlsys.out | 74 +++++ .../testdata/7_3_1/ws/tunnel/pw-064/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/pw-064/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-064/ip.out | 5 + .../testdata/7_3_1/ws/tunnel/pw-064/ip.pcap | Bin 0 -> 25516 bytes .../testdata/7_3_1/ws/tunnel/pw-064/ip.rc | 1 + .../tunnel/pw-064/netlink_route_tnlsys.pcap | Bin 0 -> 25516 bytes .../7_3_1/ws/tunnel/pw-064/tnlsys.out | 50 ++++ .../testdata/7_3_1/ws/tunnel/pw-065/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tunnel/pw-065/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-065/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/pw-065/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/pw-065/ip.rc | 1 + .../tunnel/pw-065/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/pw-065/tnlsys.out | 24 ++ .../testdata/7_3_1/ws/tunnel/pw-066/cmd.json | 74 +++++ .../testdata/7_3_1/ws/tunnel/pw-066/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-066/ip.out | 6 + .../testdata/7_3_1/ws/tunnel/pw-066/ip.pcap | Bin 0 -> 23724 bytes .../testdata/7_3_1/ws/tunnel/pw-066/ip.rc | 1 + .../tunnel/pw-066/netlink_route_tnlsys.pcap | Bin 0 -> 23724 bytes .../7_3_1/ws/tunnel/pw-066/tnlsys.out | 57 ++++ .../testdata/7_3_1/ws/tunnel/pw-067/cmd.json | 74 +++++ .../testdata/7_3_1/ws/tunnel/pw-067/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-067/ip.out | 4 + .../testdata/7_3_1/ws/tunnel/pw-067/ip.pcap | Bin 0 -> 9956 bytes .../testdata/7_3_1/ws/tunnel/pw-067/ip.rc | 1 + .../tunnel/pw-067/netlink_route_tnlsys.pcap | Bin 0 -> 9956 bytes .../7_3_1/ws/tunnel/pw-067/tnlsys.out | 37 +++ .../testdata/7_3_1/ws/tunnel/pw-068/cmd.json | 74 +++++ .../testdata/7_3_1/ws/tunnel/pw-068/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-068/ip.out | 1 + .../testdata/7_3_1/ws/tunnel/pw-068/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tunnel/pw-068/ip.rc | 1 + .../tunnel/pw-068/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tunnel/pw-068/tnlsys.out | 23 ++ .../testdata/7_3_1/ws/tunnel/pw-069/b.txt | 2 + .../testdata/7_3_1/ws/tunnel/pw-069/cmd.json | 115 ++++++++ .../testdata/7_3_1/ws/tunnel/pw-069/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-069/ip.out | 30 ++ .../testdata/7_3_1/ws/tunnel/pw-069/ip.pcap | Bin 0 -> 66496 bytes .../testdata/7_3_1/ws/tunnel/pw-069/ip.rc | 1 + .../tunnel/pw-069/netlink_route_tnlsys.pcap | Bin 0 -> 66496 bytes .../7_3_1/ws/tunnel/pw-069/tnlsys.out | 267 +++++++++++++++++ .../testdata/7_3_1/ws/tunnel/pw-070/b.txt | 2 + .../testdata/7_3_1/ws/tunnel/pw-070/cmd.json | 115 ++++++++ .../testdata/7_3_1/ws/tunnel/pw-070/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-070/ip.out | 16 ++ .../testdata/7_3_1/ws/tunnel/pw-070/ip.pcap | Bin 0 -> 33348 bytes .../testdata/7_3_1/ws/tunnel/pw-070/ip.rc | 1 + .../tunnel/pw-070/netlink_route_tnlsys.pcap | Bin 0 -> 33348 bytes .../7_3_1/ws/tunnel/pw-070/tnlsys.out | 148 ++++++++++ .../testdata/7_3_1/ws/tunnel/pw-071/b.txt | 2 + .../testdata/7_3_1/ws/tunnel/pw-071/cmd.json | 115 ++++++++ .../testdata/7_3_1/ws/tunnel/pw-071/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-071/ip.out | 19 ++ .../testdata/7_3_1/ws/tunnel/pw-071/ip.pcap | Bin 0 -> 47724 bytes .../testdata/7_3_1/ws/tunnel/pw-071/ip.rc | 1 + .../tunnel/pw-071/netlink_route_tnlsys.pcap | Bin 0 -> 47724 bytes .../7_3_1/ws/tunnel/pw-071/tnlsys.out | 162 +++++++++++ .../testdata/7_3_1/ws/tunnel/pw-072/b.txt | 2 + .../testdata/7_3_1/ws/tunnel/pw-072/cmd.json | 85 ++++++ .../testdata/7_3_1/ws/tunnel/pw-072/ip.err | 0 .../testdata/7_3_1/ws/tunnel/pw-072/ip.out | 5 + .../testdata/7_3_1/ws/tunnel/pw-072/ip.pcap | Bin 0 -> 25660 bytes .../testdata/7_3_1/ws/tunnel/pw-072/ip.rc | 1 + .../tunnel/pw-072/netlink_route_tnlsys.pcap | Bin 0 -> 25660 bytes .../7_3_1/ws/tunnel/pw-072/tnlsys.out | 57 ++++ .../testdata/7_3_1/ws/tuntap/ec-001/cmd.json | 39 +++ .../testdata/7_3_1/ws/tuntap/ec-001/ip.err | 0 .../testdata/7_3_1/ws/tuntap/ec-001/ip.out | 0 .../testdata/7_3_1/ws/tuntap/ec-001/ip.pcap | Bin 0 -> 152 bytes .../testdata/7_3_1/ws/tuntap/ec-001/ip.rc | 1 + .../tuntap/ec-001/netlink_route_tnlsys.pcap | Bin 0 -> 152 bytes .../7_3_1/ws/tuntap/ec-001/tnlsys.out | 12 + .../testdata/7_3_1/ws/tuntap/ec-002/cmd.json | 63 ++++ .../testdata/7_3_1/ws/tuntap/ec-002/ip.err | 0 .../testdata/7_3_1/ws/tuntap/ec-002/ip.out | 1 + .../testdata/7_3_1/ws/tuntap/ec-002/ip.pcap | Bin 0 -> 4808 bytes .../testdata/7_3_1/ws/tuntap/ec-002/ip.rc | 1 + .../tuntap/ec-002/netlink_route_tnlsys.pcap | Bin 0 -> 4808 bytes .../7_3_1/ws/tuntap/ec-002/tnlsys.out | 60 ++++ .../testdata/7_3_1/ws/tuntap/ec-003/cmd.json | 63 ++++ .../testdata/7_3_1/ws/tuntap/ec-003/ip.err | 0 .../testdata/7_3_1/ws/tuntap/ec-003/ip.out | 3 + .../testdata/7_3_1/ws/tuntap/ec-003/ip.pcap | Bin 0 -> 4808 bytes .../testdata/7_3_1/ws/tuntap/ec-003/ip.rc | 1 + .../tuntap/ec-003/netlink_route_tnlsys.pcap | Bin 0 -> 4808 bytes .../7_3_1/ws/tuntap/ec-003/tnlsys.out | 58 ++++ .../testdata/7_3_1/ws/tuntap/ec-004/cmd.json | 63 ++++ .../testdata/7_3_1/ws/tuntap/ec-004/ip.err | 0 .../testdata/7_3_1/ws/tuntap/ec-004/ip.out | 3 + .../testdata/7_3_1/ws/tuntap/ec-004/ip.pcap | Bin 0 -> 4808 bytes .../testdata/7_3_1/ws/tuntap/ec-004/ip.rc | 1 + .../tuntap/ec-004/netlink_route_tnlsys.pcap | Bin 0 -> 4808 bytes .../7_3_1/ws/tuntap/ec-004/tnlsys.out | 59 ++++ .../testdata/7_3_1/ws/tuntap/ec-005/cmd.json | 63 ++++ .../testdata/7_3_1/ws/tuntap/ec-005/ip.err | 0 .../testdata/7_3_1/ws/tuntap/ec-005/ip.out | 3 + .../testdata/7_3_1/ws/tuntap/ec-005/ip.pcap | Bin 0 -> 4808 bytes .../testdata/7_3_1/ws/tuntap/ec-005/ip.rc | 1 + .../tuntap/ec-005/netlink_route_tnlsys.pcap | Bin 0 -> 4808 bytes .../7_3_1/ws/tuntap/ec-005/tnlsys.out | 59 ++++ .../testdata/7_3_1/ws/tuntap/ec-006/cmd.json | 63 ++++ .../testdata/7_3_1/ws/tuntap/ec-006/ip.err | 0 .../testdata/7_3_1/ws/tuntap/ec-006/ip.out | 3 + .../testdata/7_3_1/ws/tuntap/ec-006/ip.pcap | Bin 0 -> 4808 bytes .../testdata/7_3_1/ws/tuntap/ec-006/ip.rc | 1 + .../tuntap/ec-006/netlink_route_tnlsys.pcap | Bin 0 -> 4808 bytes .../7_3_1/ws/tuntap/ec-006/tnlsys.out | 59 ++++ .../testdata/7_3_1/ws/tuntap/ec-007/cmd.json | 63 ++++ .../testdata/7_3_1/ws/tuntap/ec-007/ip.err | 0 .../testdata/7_3_1/ws/tuntap/ec-007/ip.out | 3 + .../testdata/7_3_1/ws/tuntap/ec-007/ip.pcap | Bin 0 -> 4808 bytes .../testdata/7_3_1/ws/tuntap/ec-007/ip.rc | 1 + .../tuntap/ec-007/netlink_route_tnlsys.pcap | Bin 0 -> 4808 bytes .../7_3_1/ws/tuntap/ec-007/tnlsys.out | 59 ++++ .../testdata/7_3_1/ws/tuntap/ec-008/cmd.json | 63 ++++ .../testdata/7_3_1/ws/tuntap/ec-008/ip.err | 0 .../testdata/7_3_1/ws/tuntap/ec-008/ip.out | 3 + .../testdata/7_3_1/ws/tuntap/ec-008/ip.pcap | Bin 0 -> 4808 bytes .../testdata/7_3_1/ws/tuntap/ec-008/ip.rc | 1 + .../tuntap/ec-008/netlink_route_tnlsys.pcap | Bin 0 -> 4808 bytes .../7_3_1/ws/tuntap/ec-008/tnlsys.out | 58 ++++ .../testdata/7_3_1/ws/tuntap/ec-009/cmd.json | 69 +++++ .../testdata/7_3_1/ws/tuntap/ec-009/ip.err | 0 .../testdata/7_3_1/ws/tuntap/ec-009/ip.out | 6 + .../testdata/7_3_1/ws/tuntap/ec-009/ip.pcap | Bin 0 -> 4808 bytes .../testdata/7_3_1/ws/tuntap/ec-009/ip.rc | 1 + .../tuntap/ec-009/netlink_route_tnlsys.pcap | Bin 0 -> 4808 bytes .../7_3_1/ws/tuntap/ec-009/tnlsys.out | 61 ++++ .../testdata/7_3_1/ws/tuntap/ec-010/cmd.json | 63 ++++ .../testdata/7_3_1/ws/tuntap/ec-010/ip.err | 0 .../testdata/7_3_1/ws/tuntap/ec-010/ip.out | 3 + .../testdata/7_3_1/ws/tuntap/ec-010/ip.pcap | Bin 0 -> 4808 bytes .../testdata/7_3_1/ws/tuntap/ec-010/ip.rc | 1 + .../tuntap/ec-010/netlink_route_tnlsys.pcap | Bin 0 -> 4808 bytes .../7_3_1/ws/tuntap/ec-010/tnlsys.out | 60 ++++ .../testdata/7_3_1/ws/tuntap/ec-011/cmd.json | 63 ++++ .../testdata/7_3_1/ws/tuntap/ec-011/ip.err | 0 .../testdata/7_3_1/ws/tuntap/ec-011/ip.out | 3 + .../testdata/7_3_1/ws/tuntap/ec-011/ip.pcap | Bin 0 -> 4808 bytes .../testdata/7_3_1/ws/tuntap/ec-011/ip.rc | 1 + .../tuntap/ec-011/netlink_route_tnlsys.pcap | Bin 0 -> 4808 bytes .../7_3_1/ws/tuntap/ec-011/tnlsys.out | 60 ++++ .../testdata/7_3_1/ws/tuntap/ec-012/cmd.json | 63 ++++ .../testdata/7_3_1/ws/tuntap/ec-012/ip.err | 0 .../testdata/7_3_1/ws/tuntap/ec-012/ip.out | 3 + .../testdata/7_3_1/ws/tuntap/ec-012/ip.pcap | Bin 0 -> 4808 bytes .../testdata/7_3_1/ws/tuntap/ec-012/ip.rc | 1 + .../tuntap/ec-012/netlink_route_tnlsys.pcap | Bin 0 -> 4808 bytes .../7_3_1/ws/tuntap/ec-012/tnlsys.out | 60 ++++ .../testdata/7_3_1/ws/tuntap/ec-013/cmd.json | 63 ++++ .../testdata/7_3_1/ws/tuntap/ec-013/ip.err | 0 .../testdata/7_3_1/ws/tuntap/ec-013/ip.out | 3 + .../testdata/7_3_1/ws/tuntap/ec-013/ip.pcap | Bin 0 -> 4808 bytes .../testdata/7_3_1/ws/tuntap/ec-013/ip.rc | 1 + .../tuntap/ec-013/netlink_route_tnlsys.pcap | Bin 0 -> 4808 bytes .../7_3_1/ws/tuntap/ec-013/tnlsys.out | 61 ++++ .../testdata/7_3_1/ws/tuntap/ec-014/cmd.json | 63 ++++ .../testdata/7_3_1/ws/tuntap/ec-014/ip.err | 0 .../testdata/7_3_1/ws/tuntap/ec-014/ip.out | 3 + .../testdata/7_3_1/ws/tuntap/ec-014/ip.pcap | Bin 0 -> 4808 bytes .../testdata/7_3_1/ws/tuntap/ec-014/ip.rc | 1 + .../tuntap/ec-014/netlink_route_tnlsys.pcap | Bin 0 -> 4808 bytes .../7_3_1/ws/tuntap/ec-014/tnlsys.out | 61 ++++ .../testdata/7_3_1/ws/tuntap/ec-015/cmd.json | 89 ++++++ .../testdata/7_3_1/ws/tuntap/ec-015/ip.err | 0 .../testdata/7_3_1/ws/tuntap/ec-015/ip.out | 6 + .../testdata/7_3_1/ws/tuntap/ec-015/ip.pcap | Bin 0 -> 4808 bytes .../testdata/7_3_1/ws/tuntap/ec-015/ip.rc | 1 + .../tuntap/ec-015/netlink_route_tnlsys.pcap | Bin 0 -> 4808 bytes .../7_3_1/ws/tuntap/ec-015/tnlsys.out | 80 ++++++ .../testdata/7_3_1/ws/tuntap/ec-016/cmd.json | 89 ++++++ .../testdata/7_3_1/ws/tuntap/ec-016/ip.err | 0 .../testdata/7_3_1/ws/tuntap/ec-016/ip.out | 3 + .../testdata/7_3_1/ws/tuntap/ec-016/ip.pcap | Bin 0 -> 4808 bytes .../testdata/7_3_1/ws/tuntap/ec-016/ip.rc | 1 + .../tuntap/ec-016/netlink_route_tnlsys.pcap | Bin 0 -> 4808 bytes .../7_3_1/ws/tuntap/ec-016/tnlsys.out | 81 ++++++ .../testdata/7_3_1/ws/tuntap/ec-017/cmd.json | 89 ++++++ .../testdata/7_3_1/ws/tuntap/ec-017/ip.err | 0 .../testdata/7_3_1/ws/tuntap/ec-017/ip.out | 6 + .../testdata/7_3_1/ws/tuntap/ec-017/ip.pcap | Bin 0 -> 4808 bytes .../testdata/7_3_1/ws/tuntap/ec-017/ip.rc | 1 + .../tuntap/ec-017/netlink_route_tnlsys.pcap | Bin 0 -> 4808 bytes .../7_3_1/ws/tuntap/ec-017/tnlsys.out | 79 +++++ .../testdata/7_3_1/ws/tuntap/ec-018/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tuntap/ec-018/ip.err | 0 .../testdata/7_3_1/ws/tuntap/ec-018/ip.out | 6 + .../testdata/7_3_1/ws/tuntap/ec-018/ip.pcap | Bin 0 -> 4808 bytes .../testdata/7_3_1/ws/tuntap/ec-018/ip.rc | 1 + .../tuntap/ec-018/netlink_route_tnlsys.pcap | Bin 0 -> 4808 bytes .../7_3_1/ws/tuntap/ec-018/tnlsys.out | 68 +++++ .../testdata/7_3_1/ws/tuntap/ec-019/b.txt | 2 + .../testdata/7_3_1/ws/tuntap/ec-019/cmd.json | 69 +++++ .../testdata/7_3_1/ws/tuntap/ec-019/ip.err | 0 .../testdata/7_3_1/ws/tuntap/ec-019/ip.out | 6 + .../testdata/7_3_1/ws/tuntap/ec-019/ip.pcap | Bin 0 -> 9560 bytes .../testdata/7_3_1/ws/tuntap/ec-019/ip.rc | 1 + .../tuntap/ec-019/netlink_route_tnlsys.pcap | Bin 0 -> 9560 bytes .../7_3_1/ws/tuntap/ec-019/tnlsys.out | 59 ++++ .../testdata/7_3_1/ws/tuntap/ec-020/b.txt | 1 + .../testdata/7_3_1/ws/tuntap/ec-020/cmd.json | 69 +++++ .../testdata/7_3_1/ws/tuntap/ec-020/ip.err | 0 .../testdata/7_3_1/ws/tuntap/ec-020/ip.out | 3 + .../testdata/7_3_1/ws/tuntap/ec-020/ip.pcap | Bin 0 -> 4808 bytes .../testdata/7_3_1/ws/tuntap/ec-020/ip.rc | 1 + .../tuntap/ec-020/netlink_route_tnlsys.pcap | Bin 0 -> 4808 bytes .../7_3_1/ws/tuntap/ec-020/tnlsys.out | 59 ++++ .../testdata/7_3_1/ws/tuntap/ng-001/cmd.json | 39 +++ .../testdata/7_3_1/ws/tuntap/ng-001/ip.err | 1 + .../testdata/7_3_1/ws/tuntap/ng-001/ip.out | 0 .../testdata/7_3_1/ws/tuntap/ng-001/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tuntap/ng-001/ip.rc | 1 + .../tuntap/ng-001/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tuntap/ng-001/tnlsys.out | 12 + .../testdata/7_3_1/ws/tuntap/ng-002/cmd.json | 39 +++ .../testdata/7_3_1/ws/tuntap/ng-002/ip.err | 6 + .../testdata/7_3_1/ws/tuntap/ng-002/ip.out | 0 .../testdata/7_3_1/ws/tuntap/ng-002/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tuntap/ng-002/ip.rc | 1 + .../tuntap/ng-002/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tuntap/ng-002/tnlsys.out | 12 + .../testdata/7_3_1/ws/tuntap/ng-003/cmd.json | 39 +++ .../testdata/7_3_1/ws/tuntap/ng-003/ip.err | 1 + .../testdata/7_3_1/ws/tuntap/ng-003/ip.out | 0 .../testdata/7_3_1/ws/tuntap/ng-003/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tuntap/ng-003/ip.rc | 1 + .../tuntap/ng-003/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tuntap/ng-003/tnlsys.out | 12 + .../testdata/7_3_1/ws/tuntap/ng-004/cmd.json | 39 +++ .../testdata/7_3_1/ws/tuntap/ng-004/ip.err | 1 + .../testdata/7_3_1/ws/tuntap/ng-004/ip.out | 0 .../testdata/7_3_1/ws/tuntap/ng-004/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tuntap/ng-004/ip.rc | 1 + .../tuntap/ng-004/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tuntap/ng-004/tnlsys.out | 14 + .../testdata/7_3_1/ws/tuntap/ng-005/cmd.json | 39 +++ .../testdata/7_3_1/ws/tuntap/ng-005/ip.err | 1 + .../testdata/7_3_1/ws/tuntap/ng-005/ip.out | 0 .../testdata/7_3_1/ws/tuntap/ng-005/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tuntap/ng-005/ip.rc | 1 + .../tuntap/ng-005/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tuntap/ng-005/tnlsys.out | 16 ++ .../testdata/7_3_1/ws/tuntap/ng-006/cmd.json | 39 +++ .../testdata/7_3_1/ws/tuntap/ng-006/ip.err | 1 + .../testdata/7_3_1/ws/tuntap/ng-006/ip.out | 0 .../testdata/7_3_1/ws/tuntap/ng-006/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tuntap/ng-006/ip.rc | 1 + .../tuntap/ng-006/netlink_route_tnlsys.pcap | Bin 0 -> 24 bytes .../7_3_1/ws/tuntap/ng-006/tnlsys.out | 12 + .../testdata/7_3_1/ws/tuntap/pw-001/cmd.json | 63 ++++ .../testdata/7_3_1/ws/tuntap/pw-001/ip.err | 0 .../testdata/7_3_1/ws/tuntap/pw-001/ip.out | 3 + .../testdata/7_3_1/ws/tuntap/pw-001/ip.pcap | Bin 0 -> 4808 bytes .../testdata/7_3_1/ws/tuntap/pw-001/ip.rc | 1 + .../tuntap/pw-001/netlink_route_tnlsys.pcap | Bin 0 -> 4808 bytes .../7_3_1/ws/tuntap/pw-001/tnlsys.out | 59 ++++ .../testdata/7_3_1/ws/tuntap/pw-002/cmd.json | 39 +++ .../testdata/7_3_1/ws/tuntap/pw-002/ip.err | 0 .../testdata/7_3_1/ws/tuntap/pw-002/ip.out | 1 + .../testdata/7_3_1/ws/tuntap/pw-002/ip.pcap | Bin 0 -> 152 bytes .../testdata/7_3_1/ws/tuntap/pw-002/ip.rc | 1 + .../tuntap/pw-002/netlink_route_tnlsys.pcap | Bin 0 -> 152 bytes .../7_3_1/ws/tuntap/pw-002/tnlsys.out | 13 + .../testdata/7_3_1/ws/tuntap/pw-003/cmd.json | 63 ++++ .../testdata/7_3_1/ws/tuntap/pw-003/ip.err | 0 .../testdata/7_3_1/ws/tuntap/pw-003/ip.out | 1 + .../testdata/7_3_1/ws/tuntap/pw-003/ip.pcap | Bin 0 -> 4808 bytes .../testdata/7_3_1/ws/tuntap/pw-003/ip.rc | 1 + .../tuntap/pw-003/netlink_route_tnlsys.pcap | Bin 0 -> 4808 bytes .../7_3_1/ws/tuntap/pw-003/tnlsys.out | 59 ++++ .../testdata/7_3_1/ws/tuntap/pw-004/cmd.json | 63 ++++ .../testdata/7_3_1/ws/tuntap/pw-004/ip.err | 0 .../testdata/7_3_1/ws/tuntap/pw-004/ip.out | 1 + .../testdata/7_3_1/ws/tuntap/pw-004/ip.pcap | Bin 0 -> 4808 bytes .../testdata/7_3_1/ws/tuntap/pw-004/ip.rc | 1 + .../tuntap/pw-004/netlink_route_tnlsys.pcap | Bin 0 -> 4808 bytes .../7_3_1/ws/tuntap/pw-004/tnlsys.out | 60 ++++ .../testdata/7_3_1/ws/tuntap/pw-005/cmd.json | 63 ++++ .../testdata/7_3_1/ws/tuntap/pw-005/ip.err | 0 .../testdata/7_3_1/ws/tuntap/pw-005/ip.out | 1 + .../testdata/7_3_1/ws/tuntap/pw-005/ip.pcap | Bin 0 -> 4808 bytes .../testdata/7_3_1/ws/tuntap/pw-005/ip.rc | 1 + .../tuntap/pw-005/netlink_route_tnlsys.pcap | Bin 0 -> 4808 bytes .../7_3_1/ws/tuntap/pw-005/tnlsys.out | 60 ++++ .../testdata/7_3_1/ws/tuntap/pw-006/cmd.json | 63 ++++ .../testdata/7_3_1/ws/tuntap/pw-006/ip.err | 0 .../testdata/7_3_1/ws/tuntap/pw-006/ip.out | 1 + .../testdata/7_3_1/ws/tuntap/pw-006/ip.pcap | Bin 0 -> 4808 bytes .../testdata/7_3_1/ws/tuntap/pw-006/ip.rc | 1 + .../tuntap/pw-006/netlink_route_tnlsys.pcap | Bin 0 -> 4808 bytes .../7_3_1/ws/tuntap/pw-006/tnlsys.out | 60 ++++ .../testdata/7_3_1/ws/tuntap/pw-007/cmd.json | 63 ++++ .../testdata/7_3_1/ws/tuntap/pw-007/ip.err | 0 .../testdata/7_3_1/ws/tuntap/pw-007/ip.out | 1 + .../testdata/7_3_1/ws/tuntap/pw-007/ip.pcap | Bin 0 -> 4808 bytes .../testdata/7_3_1/ws/tuntap/pw-007/ip.rc | 1 + .../tuntap/pw-007/netlink_route_tnlsys.pcap | Bin 0 -> 4808 bytes .../7_3_1/ws/tuntap/pw-007/tnlsys.out | 60 ++++ .../testdata/7_3_1/ws/tuntap/pw-008/cmd.json | 63 ++++ .../testdata/7_3_1/ws/tuntap/pw-008/ip.err | 0 .../testdata/7_3_1/ws/tuntap/pw-008/ip.out | 1 + .../testdata/7_3_1/ws/tuntap/pw-008/ip.pcap | Bin 0 -> 4808 bytes .../testdata/7_3_1/ws/tuntap/pw-008/ip.rc | 1 + .../tuntap/pw-008/netlink_route_tnlsys.pcap | Bin 0 -> 4808 bytes .../7_3_1/ws/tuntap/pw-008/tnlsys.out | 59 ++++ .../testdata/7_3_1/ws/tuntap/pw-009/cmd.json | 69 +++++ .../testdata/7_3_1/ws/tuntap/pw-009/ip.err | 0 .../testdata/7_3_1/ws/tuntap/pw-009/ip.out | 1 + .../testdata/7_3_1/ws/tuntap/pw-009/ip.pcap | Bin 0 -> 4808 bytes .../testdata/7_3_1/ws/tuntap/pw-009/ip.rc | 1 + .../tuntap/pw-009/netlink_route_tnlsys.pcap | Bin 0 -> 4808 bytes .../7_3_1/ws/tuntap/pw-009/tnlsys.out | 62 ++++ .../testdata/7_3_1/ws/tuntap/pw-010/cmd.json | 63 ++++ .../testdata/7_3_1/ws/tuntap/pw-010/ip.err | 0 .../testdata/7_3_1/ws/tuntap/pw-010/ip.out | 1 + .../testdata/7_3_1/ws/tuntap/pw-010/ip.pcap | Bin 0 -> 4808 bytes .../testdata/7_3_1/ws/tuntap/pw-010/ip.rc | 1 + .../tuntap/pw-010/netlink_route_tnlsys.pcap | Bin 0 -> 4808 bytes .../7_3_1/ws/tuntap/pw-010/tnlsys.out | 61 ++++ .../testdata/7_3_1/ws/tuntap/pw-011/cmd.json | 63 ++++ .../testdata/7_3_1/ws/tuntap/pw-011/ip.err | 0 .../testdata/7_3_1/ws/tuntap/pw-011/ip.out | 1 + .../testdata/7_3_1/ws/tuntap/pw-011/ip.pcap | Bin 0 -> 4808 bytes .../testdata/7_3_1/ws/tuntap/pw-011/ip.rc | 1 + .../tuntap/pw-011/netlink_route_tnlsys.pcap | Bin 0 -> 4808 bytes .../7_3_1/ws/tuntap/pw-011/tnlsys.out | 61 ++++ .../testdata/7_3_1/ws/tuntap/pw-012/cmd.json | 63 ++++ .../testdata/7_3_1/ws/tuntap/pw-012/ip.err | 0 .../testdata/7_3_1/ws/tuntap/pw-012/ip.out | 1 + .../testdata/7_3_1/ws/tuntap/pw-012/ip.pcap | Bin 0 -> 4808 bytes .../testdata/7_3_1/ws/tuntap/pw-012/ip.rc | 1 + .../tuntap/pw-012/netlink_route_tnlsys.pcap | Bin 0 -> 4808 bytes .../7_3_1/ws/tuntap/pw-012/tnlsys.out | 61 ++++ .../testdata/7_3_1/ws/tuntap/pw-013/cmd.json | 63 ++++ .../testdata/7_3_1/ws/tuntap/pw-013/ip.err | 0 .../testdata/7_3_1/ws/tuntap/pw-013/ip.out | 1 + .../testdata/7_3_1/ws/tuntap/pw-013/ip.pcap | Bin 0 -> 4808 bytes .../testdata/7_3_1/ws/tuntap/pw-013/ip.rc | 1 + .../tuntap/pw-013/netlink_route_tnlsys.pcap | Bin 0 -> 4808 bytes .../7_3_1/ws/tuntap/pw-013/tnlsys.out | 62 ++++ .../testdata/7_3_1/ws/tuntap/pw-014/cmd.json | 63 ++++ .../testdata/7_3_1/ws/tuntap/pw-014/ip.err | 0 .../testdata/7_3_1/ws/tuntap/pw-014/ip.out | 1 + .../testdata/7_3_1/ws/tuntap/pw-014/ip.pcap | Bin 0 -> 4808 bytes .../testdata/7_3_1/ws/tuntap/pw-014/ip.rc | 1 + .../tuntap/pw-014/netlink_route_tnlsys.pcap | Bin 0 -> 4808 bytes .../7_3_1/ws/tuntap/pw-014/tnlsys.out | 62 ++++ .../testdata/7_3_1/ws/tuntap/pw-015/cmd.json | 89 ++++++ .../testdata/7_3_1/ws/tuntap/pw-015/ip.err | 0 .../testdata/7_3_1/ws/tuntap/pw-015/ip.out | 1 + .../testdata/7_3_1/ws/tuntap/pw-015/ip.pcap | Bin 0 -> 4808 bytes .../testdata/7_3_1/ws/tuntap/pw-015/ip.rc | 1 + .../tuntap/pw-015/netlink_route_tnlsys.pcap | Bin 0 -> 4808 bytes .../7_3_1/ws/tuntap/pw-015/tnlsys.out | 81 ++++++ .../testdata/7_3_1/ws/tuntap/pw-016/cmd.json | 89 ++++++ .../testdata/7_3_1/ws/tuntap/pw-016/ip.err | 0 .../testdata/7_3_1/ws/tuntap/pw-016/ip.out | 1 + .../testdata/7_3_1/ws/tuntap/pw-016/ip.pcap | Bin 0 -> 4808 bytes .../testdata/7_3_1/ws/tuntap/pw-016/ip.rc | 1 + .../tuntap/pw-016/netlink_route_tnlsys.pcap | Bin 0 -> 4808 bytes .../7_3_1/ws/tuntap/pw-016/tnlsys.out | 82 ++++++ .../testdata/7_3_1/ws/tuntap/pw-017/cmd.json | 89 ++++++ .../testdata/7_3_1/ws/tuntap/pw-017/ip.err | 0 .../testdata/7_3_1/ws/tuntap/pw-017/ip.out | 1 + .../testdata/7_3_1/ws/tuntap/pw-017/ip.pcap | Bin 0 -> 4808 bytes .../testdata/7_3_1/ws/tuntap/pw-017/ip.rc | 1 + .../tuntap/pw-017/netlink_route_tnlsys.pcap | Bin 0 -> 4808 bytes .../7_3_1/ws/tuntap/pw-017/tnlsys.out | 80 ++++++ .../testdata/7_3_1/ws/tuntap/pw-018/cmd.json | 79 +++++ .../testdata/7_3_1/ws/tuntap/pw-018/ip.err | 0 .../testdata/7_3_1/ws/tuntap/pw-018/ip.out | 1 + .../testdata/7_3_1/ws/tuntap/pw-018/ip.pcap | Bin 0 -> 4808 bytes .../testdata/7_3_1/ws/tuntap/pw-018/ip.rc | 1 + .../tuntap/pw-018/netlink_route_tnlsys.pcap | Bin 0 -> 4808 bytes .../7_3_1/ws/tuntap/pw-018/tnlsys.out | 69 +++++ .../testdata/7_3_1/ws/tuntap/pw-019/b.txt | 2 + .../testdata/7_3_1/ws/tuntap/pw-019/cmd.json | 69 +++++ .../testdata/7_3_1/ws/tuntap/pw-019/ip.err | 0 .../testdata/7_3_1/ws/tuntap/pw-019/ip.out | 2 + .../testdata/7_3_1/ws/tuntap/pw-019/ip.pcap | Bin 0 -> 9560 bytes .../testdata/7_3_1/ws/tuntap/pw-019/ip.rc | 1 + .../tuntap/pw-019/netlink_route_tnlsys.pcap | Bin 0 -> 9560 bytes .../7_3_1/ws/tuntap/pw-019/tnlsys.out | 60 ++++ .../testdata/7_3_1/ws/tuntap/pw-020/b.txt | 1 + .../testdata/7_3_1/ws/tuntap/pw-020/cmd.json | 69 +++++ .../testdata/7_3_1/ws/tuntap/pw-020/ip.err | 0 .../testdata/7_3_1/ws/tuntap/pw-020/ip.out | 1 + .../testdata/7_3_1/ws/tuntap/pw-020/ip.pcap | Bin 0 -> 4808 bytes .../testdata/7_3_1/ws/tuntap/pw-020/ip.rc | 1 + .../tuntap/pw-020/netlink_route_tnlsys.pcap | Bin 0 -> 4808 bytes .../7_3_1/ws/tuntap/pw-020/tnlsys.out | 60 ++++ tools/nlcapgen/main.go | 6 +- tools/nlcapgen/matrix_tunnel.go | 270 ++++++++++++++++++ tools/nlcapgen/matrix_tunnel_test.go | 225 +++++++++++++++ tools/nlcapgen/matrix_tuntap.go | 163 +++++++++++ 1545 files changed, 33585 insertions(+), 32 deletions(-) create mode 100644 nix/microvms/workbench/tunnel.rows.jsonl create mode 100644 nix/microvms/workbench/tuntap.rows.jsonl create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-001/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-001/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-001/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-001/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-001/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-001/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-001/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-002/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-002/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-002/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-002/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-002/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-002/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-002/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-003/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-003/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-003/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-003/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-003/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-003/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-003/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-004/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-004/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-004/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-004/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-004/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-004/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-004/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-005/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-005/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-005/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-005/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-005/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-005/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-005/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-006/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-006/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-006/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-006/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-006/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-006/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-006/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-007/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-007/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-007/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-007/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-007/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-007/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-007/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-008/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-008/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-008/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-008/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-008/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-008/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-008/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-009/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-009/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-009/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-009/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-009/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-009/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-009/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-010/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-010/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-010/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-010/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-010/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-010/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-010/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-011/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-011/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-011/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-011/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-011/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-011/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-011/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-012/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-012/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-012/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-012/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-012/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-012/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-012/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-013/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-013/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-013/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-013/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-013/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-013/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-013/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-014/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-014/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-014/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-014/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-014/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-014/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-014/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-015/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-015/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-015/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-015/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-015/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-015/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-015/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-016/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-016/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-016/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-016/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-016/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-016/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-016/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-017/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-017/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-017/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-017/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-017/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-017/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-017/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-018/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-018/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-018/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-018/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-018/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-018/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-018/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-019/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-019/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-019/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-019/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-019/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-019/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-019/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-020/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-020/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-020/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-020/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-020/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-020/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-020/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-021/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-021/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-021/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-021/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-021/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-021/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-021/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-022/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-022/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-022/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-022/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-022/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-022/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-022/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-023/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-023/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-023/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-023/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-023/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-023/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-023/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-024/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-024/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-024/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-024/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-024/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-024/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-024/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-025/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-025/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-025/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-025/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-025/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-025/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-025/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-026/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-026/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-026/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-026/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-026/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-026/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-026/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-027/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-027/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-027/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-027/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-027/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-027/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-027/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-028/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-028/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-028/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-028/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-028/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-028/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-028/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-029/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-029/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-029/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-029/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-029/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-029/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-029/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-030/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-030/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-030/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-030/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-030/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-030/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-030/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-031/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-031/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-031/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-031/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-031/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-031/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-031/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-032/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-032/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-032/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-032/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-032/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-032/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-032/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-033/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-033/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-033/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-033/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-033/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-033/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-033/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-034/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-034/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-034/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-034/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-034/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-034/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-034/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-035/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-035/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-035/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-035/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-035/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-035/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-035/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-036/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-036/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-036/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-036/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-036/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-036/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-036/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-037/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-037/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-037/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-037/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-037/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-037/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-037/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-038/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-038/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-038/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-038/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-038/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-038/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-038/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-039/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-039/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-039/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-039/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-039/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-039/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-039/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-040/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-040/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-040/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-040/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-040/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-040/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-040/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-041/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-041/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-041/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-041/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-041/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-041/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-041/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-042/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-042/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-042/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-042/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-042/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-042/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-042/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-043/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-043/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-043/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-043/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-043/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-043/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-043/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-044/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-044/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-044/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-044/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-044/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-044/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-044/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-045/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-045/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-045/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-045/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-045/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-045/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-045/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-046/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-046/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-046/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-046/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-046/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-046/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-046/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-047/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-047/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-047/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-047/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-047/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-047/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-047/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-048/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-048/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-048/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-048/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-048/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-048/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-048/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-049/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-049/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-049/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-049/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-049/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-049/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-049/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-050/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-050/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-050/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-050/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-050/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-050/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-050/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-051/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-051/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-051/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-051/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-051/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-051/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-051/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-052/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-052/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-052/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-052/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-052/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-052/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-052/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-053/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-053/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-053/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-053/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-053/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-053/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-053/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-054/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-054/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-054/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-054/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-054/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-054/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-054/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-055/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-055/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-055/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-055/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-055/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-055/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-055/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-056/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-056/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-056/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-056/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-056/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-056/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-056/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-057/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-057/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-057/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-057/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-057/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-057/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-057/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-058/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-058/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-058/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-058/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-058/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-058/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-058/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-059/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-059/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-059/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-059/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-059/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-059/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-059/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-060/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-060/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-060/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-060/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-060/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-060/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-060/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-061/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-061/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-061/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-061/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-061/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-061/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-061/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-062/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-062/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-062/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-062/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-062/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-062/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-062/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-063/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-063/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-063/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-063/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-063/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-063/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-063/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-064/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-064/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-064/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-064/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-064/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-064/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-064/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-065/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-065/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-065/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-065/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-065/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-065/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-065/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-066/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-066/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-066/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-066/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-066/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-066/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-066/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-067/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-067/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-067/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-067/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-067/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-067/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-067/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-068/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-068/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-068/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-068/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-068/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-068/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-068/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-069/b.txt create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-069/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-069/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-069/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-069/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-069/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-069/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-069/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-070/b.txt create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-070/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-070/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-070/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-070/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-070/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-070/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-070/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-071/b.txt create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-071/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-071/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-071/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-071/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-071/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-071/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-071/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-072/b.txt create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-072/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-072/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-072/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-072/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-072/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-072/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-072/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-001/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-001/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-001/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-001/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-001/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-001/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-001/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-002/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-002/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-002/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-002/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-002/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-002/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-002/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-003/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-003/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-003/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-003/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-003/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-003/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-003/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-004/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-004/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-004/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-004/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-004/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-004/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-004/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-005/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-005/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-005/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-005/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-005/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-005/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-005/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-006/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-006/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-006/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-006/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-006/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-006/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-006/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-007/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-007/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-007/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-007/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-007/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-007/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-007/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-008/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-008/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-008/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-008/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-008/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-008/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-008/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-009/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-009/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-009/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-009/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-009/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-009/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-009/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-010/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-010/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-010/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-010/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-010/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-010/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-010/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-011/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-011/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-011/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-011/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-011/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-011/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-011/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-012/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-012/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-012/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-012/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-012/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-012/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-012/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-013/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-013/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-013/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-013/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-013/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-013/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-013/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-014/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-014/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-014/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-014/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-014/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-014/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-014/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-015/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-015/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-015/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-015/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-015/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-015/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-015/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-016/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-016/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-016/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-016/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-016/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-016/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-016/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-017/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-017/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-017/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-017/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-017/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-017/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-017/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-018/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-018/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-018/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-018/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-018/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-018/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-018/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-019/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-019/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-019/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-019/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-019/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-019/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-019/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-020/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-020/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-020/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-020/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-020/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-020/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-020/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-021/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-021/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-021/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-021/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-021/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-021/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-021/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-022/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-022/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-022/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-022/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-022/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-022/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-022/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-023/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-023/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-023/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-023/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-023/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-023/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-023/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-024/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-024/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-024/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-024/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-024/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-024/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-024/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-025/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-025/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-025/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-025/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-025/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-025/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-025/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-026/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-026/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-026/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-026/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-026/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-026/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-026/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-027/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-027/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-027/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-027/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-027/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-027/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-027/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-001/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-001/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-001/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-001/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-001/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-001/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-001/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-002/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-002/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-002/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-002/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-002/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-002/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-002/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-003/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-003/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-003/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-003/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-003/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-003/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-003/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-004/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-004/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-004/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-004/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-004/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-004/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-004/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-005/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-005/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-005/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-005/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-005/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-005/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-005/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-006/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-006/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-006/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-006/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-006/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-006/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-006/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-007/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-007/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-007/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-007/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-007/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-007/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-007/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-008/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-008/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-008/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-008/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-008/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-008/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-008/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-009/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-009/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-009/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-009/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-009/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-009/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-009/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-010/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-010/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-010/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-010/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-010/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-010/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-010/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-011/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-011/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-011/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-011/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-011/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-011/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-011/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-012/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-012/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-012/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-012/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-012/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-012/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-012/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-013/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-013/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-013/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-013/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-013/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-013/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-013/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-014/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-014/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-014/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-014/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-014/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-014/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-014/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-015/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-015/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-015/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-015/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-015/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-015/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-015/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-016/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-016/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-016/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-016/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-016/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-016/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-016/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-017/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-017/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-017/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-017/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-017/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-017/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-017/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-018/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-018/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-018/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-018/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-018/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-018/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-018/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-019/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-019/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-019/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-019/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-019/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-019/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-019/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-020/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-020/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-020/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-020/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-020/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-020/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-020/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-021/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-021/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-021/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-021/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-021/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-021/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-021/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-022/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-022/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-022/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-022/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-022/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-022/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-022/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-023/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-023/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-023/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-023/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-023/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-023/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-023/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-024/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-024/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-024/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-024/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-024/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-024/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-024/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-025/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-025/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-025/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-025/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-025/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-025/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-025/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-026/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-026/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-026/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-026/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-026/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-026/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-026/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-027/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-027/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-027/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-027/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-027/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-027/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-027/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-028/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-028/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-028/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-028/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-028/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-028/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-028/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-029/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-029/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-029/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-029/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-029/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-029/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-029/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-030/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-030/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-030/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-030/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-030/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-030/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-030/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-031/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-031/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-031/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-031/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-031/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-031/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-031/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-032/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-032/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-032/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-032/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-032/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-032/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-032/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-033/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-033/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-033/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-033/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-033/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-033/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-033/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-034/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-034/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-034/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-034/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-034/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-034/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-034/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-035/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-035/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-035/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-035/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-035/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-035/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-035/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-036/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-036/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-036/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-036/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-036/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-036/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-036/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-037/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-037/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-037/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-037/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-037/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-037/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-037/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-038/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-038/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-038/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-038/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-038/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-038/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-038/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-039/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-039/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-039/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-039/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-039/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-039/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-039/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-040/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-040/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-040/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-040/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-040/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-040/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-040/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-041/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-041/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-041/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-041/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-041/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-041/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-041/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-042/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-042/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-042/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-042/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-042/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-042/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-042/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-043/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-043/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-043/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-043/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-043/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-043/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-043/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-044/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-044/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-044/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-044/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-044/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-044/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-044/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-045/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-045/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-045/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-045/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-045/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-045/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-045/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-046/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-046/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-046/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-046/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-046/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-046/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-046/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-047/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-047/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-047/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-047/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-047/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-047/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-047/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-048/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-048/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-048/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-048/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-048/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-048/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-048/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-049/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-049/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-049/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-049/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-049/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-049/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-049/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-050/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-050/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-050/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-050/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-050/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-050/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-050/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-051/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-051/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-051/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-051/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-051/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-051/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-051/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-052/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-052/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-052/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-052/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-052/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-052/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-052/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-053/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-053/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-053/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-053/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-053/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-053/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-053/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-054/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-054/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-054/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-054/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-054/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-054/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-054/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-055/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-055/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-055/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-055/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-055/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-055/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-055/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-056/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-056/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-056/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-056/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-056/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-056/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-056/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-057/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-057/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-057/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-057/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-057/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-057/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-057/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-058/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-058/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-058/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-058/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-058/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-058/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-058/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-059/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-059/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-059/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-059/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-059/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-059/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-059/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-060/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-060/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-060/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-060/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-060/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-060/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-060/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-061/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-061/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-061/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-061/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-061/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-061/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-061/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-062/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-062/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-062/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-062/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-062/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-062/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-062/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-063/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-063/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-063/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-063/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-063/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-063/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-063/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-064/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-064/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-064/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-064/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-064/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-064/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-064/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-065/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-065/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-065/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-065/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-065/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-065/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-065/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-066/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-066/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-066/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-066/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-066/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-066/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-066/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-067/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-067/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-067/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-067/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-067/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-067/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-067/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-068/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-068/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-068/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-068/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-068/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-068/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-068/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-069/b.txt create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-069/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-069/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-069/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-069/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-069/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-069/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-069/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-070/b.txt create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-070/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-070/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-070/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-070/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-070/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-070/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-070/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-071/b.txt create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-071/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-071/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-071/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-071/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-071/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-071/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-071/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-072/b.txt create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-072/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-072/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-072/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-072/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-072/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-072/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-072/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-001/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-001/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-001/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-001/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-001/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-001/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-001/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-002/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-002/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-002/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-002/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-002/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-002/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-002/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-003/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-003/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-003/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-003/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-003/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-003/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-003/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-004/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-004/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-004/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-004/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-004/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-004/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-004/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-005/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-005/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-005/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-005/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-005/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-005/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-005/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-006/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-006/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-006/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-006/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-006/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-006/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-006/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-007/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-007/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-007/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-007/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-007/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-007/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-007/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-008/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-008/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-008/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-008/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-008/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-008/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-008/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-009/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-009/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-009/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-009/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-009/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-009/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-009/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-010/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-010/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-010/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-010/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-010/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-010/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-010/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-011/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-011/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-011/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-011/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-011/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-011/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-011/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-012/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-012/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-012/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-012/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-012/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-012/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-012/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-013/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-013/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-013/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-013/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-013/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-013/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-013/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-014/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-014/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-014/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-014/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-014/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-014/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-014/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-015/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-015/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-015/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-015/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-015/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-015/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-015/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-016/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-016/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-016/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-016/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-016/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-016/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-016/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-017/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-017/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-017/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-017/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-017/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-017/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-017/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-018/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-018/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-018/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-018/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-018/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-018/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-018/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-019/b.txt create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-019/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-019/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-019/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-019/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-019/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-019/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-019/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-020/b.txt create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-020/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-020/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-020/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-020/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-020/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-020/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ec-020/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-001/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-001/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-001/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-001/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-001/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-001/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-001/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-002/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-002/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-002/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-002/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-002/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-002/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-002/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-003/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-003/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-003/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-003/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-003/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-003/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-003/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-004/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-004/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-004/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-004/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-004/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-004/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-004/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-005/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-005/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-005/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-005/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-005/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-005/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-005/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-006/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-006/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-006/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-006/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-006/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-006/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/ng-006/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-001/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-001/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-001/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-001/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-001/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-001/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-001/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-002/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-002/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-002/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-002/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-002/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-002/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-002/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-003/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-003/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-003/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-003/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-003/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-003/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-003/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-004/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-004/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-004/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-004/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-004/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-004/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-004/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-005/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-005/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-005/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-005/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-005/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-005/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-005/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-006/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-006/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-006/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-006/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-006/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-006/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-006/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-007/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-007/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-007/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-007/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-007/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-007/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-007/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-008/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-008/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-008/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-008/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-008/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-008/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-008/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-009/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-009/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-009/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-009/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-009/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-009/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-009/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-010/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-010/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-010/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-010/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-010/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-010/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-010/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-011/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-011/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-011/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-011/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-011/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-011/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-011/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-012/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-012/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-012/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-012/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-012/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-012/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-012/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-013/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-013/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-013/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-013/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-013/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-013/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-013/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-014/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-014/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-014/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-014/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-014/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-014/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-014/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-015/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-015/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-015/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-015/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-015/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-015/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-015/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-016/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-016/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-016/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-016/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-016/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-016/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-016/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-017/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-017/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-017/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-017/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-017/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-017/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-017/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-018/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-018/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-018/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-018/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-018/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-018/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-018/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-019/b.txt create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-019/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-019/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-019/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-019/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-019/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-019/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-019/tnlsys.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-020/b.txt create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-020/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-020/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-020/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-020/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-020/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-020/netlink_route_tnlsys.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tuntap/pw-020/tnlsys.out create mode 100644 tools/nlcapgen/matrix_tunnel.go create mode 100644 tools/nlcapgen/matrix_tunnel_test.go create mode 100644 tools/nlcapgen/matrix_tuntap.go diff --git a/cmd/tnlsnap/main.go b/cmd/tnlsnap/main.go index 7855f2c72..1ef4b4533 100644 --- a/cmd/tnlsnap/main.go +++ b/cmd/tnlsnap/main.go @@ -1,7 +1,9 @@ // Command tnlsnap records the tnlsys snapshot (internal/tnlsys) of one // `ip` run: the tunnel ioctls it makes, traced under ptrace with their // exact input and output; the tun properties of every device in -// /sys/class/net; and the /dev/net/tun descriptors in /proc. +// /sys/class/net; and, when ip would walk /proc itself (-details on +// tuntap, or on a -batch), the /dev/net/tun descriptors there. Any other +// walk would only record other processes' tun descriptors, which vary. // // tnlsnap -- -j tunnel show // @@ -23,6 +25,7 @@ import ( "os" "os/exec" "path/filepath" + "strings" "github.com/randomizedcoder/xtcp2/internal/tnlsys" ) @@ -55,10 +58,105 @@ func snapshotIP(args []string) ([]byte, error) { if err != nil { return nil, err } - return snapshot(&exec.Cmd{Path: path, Args: append([]string{"ip"}, args...)}, tnlsys.Live{}) + // ip reads its stdin for `-batch -`: a readback's `< b.txt` reaches it. + cmd := &exec.Cmd{Path: path, Args: append([]string{"ip"}, args...), Stdin: os.Stdin} + return snapshot(cmd, tnlsys.Live{}, walksProc(args)) } -func snapshot(cmd *exec.Cmd, live tnlsys.Live) ([]byte, error) { +// walksProc is whether ip, given args, runs show_processes: it sets +// show_details, and its object is tuntap, or a -batch file's lines may name +// it. It mirrors ip.c's option loop (ipOpts, first match wins, a second +// leading '-' dropped) and do_cmd's object table (ipObjects). +func walksProc(args []string) bool { + details, batch := false, false + for i := 0; i < len(args); i++ { + opt := args[i] + if opt == "--" { + i++ + return details && (batch || (i < len(args) && tuntapObject(args[i]))) + } + if !strings.HasPrefix(opt, "-") { + return details && (batch || tuntapObject(opt)) + } + if strings.HasPrefix(opt, "--") { + opt = opt[1:] + } + o, ok := ipOpt(opt) + if !ok { + return false // ip exits: unknown option + } + switch o.name { + case "-details": + details = true + case "-batch": + batch = true + } + if o.value { + i++ + } + } + return details && batch +} + +// ipOption is one of ip.c's options. +type ipOption struct { + name string + exact bool // strcmp, not matches + value bool // takes the next word +} + +var ipOpts = []ipOption{ + {"-loops", false, true}, {"-family", false, true}, + {"-4", true, false}, {"-6", true, false}, {"-0", true, false}, {"-M", true, false}, {"-B", true, false}, + {"-human-readable", false, false}, {"-iec", false, false}, {"-stats", false, false}, + {"-statistics", false, false}, {"-details", false, false}, {"-resolve", false, false}, + {"-oneline", false, false}, {"-timestamp", false, false}, {"-tshort", false, false}, + {"-Version", false, false}, {"-force", false, false}, {"-batch", false, true}, + {"-brief", false, false}, {"-json", false, false}, {"-pretty", false, false}, + {"-rcvbuf", false, true}, {"-color", false, false}, {"-help", false, false}, + {"-netns", false, true}, {"-Numeric", false, false}, {"-all", false, false}, + {"-echo", true, false}, +} + +// ipOpt is the first of ip.c's options that opt selects. +func ipOpt(opt string) (ipOption, bool) { + for _, o := range ipOpts { + if o.exact && opt == o.name || !o.exact && matches(opt, o.name) { + return o, true + } + // matches_color: -c, -col, -color, each with an optional =WHEN. + if o.name == "-color" { + if w, _, _ := strings.Cut(opt, "="); len(w) >= 2 && matches(w, "-color") { + return o, true + } + } + } + return ipOption{}, false +} + +// ipObjects is the part of do_cmd's table, in order, that can claim a word +// before tuntap does: a word matching tuntap or tap starts with t, and no +// earlier entry starts with t. +var ipObjects = []string{"tunnel", "tunl", "tuntap", "tap"} + +// tuntapObject is whether do_cmd runs do_iptuntap for word. +func tuntapObject(word string) bool { + for _, c := range ipObjects { + if matches(word, c) { + return c == "tuntap" || c == "tap" + } + } + return false +} + +// matches is iproute2's matches(): whether prefix begins word. An empty +// prefix matches nothing. +func matches(prefix, word string) bool { + return prefix != "" && strings.HasPrefix(word, prefix) +} + +// snapshot traces cmd and records the props, and the /proc walk if walk. +func snapshot(cmd *exec.Cmd, live tnlsys.Live, walk bool) ([]byte, error) { r, recs, err := tnlsys.Trace(cmd) if err != nil { return nil, err @@ -69,11 +167,13 @@ func snapshot(cmd *exec.Cmd, live tnlsys.Live) ([]byte, error) { return nil, err } s.RecordProps(live, devs) - fds, err := live.TunFDs() - if err != nil { - return nil, err + if walk { + fds, err := live.TunFDs() + if err != nil { + return nil, err + } + s.Fds = &fds } - s.Fds = &fds return s.Marshal() } diff --git a/cmd/tnlsnap/main_test.go b/cmd/tnlsnap/main_test.go index 369d2d1ae..a5b9c3abb 100644 --- a/cmd/tnlsnap/main_test.go +++ b/cmd/tnlsnap/main_test.go @@ -76,7 +76,15 @@ func TestSnapshot(t *testing.T) { t.Fatal(err) } } - b, err := snapshot(self(), tnlsys.Live{SysRoot: sys, ProcRoot: proc}) + b, err := snapshot(self(), tnlsys.Live{SysRoot: sys, ProcRoot: proc}, true) + if err != nil { + t.Fatal(err) + } + noWalk, err := snapshot(self(), tnlsys.Live{SysRoot: sys, ProcRoot: proc}, false) + if err != nil { + t.Fatal(err) + } + nw, err := tnlsys.Parse(noWalk) if err != nil { t.Fatal(err) } @@ -96,6 +104,7 @@ func TestSnapshot(t *testing.T) { {"negative: no ioctls from a command that makes none", len(s.Ioctls), 0}, {"corner: d0 and bonding_masters are not tun devices", s.Props[0].Dev, "tap0"}, {"boundary: an empty /proc is a recorded empty walk", fmt.Sprint(len(fds), fdErr), "0 "}, + {"corner: no walk asked, none recorded", nw.Fds == nil, true}, } for _, tc := range tests { t.Run(tc.description, func(t *testing.T) { @@ -105,7 +114,7 @@ func TestSnapshot(t *testing.T) { }) } t.Run("negative: a missing sysfs is an error", func(t *testing.T) { - if _, err := snapshot(self(), tnlsys.Live{SysRoot: filepath.Join(sys, "nope"), ProcRoot: proc}); err == nil { + if _, err := snapshot(self(), tnlsys.Live{SysRoot: filepath.Join(sys, "nope"), ProcRoot: proc}, true); err == nil { t.Error("no error") } }) @@ -132,7 +141,7 @@ func TestRunIP(t *testing.T) { {"positive: ip's status is recorded", s.Run.RC, 4}, {"positive: argv is ip and the arguments", fmt.Sprint(s.Run.Argv), "[ip -j tunnel show]"}, {"negative: nothing on stderr", errb.String(), ""}, - {"corner: the walk is recorded on the live /proc", s.Fds != nil, true}, + {"corner: no -d, no /proc walk", s.Fds == nil, true}, } for _, tc := range tests { t.Run(tc.description, func(t *testing.T) { @@ -142,3 +151,42 @@ func TestRunIP(t *testing.T) { }) } } + +// TestWalksProc pins when tnlsnap records the /proc walk: when ip would +// run show_processes. +func TestWalksProc(t *testing.T) { + tests := []struct { + description string + args []string + expected bool + }{ + {"positive: -d tuntap", []string{"-d", "tuntap", "show"}, true}, + {"positive: -details after -j, tap", []string{"-j", "-details", "tap"}, true}, + {"positive: --det", []string{"--det", "tuntap"}, true}, + {"positive: -d on a batch, whose lines may be tuntap", []string{"-d", "-batch", "b.txt"}, true}, + {"positive: tunt is tuntap", []string{"-d", "tunt"}, true}, + {"negative: no -d", []string{"-j", "tuntap", "show"}, false}, + {"negative: -d tunnel", []string{"-d", "tunnel", "show"}, false}, + {"negative: tun is tunnel, first in the table", []string{"-d", "tun"}, false}, + {"negative: t is tunnel", []string{"-d", "t"}, false}, + {"negative: -d after the object is an argument", []string{"tuntap", "show", "-d"}, false}, + {"negative: a batch without -d", []string{"-batch", "-"}, false}, + {"negative: an unknown option, ip exits", []string{"-d", "-bogus", "tuntap"}, false}, + {"negative: -detailsx is no option", []string{"-detailsx", "tuntap"}, false}, + {"boundary: no arguments", nil, false}, + {"boundary: -d and nothing else", []string{"-d"}, false}, + {"corner: -netns takes a value", []string{"-d", "-netns", "tuntap", "link"}, false}, + {"corner: -n is -netns", []string{"-d", "-n", "x", "tap"}, true}, + {"corner: -- ends the options", []string{"-d", "--", "tuntap"}, true}, + {"corner: -color=never", []string{"-color=never", "-d", "tuntap"}, true}, + {"corner: -de is a prefix of -details", []string{"-de", "tuntap"}, true}, + {"corner: -d is -details, not -Version or -force", []string{"-d", "tap"}, true}, + } + for _, tc := range tests { + t.Run(tc.description, func(t *testing.T) { + if got := walksProc(tc.args); got != tc.expected { + t.Errorf("walksProc(%q) = %t, want %t", tc.args, got, tc.expected) + } + }) + } +} diff --git a/docs/netlink/goip-tunnel-status.md b/docs/netlink/goip-tunnel-status.md index 6195f3c92..69a70567e 100644 --- a/docs/netlink/goip-tunnel-status.md +++ b/docs/netlink/goip-tunnel-status.md @@ -6,6 +6,8 @@ - The design is in [goip-tunnel.md](goip-tunnel.md); this document tracks progress against it. This increment numbers its evidence from **V001 / DOC001**. - **8S (the sidecar): done.** +- **8C (the captures): done.** 217 rows, `ws/tunnel` (171) and `ws/tuntap` (46), each with a tnlsys sidecar. Two batches + on one boot agree byte for byte, except the holder pids of the eight `-d` rows with holders (V002). - `internal/tnlsys` answers the ioctl, sysfs and `/proc` questions, live or from a JSON snapshot. - `tnlsnap` records a snapshot by running the real `ip` under ptrace, keyed by each ioctl's exact input bytes. - goip has its `GOIP_TNLSYS` seam (V001). @@ -29,7 +31,7 @@ | Done | Task | Work | State | Evidence | |---|---|---|---|---| | [x] | 8S | `internal/tnlsys`, `cmd/tnlsnap`, goip `runCtx.sys` | done | V001 | -| [ ] | 8C | `matrix_tunnel.go`, `matrix_tuntap.go`, two batches | not started | | +| [x] | 8C | `matrix_tunnel.go`, `matrix_tuntap.go`, two batches | done | V002 | | [ ] | 8P | `xtcpnl_tunnel_parm.go` + table tests + fuzz + O-check | not started | | | [ ] | 8R | goip `obj_tunnel.go`, `obj_tuntap.go`; corpus replay | not started | | | [ ] | 8B | `upstream/iproute2-tunnel-tuntap.md` | not started | | @@ -40,6 +42,7 @@ | ID | Task | Evidence | |---|---|---| | V001 | 8S | **Package `internal/tnlsys`:** `Sys` (`Ioctl`, `ReadProp`, `TunFDs`) and the three request constants; the struct sizes 52/76/16/24, `IfName` (cut like `strlcpy`) and `ArgSize`. `Live` makes a raw `SYS_IOCTL` with a 64-byte `0xA5` spill window, reads sysfs under an `os.Root` at `/sys` (so the `class/net` symlinks resolve inside it), and walks `/proc` unsorted, self excluded. `Snapshot` matches each ioctl on family, request, name and input bytes. A miss is `ErrNotRecorded`. `Parse` refuses unknown fields, bad hex, unknown requests, negative errnos and out longer than in. `Trace` (linux/amd64) is a ptrace tracer that follows threads; other arches get a stub. **Tool:** `cmd/tnlsnap` (nix package `tnlsnap` in `nix/binaries.nix`): `tnlsnap -- ARGS` traces `ip ARGS` and prints the snapshot (traced ioctls, the tun devices' props, the tun descriptor walk, and the run's argv, rc, stdout and stderr). It runs nothing but `ip` as PATH resolves it, since it is a root ptrace tool fed from a rows file; `Trace` takes an `*exec.Cmd` and runs the ptrace work on a goroutine that keeps its thread locked until it exits. **goip:** `runCtx.sys` comes from `openSys`: `GOIP_TNLSYS`, else an empty snapshot under `GOIP_REPLAY`, else `Live`. **Tests:** `TestTnlsys`, 12 rows. Positive: a JSON round trip; a fallback device answering per input; the same device with zero input; spill returned; a 16-router PRL. Negative: recorded ENODEV; unrecorded input; unknown device. Boundary: empty snapshot; an argument 1 byte short. Corner: v4 and v6 under one name; a 17-byte name cut to 15. `TestSnapshotProps` 5 rows, `TestSnapshotTunFDs` 3, `TestParseRefuses` 8, `TestIfNameAndArgSize` 10, `TestLoad` 3 and `TestSocketError` 3. `TestLiveIoctl`, 5 rows, unprivileged: ENODEV; a write request refused; an empty argument and one over 64 KiB refused; family 9999 failing at `socket(2)` as `SocketError`. `TestSpillOf` 4. `TestLiveReadProp`, 7 rows over a fake sysfs, including a slash or `..` in the device and a symlink out of the root. `TestLiveTunFDs`, 6 rows over a fake `/proc`: comm present or missing; `12x` scanning as pid 12, as sscanf's `%d` does; `2a` reading fdinfo 2; self, `self`, non-tun links and a missing fdinfo skipped. `TestTrace`, 10 rows, unprivileged: the test binary re-run as a helper makes `SIOCGETTUNNEL` on `lo` (EOPNOTSUPP) and `SIOCGET6RD` on `nosuch0` (ENODEV), and the tracer records both with family, name and input, plus the helper's rc 3, stdout and stderr. `cmd/tnlsnap`: `TestRunUsage` 4 rows (no ip on PATH among them); `TestSnapshot` 8, over a fake sysfs and `/proc`, with `bonding_masters` and a non-tun `d0` skipped; `TestRunIP` 5, a fake `ip` on PATH (the test binary) recorded with its rc 4 and argv. `internal/goip` `TestOpenSys`, 6 rows. **Manual:** in `unshare -rn` on the host, with an ipip `t1`, `tnlsnap -- ip tunnel show` recorded `SIOCGETTUNNEL` for `tunl0` and `t1` (zero input, 52-byte outputs naming each). Coverage: tnlsys 82.3%, tnlsnap 87.2%. Gates: `go test -race ./internal/tnlsys/ ./cmd/tnlsnap/ ./internal/goip/`, vet (amd64 and arm64), gofmt, golangci-lint (comprehensive) 0 issues on the three packages, `CGO_ENABLED=0 go build ./...`. | +| V002 | 8C | **Spaces** (`tools/nlcapgen`, registered in `main.go`): `tunnel`, 171 rows (72 commands plain and `-j`, 27 negatives), modules ipip/ip_gre/sit/ip_vti/ip6_tunnel/ip6_gre/ip6_vti. Fixtures: `tnl4` (ipip1, ipip2, gre1-3 with keys/seq/csum and a multicast remote, sit1, sit2, isa1 and isan with routers, vti1, d0), `prl16` (isa16 with 16 routers), `tnl6` (ip6t1, ip6t2, ip6g1, vti61, gre6x), `ext` (ipip external, gretap, erspan, ip6gretap). `tuntap`, 46 rows (20 commands plain and `-j`, 6 negatives), module tun. Fixtures: `tun` (tap0 user 1000 group 100 one_queue, tun1 multi_queue vnet_hdr, tap2 pi), `proc` (a python `TUNSETIFF` holder on tap0, two on tun1), `xns` (a tap0 holder in another namespace). Every row has the readback `{tnlsys, "tnlsnap -- ARGS"}`. A `-d` tuntap row is serial and first kills the holders earlier rows left, since `/proc` is shared. **Rows:** `nix/microvms/workbench/{tunnel,tuntap}.rows.jsonl`. **Corpus:** `pkg/xtcpnl/testdata/7_3_1/ws/{tunnel,tuntap}`, kernel 7.3.1, iproute2 7.2.0; `TestWsCorpusRows` holds all 217. **Batches:** two on one boot, all 217 rows OK both times. stdout, stderr, rc and sidecar are identical in 209 rows, and in the other 8 (`-d` with holders, plain and `-j`) but for the holder pids. In every sidecar the traced run's stdout, stderr and rc equal the captured `ip`'s. The only spill is gre6x's, 24 bytes (76 − 52, T19). The only ioctl failures are `SIOCGET6RD` EINVAL (no 6rd in the guest kernel, K1, which ip skips) and `SIOCGETTUNNEL` ENODEV in the two named-path negatives. **Recorder fixes the batches found** (V001's tnlsnap): (1) the spill kept `ip`'s own stack past the kernel's write, so the tracer now fills the window with `0xA5` at entry, cuts the spill at the last changed byte and restores the rest; (2) the `/proc` walk ran for every row and recorded other rows' holders, so it now runs only when `ip` would walk (`walksProc`, which mirrors `ip.c`'s option loop and `do_cmd`'s object order). After the guest runs, the holders are killed and the tunnel and tun modules unloaded (tunnel6 stays: xfrm6_tunnel holds it). **Tests:** `TestTunnelSpace`, 24 rows (positive: v4 and v6 lists, v6 named, a gre name, `-j -s`; negative: gre9 rc 1, keys without a mode, an unknown mode 255, `get_addr32` 1, `dev nosuch` kernel ENODEV, `tunnel add` 1, v6 named ENODEV; boundary: fallback devices only, ttl 300, 16 routers, a 21-bit flowlabel; corner: mode any, gre6x, encaplimit 300, `tunl`, batch any-sticks, v6 named then the list on stdin, external kinds). `TestTuntapSpace`, 13 rows, plus serial exactly for the 10 `-d` rows, each with the kill first. Both check determinism, the modules, the readback, writes only in negatives, and the `-j` twins. `TestDetailWords` 6. tnlsnap: `TestWalksProc` 21; `TestSnapshot` gains "no walk asked, none recorded". tnlsys: `TestSpillOf` 6 rows for the cut. **Correction to V001:** its goip gate was not met. `TestGoipImportSetIsHermetic` failed on the new `internal/tnlsys` import, which is now in goip's allowed set and pinned closure, with its reason. Coverage: tnlsys 83.2%, tnlsnap 93.1%. Gates: `go test -race ./internal/tnlsys/ ./cmd/tnlsnap/ ./tools/nlcapgen/ ./internal/goip/ ./pkg/xtcpnl/`, vet (amd64 and arm64), gofmt, golangci-lint (comprehensive) 0 issues. | ## Decision log @@ -57,3 +60,19 @@ - A v4 `ip tunnel show NAME` on an ip6gre device passes 52 bytes, and the kernel writes 76 (lead T19). `Live` and `Trace` therefore watch 64 bytes past every argument. - `Live` does so for memory safety too: a Go slice the kernel overruns would corrupt the heap. +- **2026-11-23: 8C fixture choices.** + - isatap tunnels come from `ip tunnel add mode isatap`. One made over netlink (`ip link add ... isatap`) reports + protocol 0, so `ip` never reads its routers (K2). `isan` keeps one such tunnel to pin that. + - No 6rd rows: the guest kernel has no `CONFIG_IPV6_SIT_6RD`, so `ip tunnel 6rd` is EINVAL and every + `SIOCGET6RD` fails, which `ip` skips silently (K1). + - No `tnlnofb` fixture: `net.core.fb_tunnels_only_for_init_net` is one setting for the whole guest, and the + workbench VM is shared, so setting it would change every other session's new namespaces. `show gre9` (ENODEV on + the named path) covers the failed ioctl instead. + - `-d` tuntap rows are serial and kill earlier holders first. `show_processes` walks the shared `/proc`, so a + parallel row's holder, or one exiting mid-walk, would otherwise show up. +- **2026-11-23: the recorder records only what `ip` asks (8C, a change to 8S's tnlsnap).** + - Spill: the window past an argument is filled with `0xA5` at entry and cut at the last changed byte at exit, as + `Live` does. The bytes after the cut go back to the tracee. A kernel reply ending in `0xA5` bytes would be cut + short; no request here does that. + - The `/proc` walk is recorded only when `ip` would make it. goip asks `TunFDs` only under `-d tuntap`, so a + replay of any other row never meets a missing walk. diff --git a/docs/netlink/goip-tunnel.md b/docs/netlink/goip-tunnel.md index 4ada225a1..fbce2aaf5 100644 --- a/docs/netlink/goip-tunnel.md +++ b/docs/netlink/goip-tunnel.md @@ -76,17 +76,26 @@ TunFDs() ([]TunFD, error) `tnlsnap -- ip ARGS...` (`cmd/tnlsnap`, nix package `tnlsnap`) does three things: 1. It runs the real `ip` under ptrace (`tnlsys.Trace`, linux/amd64). At each `ioctl` entry for the three requests, it - reads the ifreq, then the argument plus `SpillWindow` bytes. At the exit, it reads the same window again. + reads the ifreq, then the argument plus `SpillWindow` bytes, and fills the bytes past the argument with `0xA5`, as + `Live` does. At the exit, it reads the window again: + - the spill is the window up to its last byte that is not `0xA5`, which is what the kernel wrote; + - the tracee gets its own bytes back after that. + + Without the fill, the spill would include whatever `ip` kept on its stack past the argument, which varies from run + to run. - The family comes from the `socket(2)` that made the descriptor. - A `SIOCGETPRL` argument is sized from its own `datalen`. - Threads are followed (`PTRACE_O_TRACECLONE`), so a multithreaded test helper records as `ip` does. 2. It records `tun_flags`, `owner` and `group` of every tun device in `/sys/class/net`. -3. It records the `/dev/net/tun` descriptor walk. +3. When `ip` would walk `/proc` itself, it records the `/dev/net/tun` descriptor walk. That is when `-details` is set + and the object is `tuntap` (or the run is a `-batch`, whose lines may name it). tnlsnap mirrors `ip.c`'s option loop + and `do_cmd`'s object order to decide. Any other walk would only record other rows' holder processes, which `ip` + never asks about and which vary between runs. It prints the snapshot as JSON. The traced run's own stdout, stderr and status go into the snapshot's `run`, so a capture can check that the recorded run matched the captured one. -A capture row runs it as a readback, `{name: "tnlsys", cmd: "tnlsnap -- ip "}`. The readback goes to +A capture row runs it as a readback, `{name: "tnlsys", cmd: "tnlsnap -- "}`. The readback goes to the row's `tnlsys.out`. ## Replay in goip diff --git a/internal/goip/imports_test.go b/internal/goip/imports_test.go index 8040c565e..5bb04d42b 100644 --- a/internal/goip/imports_test.go +++ b/internal/goip/imports_test.go @@ -46,6 +46,8 @@ var goipMayImport = map[string]string{ "pkg/nlparity as the answer. The plan's import set listed only xtcpnl; this is the one addition, and it " + "satisfies the same §16 property.", modulePath + "/internal/jsonw": "jsonw_puts, the one string escaper json_writer.c's ports share with gordma; stdlib only", + modulePath + "/internal/tnlsys": "the tunnel and tuntap sidecar (8S): the SIOCGET* ioctls, the tun sysfs props and " + + "the /dev/net/tun /proc walk, live or from a tnlsnap snapshot. It imports only pkg/cint and x/sys/unix.", "github.com/cilium/ebpf": "`encap bpf` and seg6local `endpoint` load an object's program as ip's libbpf does " + "(bpf_load.go): the ELF and BTF parse, relocations and BPF_PROG_LOAD. Pure Go, so `go build ./cmd/goip` " + "still links outside nix.", @@ -173,6 +175,7 @@ func TestGoipImportSetIsHermetic(t *testing.T) { modulePath + "/pkg/cint": "the C int conversions; stdlib only", modulePath + "/pkg/strpolicy": "reached through pkg/xtcpnl's congestion-name decoder; stdlib only", modulePath + "/internal/jsonw": "jsonw_puts, shared with gordma; stdlib only", + modulePath + "/internal/tnlsys": "the tunnel and tuntap sidecar; pkg/cint and x/sys/unix only", modulePath + "/gen/go/xtcp_flat_record": "reached through pkg/xtcpnl's inet_diag decoders, which " + "write into the generated proto. This is where grpc and protobuf enter the closure.", } diff --git a/internal/tnlsys/live_linux.go b/internal/tnlsys/live_linux.go index 29caaf180..f440723b7 100644 --- a/internal/tnlsys/live_linux.go +++ b/internal/tnlsys/live_linux.go @@ -69,12 +69,15 @@ func (l Live) Ioctl(family int, req uint32, name string, arg []byte) (spill []by return spillOf(buf[len(arg):]), nil } -// spillOf is the window past an argument when the kernel wrote into it, -// nil when every byte is still spillFill. +// spillOf is what the kernel wrote into a window past an argument that was +// filled with spillFill: the window up to its last byte that is not +// spillFill, nil when there is none. The kernel copies its reply from the +// argument's start, so its write is a prefix of the window; a reply ending +// in spillFill bytes is cut short by them. func spillOf(w []byte) []byte { - for _, c := range w { - if c != spillFill { - return append([]byte(nil), w...) + for i := len(w) - 1; i >= 0; i-- { + if w[i] != spillFill { + return append([]byte(nil), w[:i+1]...) } } return nil diff --git a/internal/tnlsys/tnlsys_test.go b/internal/tnlsys/tnlsys_test.go index 346976753..a78dfbe1b 100644 --- a/internal/tnlsys/tnlsys_test.go +++ b/internal/tnlsys/tnlsys_test.go @@ -347,8 +347,11 @@ func TestSpillOf(t *testing.T) { want []byte }{ {"positive: an untouched window is no spill", fill, nil}, - {"positive: one written byte returns the window", []byte{spillFill, 0, spillFill, spillFill}, []byte{spillFill, 0, spillFill, spillFill}}, + {"positive: a written prefix is the spill", []byte{0, 6, spillFill, spillFill}, []byte{0, 6}}, + {"positive: the whole window written", []byte{1, 2, 3, 4}, []byte{1, 2, 3, 4}}, {"boundary: an empty window", nil, nil}, + {"boundary: one byte written", []byte{0, spillFill, spillFill, spillFill}, []byte{0}}, + {"corner: a written spillFill inside the reply is kept", []byte{spillFill, 0, spillFill, spillFill}, []byte{spillFill, 0}}, {"corner: the last byte written", []byte{spillFill, spillFill, spillFill, 1}, []byte{spillFill, spillFill, spillFill, 1}}, } for _, tc := range tests { diff --git a/internal/tnlsys/trace_linux_amd64.go b/internal/tnlsys/trace_linux_amd64.go index cd096796c..055406d6a 100644 --- a/internal/tnlsys/trace_linux_amd64.go +++ b/internal/tnlsys/trace_linux_amd64.go @@ -245,6 +245,12 @@ func (t *tracer) ioctlEntry(th *thread, tid int, fd int, req uint32, ifrAddr uin if err := t.peek(tid, p.arg, p.in); err != nil { return err } + // Fill the window past the argument, as Live does, so that the exit + // can tell the kernel's bytes from the tracee's own (its stack, whose + // pointers vary run to run). ioctlExit restores what the kernel left. + if err := t.poke(tid, p.arg+uintptr(p.size), bytes.Repeat([]byte{spillFill}, SpillWindow)); err != nil { + return err + } th.pend = p return nil } @@ -277,25 +283,40 @@ func retErrno(rax uint64) (unix.Errno, bool) { } func (t *tracer) ioctlExit(tid int, p *pendingIoctl, errno unix.Errno) error { - var s Snapshot - if errno != 0 { - s.AddIoctl(p.family, p.req, p.name, p.in[:p.size], nil, nil, errno) - t.recs = append(t.recs, s.Ioctls...) - return nil - } out := make([]byte, len(p.in)) if err := t.peek(tid, p.arg, out); err != nil { return err } - var spill []byte - if !bytes.Equal(out[p.size:], p.in[p.size:]) { - spill = out[p.size:] + // The kernel's write past the argument is a prefix of the window; the + // tracee gets its own bytes back after it. + spill := spillOf(out[p.size:]) + if keep := p.size + len(spill); keep < len(p.in) { + if err := t.poke(tid, p.arg+uintptr(keep), p.in[keep:]); err != nil { + return err + } + } + var s Snapshot + if errno != 0 { + s.AddIoctl(p.family, p.req, p.name, p.in[:p.size], nil, nil, errno) + } else { + s.AddIoctl(p.family, p.req, p.name, p.in[:p.size], out[:p.size], spill, 0) } - s.AddIoctl(p.family, p.req, p.name, p.in[:p.size], out[:p.size], spill, 0) t.recs = append(t.recs, s.Ioctls...) return nil } +// poke writes b into thread tid's memory at addr. +func (t *tracer) poke(tid int, addr uintptr, b []byte) error { + n, err := unix.PtracePokeData(tid, addr, b) + if err != nil { + return fmt.Errorf("tnlsys: trace: poke %#x: %w", addr, err) + } + if n != len(b) { + return fmt.Errorf("tnlsys: trace: poke %#x: %d of %d bytes", addr, n, len(b)) + } + return nil +} + // peek reads len(b) bytes of thread tid's memory at addr. func (t *tracer) peek(tid int, addr uintptr, b []byte) error { n, err := unix.PtracePeekData(tid, addr, b) diff --git a/nix/microvms/workbench/tunnel.rows.jsonl b/nix/microvms/workbench/tunnel.rows.jsonl new file mode 100644 index 000000000..ae66b55f1 --- /dev/null +++ b/nix/microvms/workbench/tunnel.rows.jsonl @@ -0,0 +1,174 @@ +# Generated by `nlcapgen matrix -family tunnel -seed 1 -random 0`. +# Do not edit; regenerate. tools/nlcapgen/matrix.go explains the strategies. +# 171 rows. +{"id":"tunnel/ec-001","desc":"boundary: opt=plain cmd=bare:tunnel_show","cmd":"ip tunnel show","readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"bare","json":"0","words":"tunnel show"}} +{"id":"tunnel/ec-002","desc":"boundary: opt=json cmd=bare:-6_tunnel_show","cmd":"ip -j -6 tunnel show","readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -6 tunnel show"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"bare","json":"1","words":"-6 tunnel show"}} +{"id":"tunnel/ec-003","desc":"positive: opt=plain cmd=tnl4:tunnel_show","cmd":"ip tunnel show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"0","words":"tunnel show"}} +{"id":"tunnel/ec-004","desc":"corner: opt=plain cmd=tnl4:tunnel","cmd":"ip tunnel","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"0","words":"tunnel"}} +{"id":"tunnel/ec-005","desc":"positive: opt=plain cmd=tnl4:tunnel_list","cmd":"ip tunnel list","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel list"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"0","words":"tunnel list"}} +{"id":"tunnel/ec-006","desc":"positive: opt=plain cmd=tnl4:tunnel_lst","cmd":"ip tunnel lst","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel lst"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"0","words":"tunnel lst"}} +{"id":"tunnel/ec-007","desc":"corner: opt=plain cmd=tnl4:tunnel_sh","cmd":"ip tunnel sh","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel sh"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"0","words":"tunnel sh"}} +{"id":"tunnel/ec-008","desc":"corner: opt=plain cmd=tnl4:tunl_show","cmd":"ip tunl show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunl show"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"0","words":"tunl show"}} +{"id":"tunnel/ec-009","desc":"positive: opt=plain cmd=tnl4:-4_tunnel_show","cmd":"ip -4 tunnel show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -4 tunnel show"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"0","words":"-4 tunnel show"}} +{"id":"tunnel/ec-010","desc":"positive: opt=plain cmd=tnl4:-s_tunnel_show","cmd":"ip -s tunnel show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -s tunnel show"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"0","words":"-s tunnel show"}} +{"id":"tunnel/ec-011","desc":"corner: opt=plain cmd=tnl4:-d_tunnel_show","cmd":"ip -d tunnel show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -d tunnel show"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"0","words":"-d tunnel show"}} +{"id":"tunnel/ec-012","desc":"corner: opt=plain cmd=tnl4:-o_tunnel_show","cmd":"ip -o tunnel show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -o tunnel show"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"0","words":"-o tunnel show"}} +{"id":"tunnel/ec-013","desc":"corner: opt=plain cmd=tnl4:-p_tunnel_show","cmd":"ip -p tunnel show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -p tunnel show"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"0","words":"-p tunnel show"}} +{"id":"tunnel/ec-014","desc":"positive: opt=plain cmd=tnl4:tunnel_show_remote_198.51.100.2","cmd":"ip tunnel show remote 198.51.100.2","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show remote 198.51.100.2"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"0","words":"tunnel show remote 198.51.100.2"}} +{"id":"tunnel/ec-015","desc":"positive: opt=plain cmd=tnl4:tunnel_show_local_192.0.2.1","cmd":"ip tunnel show local 192.0.2.1","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show local 192.0.2.1"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"0","words":"tunnel show local 192.0.2.1"}} +{"id":"tunnel/ec-016","desc":"positive: opt=plain cmd=tnl4:tunnel_show_dev_d0","cmd":"ip tunnel show dev d0","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show dev d0"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"0","words":"tunnel show dev d0"}} +{"id":"tunnel/ec-017","desc":"corner: opt=plain cmd=tnl4:tunnel_show_isa1","cmd":"ip tunnel show isa1","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show isa1"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"0","words":"tunnel show isa1"}} +{"id":"tunnel/ec-018","desc":"corner: opt=plain cmd=tnl4:tunnel_show_isan","cmd":"ip tunnel show isan","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show isan"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"0","words":"tunnel show isan"}} +{"id":"tunnel/ec-019","desc":"positive: opt=plain cmd=tnl4:tunnel_show_sit2","cmd":"ip tunnel show sit2","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show sit2"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"0","words":"tunnel show sit2"}} +{"id":"tunnel/ec-020","desc":"corner: opt=plain cmd=tnl4:tunnel_show_nosuch","cmd":"ip tunnel show nosuch","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show nosuch"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"0","words":"tunnel show nosuch"}} +{"id":"tunnel/ec-021","desc":"corner: opt=plain cmd=tnl4:tunnel_show_name_ipip2","cmd":"ip tunnel show name ipip2","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show name ipip2"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"0","words":"tunnel show name ipip2"}} +{"id":"tunnel/ec-022","desc":"positive: opt=plain cmd=tnl4:tunnel_show_gre1","cmd":"ip tunnel show gre1","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show gre1"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"0","words":"tunnel show gre1"}} +{"id":"tunnel/ec-023","desc":"positive: opt=plain cmd=tnl4:tunnel_show_ipip1","cmd":"ip tunnel show ipip1","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show ipip1"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"0","words":"tunnel show ipip1"}} +{"id":"tunnel/ec-024","desc":"positive: opt=plain cmd=tnl4:tunnel_show_sit1","cmd":"ip tunnel show sit1","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show sit1"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"0","words":"tunnel show sit1"}} +{"id":"tunnel/ec-025","desc":"positive: opt=plain cmd=tnl4:tunnel_show_vti1","cmd":"ip tunnel show vti1","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show vti1"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"0","words":"tunnel show vti1"}} +{"id":"tunnel/ec-026","desc":"positive: opt=plain cmd=tnl4:tunnel_show_mode_gre","cmd":"ip tunnel show mode gre","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show mode gre"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"0","words":"tunnel show mode gre"}} +{"id":"tunnel/ec-027","desc":"positive: opt=plain cmd=tnl4:tunnel_show_mode_ipip","cmd":"ip tunnel show mode ipip","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show mode ipip"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"0","words":"tunnel show mode ipip"}} +{"id":"tunnel/ec-028","desc":"positive: opt=plain cmd=tnl4:tunnel_show_mode_sit","cmd":"ip tunnel show mode sit","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show mode sit"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"0","words":"tunnel show mode sit"}} +{"id":"tunnel/ec-029","desc":"positive: opt=plain cmd=tnl4:tunnel_show_mode_isatap","cmd":"ip tunnel show mode isatap","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show mode isatap"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"0","words":"tunnel show mode isatap"}} +{"id":"tunnel/ec-030","desc":"positive: opt=plain cmd=tnl4:tunnel_show_mode_vti","cmd":"ip tunnel show mode vti","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show mode vti"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"0","words":"tunnel show mode vti"}} +{"id":"tunnel/ec-031","desc":"corner: opt=plain cmd=tnl4:-s_tunnel_show_gre1","cmd":"ip -s tunnel show gre1","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -s tunnel show gre1"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"0","words":"-s tunnel show gre1"}} +{"id":"tunnel/ec-032","desc":"corner: opt=plain cmd=tnl4:tunnel_show_mode_gre_remote_198.51.100.2_local_192.0.2.1_key_5","cmd":"ip tunnel show mode gre remote 198.51.100.2 local 192.0.2.1 key 5","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show mode gre remote 198.51.100.2 local 192.0.2.1 key 5"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"0","words":"tunnel show mode gre remote 198.51.100.2 local 192.0.2.1 key 5"}} +{"id":"tunnel/ec-033","desc":"corner: opt=plain cmd=tnl4:tunnel_show_mode_gre_remote_198.51.100.2","cmd":"ip tunnel show mode gre remote 198.51.100.2","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show mode gre remote 198.51.100.2"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"0","words":"tunnel show mode gre remote 198.51.100.2"}} +{"id":"tunnel/ec-034","desc":"corner: opt=plain cmd=tnl4:tunnel_show_mode_gre_remote_239.1.1.1_local_192.0.2.1","cmd":"ip tunnel show mode gre remote 239.1.1.1 local 192.0.2.1","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show mode gre remote 239.1.1.1 local 192.0.2.1"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"0","words":"tunnel show mode gre remote 239.1.1.1 local 192.0.2.1"}} +{"id":"tunnel/ec-035","desc":"corner: opt=plain cmd=tnl4:tunnel_show_mode_vti_remote_198.51.100.5_local_192.0.2.1_ikey_7_okey_8","cmd":"ip tunnel show mode vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show mode vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"0","words":"tunnel show mode vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"}} +{"id":"tunnel/ec-036","desc":"corner: opt=plain cmd=tnl4:tunnel_show_mode_any","cmd":"ip tunnel show mode any","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show mode any"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"0","words":"tunnel show mode any"}} +{"id":"tunnel/ec-037","desc":"corner: opt=plain cmd=tnl4:-6_tunnel_show","cmd":"ip -6 tunnel show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -6 tunnel show"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"0","words":"-6 tunnel show"}} +{"id":"tunnel/ec-038","desc":"positive: opt=plain cmd=prl16:tunnel_show_isa16","cmd":"ip tunnel show isa16","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip tunnel add isa16 mode isatap local 192.0.2.1","i=10; while [ $i -lt 26 ]; do ip tunnel prl dev isa16 prl-nodefault 192.0.2.$i || exit 1; i=$((i+1)); done"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show isa16"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"prl16","json":"0","words":"tunnel show isa16"}} +{"id":"tunnel/ec-039","desc":"positive: opt=plain cmd=tnl6:-6_tunnel_show","cmd":"ip -6 tunnel show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -6 tunnel show"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"0","words":"-6 tunnel show"}} +{"id":"tunnel/ec-040","desc":"corner: opt=plain cmd=tnl6:-6_tunnel","cmd":"ip -6 tunnel","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -6 tunnel"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"0","words":"-6 tunnel"}} +{"id":"tunnel/ec-041","desc":"positive: opt=plain cmd=tnl6:-6_tunnel_list","cmd":"ip -6 tunnel list","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -6 tunnel list"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"0","words":"-6 tunnel list"}} +{"id":"tunnel/ec-042","desc":"positive: opt=plain cmd=tnl6:-s_-6_tunnel_show","cmd":"ip -s -6 tunnel show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -s -6 tunnel show"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"0","words":"-s -6 tunnel show"}} +{"id":"tunnel/ec-043","desc":"corner: opt=plain cmd=tnl6:-o_-6_tunnel_show","cmd":"ip -o -6 tunnel show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -o -6 tunnel show"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"0","words":"-o -6 tunnel show"}} +{"id":"tunnel/ec-044","desc":"positive: opt=plain cmd=tnl6:-6_tunnel_show_ip6t1","cmd":"ip -6 tunnel show ip6t1","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -6 tunnel show ip6t1"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"0","words":"-6 tunnel show ip6t1"}} +{"id":"tunnel/ec-045","desc":"corner: opt=plain cmd=tnl6:-s_-6_tunnel_show_ip6t1","cmd":"ip -s -6 tunnel show ip6t1","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -s -6 tunnel show ip6t1"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"0","words":"-s -6 tunnel show ip6t1"}} +{"id":"tunnel/ec-046","desc":"positive: opt=plain cmd=tnl6:-6_tunnel_show_name_ip6g1","cmd":"ip -6 tunnel show name ip6g1","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -6 tunnel show name ip6g1"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"0","words":"-6 tunnel show name ip6g1"}} +{"id":"tunnel/ec-047","desc":"positive: opt=plain cmd=tnl6:-6_tunnel_show_ip6tnl0","cmd":"ip -6 tunnel show ip6tnl0","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -6 tunnel show ip6tnl0"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"0","words":"-6 tunnel show ip6tnl0"}} +{"id":"tunnel/ec-048","desc":"positive: opt=plain cmd=tnl6:-6_tunnel_show_mode_ip6gre","cmd":"ip -6 tunnel show mode ip6gre","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -6 tunnel show mode ip6gre"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"0","words":"-6 tunnel show mode ip6gre"}} +{"id":"tunnel/ec-049","desc":"positive: opt=plain cmd=tnl6:-6_tunnel_show_mode_ip6ip6","cmd":"ip -6 tunnel show mode ip6ip6","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -6 tunnel show mode ip6ip6"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"0","words":"-6 tunnel show mode ip6ip6"}} +{"id":"tunnel/ec-050","desc":"positive: opt=plain cmd=tnl6:-6_tunnel_show_mode_ipip6","cmd":"ip -6 tunnel show mode ipip6","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -6 tunnel show mode ipip6"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"0","words":"-6 tunnel show mode ipip6"}} +{"id":"tunnel/ec-051","desc":"positive: opt=plain cmd=tnl6:-6_tunnel_show_mode_vti6","cmd":"ip -6 tunnel show mode vti6","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -6 tunnel show mode vti6"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"0","words":"-6 tunnel show mode vti6"}} +{"id":"tunnel/ec-052","desc":"positive: opt=plain cmd=tnl6:-6_tunnel_show_mode_any","cmd":"ip -6 tunnel show mode any","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -6 tunnel show mode any"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"0","words":"-6 tunnel show mode any"}} +{"id":"tunnel/ec-053","desc":"corner: opt=plain cmd=tnl6:tunnel_show_mode_ip6ip6","cmd":"ip tunnel show mode ip6ip6","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show mode ip6ip6"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"0","words":"tunnel show mode ip6ip6"}} +{"id":"tunnel/ec-054","desc":"positive: opt=plain cmd=tnl6:-6_tunnel_show_remote_2001:db8::2","cmd":"ip -6 tunnel show remote 2001:db8::2","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -6 tunnel show remote 2001:db8::2"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"0","words":"-6 tunnel show remote 2001:db8::2"}} +{"id":"tunnel/ec-055","desc":"positive: opt=plain cmd=tnl6:-6_tunnel_show_local_2001:db8::1","cmd":"ip -6 tunnel show local 2001:db8::1","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -6 tunnel show local 2001:db8::1"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"0","words":"-6 tunnel show local 2001:db8::1"}} +{"id":"tunnel/ec-056","desc":"positive: opt=plain cmd=tnl6:-6_tunnel_show_dev_d0","cmd":"ip -6 tunnel show dev d0","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -6 tunnel show dev d0"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"0","words":"-6 tunnel show dev d0"}} +{"id":"tunnel/ec-057","desc":"positive: opt=plain cmd=tnl6:-6_tunnel_show_encaplimit_none","cmd":"ip -6 tunnel show encaplimit none","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -6 tunnel show encaplimit none"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"0","words":"-6 tunnel show encaplimit none"}} +{"id":"tunnel/ec-058","desc":"positive: opt=plain cmd=tnl6:-6_tunnel_show_hoplimit_1","cmd":"ip -6 tunnel show hoplimit 1","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -6 tunnel show hoplimit 1"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"0","words":"-6 tunnel show hoplimit 1"}} +{"id":"tunnel/ec-059","desc":"positive: opt=plain cmd=tnl6:-6_tunnel_show_tclass_inherit","cmd":"ip -6 tunnel show tclass inherit","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -6 tunnel show tclass inherit"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"0","words":"-6 tunnel show tclass inherit"}} +{"id":"tunnel/ec-060","desc":"positive: opt=plain cmd=tnl6:-6_tunnel_show_flowlabel_0x12345","cmd":"ip -6 tunnel show flowlabel 0x12345","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -6 tunnel show flowlabel 0x12345"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"0","words":"-6 tunnel show flowlabel 0x12345"}} +{"id":"tunnel/ec-061","desc":"positive: opt=plain cmd=tnl6:-6_tunnel_show_key_9","cmd":"ip -6 tunnel show key 9","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -6 tunnel show key 9"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"0","words":"-6 tunnel show key 9"}} +{"id":"tunnel/ec-062","desc":"positive: opt=plain cmd=tnl6:-6_tunnel_show_allow-localremote","cmd":"ip -6 tunnel show allow-localremote","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -6 tunnel show allow-localremote"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"0","words":"-6 tunnel show allow-localremote"}} +{"id":"tunnel/ec-063","desc":"corner: opt=plain cmd=tnl6:-6_tunnel_show_encaplimit_300","cmd":"ip -6 tunnel show encaplimit 300","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -6 tunnel show encaplimit 300"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"0","words":"-6 tunnel show encaplimit 300"}} +{"id":"tunnel/ec-064","desc":"positive: opt=plain cmd=tnl6:tunnel_show","cmd":"ip tunnel show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"0","words":"tunnel show"}} +{"id":"tunnel/ec-065","desc":"corner: opt=plain cmd=tnl6:tunnel_show_gre6x","cmd":"ip tunnel show gre6x","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show gre6x"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"0","words":"tunnel show gre6x"}} +{"id":"tunnel/ec-066","desc":"corner: opt=plain cmd=ext:tunnel_show","cmd":"ip tunnel show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipipx type ipip external","ip link add gtap1 type gretap remote 198.51.100.6 local 192.0.2.1 key 11","ip link add ersp1 type erspan remote 198.51.100.7 local 192.0.2.1 seq key 12 erspan_ver 1 erspan 5","ip link add g6tap1 type ip6gretap remote 2001:db8::7 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ext","json":"0","words":"tunnel show"}} +{"id":"tunnel/ec-067","desc":"corner: opt=plain cmd=ext:-6_tunnel_show","cmd":"ip -6 tunnel show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipipx type ipip external","ip link add gtap1 type gretap remote 198.51.100.6 local 192.0.2.1 key 11","ip link add ersp1 type erspan remote 198.51.100.7 local 192.0.2.1 seq key 12 erspan_ver 1 erspan 5","ip link add g6tap1 type ip6gretap remote 2001:db8::7 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -6 tunnel show"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ext","json":"0","words":"-6 tunnel show"}} +{"id":"tunnel/ec-068","desc":"corner: opt=plain cmd=ext:tunnel_show_ipipx","cmd":"ip tunnel show ipipx","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipipx type ipip external","ip link add gtap1 type gretap remote 198.51.100.6 local 192.0.2.1 key 11","ip link add ersp1 type erspan remote 198.51.100.7 local 192.0.2.1 seq key 12 erspan_ver 1 erspan 5","ip link add g6tap1 type ip6gretap remote 2001:db8::7 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show ipipx"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ext","json":"0","words":"tunnel show ipipx"}} +{"id":"tunnel/ec-069","desc":"corner: opt=plain cmd=tnl4:batch:twice","cmd":"ip -batch b.txt","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8","printf '%s\\n' 'tunnel show' 'tunnel show' > b.txt"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -batch b.txt"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"batch":"twice","fix":"tnl4","json":"0","words":"-batch b.txt"}} +{"id":"tunnel/ec-070","desc":"corner: opt=plain cmd=tnl4:batch:mode-then-list","cmd":"ip -batch b.txt","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8","printf '%s\\n' 'tunnel show mode gre' 'tunnel show' > b.txt"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -batch b.txt"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"batch":"mode-then-list","fix":"tnl4","json":"0","words":"-batch b.txt"}} +{"id":"tunnel/ec-071","desc":"corner: opt=plain cmd=tnl4:batch:any-sticks","cmd":"ip -batch b.txt","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8","printf '%s\\n' 'tunnel show mode any' 'tunnel show' > b.txt"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -batch b.txt"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"batch":"any-sticks","fix":"tnl4","json":"0","words":"-batch b.txt"}} +{"id":"tunnel/ec-072","desc":"corner: opt=plain cmd=tnl6:batch:v6-named-then-list","cmd":"ip -batch - < b.txt","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1","printf '%s\\n' 'tunnel show mode ip6ip6 ip6t1' 'tunnel show' > b.txt"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -batch - < b.txt"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"batch":"v6-named-then-list","fix":"tnl6","json":"0","words":"-batch - < b.txt"}} +{"id":"tunnel/pw-001","desc":"boundary: opt=plain cmd=bare:-6_tunnel_show","cmd":"ip -6 tunnel show","readback":[{"name":"tnlsys","cmd":"tnlsnap -- -6 tunnel show"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"bare","json":"0","words":"-6 tunnel show"}} +{"id":"tunnel/pw-002","desc":"boundary: opt=json cmd=bare:tunnel_show","cmd":"ip -j tunnel show","readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tunnel show"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"bare","json":"1","words":"tunnel show"}} +{"id":"tunnel/pw-003","desc":"positive: opt=json cmd=tnl4:tunnel_show","cmd":"ip -j tunnel show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tunnel show"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"1","words":"tunnel show"}} +{"id":"tunnel/pw-004","desc":"corner: opt=json cmd=tnl4:tunnel","cmd":"ip -j tunnel","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tunnel"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"1","words":"tunnel"}} +{"id":"tunnel/pw-005","desc":"positive: opt=json cmd=tnl4:tunnel_list","cmd":"ip -j tunnel list","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tunnel list"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"1","words":"tunnel list"}} +{"id":"tunnel/pw-006","desc":"positive: opt=json cmd=tnl4:tunnel_lst","cmd":"ip -j tunnel lst","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tunnel lst"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"1","words":"tunnel lst"}} +{"id":"tunnel/pw-007","desc":"corner: opt=json cmd=tnl4:tunnel_sh","cmd":"ip -j tunnel sh","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tunnel sh"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"1","words":"tunnel sh"}} +{"id":"tunnel/pw-008","desc":"corner: opt=json cmd=tnl4:tunl_show","cmd":"ip -j tunl show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tunl show"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"1","words":"tunl show"}} +{"id":"tunnel/pw-009","desc":"positive: opt=json cmd=tnl4:-4_tunnel_show","cmd":"ip -j -4 tunnel show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -4 tunnel show"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"1","words":"-4 tunnel show"}} +{"id":"tunnel/pw-010","desc":"positive: opt=json cmd=tnl4:-s_tunnel_show","cmd":"ip -j -s tunnel show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -s tunnel show"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"1","words":"-s tunnel show"}} +{"id":"tunnel/pw-011","desc":"corner: opt=json cmd=tnl4:-d_tunnel_show","cmd":"ip -j -d tunnel show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -d tunnel show"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"1","words":"-d tunnel show"}} +{"id":"tunnel/pw-012","desc":"corner: opt=json cmd=tnl4:-o_tunnel_show","cmd":"ip -j -o tunnel show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -o tunnel show"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"1","words":"-o tunnel show"}} +{"id":"tunnel/pw-013","desc":"corner: opt=json cmd=tnl4:-p_tunnel_show","cmd":"ip -j -p tunnel show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -p tunnel show"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"1","words":"-p tunnel show"}} +{"id":"tunnel/pw-014","desc":"positive: opt=json cmd=tnl4:tunnel_show_remote_198.51.100.2","cmd":"ip -j tunnel show remote 198.51.100.2","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tunnel show remote 198.51.100.2"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"1","words":"tunnel show remote 198.51.100.2"}} +{"id":"tunnel/pw-015","desc":"positive: opt=json cmd=tnl4:tunnel_show_local_192.0.2.1","cmd":"ip -j tunnel show local 192.0.2.1","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tunnel show local 192.0.2.1"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"1","words":"tunnel show local 192.0.2.1"}} +{"id":"tunnel/pw-016","desc":"positive: opt=json cmd=tnl4:tunnel_show_dev_d0","cmd":"ip -j tunnel show dev d0","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tunnel show dev d0"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"1","words":"tunnel show dev d0"}} +{"id":"tunnel/pw-017","desc":"corner: opt=json cmd=tnl4:tunnel_show_isa1","cmd":"ip -j tunnel show isa1","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tunnel show isa1"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"1","words":"tunnel show isa1"}} +{"id":"tunnel/pw-018","desc":"corner: opt=json cmd=tnl4:tunnel_show_isan","cmd":"ip -j tunnel show isan","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tunnel show isan"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"1","words":"tunnel show isan"}} +{"id":"tunnel/pw-019","desc":"positive: opt=json cmd=tnl4:tunnel_show_sit2","cmd":"ip -j tunnel show sit2","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tunnel show sit2"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"1","words":"tunnel show sit2"}} +{"id":"tunnel/pw-020","desc":"corner: opt=json cmd=tnl4:tunnel_show_nosuch","cmd":"ip -j tunnel show nosuch","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tunnel show nosuch"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"1","words":"tunnel show nosuch"}} +{"id":"tunnel/pw-021","desc":"corner: opt=json cmd=tnl4:tunnel_show_name_ipip2","cmd":"ip -j tunnel show name ipip2","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tunnel show name ipip2"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"1","words":"tunnel show name ipip2"}} +{"id":"tunnel/pw-022","desc":"positive: opt=json cmd=tnl4:tunnel_show_gre1","cmd":"ip -j tunnel show gre1","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tunnel show gre1"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"1","words":"tunnel show gre1"}} +{"id":"tunnel/pw-023","desc":"positive: opt=json cmd=tnl4:tunnel_show_ipip1","cmd":"ip -j tunnel show ipip1","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tunnel show ipip1"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"1","words":"tunnel show ipip1"}} +{"id":"tunnel/pw-024","desc":"positive: opt=json cmd=tnl4:tunnel_show_sit1","cmd":"ip -j tunnel show sit1","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tunnel show sit1"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"1","words":"tunnel show sit1"}} +{"id":"tunnel/pw-025","desc":"positive: opt=json cmd=tnl4:tunnel_show_vti1","cmd":"ip -j tunnel show vti1","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tunnel show vti1"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"1","words":"tunnel show vti1"}} +{"id":"tunnel/pw-026","desc":"positive: opt=json cmd=tnl4:tunnel_show_mode_gre","cmd":"ip -j tunnel show mode gre","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tunnel show mode gre"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"1","words":"tunnel show mode gre"}} +{"id":"tunnel/pw-027","desc":"positive: opt=json cmd=tnl4:tunnel_show_mode_ipip","cmd":"ip -j tunnel show mode ipip","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tunnel show mode ipip"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"1","words":"tunnel show mode ipip"}} +{"id":"tunnel/pw-028","desc":"positive: opt=json cmd=tnl4:tunnel_show_mode_sit","cmd":"ip -j tunnel show mode sit","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tunnel show mode sit"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"1","words":"tunnel show mode sit"}} +{"id":"tunnel/pw-029","desc":"positive: opt=json cmd=tnl4:tunnel_show_mode_isatap","cmd":"ip -j tunnel show mode isatap","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tunnel show mode isatap"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"1","words":"tunnel show mode isatap"}} +{"id":"tunnel/pw-030","desc":"positive: opt=json cmd=tnl4:tunnel_show_mode_vti","cmd":"ip -j tunnel show mode vti","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tunnel show mode vti"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"1","words":"tunnel show mode vti"}} +{"id":"tunnel/pw-031","desc":"corner: opt=json cmd=tnl4:-s_tunnel_show_gre1","cmd":"ip -j -s tunnel show gre1","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -s tunnel show gre1"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"1","words":"-s tunnel show gre1"}} +{"id":"tunnel/pw-032","desc":"corner: opt=json cmd=tnl4:tunnel_show_mode_gre_remote_198.51.100.2_local_192.0.2.1_key_5","cmd":"ip -j tunnel show mode gre remote 198.51.100.2 local 192.0.2.1 key 5","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tunnel show mode gre remote 198.51.100.2 local 192.0.2.1 key 5"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"1","words":"tunnel show mode gre remote 198.51.100.2 local 192.0.2.1 key 5"}} +{"id":"tunnel/pw-033","desc":"corner: opt=json cmd=tnl4:tunnel_show_mode_gre_remote_198.51.100.2","cmd":"ip -j tunnel show mode gre remote 198.51.100.2","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tunnel show mode gre remote 198.51.100.2"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"1","words":"tunnel show mode gre remote 198.51.100.2"}} +{"id":"tunnel/pw-034","desc":"corner: opt=json cmd=tnl4:tunnel_show_mode_gre_remote_239.1.1.1_local_192.0.2.1","cmd":"ip -j tunnel show mode gre remote 239.1.1.1 local 192.0.2.1","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tunnel show mode gre remote 239.1.1.1 local 192.0.2.1"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"1","words":"tunnel show mode gre remote 239.1.1.1 local 192.0.2.1"}} +{"id":"tunnel/pw-035","desc":"corner: opt=json cmd=tnl4:tunnel_show_mode_vti_remote_198.51.100.5_local_192.0.2.1_ikey_7_okey_8","cmd":"ip -j tunnel show mode vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tunnel show mode vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"1","words":"tunnel show mode vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"}} +{"id":"tunnel/pw-036","desc":"corner: opt=json cmd=tnl4:tunnel_show_mode_any","cmd":"ip -j tunnel show mode any","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tunnel show mode any"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"1","words":"tunnel show mode any"}} +{"id":"tunnel/pw-037","desc":"corner: opt=json cmd=tnl4:-6_tunnel_show","cmd":"ip -j -6 tunnel show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -6 tunnel show"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl4","json":"1","words":"-6 tunnel show"}} +{"id":"tunnel/pw-038","desc":"positive: opt=json cmd=prl16:tunnel_show_isa16","cmd":"ip -j tunnel show isa16","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip tunnel add isa16 mode isatap local 192.0.2.1","i=10; while [ $i -lt 26 ]; do ip tunnel prl dev isa16 prl-nodefault 192.0.2.$i || exit 1; i=$((i+1)); done"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tunnel show isa16"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"prl16","json":"1","words":"tunnel show isa16"}} +{"id":"tunnel/pw-039","desc":"positive: opt=json cmd=tnl6:-6_tunnel_show","cmd":"ip -j -6 tunnel show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -6 tunnel show"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"1","words":"-6 tunnel show"}} +{"id":"tunnel/pw-040","desc":"corner: opt=json cmd=tnl6:-6_tunnel","cmd":"ip -j -6 tunnel","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -6 tunnel"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"1","words":"-6 tunnel"}} +{"id":"tunnel/pw-041","desc":"positive: opt=json cmd=tnl6:-6_tunnel_list","cmd":"ip -j -6 tunnel list","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -6 tunnel list"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"1","words":"-6 tunnel list"}} +{"id":"tunnel/pw-042","desc":"positive: opt=json cmd=tnl6:-s_-6_tunnel_show","cmd":"ip -j -s -6 tunnel show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -s -6 tunnel show"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"1","words":"-s -6 tunnel show"}} +{"id":"tunnel/pw-043","desc":"corner: opt=json cmd=tnl6:-o_-6_tunnel_show","cmd":"ip -j -o -6 tunnel show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -o -6 tunnel show"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"1","words":"-o -6 tunnel show"}} +{"id":"tunnel/pw-044","desc":"positive: opt=json cmd=tnl6:-6_tunnel_show_ip6t1","cmd":"ip -j -6 tunnel show ip6t1","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -6 tunnel show ip6t1"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"1","words":"-6 tunnel show ip6t1"}} +{"id":"tunnel/pw-045","desc":"corner: opt=json cmd=tnl6:-s_-6_tunnel_show_ip6t1","cmd":"ip -j -s -6 tunnel show ip6t1","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -s -6 tunnel show ip6t1"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"1","words":"-s -6 tunnel show ip6t1"}} +{"id":"tunnel/pw-046","desc":"positive: opt=json cmd=tnl6:-6_tunnel_show_name_ip6g1","cmd":"ip -j -6 tunnel show name ip6g1","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -6 tunnel show name ip6g1"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"1","words":"-6 tunnel show name ip6g1"}} +{"id":"tunnel/pw-047","desc":"positive: opt=json cmd=tnl6:-6_tunnel_show_ip6tnl0","cmd":"ip -j -6 tunnel show ip6tnl0","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -6 tunnel show ip6tnl0"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"1","words":"-6 tunnel show ip6tnl0"}} +{"id":"tunnel/pw-048","desc":"positive: opt=json cmd=tnl6:-6_tunnel_show_mode_ip6gre","cmd":"ip -j -6 tunnel show mode ip6gre","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -6 tunnel show mode ip6gre"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"1","words":"-6 tunnel show mode ip6gre"}} +{"id":"tunnel/pw-049","desc":"positive: opt=json cmd=tnl6:-6_tunnel_show_mode_ip6ip6","cmd":"ip -j -6 tunnel show mode ip6ip6","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -6 tunnel show mode ip6ip6"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"1","words":"-6 tunnel show mode ip6ip6"}} +{"id":"tunnel/pw-050","desc":"positive: opt=json cmd=tnl6:-6_tunnel_show_mode_ipip6","cmd":"ip -j -6 tunnel show mode ipip6","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -6 tunnel show mode ipip6"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"1","words":"-6 tunnel show mode ipip6"}} +{"id":"tunnel/pw-051","desc":"positive: opt=json cmd=tnl6:-6_tunnel_show_mode_vti6","cmd":"ip -j -6 tunnel show mode vti6","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -6 tunnel show mode vti6"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"1","words":"-6 tunnel show mode vti6"}} +{"id":"tunnel/pw-052","desc":"positive: opt=json cmd=tnl6:-6_tunnel_show_mode_any","cmd":"ip -j -6 tunnel show mode any","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -6 tunnel show mode any"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"1","words":"-6 tunnel show mode any"}} +{"id":"tunnel/pw-053","desc":"corner: opt=json cmd=tnl6:tunnel_show_mode_ip6ip6","cmd":"ip -j tunnel show mode ip6ip6","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tunnel show mode ip6ip6"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"1","words":"tunnel show mode ip6ip6"}} +{"id":"tunnel/pw-054","desc":"positive: opt=json cmd=tnl6:-6_tunnel_show_remote_2001:db8::2","cmd":"ip -j -6 tunnel show remote 2001:db8::2","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -6 tunnel show remote 2001:db8::2"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"1","words":"-6 tunnel show remote 2001:db8::2"}} +{"id":"tunnel/pw-055","desc":"positive: opt=json cmd=tnl6:-6_tunnel_show_local_2001:db8::1","cmd":"ip -j -6 tunnel show local 2001:db8::1","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -6 tunnel show local 2001:db8::1"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"1","words":"-6 tunnel show local 2001:db8::1"}} +{"id":"tunnel/pw-056","desc":"positive: opt=json cmd=tnl6:-6_tunnel_show_dev_d0","cmd":"ip -j -6 tunnel show dev d0","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -6 tunnel show dev d0"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"1","words":"-6 tunnel show dev d0"}} +{"id":"tunnel/pw-057","desc":"positive: opt=json cmd=tnl6:-6_tunnel_show_encaplimit_none","cmd":"ip -j -6 tunnel show encaplimit none","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -6 tunnel show encaplimit none"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"1","words":"-6 tunnel show encaplimit none"}} +{"id":"tunnel/pw-058","desc":"positive: opt=json cmd=tnl6:-6_tunnel_show_hoplimit_1","cmd":"ip -j -6 tunnel show hoplimit 1","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -6 tunnel show hoplimit 1"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"1","words":"-6 tunnel show hoplimit 1"}} +{"id":"tunnel/pw-059","desc":"positive: opt=json cmd=tnl6:-6_tunnel_show_tclass_inherit","cmd":"ip -j -6 tunnel show tclass inherit","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -6 tunnel show tclass inherit"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"1","words":"-6 tunnel show tclass inherit"}} +{"id":"tunnel/pw-060","desc":"positive: opt=json cmd=tnl6:-6_tunnel_show_flowlabel_0x12345","cmd":"ip -j -6 tunnel show flowlabel 0x12345","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -6 tunnel show flowlabel 0x12345"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"1","words":"-6 tunnel show flowlabel 0x12345"}} +{"id":"tunnel/pw-061","desc":"positive: opt=json cmd=tnl6:-6_tunnel_show_key_9","cmd":"ip -j -6 tunnel show key 9","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -6 tunnel show key 9"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"1","words":"-6 tunnel show key 9"}} +{"id":"tunnel/pw-062","desc":"positive: opt=json cmd=tnl6:-6_tunnel_show_allow-localremote","cmd":"ip -j -6 tunnel show allow-localremote","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -6 tunnel show allow-localremote"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"1","words":"-6 tunnel show allow-localremote"}} +{"id":"tunnel/pw-063","desc":"corner: opt=json cmd=tnl6:-6_tunnel_show_encaplimit_300","cmd":"ip -j -6 tunnel show encaplimit 300","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -6 tunnel show encaplimit 300"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"1","words":"-6 tunnel show encaplimit 300"}} +{"id":"tunnel/pw-064","desc":"positive: opt=json cmd=tnl6:tunnel_show","cmd":"ip -j tunnel show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tunnel show"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"1","words":"tunnel show"}} +{"id":"tunnel/pw-065","desc":"corner: opt=json cmd=tnl6:tunnel_show_gre6x","cmd":"ip -j tunnel show gre6x","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tunnel show gre6x"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tnl6","json":"1","words":"tunnel show gre6x"}} +{"id":"tunnel/pw-066","desc":"corner: opt=json cmd=ext:tunnel_show","cmd":"ip -j tunnel show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipipx type ipip external","ip link add gtap1 type gretap remote 198.51.100.6 local 192.0.2.1 key 11","ip link add ersp1 type erspan remote 198.51.100.7 local 192.0.2.1 seq key 12 erspan_ver 1 erspan 5","ip link add g6tap1 type ip6gretap remote 2001:db8::7 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tunnel show"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ext","json":"1","words":"tunnel show"}} +{"id":"tunnel/pw-067","desc":"corner: opt=json cmd=ext:-6_tunnel_show","cmd":"ip -j -6 tunnel show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipipx type ipip external","ip link add gtap1 type gretap remote 198.51.100.6 local 192.0.2.1 key 11","ip link add ersp1 type erspan remote 198.51.100.7 local 192.0.2.1 seq key 12 erspan_ver 1 erspan 5","ip link add g6tap1 type ip6gretap remote 2001:db8::7 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -6 tunnel show"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ext","json":"1","words":"-6 tunnel show"}} +{"id":"tunnel/pw-068","desc":"corner: opt=json cmd=ext:tunnel_show_ipipx","cmd":"ip -j tunnel show ipipx","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipipx type ipip external","ip link add gtap1 type gretap remote 198.51.100.6 local 192.0.2.1 key 11","ip link add ersp1 type erspan remote 198.51.100.7 local 192.0.2.1 seq key 12 erspan_ver 1 erspan 5","ip link add g6tap1 type ip6gretap remote 2001:db8::7 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tunnel show ipipx"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ext","json":"1","words":"tunnel show ipipx"}} +{"id":"tunnel/pw-069","desc":"corner: opt=json cmd=tnl4:batch:twice","cmd":"ip -j -batch b.txt","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8","printf '%s\\n' 'tunnel show' 'tunnel show' > b.txt"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -batch b.txt"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"batch":"twice","fix":"tnl4","json":"1","words":"-batch b.txt"}} +{"id":"tunnel/pw-070","desc":"corner: opt=json cmd=tnl4:batch:mode-then-list","cmd":"ip -j -batch b.txt","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8","printf '%s\\n' 'tunnel show mode gre' 'tunnel show' > b.txt"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -batch b.txt"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"batch":"mode-then-list","fix":"tnl4","json":"1","words":"-batch b.txt"}} +{"id":"tunnel/pw-071","desc":"corner: opt=json cmd=tnl4:batch:any-sticks","cmd":"ip -j -batch b.txt","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8","printf '%s\\n' 'tunnel show mode any' 'tunnel show' > b.txt"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -batch b.txt"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"batch":"any-sticks","fix":"tnl4","json":"1","words":"-batch b.txt"}} +{"id":"tunnel/pw-072","desc":"corner: opt=json cmd=tnl6:batch:v6-named-then-list","cmd":"ip -j -batch - < b.txt","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1","printf '%s\\n' 'tunnel show mode ip6ip6 ip6t1' 'tunnel show' > b.txt"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -batch - < b.txt"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"batch":"v6-named-then-list","fix":"tnl6","json":"1","words":"-batch - < b.txt"}} +{"id":"tunnel/ng-001","desc":"negative: opt=plain cmd=ng:tnl4:tunnel_show_gre9: a gre name asks gre9 by ioctl: ENODEV, rc 1 (T5)","cmd":"ip tunnel show gre9","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show gre9"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":1,"refused_by":"iproute2"},"axes":{"fix":"tnl4","json":"0","words":"tunnel show gre9"}} +{"id":"tunnel/ng-002","desc":"negative: opt=plain cmd=ng:tnl4:tunnel_show_key_5: keys without a gre or vti mode are refused (T6)","cmd":"ip tunnel show key 5","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0","ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit","ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32","ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum","ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1","ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64","ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16","ip tunnel add isa1 mode isatap local 192.0.2.1","ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11","ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12","ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show key 5"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":1,"refused_by":"iproute2"},"axes":{"fix":"tnl4","json":"0","words":"tunnel show key 5"}} +{"id":"tunnel/ng-003","desc":"negative: opt=plain cmd=ng:bare:tunnel_show_mode_bogus: Unknown tunnel mode, exit(-1)","cmd":"ip tunnel show mode bogus","readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show mode bogus"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"bare","json":"0","words":"tunnel show mode bogus"}} +{"id":"tunnel/ng-004","desc":"negative: opt=plain cmd=ng:bare:tunnel_show_mode_gre_mode_ipip: more than one tunnel mode, exit(-1)","cmd":"ip tunnel show mode gre mode ipip","readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show mode gre mode ipip"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"bare","json":"0","words":"tunnel show mode gre mode ipip"}} +{"id":"tunnel/ng-005","desc":"negative: opt=plain cmd=ng:bare:tunnel_show_mode: mode with no value: the command is incomplete","cmd":"ip tunnel show mode","readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show mode"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"bare","json":"0","words":"tunnel show mode"}} +{"id":"tunnel/ng-006","desc":"negative: opt=plain cmd=ng:bare:tunnel_show_ttl_300: invarg(\"invalid TTL\\n\"): two newlines (T11)","cmd":"ip tunnel show ttl 300","readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show ttl 300"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"bare","json":"0","words":"tunnel show ttl 300"}} +{"id":"tunnel/ng-007","desc":"negative: opt=plain cmd=ng:bare:tunnel_show_ttl_bogus: invalid TTL","cmd":"ip tunnel show ttl bogus","readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show ttl bogus"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"bare","json":"0","words":"tunnel show ttl bogus"}} +{"id":"tunnel/ng-008","desc":"negative: opt=plain cmd=ng:bare:tunnel_show_tos_bogus: bad TOS value","cmd":"ip tunnel show tos bogus","readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show tos bogus"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"bare","json":"0","words":"tunnel show tos bogus"}} +{"id":"tunnel/ng-009","desc":"negative: opt=plain cmd=ng:bare:tunnel_show_key_bogus: tnl_parse_key: not an unsigned integer","cmd":"ip tunnel show key bogus","readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show key bogus"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"bare","json":"0","words":"tunnel show key bogus"}} +{"id":"tunnel/ng-010","desc":"negative: opt=plain cmd=ng:bare:tunnel_show_remote_bogus: get_addr32: not an address, exit(1)","cmd":"ip tunnel show remote bogus","readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show remote bogus"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":1,"refused_by":"iproute2"},"axes":{"fix":"bare","json":"0","words":"tunnel show remote bogus"}} +{"id":"tunnel/ng-011","desc":"negative: opt=plain cmd=ng:bare:tunnel_show_name_a_name_b: duparg2 name","cmd":"ip tunnel show name a name b","readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show name a name b"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"bare","json":"0","words":"tunnel show name a name b"}} +{"id":"tunnel/ng-012","desc":"negative: opt=plain cmd=ng:bare:tunnel_show_help: a prefix of help in the words prints the usage","cmd":"ip tunnel show help","readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show help"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"bare","json":"0","words":"tunnel show help"}} +{"id":"tunnel/ng-013","desc":"negative: opt=plain cmd=ng:bare:tunnel_show_dev_nosuch: ll_name_to_index asks the kernel, then nodev","cmd":"ip tunnel show dev nosuch","readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel show dev nosuch"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":1,"errno":"ENODEV","refused_by":"kernel"},"axes":{"fix":"bare","json":"0","words":"tunnel show dev nosuch"}} +{"id":"tunnel/ng-014","desc":"negative: opt=plain cmd=ng:bare:tunnel_bogus: an unknown tunnel command","cmd":"ip tunnel bogus","readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel bogus"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"bare","json":"0","words":"tunnel bogus"}} +{"id":"tunnel/ng-015","desc":"negative: opt=plain cmd=ng:bare:tunnel_help: the usage, exit(-1)","cmd":"ip tunnel help","readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel help"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"bare","json":"0","words":"tunnel help"}} +{"id":"tunnel/ng-016","desc":"negative: opt=plain cmd=ng:bare:-0_tunnel_show: AF_PACKET: Unsupported protocol family","cmd":"ip -0 tunnel show","readback":[{"name":"tnlsys","cmd":"tnlsnap -- -0 tunnel show"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"bare","json":"0","words":"-0 tunnel show"}} +{"id":"tunnel/ng-017","desc":"negative: opt=plain cmd=ng:bare:tunnel_add: a write with no mode: cannot determine tunnel mode, before any ioctl","cmd":"ip tunnel add","readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel add"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":1,"refused_by":"iproute2"},"axes":{"fix":"bare","json":"0","words":"tunnel add"}} +{"id":"tunnel/ng-018","desc":"negative: opt=plain cmd=ng:bare:tunnel_add_mode_gre_ttl_64_nopmtudisc: ttl and nopmtudisc refused before any ioctl","cmd":"ip tunnel add mode gre ttl 64 nopmtudisc","readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel add mode gre ttl 64 nopmtudisc"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":1,"refused_by":"iproute2"},"axes":{"fix":"bare","json":"0","words":"tunnel add mode gre ttl 64 nopmtudisc"}} +{"id":"tunnel/ng-019","desc":"negative: opt=plain cmd=ng:bare:tunnel_prl: prl with no device: Must specify device","cmd":"ip tunnel prl","readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel prl"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"bare","json":"0","words":"tunnel prl"}} +{"id":"tunnel/ng-020","desc":"negative: opt=plain cmd=ng:bare:tunnel_6rd: 6rd with no device: Must specify device","cmd":"ip tunnel 6rd","readback":[{"name":"tnlsys","cmd":"tnlsnap -- tunnel 6rd"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"bare","json":"0","words":"tunnel 6rd"}} +{"id":"tunnel/ng-021","desc":"negative: opt=plain cmd=ng:tnl6:-6_tunnel_show_nosuch: the v6 named path: ENODEV, rc 1","cmd":"ip -6 tunnel show nosuch","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad","ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0","ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit","ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum","ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4","ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -6 tunnel show nosuch"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":1,"refused_by":"iproute2"},"axes":{"fix":"tnl6","json":"0","words":"-6 tunnel show nosuch"}} +{"id":"tunnel/ng-022","desc":"negative: opt=plain cmd=ng:bare:-6_tunnel_show_mode_gre: gre is not a v6 mode: Unknown tunnel mode","cmd":"ip -6 tunnel show mode gre","readback":[{"name":"tnlsys","cmd":"tnlsnap -- -6 tunnel show mode gre"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"bare","json":"0","words":"-6 tunnel show mode gre"}} +{"id":"tunnel/ng-023","desc":"negative: opt=plain cmd=ng:bare:-6_tunnel_show_ttl_300: invarg(\"invalid TTL\"): one newline (T11)","cmd":"ip -6 tunnel show ttl 300","readback":[{"name":"tnlsys","cmd":"tnlsnap -- -6 tunnel show ttl 300"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"bare","json":"0","words":"-6 tunnel show ttl 300"}} +{"id":"tunnel/ng-024","desc":"negative: opt=plain cmd=ng:bare:-6_tunnel_show_flowlabel_0x100000: a 21-bit flowlabel: invalid Flowlabel","cmd":"ip -6 tunnel show flowlabel 0x100000","readback":[{"name":"tnlsys","cmd":"tnlsnap -- -6 tunnel show flowlabel 0x100000"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"bare","json":"0","words":"-6 tunnel show flowlabel 0x100000"}} +{"id":"tunnel/ng-025","desc":"negative: opt=plain cmd=ng:bare:-6_tunnel_show_dscp_5: dscp takes only inherit","cmd":"ip -6 tunnel show dscp 5","readback":[{"name":"tnlsys","cmd":"tnlsnap -- -6 tunnel show dscp 5"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"bare","json":"0","words":"-6 tunnel show dscp 5"}} +{"id":"tunnel/ng-026","desc":"negative: opt=plain cmd=ng:bare:-6_tunnel_bogus: an unknown v6 tunnel command","cmd":"ip -6 tunnel bogus","readback":[{"name":"tnlsys","cmd":"tnlsnap -- -6 tunnel bogus"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"bare","json":"0","words":"-6 tunnel bogus"}} +{"id":"tunnel/ng-027","desc":"negative: opt=plain cmd=ng:bare:-6_tunnel_help: the v6 usage, exit(-1)","cmd":"ip -6 tunnel help","readback":[{"name":"tnlsys","cmd":"tnlsnap -- -6 tunnel help"}],"modules":["ipip","ip_gre","sit","ip_vti","ip6_tunnel","ip6_gre","ip6_vti"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"bare","json":"0","words":"-6 tunnel help"}} diff --git a/nix/microvms/workbench/tuntap.rows.jsonl b/nix/microvms/workbench/tuntap.rows.jsonl new file mode 100644 index 000000000..942c440fb --- /dev/null +++ b/nix/microvms/workbench/tuntap.rows.jsonl @@ -0,0 +1,49 @@ +# Generated by `nlcapgen matrix -family tuntap -seed 1 -random 0`. +# Do not edit; regenerate. tools/nlcapgen/matrix.go explains the strategies. +# 46 rows. +{"id":"tuntap/ec-001","desc":"boundary: opt=plain cmd=bare:tuntap_show","cmd":"ip tuntap show","readback":[{"name":"tnlsys","cmd":"tnlsnap -- tuntap show"}],"modules":["tun"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"bare","json":"0","words":"tuntap show"}} +{"id":"tuntap/ec-002","desc":"positive: opt=json cmd=tun:tuntap_show","cmd":"ip -j tuntap show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tuntap show"}],"modules":["tun"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tun","json":"1","words":"tuntap show"}} +{"id":"tuntap/ec-003","desc":"corner: opt=plain cmd=tun:tuntap","cmd":"ip tuntap","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tuntap"}],"modules":["tun"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tun","json":"0","words":"tuntap"}} +{"id":"tuntap/ec-004","desc":"positive: opt=plain cmd=tun:tuntap_list","cmd":"ip tuntap list","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tuntap list"}],"modules":["tun"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tun","json":"0","words":"tuntap list"}} +{"id":"tuntap/ec-005","desc":"positive: opt=plain cmd=tun:tuntap_lst","cmd":"ip tuntap lst","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tuntap lst"}],"modules":["tun"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tun","json":"0","words":"tuntap lst"}} +{"id":"tuntap/ec-006","desc":"corner: opt=plain cmd=tun:tuntap_sh","cmd":"ip tuntap sh","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tuntap sh"}],"modules":["tun"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tun","json":"0","words":"tuntap sh"}} +{"id":"tuntap/ec-007","desc":"positive: opt=plain cmd=tun:tap_show","cmd":"ip tap show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tap show"}],"modules":["tun"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tun","json":"0","words":"tap show"}} +{"id":"tuntap/ec-008","desc":"corner: opt=plain cmd=tun:tap","cmd":"ip tap","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tap"}],"modules":["tun"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tun","json":"0","words":"tap"}} +{"id":"tuntap/ec-009","desc":"positive: opt=plain cmd=tun:-d_tuntap_show","cmd":"ip -d tuntap show","pre":["pkill -f '[t]nlholde[r]'; true","ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -d tuntap show"}],"modules":["tun"],"proto":"route","serial":true,"expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tun","json":"0","words":"-d tuntap show"}} +{"id":"tuntap/ec-010","desc":"corner: opt=plain cmd=tun:-o_tuntap_show","cmd":"ip -o tuntap show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -o tuntap show"}],"modules":["tun"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tun","json":"0","words":"-o tuntap show"}} +{"id":"tuntap/ec-011","desc":"corner: opt=plain cmd=tun:-s_tuntap_show","cmd":"ip -s tuntap show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -s tuntap show"}],"modules":["tun"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tun","json":"0","words":"-s tuntap show"}} +{"id":"tuntap/ec-012","desc":"corner: opt=plain cmd=tun:-6_tuntap_show","cmd":"ip -6 tuntap show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -6 tuntap show"}],"modules":["tun"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tun","json":"0","words":"-6 tuntap show"}} +{"id":"tuntap/ec-013","desc":"corner: opt=plain cmd=tun:tuntap_show_dev_tap0","cmd":"ip tuntap show dev tap0","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tuntap show dev tap0"}],"modules":["tun"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tun","json":"0","words":"tuntap show dev tap0"}} +{"id":"tuntap/ec-014","desc":"corner: opt=plain cmd=tun:tuntap_show_bogus_words","cmd":"ip tuntap show bogus words","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tuntap show bogus words"}],"modules":["tun"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tun","json":"0","words":"tuntap show bogus words"}} +{"id":"tuntap/ec-015","desc":"positive: opt=plain cmd=proc:-d_tuntap_show","cmd":"ip -d tuntap show","pre":["pkill -f '[t]nlholde[r]'; true","ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi","printf '%s\\n' 'import fcntl,os,struct,sys,time' 'f=os.open(\"/dev/net/tun\",os.O_RDWR)' 'fcntl.ioctl(f,0x400454ca,struct.pack(\"16sH\",sys.argv[1].encode(),int(sys.argv[2],0)))' 'time.sleep(120)' > /run/tnlholder.py","setsid python3 /run/tnlholder.py tap0 0x3002 /dev/null 2>&1 & sleep 1","setsid python3 /run/tnlholder.py tun1 0x5101 /dev/null 2>&1 & sleep 1","setsid python3 /run/tnlholder.py tun1 0x5101 /dev/null 2>&1 & sleep 1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -d tuntap show"}],"modules":["tun"],"proto":"route","serial":true,"expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"proc","json":"0","words":"-d tuntap show"}} +{"id":"tuntap/ec-016","desc":"corner: opt=plain cmd=proc:-o_-d_tuntap_show","cmd":"ip -o -d tuntap show","pre":["pkill -f '[t]nlholde[r]'; true","ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi","printf '%s\\n' 'import fcntl,os,struct,sys,time' 'f=os.open(\"/dev/net/tun\",os.O_RDWR)' 'fcntl.ioctl(f,0x400454ca,struct.pack(\"16sH\",sys.argv[1].encode(),int(sys.argv[2],0)))' 'time.sleep(120)' > /run/tnlholder.py","setsid python3 /run/tnlholder.py tap0 0x3002 /dev/null 2>&1 & sleep 1","setsid python3 /run/tnlholder.py tun1 0x5101 /dev/null 2>&1 & sleep 1","setsid python3 /run/tnlholder.py tun1 0x5101 /dev/null 2>&1 & sleep 1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -o -d tuntap show"}],"modules":["tun"],"proto":"route","serial":true,"expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"proc","json":"0","words":"-o -d tuntap show"}} +{"id":"tuntap/ec-017","desc":"corner: opt=plain cmd=proc:-d_tuntap","cmd":"ip -d tuntap","pre":["pkill -f '[t]nlholde[r]'; true","ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi","printf '%s\\n' 'import fcntl,os,struct,sys,time' 'f=os.open(\"/dev/net/tun\",os.O_RDWR)' 'fcntl.ioctl(f,0x400454ca,struct.pack(\"16sH\",sys.argv[1].encode(),int(sys.argv[2],0)))' 'time.sleep(120)' > /run/tnlholder.py","setsid python3 /run/tnlholder.py tap0 0x3002 /dev/null 2>&1 & sleep 1","setsid python3 /run/tnlholder.py tun1 0x5101 /dev/null 2>&1 & sleep 1","setsid python3 /run/tnlholder.py tun1 0x5101 /dev/null 2>&1 & sleep 1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -d tuntap"}],"modules":["tun"],"proto":"route","serial":true,"expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"proc","json":"0","words":"-d tuntap"}} +{"id":"tuntap/ec-018","desc":"corner: opt=plain cmd=xns:-d_tuntap_show","cmd":"ip -d tuntap show","pre":["pkill -f '[t]nlholde[r]'; true","ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi","printf '%s\\n' 'import fcntl,os,struct,sys,time' 'f=os.open(\"/dev/net/tun\",os.O_RDWR)' 'fcntl.ioctl(f,0x400454ca,struct.pack(\"16sH\",sys.argv[1].encode(),int(sys.argv[2],0)))' 'time.sleep(120)' > /run/tnlholder.py","setsid unshare -n sh -c 'ip tuntap add tap0 mode tap && exec python3 /run/tnlholder.py tap0 0x1002' /dev/null 2>&1 & sleep 1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -d tuntap show"}],"modules":["tun"],"proto":"route","serial":true,"expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"xns","json":"0","words":"-d tuntap show"}} +{"id":"tuntap/ec-019","desc":"corner: opt=plain cmd=tun:batch:twice","cmd":"ip -batch b.txt","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi","printf '%s\\n' 'tuntap show' 'tuntap show dev tap0' > b.txt"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -batch b.txt"}],"modules":["tun"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"batch":"twice","fix":"tun","json":"0","words":"-batch b.txt"}} +{"id":"tuntap/ec-020","desc":"corner: opt=plain cmd=tun:batch:stdin","cmd":"ip -batch - < b.txt","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi","printf '%s\\n' 'tap show' > b.txt"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -batch - < b.txt"}],"modules":["tun"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"batch":"stdin","fix":"tun","json":"0","words":"-batch - < b.txt"}} +{"id":"tuntap/pw-001","desc":"positive: opt=plain cmd=tun:tuntap_show","cmd":"ip tuntap show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- tuntap show"}],"modules":["tun"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tun","json":"0","words":"tuntap show"}} +{"id":"tuntap/pw-002","desc":"boundary: opt=json cmd=bare:tuntap_show","cmd":"ip -j tuntap show","readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tuntap show"}],"modules":["tun"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"bare","json":"1","words":"tuntap show"}} +{"id":"tuntap/pw-003","desc":"corner: opt=json cmd=tun:tuntap","cmd":"ip -j tuntap","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tuntap"}],"modules":["tun"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tun","json":"1","words":"tuntap"}} +{"id":"tuntap/pw-004","desc":"positive: opt=json cmd=tun:tuntap_list","cmd":"ip -j tuntap list","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tuntap list"}],"modules":["tun"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tun","json":"1","words":"tuntap list"}} +{"id":"tuntap/pw-005","desc":"positive: opt=json cmd=tun:tuntap_lst","cmd":"ip -j tuntap lst","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tuntap lst"}],"modules":["tun"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tun","json":"1","words":"tuntap lst"}} +{"id":"tuntap/pw-006","desc":"corner: opt=json cmd=tun:tuntap_sh","cmd":"ip -j tuntap sh","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tuntap sh"}],"modules":["tun"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tun","json":"1","words":"tuntap sh"}} +{"id":"tuntap/pw-007","desc":"positive: opt=json cmd=tun:tap_show","cmd":"ip -j tap show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tap show"}],"modules":["tun"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tun","json":"1","words":"tap show"}} +{"id":"tuntap/pw-008","desc":"corner: opt=json cmd=tun:tap","cmd":"ip -j tap","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tap"}],"modules":["tun"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tun","json":"1","words":"tap"}} +{"id":"tuntap/pw-009","desc":"positive: opt=json cmd=tun:-d_tuntap_show","cmd":"ip -j -d tuntap show","pre":["pkill -f '[t]nlholde[r]'; true","ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -d tuntap show"}],"modules":["tun"],"proto":"route","serial":true,"expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tun","json":"1","words":"-d tuntap show"}} +{"id":"tuntap/pw-010","desc":"corner: opt=json cmd=tun:-o_tuntap_show","cmd":"ip -j -o tuntap show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -o tuntap show"}],"modules":["tun"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tun","json":"1","words":"-o tuntap show"}} +{"id":"tuntap/pw-011","desc":"corner: opt=json cmd=tun:-s_tuntap_show","cmd":"ip -j -s tuntap show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -s tuntap show"}],"modules":["tun"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tun","json":"1","words":"-s tuntap show"}} +{"id":"tuntap/pw-012","desc":"corner: opt=json cmd=tun:-6_tuntap_show","cmd":"ip -j -6 tuntap show","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -6 tuntap show"}],"modules":["tun"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tun","json":"1","words":"-6 tuntap show"}} +{"id":"tuntap/pw-013","desc":"corner: opt=json cmd=tun:tuntap_show_dev_tap0","cmd":"ip -j tuntap show dev tap0","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tuntap show dev tap0"}],"modules":["tun"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tun","json":"1","words":"tuntap show dev tap0"}} +{"id":"tuntap/pw-014","desc":"corner: opt=json cmd=tun:tuntap_show_bogus_words","cmd":"ip -j tuntap show bogus words","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j tuntap show bogus words"}],"modules":["tun"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"tun","json":"1","words":"tuntap show bogus words"}} +{"id":"tuntap/pw-015","desc":"positive: opt=json cmd=proc:-d_tuntap_show","cmd":"ip -j -d tuntap show","pre":["pkill -f '[t]nlholde[r]'; true","ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi","printf '%s\\n' 'import fcntl,os,struct,sys,time' 'f=os.open(\"/dev/net/tun\",os.O_RDWR)' 'fcntl.ioctl(f,0x400454ca,struct.pack(\"16sH\",sys.argv[1].encode(),int(sys.argv[2],0)))' 'time.sleep(120)' > /run/tnlholder.py","setsid python3 /run/tnlholder.py tap0 0x3002 /dev/null 2>&1 & sleep 1","setsid python3 /run/tnlholder.py tun1 0x5101 /dev/null 2>&1 & sleep 1","setsid python3 /run/tnlholder.py tun1 0x5101 /dev/null 2>&1 & sleep 1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -d tuntap show"}],"modules":["tun"],"proto":"route","serial":true,"expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"proc","json":"1","words":"-d tuntap show"}} +{"id":"tuntap/pw-016","desc":"corner: opt=json cmd=proc:-o_-d_tuntap_show","cmd":"ip -j -o -d tuntap show","pre":["pkill -f '[t]nlholde[r]'; true","ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi","printf '%s\\n' 'import fcntl,os,struct,sys,time' 'f=os.open(\"/dev/net/tun\",os.O_RDWR)' 'fcntl.ioctl(f,0x400454ca,struct.pack(\"16sH\",sys.argv[1].encode(),int(sys.argv[2],0)))' 'time.sleep(120)' > /run/tnlholder.py","setsid python3 /run/tnlholder.py tap0 0x3002 /dev/null 2>&1 & sleep 1","setsid python3 /run/tnlholder.py tun1 0x5101 /dev/null 2>&1 & sleep 1","setsid python3 /run/tnlholder.py tun1 0x5101 /dev/null 2>&1 & sleep 1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -o -d tuntap show"}],"modules":["tun"],"proto":"route","serial":true,"expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"proc","json":"1","words":"-o -d tuntap show"}} +{"id":"tuntap/pw-017","desc":"corner: opt=json cmd=proc:-d_tuntap","cmd":"ip -j -d tuntap","pre":["pkill -f '[t]nlholde[r]'; true","ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi","printf '%s\\n' 'import fcntl,os,struct,sys,time' 'f=os.open(\"/dev/net/tun\",os.O_RDWR)' 'fcntl.ioctl(f,0x400454ca,struct.pack(\"16sH\",sys.argv[1].encode(),int(sys.argv[2],0)))' 'time.sleep(120)' > /run/tnlholder.py","setsid python3 /run/tnlholder.py tap0 0x3002 /dev/null 2>&1 & sleep 1","setsid python3 /run/tnlholder.py tun1 0x5101 /dev/null 2>&1 & sleep 1","setsid python3 /run/tnlholder.py tun1 0x5101 /dev/null 2>&1 & sleep 1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -d tuntap"}],"modules":["tun"],"proto":"route","serial":true,"expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"proc","json":"1","words":"-d tuntap"}} +{"id":"tuntap/pw-018","desc":"corner: opt=json cmd=xns:-d_tuntap_show","cmd":"ip -j -d tuntap show","pre":["pkill -f '[t]nlholde[r]'; true","ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi","printf '%s\\n' 'import fcntl,os,struct,sys,time' 'f=os.open(\"/dev/net/tun\",os.O_RDWR)' 'fcntl.ioctl(f,0x400454ca,struct.pack(\"16sH\",sys.argv[1].encode(),int(sys.argv[2],0)))' 'time.sleep(120)' > /run/tnlholder.py","setsid unshare -n sh -c 'ip tuntap add tap0 mode tap && exec python3 /run/tnlholder.py tap0 0x1002' /dev/null 2>&1 & sleep 1"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -d tuntap show"}],"modules":["tun"],"proto":"route","serial":true,"expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"xns","json":"1","words":"-d tuntap show"}} +{"id":"tuntap/pw-019","desc":"corner: opt=json cmd=tun:batch:twice","cmd":"ip -j -batch b.txt","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi","printf '%s\\n' 'tuntap show' 'tuntap show dev tap0' > b.txt"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -batch b.txt"}],"modules":["tun"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"batch":"twice","fix":"tun","json":"1","words":"-batch b.txt"}} +{"id":"tuntap/pw-020","desc":"corner: opt=json cmd=tun:batch:stdin","cmd":"ip -j -batch - < b.txt","pre":["ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none","ip tuntap add tap0 mode tap user 1000 group 100 one_queue","ip tuntap add tun1 mode tun multi_queue vnet_hdr","ip tuntap add tap2 mode tap pi","printf '%s\\n' 'tap show' > b.txt"],"readback":[{"name":"tnlsys","cmd":"tnlsnap -- -j -batch - < b.txt"}],"modules":["tun"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"batch":"stdin","fix":"tun","json":"1","words":"-batch - < b.txt"}} +{"id":"tuntap/ng-001","desc":"negative: opt=plain cmd=ng:bare:tuntap_bogus: an unknown tuntap command","cmd":"ip tuntap bogus","readback":[{"name":"tnlsys","cmd":"tnlsnap -- tuntap bogus"}],"modules":["tun"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"bare","json":"0","words":"tuntap bogus"}} +{"id":"tuntap/ng-002","desc":"negative: opt=plain cmd=ng:bare:tuntap_help: the usage, exit(-1)","cmd":"ip tuntap help","readback":[{"name":"tnlsys","cmd":"tnlsnap -- tuntap help"}],"modules":["tun"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"bare","json":"0","words":"tuntap help"}} +{"id":"tuntap/ng-003","desc":"negative: opt=plain cmd=ng:bare:tuntap_add: a write with no mode: refused before any ioctl","cmd":"ip tuntap add","readback":[{"name":"tnlsys","cmd":"tnlsnap -- tuntap add"}],"modules":["tun"],"proto":"route","expect":{"rc":1,"refused_by":"iproute2"},"axes":{"fix":"bare","json":"0","words":"tuntap add"}} +{"id":"tuntap/ng-004","desc":"negative: opt=plain cmd=ng:bare:tuntap_add_mode_bogus: Unknown tunnel mode, before any ioctl","cmd":"ip tuntap add mode bogus","readback":[{"name":"tnlsys","cmd":"tnlsnap -- tuntap add mode bogus"}],"modules":["tun"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"bare","json":"0","words":"tuntap add mode bogus"}} +{"id":"tuntap/ng-005","desc":"negative: opt=plain cmd=ng:bare:tuntap_add_mode_tap_user_nosuchuser: invalid user, before any ioctl","cmd":"ip tuntap add mode tap user nosuchuser","readback":[{"name":"tnlsys","cmd":"tnlsnap -- tuntap add mode tap user nosuchuser"}],"modules":["tun"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"bare","json":"0","words":"tuntap add mode tap user nosuchuser"}} +{"id":"tuntap/ng-006","desc":"negative: opt=plain cmd=ng:bare:tuntap_del: a delete with no mode: refused before any ioctl","cmd":"ip tuntap del","readback":[{"name":"tnlsys","cmd":"tnlsnap -- tuntap del"}],"modules":["tun"],"proto":"route","expect":{"rc":1,"refused_by":"iproute2"},"axes":{"fix":"bare","json":"0","words":"tuntap del"}} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-001/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-001/cmd.json new file mode 100644 index 000000000..0a7255d18 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-001/cmd.json @@ -0,0 +1,45 @@ +{ + "axes": { + "fix": "bare", + "json": "0", + "words": "tunnel show" + }, + "cmd": "ip tunnel show", + "desc": "boundary: opt=plain cmd=bare:tunnel_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": "tunnel/ec-001", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- tunnel show", + "name": "tnlsys" + } + ], + "result": { + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-001/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-001/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-001/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-001/ip.out new file mode 100644 index 000000000..3d386ef27 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-001/ip.out @@ -0,0 +1,4 @@ +gre0: gre/ip remote any local any ttl inherit nopmtudisc +ip_vti0: ip/ip remote any local any ttl inherit nopmtudisc key 0 +tunl0: any/ip remote any local any ttl inherit nopmtudisc +sit0: ipv6/ip remote any local any ttl 64 nopmtudisc diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-001/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-001/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..79eecb577426d27e8b20234afc77f19c54876170 GIT binary patch literal 15720 zcmeHO&1)n@6n`^4J=^)xsH3uq8rfz2Skd5y7<65uu7{Pdu;4*(!Cgtv=s1a+iR`ft z3c`BWLk@fJ5ZN3=f`|tZ$-%FK;JPP4Q2zk&uz1*mAQIp2)vI((^<*;HOhQl61>IF$ z(^XUb`n~t7_p9n(zW?ImB9$mfCHjvq9{#EHR`Ito4RaX>m4Y#3HVtv%Rw@LC`99PY zadHyc-^1-E`biGI{YpqQ$gR-+_iJcf3JQEaK{ylbqkyV2L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nx37O zeQT2~Y%JMJXKZSH4zKkdI%}i5#U{s6@l_On)r?iEz_rg!*V|sxU9(BSz9Y%6;gG4H%$9_tKMH?YTX9!jWdx0Xw{ds@q^HAo4!zInUsmRM=-LONE09kt@+ zgk9buFJ~BP5i{kyoRLE}oU;%seZ~6OxJEk`V3*&wqP4_3{sO91-=1Mwu3;_*`MTdx z;2M0&H@tL)y+DIhyOMSlcl(cRYnjllyI{yK>Ck?6YjwGq^Z0 z$T$IBQ*?wy)#>lwnn~YXXYhZw{?D&R8|V9jweR1q^7jWP&!_!1^thGZmi}|U?TdL& gTxY>=WADuyy!YlHOB{#4_Xaz%1D>}f-!>Ed4~21ba{vGU literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-001/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-001/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-001/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-001/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-001/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..339604ba106079680e00940fa03ad226eea3dc53 GIT binary patch literal 15720 zcmeHO&ud&o9RF_KzU|8<)u^kYf<{`ZwV=U-7_`>d#zQ3(3nCs0w$dQcbrYM7^!Nk? zp*{4FLk}Jz%|RrHco2~s{B;nlo(f+41H^-R=s^&P-_LixlQ%nWv)MG8@HTk^@6Ei~ znb~)$Piy>~#^V}4L;tMqc)jb+rRL=*B{q8B6%=@E&`QcIFlc1G_y-D@&;!TmhX;&z9AI>Itx zq_3YxyEgOA{M7su4F&hpWzPT58E5nb(&b*h+`9d><@`MN*-a1d)IwJMfOZyp$}BTT zQC#63L-u|idYzU|nL0Q19mY|D%h~_7@hXSK+f7-d=~@rPrwgn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kg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-001/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-001/tnlsys.out new file mode 100644 index 000000000..e7382be6b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-001/tnlsys.out @@ -0,0 +1,49 @@ +{ + "ioctls": [ + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726530000000000000000000000000000000000000000000000000000000004500000000000000002f00000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ip_vti0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69705f76746930000000000000000000000000002000200000000000000000004500000000000000000400000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "tunl0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "74756e6c300000000000000000000000000000000000000000000000000000004500000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "73697430000000000000000000000000000000000000000000000000000000004500000000000000402900000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "sit0", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + } + ], + "run": { + "argv": [ + "ip", + "tunnel", + "show" + ], + "rc": 0, + "stdout": "gre0: gre/ip remote any local any ttl inherit nopmtudisc\nip_vti0: ip/ip remote any local any ttl inherit nopmtudisc key 0\ntunl0: any/ip remote any local any ttl inherit nopmtudisc\nsit0: ipv6/ip remote any local any ttl 64 nopmtudisc\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-002/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-002/cmd.json new file mode 100644 index 000000000..0a21c5af7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-002/cmd.json @@ -0,0 +1,45 @@ +{ + "axes": { + "fix": "bare", + "json": "1", + "words": "-6 tunnel show" + }, + "cmd": "ip -j -6 tunnel show", + "desc": "boundary: opt=json cmd=bare:-6_tunnel_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": "tunnel/ec-002", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -j -6 tunnel show", + "name": "tnlsys" + } + ], + "result": { + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-002/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-002/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-002/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-002/ip.out new file mode 100644 index 000000000..f869f26aa --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-002/ip.out @@ -0,0 +1,4 @@ +[{"ifname":"ip6tnl0","mode":"ipv6/ipv6","remote":"::","local":"::","encap_limit":0,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000"} +,{"ifname":"ip6gre0","mode":"gre/ipv6","remote":"::","local":"::","encap_limit":0,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000","flags":[]} +,{"ifname":"ip6_vti0","mode":"ipv6/ipv6","remote":"::","local":"::","encap_limit":0,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000"} +] diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-002/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-002/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..53912a2300c4f990c4874cdbbab092c7e6587d5f GIT binary patch literal 6180 zcmeI0ziSjh6vw~2vlpX@CWQL~tQ54lBF2CzY-6faDi(S|2#4q8NDf=K^-r)%5J94q zg>}S6@CO#D!j%>(5-cn%l=FSx&c-3Lckv8s4sIXJ?Ck8k`T3c*Z)W?|^NkP@{z!yh z@^bD?bm!8}2r80hKxAh5NaeI7rVyC(QjU2i7&$`y>!SbR6g2GD{}=+32toaw-B9!+ z6Nvsi7z4*(P+wua$vg8#wVwe>qDff~$0bj{$7RXwbbxo2+qm!m_+)_ZQa|Og#(|b( z=`?gi)+ds(Oyg0AcrlQcfos}7Rop92y<1J^kTR-C*)E0KGNM94k$9qvUh;r^{~KfmB}Pkl1t269ty&lw$V`G4GBG_th z^6FA|?w|C*{oGTZd+NK)GwpJ(T`BCnU6J8>Pdf#WC`n}laJ}7*h;bJ}=ZC>nu^Vt`#3J4QdU40!f_^oQQ;`#J1`r!TZW1si- z0le$j4{7VUpHeA&`*bD-|Ctx>Jl`(M`L->tKEwX=ZPtF^8N=NVORHV?aKI;+=2GGvwSaXZ$I?erd}_$b@mVG c*XUWmE@R=>3^vbh@A6{1ER7iFUY>3K2ILA)9{>OV literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-002/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-002/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-002/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-002/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-002/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..31e97dff78235e863c6d7de321f22de05b244d43 GIT binary patch literal 6180 zcmeI0ziSjh6vw~2v#0SAHON&~Rtnl&5o3xIY@=9MDOl(UK@QK$ksP*e>z`nkAVP?# zEUXn9#UEItywXBN)WX6-Ip6o~Y#cIs7tgTf;P%1H&d$!8pPzaAW;UNcUJVi9k3{$- zFDG9`w>D~JR3*)T$jtGP$}veCL10cvIp&oaIYRxHqW|s?G;G&@9|F?|LH&zgL(z{+ zAo}xQ4D5$NbCLBX@64Ofeg-IsCS@g@l05w$S0uOB1Kw0`;PgGSb8V^FmmjY=SxT5`2#jWzxyZ$N3%ZjxQ`(gS-Qm^*T=JiXbb;Vz1(_}KL ztv4rOmx^O$dv2X9H4_*dcZwIuooAqieZt$nNhL$GBvevzM8^CmG9{!n+OwTj zvx-W_ij((^61kU1gxpi#;a>C-?q3V{^A~*XsZU1SKyC`|Iiuq(|Bw4KhBh^}(`~uG zxwO!q`?VpsuRZd)r@qTP(=PYgmBQZJ6&bHbUflo8u=o63$98%TCiec?olZkts(vJ8&o=^W|2;M(F^m*^@ zz`Krpm$sh!DV4&vPiJEEpLy}l^X<{IWpu^WXV`we&Dswup&P>WwJW~>ZNnyR!yuB!_Sx87oAS7ZAK5#+H_tnqNo9fw_ zp8cbHr%LLs>h7wVu2-+#SMR;5o_DVN&$xKP z#Sh4TmbT&fA(#KNxX*H9rkEr=L_%Y zYn>iJ*OFJmz2W**}t_>5+fqeeAeY}Kley7dLwES>L znqR75l!zQfBkbsCZ`-kdn#ww!Odalte{b`4?%qmiUs?1013qb6wS1)#POPx4{5@SK zbM3Dra-Yf`lf5Z$2t2;pQ8n73WDQ)&aIbuz=Z{zAaI-28HJkNNc2^RPqo%82JGgRs z{=mZQ%s6Uq$#3TAB)=~K3n;%SDJj3LTwXu<%~7%5@_V!c*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`*dC2Y;v^?AYG{JGgo|#14L$Xe(exFS|dmV>n_5xhQ|ggB`3*`@2bJ z?TaH;XzZ~0{l4I>Y4d*M_IZ%c8oG3p40L zD6;+N0@~3--x!LR!QRdvG-h<$m-Q;DY-RTV5sEZ77U)C7%X&h7}E1TeO#e5_+k1oRRvlbaw&ZAX5a3zVjV*5VtIWMk^8`>vw9oT zj`Y80qTKebKLbCGU^z-??}~nuuBz4lE@q>7>nzg^IuWW07{{sB@+7tQo54O+y+vy{T{&rGi@Iq1XgI~OB zy6$lJG0V$5evuOEAMp8dH(U)|EY#&y4D9WX0Q@t;2aKCjD$1AhY!{OMvo9MJ2lq8`EC9?Vb#9N_=>?85)} z+>0*Y5&n-4ZBhy5*L#ug@C`f9W|?PD<{+N&2+QyrM7LoU$TED)VE;AJrc=2`hA~NG aJ&Qf+p{<+s{OmW+Kg|^-tS9`=$^QUgZc9P{ literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-003/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-003/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-003/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-003/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-003/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..671fe3de73a1f12f331eb8a937ea86e2e68332de GIT binary patch literal 33348 zcmeHQU5q6~6+UheEa-12Jup^x1^Dw9a_kb1I@ zkq;9{TrIU^7s@ejh$j_T{|?kYuv5$t*8g2YWDK=f|KcUqt|v8|zb-tB?2ts}7DQ4R zm3I@721+wDGeahv3*2RWu(v-W*byL1#;)dL0;t^BJBxOWV z?=|_b&D;j(Y4qY|hn=zuJYl(SC#XHY@bHP56EiZId_*2Y{-cV{d=_$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$QJ@T%aWI1!BMC>S#|*bG%b1ai zUbyY$E~a9Y0T)hFY7r&`$QPK^|lSS_5yL!=?puliwtpJ)&$CF z9O=|Sitfv5>mq2bW8GC1bdk4!D~B-{`5nK@#>y#1N8>mnJ@i34kpCtU-!<+BHdGk6 zQ(19k3_Sr>Ho@VF`ABLJT;caw%Zw|h@m4)>C5gCV`@ZP8D6UKz+9z@vvBMSE4#6xSYvKxJ<)GurUw|tQ{344h9A^<%z#uVX zC{PAmnabF~(u7}H*0_T8?}hDPD}Hx_FV)#Iq5SUksIO#LwQGjPm2P_`l+V4ceeP_W zdnPoF^uK4K+V-x$0Y464IZ9~nihh)?tT)g%%ZeY@pjQI?C~WWA2KbRi{OE63t^q$% z;>Q?%M(?@v_`!dY8Z`WP2l(-y9Q`BWM}NFHNTth)A6zlhavec`$?WkX1EYWNwIhDG z&Mz4Ciyv%OuiLWMZT-XJ2k~SrYk%2Z)z<$09r*FRZx_=)_9zd|-@NNz|3Dj6`c9(qe>9^0QHXt43Tgc4 z@twpS4nI=*)h*2%T=#3%0kgpr|LNoNd0jOe_$P4SuV;(lfL>n}^$7O%V1_c_0RPA5 zDg2Mmjpza%;s5y1CY4}*y$j_oUb6FS)_L;KsO-Z%9$}rEk##j@fvm&Z4EA3mZ90|f eWf+r0w)1q4c4+HnJHP(M!6&$)gzbdiIr%>a)><|I literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-003/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-003/tnlsys.out new file mode 100644 index 000000000..d5fbf4374 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-003/tnlsys.out @@ -0,0 +1,140 @@ +{ + "ioctls": [ + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726530000000000000000000000000000000000000000000000000000000004500000000000000002f00000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ip_vti0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69705f76746930000000000000000000000000002000200000000000000000004500000000000000000400000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "tunl0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "74756e6c300000000000000000000000000000000000000000000000000000004500000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "73697430000000000000000000000000000000000000000000000000000000004500000000000000402900000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "sit0", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703100000000000000000000000c000000000000000000000000000000451000000000400040000000c0000201c6336401" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703200000000000000000000000000000000000000000000000000000045010000000000000000000000000000c6336409" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6772653100000000000000000000000000000000b000b00000000005000000054500000000004000202f0000c0000201c6336402" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726532000000000000000000000000000000003000a00000000001000000024500000000004000002f0000c0000201c6336403" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre3", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "677265330000000000000000000000000000000020002000ef010101ef0101014500000000004000012f0000c0000201ef010101" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743100000000000000000000000000000000000000000000000000000000450000000000400040000000c0000201c6336404" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743200000000000000000000000000000000000000000000000000000000450000000000400010290000c0000201c6336408" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "sit2", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isa1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973613100000000000000000000000000000000010000000000000000000000450000000000400000290000c000020100000000" + }, + { + "family": 2, + "req": "SIOCGETPRL", + "name": "isa1", + "in": "0000000000000000f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "00000000000000002000000000000000c000020b000000000000000000000000c000020a01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "isa1", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isan", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973616e00000000000000000000000000000000010000000000000000000000450000000000400000000000c000020200000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "vti1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7674693100000000000000000000000000000000210020000000000700000008450000000000000000040000c0000201c6336405" + } + ], + "run": { + "argv": [ + "ip", + "tunnel", + "show" + ], + "rc": 0, + "stdout": "gre0: gre/ip remote any local any ttl inherit nopmtudisc\nip_vti0: ip/ip remote any local any ttl inherit nopmtudisc key 0\ntunl0: any/ip remote any local any ttl inherit nopmtudisc\nsit0: ipv6/ip remote any local any ttl 64 nopmtudisc\nipip1: any/ip remote 198.51.100.1 local 192.0.2.1 dev d0 ttl 64 tos 0x10\nipip2: any/ip remote 198.51.100.9 local any ttl inherit tos inherit nopmtudisc\ngre1: gre/ip remote 198.51.100.2 local 192.0.2.1 ttl 32 key 5\n Drop packets out of sequence.\n Checksum in received packet is required.\n Sequence packets on output.\n Checksum output packets.\ngre2: gre/ip remote 198.51.100.3 local 192.0.2.1 ttl inherit ikey 1 okey 2\n Drop packets out of sequence.\n Checksum output packets.\ngre3: gre/ip remote 239.1.1.1 local 192.0.2.1 ttl 1 key 4009820417\nsit1: any/ip remote 198.51.100.4 local 192.0.2.1 ttl 64\nsit2: ipv6/ip remote 198.51.100.8 local 192.0.2.1 ttl 16\nisa1: ipv6/ip remote any local 192.0.2.1 pr 192.0.2.11 pdr 192.0.2.10 ttl inherit\nisan: any/ip remote any local 192.0.2.2 ttl inherit\nvti1: ip/ip remote 198.51.100.5 local 192.0.2.1 ttl inherit nopmtudisc ikey 7 okey 8\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-004/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-004/cmd.json new file mode 100644 index 000000000..d835ae136 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-004/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "tnl4", + "json": "0", + "words": "tunnel" + }, + "cmd": "ip tunnel", + "desc": "corner: opt=plain cmd=tnl4:tunnel", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/ec-004", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "ip tunnel add isa1 mode isatap local 192.0.2.1", + "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- tunnel", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "rc": 0 + }, + { + "cmd": "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "rc": 0 + }, + { + "cmd": "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "rc": 0 + }, + { + "cmd": "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "rc": 0 + }, + { + "cmd": "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "rc": 0 + }, + { + "cmd": "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "rc": 0 + }, + { + "cmd": "ip tunnel add isa1 mode isatap local 192.0.2.1", + "rc": 0 + }, + { + "cmd": "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "rc": 0 + }, + { + "cmd": "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "rc": 0 + }, + { + "cmd": "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-004/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-004/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-004/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-004/ip.out new file mode 100644 index 000000000..c059fa042 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-004/ip.out @@ -0,0 +1,20 @@ +gre0: gre/ip remote any local any ttl inherit nopmtudisc +ip_vti0: ip/ip remote any local any ttl inherit nopmtudisc key 0 +tunl0: any/ip remote any local any ttl inherit nopmtudisc +sit0: ipv6/ip remote any local any ttl 64 nopmtudisc +ipip1: any/ip remote 198.51.100.1 local 192.0.2.1 dev d0 ttl 64 tos 0x10 +ipip2: any/ip remote 198.51.100.9 local any ttl inherit tos inherit nopmtudisc +gre1: gre/ip remote 198.51.100.2 local 192.0.2.1 ttl 32 key 5 + Drop packets out of sequence. + Checksum in received packet is required. + Sequence packets on output. + Checksum output packets. +gre2: gre/ip remote 198.51.100.3 local 192.0.2.1 ttl inherit ikey 1 okey 2 + Drop packets out of sequence. + Checksum output packets. +gre3: gre/ip remote 239.1.1.1 local 192.0.2.1 ttl 1 key 4009820417 +sit1: any/ip remote 198.51.100.4 local 192.0.2.1 ttl 64 +sit2: ipv6/ip remote 198.51.100.8 local 192.0.2.1 ttl 16 +isa1: ipv6/ip remote any local 192.0.2.1 pr 192.0.2.11 pdr 192.0.2.10 ttl inherit +isan: any/ip remote any local 192.0.2.2 ttl inherit +vti1: ip/ip remote 198.51.100.5 local 192.0.2.1 ttl inherit nopmtudisc ikey 7 okey 8 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-004/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-004/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..8bdcb88e6928ae43eed04b5383579b829f9289f0 GIT binary patch literal 33348 zcmeHQU5Ff27Ct@I-KptK+)-Nv7v0g7RTI$B#4)Q`)9dPk5LWVHf{1Hm1{s{pjAlmk zVc8ZJTo#cadGKM8$Oe%RSXo3xe2BRIVOH>;Wn~}42l2tY1QbN#_uZf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ec-004/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-004/tnlsys.out new file mode 100644 index 000000000..1617490d9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-004/tnlsys.out @@ -0,0 +1,139 @@ +{ + "ioctls": [ + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726530000000000000000000000000000000000000000000000000000000004500000000000000002f00000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ip_vti0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69705f76746930000000000000000000000000002000200000000000000000004500000000000000000400000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "tunl0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "74756e6c300000000000000000000000000000000000000000000000000000004500000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "73697430000000000000000000000000000000000000000000000000000000004500000000000000402900000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "sit0", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703100000000000000000000000c000000000000000000000000000000451000000000400040000000c0000201c6336401" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703200000000000000000000000000000000000000000000000000000045010000000000000000000000000000c6336409" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6772653100000000000000000000000000000000b000b00000000005000000054500000000004000202f0000c0000201c6336402" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726532000000000000000000000000000000003000a00000000001000000024500000000004000002f0000c0000201c6336403" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre3", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "677265330000000000000000000000000000000020002000ef010101ef0101014500000000004000012f0000c0000201ef010101" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743100000000000000000000000000000000000000000000000000000000450000000000400040000000c0000201c6336404" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743200000000000000000000000000000000000000000000000000000000450000000000400010290000c0000201c6336408" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "sit2", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isa1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973613100000000000000000000000000000000010000000000000000000000450000000000400000290000c000020100000000" + }, + { + "family": 2, + "req": "SIOCGETPRL", + "name": "isa1", + "in": "0000000000000000f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "00000000000000002000000000000000c000020b000000000000000000000000c000020a01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "isa1", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isan", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973616e00000000000000000000000000000000010000000000000000000000450000000000400000000000c000020200000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "vti1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7674693100000000000000000000000000000000210020000000000700000008450000000000000000040000c0000201c6336405" + } + ], + "run": { + "argv": [ + "ip", + "tunnel" + ], + "rc": 0, + "stdout": "gre0: gre/ip remote any local any ttl inherit nopmtudisc\nip_vti0: ip/ip remote any local any ttl inherit nopmtudisc key 0\ntunl0: any/ip remote any local any ttl inherit nopmtudisc\nsit0: ipv6/ip remote any local any ttl 64 nopmtudisc\nipip1: any/ip remote 198.51.100.1 local 192.0.2.1 dev d0 ttl 64 tos 0x10\nipip2: any/ip remote 198.51.100.9 local any ttl inherit tos inherit nopmtudisc\ngre1: gre/ip remote 198.51.100.2 local 192.0.2.1 ttl 32 key 5\n Drop packets out of sequence.\n Checksum in received packet is required.\n Sequence packets on output.\n Checksum output packets.\ngre2: gre/ip remote 198.51.100.3 local 192.0.2.1 ttl inherit ikey 1 okey 2\n Drop packets out of sequence.\n Checksum output packets.\ngre3: gre/ip remote 239.1.1.1 local 192.0.2.1 ttl 1 key 4009820417\nsit1: any/ip remote 198.51.100.4 local 192.0.2.1 ttl 64\nsit2: ipv6/ip remote 198.51.100.8 local 192.0.2.1 ttl 16\nisa1: ipv6/ip remote any local 192.0.2.1 pr 192.0.2.11 pdr 192.0.2.10 ttl inherit\nisan: any/ip remote any local 192.0.2.2 ttl inherit\nvti1: ip/ip remote 198.51.100.5 local 192.0.2.1 ttl inherit nopmtudisc ikey 7 okey 8\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-005/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-005/cmd.json new file mode 100644 index 000000000..47da86a94 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-005/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "tnl4", + "json": "0", + "words": "tunnel list" + }, + "cmd": "ip tunnel list", + "desc": "positive: opt=plain cmd=tnl4:tunnel_list", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/ec-005", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "ip tunnel add isa1 mode isatap local 192.0.2.1", + "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- tunnel list", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "rc": 0 + }, + { + "cmd": "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "rc": 0 + }, + { + "cmd": "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "rc": 0 + }, + { + "cmd": "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "rc": 0 + }, + { + "cmd": "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "rc": 0 + }, + { + "cmd": "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "rc": 0 + }, + { + "cmd": "ip tunnel add isa1 mode isatap local 192.0.2.1", + "rc": 0 + }, + { + "cmd": "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "rc": 0 + }, + { + "cmd": "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "rc": 0 + }, + { + "cmd": "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-005/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-005/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-005/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-005/ip.out new file mode 100644 index 000000000..c059fa042 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-005/ip.out @@ -0,0 +1,20 @@ +gre0: gre/ip remote any local any ttl inherit nopmtudisc +ip_vti0: ip/ip remote any local any ttl inherit nopmtudisc key 0 +tunl0: any/ip remote any local any ttl inherit nopmtudisc +sit0: ipv6/ip remote any local any ttl 64 nopmtudisc +ipip1: any/ip remote 198.51.100.1 local 192.0.2.1 dev d0 ttl 64 tos 0x10 +ipip2: any/ip remote 198.51.100.9 local any ttl inherit tos inherit nopmtudisc +gre1: gre/ip remote 198.51.100.2 local 192.0.2.1 ttl 32 key 5 + Drop packets out of sequence. + Checksum in received packet is required. + Sequence packets on output. + Checksum output packets. +gre2: gre/ip remote 198.51.100.3 local 192.0.2.1 ttl inherit ikey 1 okey 2 + Drop packets out of sequence. + Checksum output packets. +gre3: gre/ip remote 239.1.1.1 local 192.0.2.1 ttl 1 key 4009820417 +sit1: any/ip remote 198.51.100.4 local 192.0.2.1 ttl 64 +sit2: ipv6/ip remote 198.51.100.8 local 192.0.2.1 ttl 16 +isa1: ipv6/ip remote any local 192.0.2.1 pr 192.0.2.11 pdr 192.0.2.10 ttl inherit +isan: any/ip remote any local 192.0.2.2 ttl inherit +vti1: ip/ip remote 198.51.100.5 local 192.0.2.1 ttl inherit nopmtudisc ikey 7 okey 8 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-005/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-005/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..7fd85e3e2e89c6d9620e5ed09b2d353250039158 GIT binary patch literal 33348 zcmeHQUx-}Q8UJSP+}XR^P2Hqp0xhjuD^{y$Y+{<$wB6P!2zgMU;)6v~HiWI4-PLT0 zK6MI(`p}0^La|hAia|v}8!CuGp(%<8=20w2q4Z7q(E8v*UnKqg&Yzuc&z-$MH9jpSC;4rhL*e7Q1>h4BDIqJF|rooj9 zD~DE>7Wbp~p8jT?e){_Yuz>oTnv(k4>gCbtZ%W0e^>?Qa*LRd2cchT0&pjo|m?%nIDkvz_du2lYtB+%sFs<(#!xd^vKi}C|Q%+ zc}5%eV9%|F?Z_c{=)tGozwK3X*&H(T!ZeB2OUuhEERO39jd?gdR$*)nQavQ z;7Kk12=M18KhNV2<&kalhx$9>52-ocsS5Z*+v10?Ek1^A!B1#gJe$L(ZzP;2b=}Z8 zd^+*u@pAa|vco4f-wONUYVqj;?klt}B0jmn9&x7e=|T^mz)K>}DST?Xxj@@tlC@LG zKNc%G4v+Nh70u65AR$vGWO(MgT<&qp&fnV35@yK|d|Ff4*m}ai6y_Y)T z)~_*Hq^+gxCd#SCES5EHnTL*cQ;z}0s8j{qI-0|!M$*CKV4lg&Z9E6 z(?RgOww?ZNd|J_Vsv2u=w=e7wVACYDA$Z9+YK|&w>NuN7(}*@fm@Z5fnJ0S^g8Bq{Dd~pMa+%X z$5*BjN_f`|)Ffou7(h5LgEMbAoMH1S+Cb0ZzCs(w`-;3Ci@rFHUiqYLoio4_(vyac z_QMUbb24Y=c)y$XH`DLNlp^}Y)bqa;+cBwp&egYgrSayBTz$;PbRHat0~@6xpW84# z^+)n^LqoZy3+&Km0otz~TPf$Wc+JTx%%s}LYZwzH#xfQV<#r?P>wjI#t@oi@-dXQM zuafN6#b18sZ}W4-e?ZoX=89&NuF~(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p_09`@`c0@nkb=f7xH% z*8c7Re!TPha`?gL^YM1ZNMgL56dAu%Rs7%^@49X{9DXeEv`k#2#`XtdzT6EM@xu^d zh{F*00UG1QPe?`h!S88*Yyv;fKOCn>b;FNqfgitnDdLA2ym%-@fhyofmWzK#vKM!+ z{a1MB-SGAY`l!=;5>@;ojrK<=_Fb!_@ngVy5+@vfWQ?m@nx|a%Yt{j?!wmoFxz6Meg{=ht;WDPpo{%6(#H^e9y`M E0WgU|JOBUy literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-005/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-005/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-005/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-005/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-005/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..7d3b560d518ac4424399efaa651e25eb6b7f84fc GIT binary patch literal 33348 zcmeHQU5I4G6+Yd!Z_k}^HqNfC3ke%1QT&ObtGn53bdyYCd=U0QgNTAbH_RfVvojNS zR^pQ_2=O5gi!8yAkZf>?B1<9$f`Shl3`TGtML`AeK?r$>5`4%@*nD68bf2l)(|vok zXL9d!74)sTx2vk}J$26c>YP(```tHR{e4{;(oGHdFHUZFr}5aoC!4YtWqzcQ9AxIx zEDF1%mfVPXyjJHyCAQx))s(~2Vm@K}H&T%qv|{@YKWFPkQp52s;ZbBl5?Ndp$z+H8 zBN0han<hkZn{7TpEI=OIx{a=skY=4`}zvuEf zm)|b`xiEq654rk3z;(8pHT|UWHP_!&?)uFxH&m0R{Lq{?0mgR-I zwC|}wN<{9*Ls;op`)m*Y({$GJVES<1`1>|@=dP_+_MNr=b-)+xQ+3W%!KoEKD}PV- z$y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vFE1Pb$Iu`bO0I@N+xQ zW}CZbnsN}|@e{VW4wrUe7RWaIn#ulaq%CK%M;_Vf2W`#$B06800m G=j4ArI!6-# literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-005/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-005/tnlsys.out new file mode 100644 index 000000000..e73525fbb --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-005/tnlsys.out @@ -0,0 +1,140 @@ +{ + "ioctls": [ + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726530000000000000000000000000000000000000000000000000000000004500000000000000002f00000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ip_vti0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69705f76746930000000000000000000000000002000200000000000000000004500000000000000000400000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "tunl0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "74756e6c300000000000000000000000000000000000000000000000000000004500000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "73697430000000000000000000000000000000000000000000000000000000004500000000000000402900000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "sit0", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703100000000000000000000000c000000000000000000000000000000451000000000400040000000c0000201c6336401" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703200000000000000000000000000000000000000000000000000000045010000000000000000000000000000c6336409" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6772653100000000000000000000000000000000b000b00000000005000000054500000000004000202f0000c0000201c6336402" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726532000000000000000000000000000000003000a00000000001000000024500000000004000002f0000c0000201c6336403" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre3", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "677265330000000000000000000000000000000020002000ef010101ef0101014500000000004000012f0000c0000201ef010101" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743100000000000000000000000000000000000000000000000000000000450000000000400040000000c0000201c6336404" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743200000000000000000000000000000000000000000000000000000000450000000000400010290000c0000201c6336408" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "sit2", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isa1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973613100000000000000000000000000000000010000000000000000000000450000000000400000290000c000020100000000" + }, + { + "family": 2, + "req": "SIOCGETPRL", + "name": "isa1", + "in": "0000000000000000f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "00000000000000002000000000000000c000020b000000000000000000000000c000020a01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "isa1", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isan", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973616e00000000000000000000000000000000010000000000000000000000450000000000400000000000c000020200000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "vti1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7674693100000000000000000000000000000000210020000000000700000008450000000000000000040000c0000201c6336405" + } + ], + "run": { + "argv": [ + "ip", + "tunnel", + "list" + ], + "rc": 0, + "stdout": "gre0: gre/ip remote any local any ttl inherit nopmtudisc\nip_vti0: ip/ip remote any local any ttl inherit nopmtudisc key 0\ntunl0: any/ip remote any local any ttl inherit nopmtudisc\nsit0: ipv6/ip remote any local any ttl 64 nopmtudisc\nipip1: any/ip remote 198.51.100.1 local 192.0.2.1 dev d0 ttl 64 tos 0x10\nipip2: any/ip remote 198.51.100.9 local any ttl inherit tos inherit nopmtudisc\ngre1: gre/ip remote 198.51.100.2 local 192.0.2.1 ttl 32 key 5\n Drop packets out of sequence.\n Checksum in received packet is required.\n Sequence packets on output.\n Checksum output packets.\ngre2: gre/ip remote 198.51.100.3 local 192.0.2.1 ttl inherit ikey 1 okey 2\n Drop packets out of sequence.\n Checksum output packets.\ngre3: gre/ip remote 239.1.1.1 local 192.0.2.1 ttl 1 key 4009820417\nsit1: any/ip remote 198.51.100.4 local 192.0.2.1 ttl 64\nsit2: ipv6/ip remote 198.51.100.8 local 192.0.2.1 ttl 16\nisa1: ipv6/ip remote any local 192.0.2.1 pr 192.0.2.11 pdr 192.0.2.10 ttl inherit\nisan: any/ip remote any local 192.0.2.2 ttl inherit\nvti1: ip/ip remote 198.51.100.5 local 192.0.2.1 ttl inherit nopmtudisc ikey 7 okey 8\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-006/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-006/cmd.json new file mode 100644 index 000000000..723a15d13 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-006/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "tnl4", + "json": "0", + "words": "tunnel lst" + }, + "cmd": "ip tunnel lst", + "desc": "positive: opt=plain cmd=tnl4:tunnel_lst", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/ec-006", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "ip tunnel add isa1 mode isatap local 192.0.2.1", + "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- tunnel lst", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "rc": 0 + }, + { + "cmd": "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "rc": 0 + }, + { + "cmd": "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "rc": 0 + }, + { + "cmd": "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "rc": 0 + }, + { + "cmd": "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "rc": 0 + }, + { + "cmd": "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "rc": 0 + }, + { + "cmd": "ip tunnel add isa1 mode isatap local 192.0.2.1", + "rc": 0 + }, + { + "cmd": "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "rc": 0 + }, + { + "cmd": "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "rc": 0 + }, + { + "cmd": "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-006/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-006/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-006/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-006/ip.out new file mode 100644 index 000000000..c059fa042 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-006/ip.out @@ -0,0 +1,20 @@ +gre0: gre/ip remote any local any ttl inherit nopmtudisc +ip_vti0: ip/ip remote any local any ttl inherit nopmtudisc key 0 +tunl0: any/ip remote any local any ttl inherit nopmtudisc +sit0: ipv6/ip remote any local any ttl 64 nopmtudisc +ipip1: any/ip remote 198.51.100.1 local 192.0.2.1 dev d0 ttl 64 tos 0x10 +ipip2: any/ip remote 198.51.100.9 local any ttl inherit tos inherit nopmtudisc +gre1: gre/ip remote 198.51.100.2 local 192.0.2.1 ttl 32 key 5 + Drop packets out of sequence. + Checksum in received packet is required. + Sequence packets on output. + Checksum output packets. +gre2: gre/ip remote 198.51.100.3 local 192.0.2.1 ttl inherit ikey 1 okey 2 + Drop packets out of sequence. + Checksum output packets. +gre3: gre/ip remote 239.1.1.1 local 192.0.2.1 ttl 1 key 4009820417 +sit1: any/ip remote 198.51.100.4 local 192.0.2.1 ttl 64 +sit2: ipv6/ip remote 198.51.100.8 local 192.0.2.1 ttl 16 +isa1: ipv6/ip remote any local 192.0.2.1 pr 192.0.2.11 pdr 192.0.2.10 ttl inherit +isan: any/ip remote any local 192.0.2.2 ttl inherit +vti1: ip/ip remote 198.51.100.5 local 192.0.2.1 ttl inherit nopmtudisc ikey 7 okey 8 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-006/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-006/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..d359a671c777370f19bd6a2aa9370751a89005df GIT binary patch literal 33348 zcmeHQO>87b6@D{4J==D?iL;oE1OiNmNJ66EWvyjJ7BD0TA+3ZsAO#VL>|!fecx{vQ z@^hOA4jee_VGlV3$q0iYFj52xBoc>3K@h}V5J+4Q5*!dg2y)m12hj3;Rj)kH-Q$@a z@7U`0R7ulS-BVT5{p!8<)qAh1=MS&`_&ZH$NjJ6Re>i#Qx2-S!^Vdz8Lzy3GC1;t1 zG>gIsX(SJ$9-ax(gx$Bvn*8HuSzg_bWYW@yw_ki5G#r_|}b+-S2<{#F4 zLGwrDKevwI`*T|Vqqxp?v#y_1-l_e)ORv9Ib4N94%j536Egy4vD)+m5(zS9$nKab9 zA@}%;N8q@KQ9S50B@cloJoin3+N*0{y0Ua-N#>Hb$hUC)n}*K37jl>VX2Q zX3uST8beE7%_sJ=*_;H=uq2%s+%b8tdFrCv|AKFGQ=eghHBc}7cF1obZQkYUvMk?i zO6OAzNQuZ3cnB{YyPxf;f4I(i9$X*#O}KA&cY1BFa_Fq{uQQ?OpK9mK6jZJ7S^0am zPu7}mB=T-kJr)O3;2d~-zfv{Rqh$)NWV%o89Qflc`B0}NAL(@3dEMPeC`TRbVG3Ni zynbe5b!85{cl9^x^wQtkzyj)TYD(&Fua`%szbO@?*55NdxPHdyaV3RBeI6)LF1Pyp z8fF-GfX<$mM7{y~st%Q2w4QO=aQE+|Zhk<%1Jfd9Dgzlxm~-Izgqs0m=#i-{P_i!f z^Ncp`!Jm5#J0oZ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0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-008/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-008/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..13775bb9879d26d17bf5e1db1d77206850827fb1 GIT binary patch literal 33348 zcmeHQO^h7H6@IflGw#`}lf_=!;(sv&Ol%Z8wj7IWoHdvO$PsZABqJGNqg^>G*1H>f z9fjK@G7<8e2O5EB5quw96(4uASASWU;XU7>7JeG z*}rt}R7ulS-BVT5{p!8<)qAh1=fn5@{D(d%OCy!#E1Ycqp#1!XpVVY0%KS(<+Q-bN zVH7qg+1EbHaJ zkw^u#nJRLN%O5p0V{`8%)cc;f9?Nc*-|q6eT>e9s-|gCMlesze{~)fj{lhN*k;_M2 z{sZ}9ZXLcKarGa;b+#Ke{Z!;0*WbPF`gdJ!s3ui8XwIwhn8_>hfXVw!D^rwyMZFuc z#a>(k$1#lJN~ZzY4xX^wHvno+P5iOUH`5e;4Z`rym%Nu=C zKU{*8h#bK~Sm|hfwqyS@owYoeKHN9{zRlgaYYUZqXZ26_`l5ZR`7>2;YK70r-_w1v z)}B%%_p9om*qH(&;PJ&u)liF;6>uffee%tYKVFvo^|BnO*Q-h0U5Y42b=SiHxN>4< z@9fm%PW0Z;->lP0e_sI>P=8ZXQh!^$ynOnbQnB3nd#DB14=FwFNFhO=drD->wLU+O z8OAq2XUj_>XF*@5L!}k1hm1CC{+)`MACT|Bv`Dd&ffyysIdHvZW&kmIWU303tjX;> zql$a5=T^fG$zJ*AE5Et?`qSpJImGCNsfN~5)6+97F9-gxpJYnvQ2o8v$d|p248*OG;?k3y%Z6* z4m_F0Ey}6JES5EHnTHN`Q-c9|sFVlXI+VhtQbZHE?#5xgwVR&(leB@}fx*)pU+Ir1 z;dM7qHORCvfN-7#Xa0`HD;Z;1stt4j&ylo&ysyaXvEYkygP$?ew$3@=3F%2gNBiMA z**USZbG+Z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fc+c1$eC&W9Ztyc^-Qowk)$6wGdBgtj_(42b z%-Ub}SG2Xi4*)+7JdzDR_=pT+#q@v-+cHqaCM+1JC!3&2>6vzX9#Hsj) zM4NH<+JA+2-gR$(ppPQGCsD;eD#8B9#J=;DG=6k=PvSa&?gmPe!T?ir2ldl1iIX_qc literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-008/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-008/tnlsys.out new file mode 100644 index 000000000..37629be96 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-008/tnlsys.out @@ -0,0 +1,140 @@ +{ + "ioctls": [ + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726530000000000000000000000000000000000000000000000000000000004500000000000000002f00000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ip_vti0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69705f76746930000000000000000000000000002000200000000000000000004500000000000000000400000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "tunl0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "74756e6c300000000000000000000000000000000000000000000000000000004500000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "73697430000000000000000000000000000000000000000000000000000000004500000000000000402900000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "sit0", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703100000000000000000000000c000000000000000000000000000000451000000000400040000000c0000201c6336401" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703200000000000000000000000000000000000000000000000000000045010000000000000000000000000000c6336409" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6772653100000000000000000000000000000000b000b00000000005000000054500000000004000202f0000c0000201c6336402" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726532000000000000000000000000000000003000a00000000001000000024500000000004000002f0000c0000201c6336403" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre3", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "677265330000000000000000000000000000000020002000ef010101ef0101014500000000004000012f0000c0000201ef010101" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743100000000000000000000000000000000000000000000000000000000450000000000400040000000c0000201c6336404" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743200000000000000000000000000000000000000000000000000000000450000000000400010290000c0000201c6336408" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "sit2", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isa1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973613100000000000000000000000000000000010000000000000000000000450000000000400000290000c000020100000000" + }, + { + "family": 2, + "req": "SIOCGETPRL", + "name": "isa1", + "in": "0000000000000000f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "00000000000000002000000000000000c000020b000000000000000000000000c000020a01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "isa1", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isan", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973616e00000000000000000000000000000000010000000000000000000000450000000000400000000000c000020200000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "vti1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7674693100000000000000000000000000000000210020000000000700000008450000000000000000040000c0000201c6336405" + } + ], + "run": { + "argv": [ + "ip", + "tunl", + "show" + ], + "rc": 0, + "stdout": "gre0: gre/ip remote any local any ttl inherit nopmtudisc\nip_vti0: ip/ip remote any local any ttl inherit nopmtudisc key 0\ntunl0: any/ip remote any local any ttl inherit nopmtudisc\nsit0: ipv6/ip remote any local any ttl 64 nopmtudisc\nipip1: any/ip remote 198.51.100.1 local 192.0.2.1 dev d0 ttl 64 tos 0x10\nipip2: any/ip remote 198.51.100.9 local any ttl inherit tos inherit nopmtudisc\ngre1: gre/ip remote 198.51.100.2 local 192.0.2.1 ttl 32 key 5\n Drop packets out of sequence.\n Checksum in received packet is required.\n Sequence packets on output.\n Checksum output packets.\ngre2: gre/ip remote 198.51.100.3 local 192.0.2.1 ttl inherit ikey 1 okey 2\n Drop packets out of sequence.\n Checksum output packets.\ngre3: gre/ip remote 239.1.1.1 local 192.0.2.1 ttl 1 key 4009820417\nsit1: any/ip remote 198.51.100.4 local 192.0.2.1 ttl 64\nsit2: ipv6/ip remote 198.51.100.8 local 192.0.2.1 ttl 16\nisa1: ipv6/ip remote any local 192.0.2.1 pr 192.0.2.11 pdr 192.0.2.10 ttl inherit\nisan: any/ip remote any local 192.0.2.2 ttl inherit\nvti1: ip/ip remote 198.51.100.5 local 192.0.2.1 ttl inherit nopmtudisc ikey 7 okey 8\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-009/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-009/cmd.json new file mode 100644 index 000000000..8373ef0dc --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-009/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "tnl4", + "json": "0", + "words": "-4 tunnel show" + }, + "cmd": "ip -4 tunnel show", + "desc": "positive: opt=plain cmd=tnl4:-4_tunnel_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": "tunnel/ec-009", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "ip tunnel add isa1 mode isatap local 192.0.2.1", + "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -4 tunnel show", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "rc": 0 + }, + { + "cmd": "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "rc": 0 + }, + { + "cmd": "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "rc": 0 + }, + { + "cmd": "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "rc": 0 + }, + { + "cmd": "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "rc": 0 + }, + { + "cmd": "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "rc": 0 + }, + { + "cmd": "ip tunnel add isa1 mode isatap local 192.0.2.1", + "rc": 0 + }, + { + "cmd": "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "rc": 0 + }, + { + "cmd": "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "rc": 0 + }, + { + "cmd": "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-009/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-009/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-009/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-009/ip.out new file mode 100644 index 000000000..c059fa042 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-009/ip.out @@ -0,0 +1,20 @@ +gre0: gre/ip remote any local any ttl inherit nopmtudisc +ip_vti0: ip/ip remote any local any ttl inherit nopmtudisc key 0 +tunl0: any/ip remote any local any ttl inherit nopmtudisc +sit0: ipv6/ip remote any local any ttl 64 nopmtudisc +ipip1: any/ip remote 198.51.100.1 local 192.0.2.1 dev d0 ttl 64 tos 0x10 +ipip2: any/ip remote 198.51.100.9 local any ttl inherit tos inherit nopmtudisc +gre1: gre/ip remote 198.51.100.2 local 192.0.2.1 ttl 32 key 5 + Drop packets out of sequence. + Checksum in received packet is required. + Sequence packets on output. + Checksum output packets. +gre2: gre/ip remote 198.51.100.3 local 192.0.2.1 ttl inherit ikey 1 okey 2 + Drop packets out of sequence. + Checksum output packets. +gre3: gre/ip remote 239.1.1.1 local 192.0.2.1 ttl 1 key 4009820417 +sit1: any/ip remote 198.51.100.4 local 192.0.2.1 ttl 64 +sit2: ipv6/ip remote 198.51.100.8 local 192.0.2.1 ttl 16 +isa1: ipv6/ip remote any local 192.0.2.1 pr 192.0.2.11 pdr 192.0.2.10 ttl inherit +isan: any/ip remote any local 192.0.2.2 ttl inherit +vti1: ip/ip remote 198.51.100.5 local 192.0.2.1 ttl inherit nopmtudisc ikey 7 okey 8 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-009/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-009/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..b12db223e5c56f742b6b3c4d2682b82cb861a6a7 GIT binary patch literal 33348 zcmeHQO^h7H6@IflGwxk%SYRPiqJ&NO{}GsY+&(z$`xhIQ17gK z#h=^+-!mA+^-f#mM(~8^zOA74{K8L<9XfVMwkKbe-{SnQ4V`%}&s>-TJuP@T_n1xjw@*YoK2E?U0{CI(d<=%d)&M zBCY#skP?yocnB{YE1&Ja$F8%EU#<_m67JjGot|5*96D=#vNII@Q!O8vf~plhD}T@S z$y!sjM6NN_W3e{{c7w;)DpeC5S~kFyOjpT;J%79|KWNqEN3B*ftGjCn<*21SYz0@& zF78~KpWBY!+xnYzI_dAzzyj)TYD(&Fua^g>zbO@i*54ByxPHRuaV3RBeI6)LEVugn z1ZEf)fX<$mM1BeSst%P-w4QL$wyK5?fPDI@Deddfc94nQaXI z;7L9H>;e82w>Pz)K>(H~7@lxj<7f$=j*q zACDCiibwYLy3NlTKtiTe$nea!X&!LP&)=GA2{hGC4tPe~dh)|FQ-A-BYo=}ey;Kpm zb{x&)7Uk4p7Rwg5+(SpZsm%aGR4M~*?akp*Euo3r(s9`4?WV_`S(Cs7+*PM4KR+QpK=z8N<8{MJ##r>c71I z_5&K`5 zNPceUC^w>k9r`Rl`=x`6#e5cjQ+d4|H(nKa&BjEDv5W;oxm}I>I-j?48+_=VcUJn) z%Oty1@t4c*@^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<#do$WAIacj?!s1G=JrgG8-n21ycFsK$7Doo(Gf{7U z*D>J7-|+(BEPli|N>A1s>5Emx555^JgCC{+T{{3j(uf~}iRC8nBPD)J;%DrhyMQ13 zC#g}xkB5LCNAHjLF&O8KcI~R-2UpB=bZ8hanLl%4Wb6+V+S?PWxjM_<{c6I7O-(emn~NIQ7GF_6MIY z;s>cP+Nlcok>=tblH7=4vHmN(^KNka1AWx#J&7j%(TeuRU~*~kqtAO1cPW0PjH`Q^ zx47=ttpnz-rua{vaGu9?!-3<#f%_gPhXZzfRkR~G+M}7OfCKy=pWottd~U`N@RR)? zANr&c%&+f4y@l8OJezHvzSNL|xW-Sm&8;|fJ!XMy!^=$mUn6}vmG{XwCW-9lLZ5!< U>t;W#FTH(*D@xc;_B|*61HleQ0ssI2 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-009/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-009/tnlsys.out new file mode 100644 index 000000000..0de9d8b6d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-009/tnlsys.out @@ -0,0 +1,141 @@ +{ + "ioctls": [ + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726530000000000000000000000000000000000000000000000000000000004500000000000000002f00000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ip_vti0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69705f76746930000000000000000000000000002000200000000000000000004500000000000000000400000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "tunl0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "74756e6c300000000000000000000000000000000000000000000000000000004500000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "73697430000000000000000000000000000000000000000000000000000000004500000000000000402900000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "sit0", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703100000000000000000000000c000000000000000000000000000000451000000000400040000000c0000201c6336401" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703200000000000000000000000000000000000000000000000000000045010000000000000000000000000000c6336409" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6772653100000000000000000000000000000000b000b00000000005000000054500000000004000202f0000c0000201c6336402" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726532000000000000000000000000000000003000a00000000001000000024500000000004000002f0000c0000201c6336403" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre3", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "677265330000000000000000000000000000000020002000ef010101ef0101014500000000004000012f0000c0000201ef010101" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743100000000000000000000000000000000000000000000000000000000450000000000400040000000c0000201c6336404" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743200000000000000000000000000000000000000000000000000000000450000000000400010290000c0000201c6336408" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "sit2", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isa1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973613100000000000000000000000000000000010000000000000000000000450000000000400000290000c000020100000000" + }, + { + "family": 2, + "req": "SIOCGETPRL", + "name": "isa1", + "in": "0000000000000000f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "00000000000000002000000000000000c000020b000000000000000000000000c000020a01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "isa1", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isan", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973616e00000000000000000000000000000000010000000000000000000000450000000000400000000000c000020200000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "vti1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7674693100000000000000000000000000000000210020000000000700000008450000000000000000040000c0000201c6336405" + } + ], + "run": { + "argv": [ + "ip", + "-4", + "tunnel", + "show" + ], + "rc": 0, + "stdout": "gre0: gre/ip remote any local any ttl inherit nopmtudisc\nip_vti0: ip/ip remote any local any ttl inherit nopmtudisc key 0\ntunl0: any/ip remote any local any ttl inherit nopmtudisc\nsit0: ipv6/ip remote any local any ttl 64 nopmtudisc\nipip1: any/ip remote 198.51.100.1 local 192.0.2.1 dev d0 ttl 64 tos 0x10\nipip2: any/ip remote 198.51.100.9 local any ttl inherit tos inherit nopmtudisc\ngre1: gre/ip remote 198.51.100.2 local 192.0.2.1 ttl 32 key 5\n Drop packets out of sequence.\n Checksum in received packet is required.\n Sequence packets on output.\n Checksum output packets.\ngre2: gre/ip remote 198.51.100.3 local 192.0.2.1 ttl inherit ikey 1 okey 2\n Drop packets out of sequence.\n Checksum output packets.\ngre3: gre/ip remote 239.1.1.1 local 192.0.2.1 ttl 1 key 4009820417\nsit1: any/ip remote 198.51.100.4 local 192.0.2.1 ttl 64\nsit2: ipv6/ip remote 198.51.100.8 local 192.0.2.1 ttl 16\nisa1: ipv6/ip remote any local 192.0.2.1 pr 192.0.2.11 pdr 192.0.2.10 ttl inherit\nisan: any/ip remote any local 192.0.2.2 ttl inherit\nvti1: ip/ip remote 198.51.100.5 local 192.0.2.1 ttl inherit nopmtudisc ikey 7 okey 8\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-010/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-010/cmd.json new file mode 100644 index 000000000..ea0dc941c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-010/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "tnl4", + "json": "0", + "words": "-s tunnel show" + }, + "cmd": "ip -s tunnel show", + "desc": "positive: opt=plain cmd=tnl4:-s_tunnel_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": "tunnel/ec-010", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "ip tunnel add isa1 mode isatap local 192.0.2.1", + "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -s tunnel show", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "rc": 0 + }, + { + "cmd": "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "rc": 0 + }, + { + "cmd": "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "rc": 0 + }, + { + "cmd": "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "rc": 0 + }, + { + "cmd": "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "rc": 0 + }, + { + "cmd": "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "rc": 0 + }, + { + "cmd": "ip tunnel add isa1 mode isatap local 192.0.2.1", + "rc": 0 + }, + { + "cmd": "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "rc": 0 + }, + { + "cmd": "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "rc": 0 + }, + { + "cmd": "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-010/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-010/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-010/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-010/ip.out new file mode 100644 index 000000000..bd648f6ca --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-010/ip.out @@ -0,0 +1,76 @@ +gre0: gre/ip remote any local any ttl inherit nopmtudisc +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +ip_vti0: ip/ip remote any local any ttl inherit nopmtudisc key 0 +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +tunl0: any/ip remote any local any ttl inherit nopmtudisc +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +sit0: ipv6/ip remote any local any ttl 64 nopmtudisc +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +ipip1: any/ip remote 198.51.100.1 local 192.0.2.1 dev d0 ttl 64 tos 0x10 +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +ipip2: any/ip remote 198.51.100.9 local any ttl inherit tos inherit nopmtudisc +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +gre1: gre/ip remote 198.51.100.2 local 192.0.2.1 ttl 32 key 5 + Drop packets out of sequence. + Checksum in received packet is required. + Sequence packets on output. + Checksum output packets. +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +gre2: gre/ip remote 198.51.100.3 local 192.0.2.1 ttl inherit ikey 1 okey 2 + Drop packets out of sequence. + Checksum output packets. +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +gre3: gre/ip remote 239.1.1.1 local 192.0.2.1 ttl 1 key 4009820417 +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +sit1: any/ip remote 198.51.100.4 local 192.0.2.1 ttl 64 +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +sit2: ipv6/ip remote 198.51.100.8 local 192.0.2.1 ttl 16 +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +isa1: ipv6/ip remote any local 192.0.2.1 pr 192.0.2.11 pdr 192.0.2.10 ttl inherit +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +isan: any/ip remote any local 192.0.2.2 ttl inherit +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +vti1: ip/ip remote 198.51.100.5 local 192.0.2.1 ttl inherit nopmtudisc ikey 7 okey 8 +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-010/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-010/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..4230e846e75727f9f9e5ac7ab2dbe7ef5ec96033 GIT binary patch literal 33348 zcmeHQ|7#q_6@RC_JFgU}QJkv_O`E8xojS4G$gxpGiI2q?U_>Q6fu< zEr;f}D>S8q5KIvvX`A9w|4@npAwLuoLU2h5EiwJ6&|mroxP`W0oKh&k{e0$&?rHaQ zw-E%F#F@ zA4ZVaDWzyX^6^?94=S+yG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YiABMholga<=?>TSMlE^3nyHlCK_afSsJkw(zE^AF&SH1?qr(~&&!ZlL>0kPnE@N^$ zrC-Gnt(tYmRkXFAnqA85(_I;p2Kx@e;>q=^`SIxn%)dr0d!@vpJH4Tq|PTk)B){OMp&yc+DY0rdn)-jyWM8Y)mt(15N%g2g8k+ZV8<_in#PV`zX213 z(3Aq3fgOBMC)jbQ33hPxauPfEWuonX9qsJ?z>fZa9ps|yAq#e}Htp{wowYBHSfR1Q z=C3gV)^AUn|D(W++g=TrVLCY+GEpE8m~kY983PeVsK*SqFN^9%Cd{A@A+}aDoRi`uTpf1wKeOV*Or*UMp4w7|WRznv- zb*t806+svICUE86Z>MpELRs1Cxbhv~%BOyo#ubjUfGc2-5K|k-kFD+|a!TR^icCZz{ zyTO;@?3qx0_j1rzQmoqYg2t6rdnT06y{vuitekr$G>&w>XQJ5lt|P#YJzq=XNASJ3 zWWAognOFSam%$SFk=fq04e%ol_|e(0TnB!{#E)S-M(?@v_`!dY>NWg$9Qg71p9lQt zjPrUscV6*>D`x7hYv_lcJ$0;S^ba;W;D_t{j8Uif!D{uoEqmV3KRkXAPu8>cm-Q8G z?eBMiA8$3WUp3P|*go%Xr;jA~+ewk$3wgy4e(|pEy2IheJWsRuMGCBcz~{@|fB`=Y z5jr?@fFGbSKKz8x3O{(C`o}u(1NFmjicmECI12pu(?T}=gY66WK`Qii$OC@FDgTE= zyU;D#euZz|b*_J)jv{?0QTabALI3D%Tx$Gi^PR*U4nJc0)h*2{T=#3%0rROb{?o@_ z=Xud^;23bA{8%;|(Ce#$9>L!3&5#Ei;Q#pi5C7w{8(qL(@_&42lZr6E-j96cD|VjE zGE@Hp9-09@@HD&xM!wT;Ylm)|33s G$^QW+v_9DY literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-010/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-010/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-010/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-010/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-010/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..03df497effe0bf8402bb3b409a18fc27397099b0 GIT binary patch literal 33348 zcmeHQZ-`vg6+ds^%;fF5scRf9*gtO7T5B53KenMpyR8aVgP_J5)HX@kAgi0*ZL(YH zxA{qgep1pxpe1$xX>rW~=^IphZ`jh5ceZRh5`kFr1 z1Q$UZ!Tm5!y)cHkq^S<8dz!+qoL+uWVIwp`hF*7*0BFWRSCJW~ayR`{&^J>4g3 z?Tli%R#gwh&J@@U9$%?c)myZzf-9M>kuP=p@rvBisK^f*japiFM=|B7;d&SbS5D53 z%}q~jMej}h%{s00_bFfj^*1#o^|#f_z0=>6ieBsQdJC?vD?RQ=Awi#eO61G6K3~8L z<08=6@{-7}Kwqarr4_B~MjI~uovN81kng~>NQsky1SQNlaDC9s021`bR1+v!liPVl z4fkNrt%j}3nA{M3{LYn@J*<-9S(bZ&KkO%+(mGUs@AbI8#xmO|{K1o2 z{J9hO^Wpw1{!kv-Mt`Wk1OAYj{hf+{KeR3W3)|uxYzuzUw#D%bK7BXlJgMP^&f(J| zM-Jt~r{^3#vH5D)7Z-|8r*L0s`y$|z8|)ru8lO%z@d>;n@<)YFH8&TiIZU#4D*4A^ zMcv_%zP)zyvnr5~DG@R}^NlX|xMk;WHD?LboSp3PjJWmIEx%sa{<&%9+S+?5BX0fV z)+}yOPBmt+tZ~acbg-M64A4iVBH-4Z3@$}6P2`3fhmF>5+W(8WN#i`qV>|5x&uiQ1 z3~cR0g6&i^)?RC0*u%i4L1;tpl5y1RQP@;>Hj$8_$m_A-i{t3!PukWw20S4>Y3OJ_Tqipx zadwXPyLo>z{ccQEM8BAt{nX9ec@gG{Q!TKCF=UM`hmIVb zJvf~YTb?gCww%PXrRRbHTYAIy8e2{}|F`8Gkp=h*s&cu}g^65de$dasHP(#co3uZC zE$4}4!J18v2CV4~*Y-y*MZlT^8NY+XTxrp8LttaC*2SI2@9;N=HEdo)I|kFi4Ayv^ z7yJ%x(7Vhu#*90^1N_*sQ~9txZJWO7iuo1qhi>8t7zk;-_z4zT$QL~+4L&5&5c~vl z^IUmHdFj0NF36W5TVW1s9VeP|aiYoDNwaQkqK%9-*V0*;THc4(ehrBR9)=W z`_lcI)*85msp(tqUM|aGE8X;X)>fh%we!mv@A3uu<*bL=kXeFX&eEX_$0FEDFM~gq z#%OoNT;=z=;ab6pzgVWH4$r_Xw`49y`s#fYJf}b9G(u-w3p8TRv-{vE3yG|J9~`Br z*ZU|K+u6nkP-*W;byA`t=WhO4R_hrwPK*F2=+`tn0y_12|6424>o`ODd$0e}*V#tx zKUm!Vwg>wUhM&mlZSrwDy>0prdOJ<#zBn&}-hMZuwGTc4vGy5_4zGG4~Yor_wjZ zd0jhyDywr2zUaF#=h->9t@p*v!LPy%q+{cZSDcoCh(7hVc1%QJy%k3(f6{t}-J@T)mve4!)UaJzz&Czdx{JFklC{D1XX>9qdiVyGdsqiz8NO?6CFg z%z*Xl)8~ILFyq?a1tS+wGQwj3HZ^SSgrs+65_`Qen#)P^Z3DklIl17co6upv&t6cYM)&cWZ6a1%-zs~cr z;lM%QK;^!CIH1>81v`SH-JhulIKcn$+53+O`wqGH5UCRH(xXA2RE+uc7Sx;n%+9mf z=FGn$VMS9p)#f@}--KBp+xWihzed`#M7}12m?W~FvmN@OubcfG|6ud8Tv5V)((gI> EKV+6k00000 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-010/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-010/tnlsys.out new file mode 100644 index 000000000..2885da7d4 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-010/tnlsys.out @@ -0,0 +1,141 @@ +{ + "ioctls": [ + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726530000000000000000000000000000000000000000000000000000000004500000000000000002f00000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ip_vti0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69705f76746930000000000000000000000000002000200000000000000000004500000000000000000400000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "tunl0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "74756e6c300000000000000000000000000000000000000000000000000000004500000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "73697430000000000000000000000000000000000000000000000000000000004500000000000000402900000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "sit0", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703100000000000000000000000c000000000000000000000000000000451000000000400040000000c0000201c6336401" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703200000000000000000000000000000000000000000000000000000045010000000000000000000000000000c6336409" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6772653100000000000000000000000000000000b000b00000000005000000054500000000004000202f0000c0000201c6336402" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726532000000000000000000000000000000003000a00000000001000000024500000000004000002f0000c0000201c6336403" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre3", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "677265330000000000000000000000000000000020002000ef010101ef0101014500000000004000012f0000c0000201ef010101" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743100000000000000000000000000000000000000000000000000000000450000000000400040000000c0000201c6336404" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743200000000000000000000000000000000000000000000000000000000450000000000400010290000c0000201c6336408" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "sit2", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isa1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973613100000000000000000000000000000000010000000000000000000000450000000000400000290000c000020100000000" + }, + { + "family": 2, + "req": "SIOCGETPRL", + "name": "isa1", + "in": "0000000000000000f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "00000000000000002000000000000000c000020b000000000000000000000000c000020a01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "isa1", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isan", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973616e00000000000000000000000000000000010000000000000000000000450000000000400000000000c000020200000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "vti1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7674693100000000000000000000000000000000210020000000000700000008450000000000000000040000c0000201c6336405" + } + ], + "run": { + "argv": [ + "ip", + "-s", + "tunnel", + "show" + ], + "rc": 0, + "stdout": "gre0: gre/ip remote any local any ttl inherit nopmtudisc\nRX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts\n 0 0 0 0 0 0 \nTX: Packets Bytes Errors DeadLoop NoRoute NoBufs\n 0 0 0 0 0 0 \nip_vti0: ip/ip remote any local any ttl inherit nopmtudisc key 0\nRX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts\n 0 0 0 0 0 0 \nTX: Packets Bytes Errors DeadLoop NoRoute NoBufs\n 0 0 0 0 0 0 \ntunl0: any/ip remote any local any ttl inherit nopmtudisc\nRX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts\n 0 0 0 0 0 0 \nTX: Packets Bytes Errors DeadLoop NoRoute NoBufs\n 0 0 0 0 0 0 \nsit0: ipv6/ip remote any local any ttl 64 nopmtudisc\nRX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts\n 0 0 0 0 0 0 \nTX: Packets Bytes Errors DeadLoop NoRoute NoBufs\n 0 0 0 0 0 0 \nipip1: any/ip remote 198.51.100.1 local 192.0.2.1 dev d0 ttl 64 tos 0x10\nRX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts\n 0 0 0 0 0 0 \nTX: Packets Bytes Errors DeadLoop NoRoute NoBufs\n 0 0 0 0 0 0 \nipip2: any/ip remote 198.51.100.9 local any ttl inherit tos inherit nopmtudisc\nRX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts\n 0 0 0 0 0 0 \nTX: Packets Bytes Errors DeadLoop NoRoute NoBufs\n 0 0 0 0 0 0 \ngre1: gre/ip remote 198.51.100.2 local 192.0.2.1 ttl 32 key 5\n Drop packets out of sequence.\n Checksum in received packet is required.\n Sequence packets on output.\n Checksum output packets.\nRX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts\n 0 0 0 0 0 0 \nTX: Packets Bytes Errors DeadLoop NoRoute NoBufs\n 0 0 0 0 0 0 \ngre2: gre/ip remote 198.51.100.3 local 192.0.2.1 ttl inherit ikey 1 okey 2\n Drop packets out of sequence.\n Checksum output packets.\nRX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts\n 0 0 0 0 0 0 \nTX: Packets Bytes Errors DeadLoop NoRoute NoBufs\n 0 0 0 0 0 0 \ngre3: gre/ip remote 239.1.1.1 local 192.0.2.1 ttl 1 key 4009820417\nRX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts\n 0 0 0 0 0 0 \nTX: Packets Bytes Errors DeadLoop NoRoute NoBufs\n 0 0 0 0 0 0 \nsit1: any/ip remote 198.51.100.4 local 192.0.2.1 ttl 64\nRX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts\n 0 0 0 0 0 0 \nTX: Packets Bytes Errors DeadLoop NoRoute NoBufs\n 0 0 0 0 0 0 \nsit2: ipv6/ip remote 198.51.100.8 local 192.0.2.1 ttl 16\nRX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts\n 0 0 0 0 0 0 \nTX: Packets Bytes Errors DeadLoop NoRoute NoBufs\n 0 0 0 0 0 0 \nisa1: ipv6/ip remote any local 192.0.2.1 pr 192.0.2.11 pdr 192.0.2.10 ttl inherit\nRX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts\n 0 0 0 0 0 0 \nTX: Packets Bytes Errors DeadLoop NoRoute NoBufs\n 0 0 0 0 0 0 \nisan: any/ip remote any local 192.0.2.2 ttl inherit\nRX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts\n 0 0 0 0 0 0 \nTX: Packets Bytes Errors DeadLoop NoRoute NoBufs\n 0 0 0 0 0 0 \nvti1: ip/ip remote 198.51.100.5 local 192.0.2.1 ttl inherit nopmtudisc ikey 7 okey 8\nRX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts\n 0 0 0 0 0 0 \nTX: Packets Bytes Errors DeadLoop NoRoute NoBufs\n 0 0 0 0 0 0 \n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-011/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-011/cmd.json new file mode 100644 index 000000000..966ab672d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-011/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "tnl4", + "json": "0", + "words": "-d tunnel show" + }, + "cmd": "ip -d tunnel show", + "desc": "corner: opt=plain cmd=tnl4:-d_tunnel_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": "tunnel/ec-011", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "ip tunnel add isa1 mode isatap local 192.0.2.1", + "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -d tunnel show", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "rc": 0 + }, + { + "cmd": "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "rc": 0 + }, + { + "cmd": "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "rc": 0 + }, + { + "cmd": "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "rc": 0 + }, + { + "cmd": "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "rc": 0 + }, + { + "cmd": "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "rc": 0 + }, + { + "cmd": "ip tunnel add isa1 mode isatap local 192.0.2.1", + "rc": 0 + }, + { + "cmd": "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "rc": 0 + }, + { + "cmd": "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "rc": 0 + }, + { + "cmd": "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-011/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-011/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-011/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-011/ip.out new file mode 100644 index 000000000..c059fa042 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-011/ip.out @@ -0,0 +1,20 @@ +gre0: gre/ip remote any local any ttl inherit nopmtudisc +ip_vti0: ip/ip remote any local any ttl inherit nopmtudisc key 0 +tunl0: any/ip remote any local any ttl inherit nopmtudisc +sit0: ipv6/ip remote any local any ttl 64 nopmtudisc +ipip1: any/ip remote 198.51.100.1 local 192.0.2.1 dev d0 ttl 64 tos 0x10 +ipip2: any/ip remote 198.51.100.9 local any ttl inherit tos inherit nopmtudisc +gre1: gre/ip remote 198.51.100.2 local 192.0.2.1 ttl 32 key 5 + Drop packets out of sequence. + Checksum in received packet is required. + Sequence packets on output. + Checksum output packets. +gre2: gre/ip remote 198.51.100.3 local 192.0.2.1 ttl inherit ikey 1 okey 2 + Drop packets out of sequence. + Checksum output packets. +gre3: gre/ip remote 239.1.1.1 local 192.0.2.1 ttl 1 key 4009820417 +sit1: any/ip remote 198.51.100.4 local 192.0.2.1 ttl 64 +sit2: ipv6/ip remote 198.51.100.8 local 192.0.2.1 ttl 16 +isa1: ipv6/ip remote any local 192.0.2.1 pr 192.0.2.11 pdr 192.0.2.10 ttl inherit +isan: any/ip remote any local 192.0.2.2 ttl inherit +vti1: ip/ip remote 198.51.100.5 local 192.0.2.1 ttl inherit nopmtudisc ikey 7 okey 8 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-011/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-011/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..6b2460f704e93e072d482444dd7296c3da08a208 GIT binary patch literal 33348 zcmeHQU1(fI6h51~yS<62#=2JUH~yflwbiK5QWKZth?A}c`@!sqV?47xH zXJ+p`bI$qZoHKLxr=y>L*hYD(q&)r0C)fRuf9ln5aAP1-y->C(rz7{K8^m@^L4bpN%Gqy@00vy`up@M{(hU( zzk{!%UAO6{K$lB@SIYJ4B{x)~BHd-qi*&ci3v`XiJ4`E6qz*;B<8*<&xB`y-Jc>)5 zI%xy*gyp_YruOj2(-Q*|1GFi)kY3~KuP8d>Ucg=Y6Xjcdzph^Nnm*U%E*@I&YBZsr zskRR08I-78;yVWKJ-&H2z4DB0b4s3}4>h=+`)!w><}`JVt&1{!)JEm|b1Wr9JNO~2 zbj*LYoxhpRsvb-q@{PN1b9ZuWp|b0&{Ckfp+NYX3Qw32gcvk$L?i01P<^sA}RrkgE z6xhZ*zF4U$RcTpZu0*QvL;(~Jes-_VrM-&QX-Pk%!ynytS}Rk*&S^th0Mygql7NS14Teu!rnXEB{EFA=@W z^c5XS)o5KZ+Hn5w6wLepe8)`7DHIt9xx{l0zTR$T03r8?R3uiiCb#p9BHx2Ow;HxY zJ@opUU;Oyj33J&TLhc2rom&r&jEth(4E#Yq(G=C8`g^Cx^)-~yM&S=XX$5~CeIt%P zkVmx9ALwt7KcHr7r!?RXY>Qd8El#m*flt)7csqtqHwKs|m1XDzpY|RYNQO@z3qGOw zQrH(~iciygUs3zQE)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h=SozY~ei8ukMlDshX#j~}* zl_=m!d!m>XSJoNYN5V01xB}lH7zSI461ajr=XMQJx8ut5z?E%V(zrr7)0o0?z!kDm zNO{E-z8N!tD<;s91y@ew99M3|vo*t&ze}YMA8AuGv*OC2p?xIGi7TWvamD6!dxhu3 z73#`v$CbUnmHzwFxI#G#xB>aW`EZrz>hfKM|)y95B!LUAN}|lz30y32meW`+wfxo__1eiz>oGgue)pK6+gIQ zrsjr*arn^#ySm2y;A02;aD$&QYZpJ*tzNff&+GPw#}DGkeAfQ5zoM=EodkZoyg3_w z@cDeaoiUOSZzn~%FXa_K_{O`M8xDsb<2=n07b&p)ftW9M0|xvsL}=sC27Z9Xc<~cb zGyLH9v_Iy7ALt*BQ>3Ed#}x46hYtgOn86E&Occlie#EKxheTK6?zR64@4Rc@{y-l^ zdQYN?e^i3~k%@h0Drx*^@t(vb4nJbX)h*2{T=#3%0kgvx|LNne^So#{a0oas{%$rL z(Ce#$9l_D=&Xfln;Q#oX#{c-N!VvJ2{2w3sq$13(*P`B`vv!`%HrM`9l1=!IpJW@p rgJ=b2fo#LCne4wt+Hx${N-rjf>}OSre(39FKd+sg#+wfszvtvXG$%?e literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-012/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-012/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-012/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-012/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-012/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..ca87d3bc9ec0200b1ebc16b694c526cfce745234 GIT binary patch literal 33348 zcmeHQO^h7H6@IflJ?>p>7@Gy8AjtBgKw=CATaE<|EI(0%FbAX@kU;(kyO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oxAw}D*W=aI;l~TV>kaSYxN8oC)&UX@|s3RAg4j^f6EiSo@YpZ z@9kguI?Jg22TS|k4uIo&_C(fhQ;&=6wy8hZ?X;MO;=BrW`?HMQZkScsA3M9vy~|T2 zZ8rJbwcNYB7B-tUhkN-N=%n1c%rQ`yr|-Y}<=OJ7<42DC8dcTJmOleqekB%ReIN4` zR{N~{JqBr1W;5o(y**5qH*L zSYiVCRB~e+*A?-p%*-+P5_ezD2SbzY~ei8ukMlDGc4As<_fdOQdkcyd<>@uJHY= zRmPQ5c(xw65(Ql8uPc_tmF-6Mk+2OMu7Ep)!eC2L3Rke_+^#_yc3gQLxbnoKSzKX1 z)0o0^z!j=e2vx!^m zCa&1H>#y*fxI$Yw?6`6mxYB+gi!1DB0au_PA!H;_1zefT@L);AS1M~;_ zhd%HFGRBLa5Q^}F-_!qC1%9A@5T^)r!;eMa$3NZ*_+c6^97;)`3iy#^=07C57I&}t zE4=frfByq@)agBmYW^b*{zobGUCN~KqsMy^H#q!AIInJH9&_EVSqIDt6a1%-zs~cz z;lPW)fw?!!;ecLW75oUc_Hc$O-~j)}=Vknl&#hYGn DeK0%_ literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-012/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-012/tnlsys.out new file mode 100644 index 000000000..2c73d79b7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-012/tnlsys.out @@ -0,0 +1,141 @@ +{ + "ioctls": [ + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726530000000000000000000000000000000000000000000000000000000004500000000000000002f00000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ip_vti0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69705f76746930000000000000000000000000002000200000000000000000004500000000000000000400000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "tunl0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "74756e6c300000000000000000000000000000000000000000000000000000004500000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "73697430000000000000000000000000000000000000000000000000000000004500000000000000402900000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "sit0", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703100000000000000000000000c000000000000000000000000000000451000000000400040000000c0000201c6336401" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703200000000000000000000000000000000000000000000000000000045010000000000000000000000000000c6336409" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6772653100000000000000000000000000000000b000b00000000005000000054500000000004000202f0000c0000201c6336402" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726532000000000000000000000000000000003000a00000000001000000024500000000004000002f0000c0000201c6336403" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre3", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "677265330000000000000000000000000000000020002000ef010101ef0101014500000000004000012f0000c0000201ef010101" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743100000000000000000000000000000000000000000000000000000000450000000000400040000000c0000201c6336404" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743200000000000000000000000000000000000000000000000000000000450000000000400010290000c0000201c6336408" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "sit2", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isa1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973613100000000000000000000000000000000010000000000000000000000450000000000400000290000c000020100000000" + }, + { + "family": 2, + "req": "SIOCGETPRL", + "name": "isa1", + "in": "0000000000000000f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "00000000000000002000000000000000c000020b000000000000000000000000c000020a01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "isa1", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isan", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973616e00000000000000000000000000000000010000000000000000000000450000000000400000000000c000020200000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "vti1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7674693100000000000000000000000000000000210020000000000700000008450000000000000000040000c0000201c6336405" + } + ], + "run": { + "argv": [ + "ip", + "-o", + "tunnel", + "show" + ], + "rc": 0, + "stdout": "gre0: gre/ip remote any local any ttl inherit nopmtudisc\nip_vti0: ip/ip remote any local any ttl inherit nopmtudisc key 0\ntunl0: any/ip remote any local any ttl inherit nopmtudisc\nsit0: ipv6/ip remote any local any ttl 64 nopmtudisc\nipip1: any/ip remote 198.51.100.1 local 192.0.2.1 dev d0 ttl 64 tos 0x10\nipip2: any/ip remote 198.51.100.9 local any ttl inherit tos inherit nopmtudisc\ngre1: gre/ip remote 198.51.100.2 local 192.0.2.1 ttl 32 key 5\\ Drop packets out of sequence.\\ Checksum in received packet is required.\\ Sequence packets on output.\\ Checksum output packets.\ngre2: gre/ip remote 198.51.100.3 local 192.0.2.1 ttl inherit ikey 1 okey 2\\ Drop packets out of sequence.\\ Checksum output packets.\ngre3: gre/ip remote 239.1.1.1 local 192.0.2.1 ttl 1 key 4009820417\nsit1: any/ip remote 198.51.100.4 local 192.0.2.1 ttl 64\nsit2: ipv6/ip remote 198.51.100.8 local 192.0.2.1 ttl 16\nisa1: ipv6/ip remote any local 192.0.2.1 pr 192.0.2.11 pdr 192.0.2.10 ttl inherit\nisan: any/ip remote any local 192.0.2.2 ttl inherit\nvti1: ip/ip remote 198.51.100.5 local 192.0.2.1 ttl inherit nopmtudisc ikey 7 okey 8\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-013/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-013/cmd.json new file mode 100644 index 000000000..09af9fdf6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-013/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "tnl4", + "json": "0", + "words": "-p tunnel show" + }, + "cmd": "ip -p tunnel show", + "desc": "corner: opt=plain cmd=tnl4:-p_tunnel_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": "tunnel/ec-013", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "ip tunnel add isa1 mode isatap local 192.0.2.1", + "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -p tunnel show", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "rc": 0 + }, + { + "cmd": "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "rc": 0 + }, + { + "cmd": "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "rc": 0 + }, + { + "cmd": "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "rc": 0 + }, + { + "cmd": "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "rc": 0 + }, + { + "cmd": "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "rc": 0 + }, + { + "cmd": "ip tunnel add isa1 mode isatap local 192.0.2.1", + "rc": 0 + }, + { + "cmd": "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "rc": 0 + }, + { + "cmd": "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "rc": 0 + }, + { + "cmd": "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-013/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-013/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-013/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-013/ip.out new file mode 100644 index 000000000..c059fa042 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-013/ip.out @@ -0,0 +1,20 @@ +gre0: gre/ip remote any local any ttl inherit nopmtudisc +ip_vti0: ip/ip remote any local any ttl inherit nopmtudisc key 0 +tunl0: any/ip remote any local any ttl inherit nopmtudisc +sit0: ipv6/ip remote any local any ttl 64 nopmtudisc +ipip1: any/ip remote 198.51.100.1 local 192.0.2.1 dev d0 ttl 64 tos 0x10 +ipip2: any/ip remote 198.51.100.9 local any ttl inherit tos inherit nopmtudisc +gre1: gre/ip remote 198.51.100.2 local 192.0.2.1 ttl 32 key 5 + Drop packets out of sequence. + Checksum in received packet is required. + Sequence packets on output. + Checksum output packets. +gre2: gre/ip remote 198.51.100.3 local 192.0.2.1 ttl inherit ikey 1 okey 2 + Drop packets out of sequence. + Checksum output packets. +gre3: gre/ip remote 239.1.1.1 local 192.0.2.1 ttl 1 key 4009820417 +sit1: any/ip remote 198.51.100.4 local 192.0.2.1 ttl 64 +sit2: ipv6/ip remote 198.51.100.8 local 192.0.2.1 ttl 16 +isa1: ipv6/ip remote any local 192.0.2.1 pr 192.0.2.11 pdr 192.0.2.10 ttl inherit +isan: any/ip remote any local 192.0.2.2 ttl inherit +vti1: ip/ip remote 198.51.100.5 local 192.0.2.1 ttl inherit nopmtudisc ikey 7 okey 8 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-013/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-013/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..c8c799ce13e0123307c368c07de2268b764dd59a GIT binary patch literal 33348 zcmeHQO^6&t6n?WkGwEFuU3FAY)b$7d#f=FuXw>x=lpGX9JOoU1gRX9N*X&00pp2m6 z!9$b{Mifmnh)6I&P((aL6cx-#1P}gQ#e*KA;6>v1)z8k`?%A21&Fs>>Qw7si-BVT5 z{p!8<)qAh1=Z7yp+TSN-X{56Jhm)(mD?fhy?tU3YnI9=f8=3hugu-c3impaIUhCsQ zCANPM?KiI$^GU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l/testdata/7_3_1/ws/tunnel/ec-013/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-013/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-013/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-013/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..bd0918b63c1276393f0042e004bfac89ff8f79e3 GIT binary patch literal 33348 zcmeHQONbm*7d}1J-KiNTI%=z+sN;j*XK-Rd3>tNOf|7-T3m1Xk=mZ^{%#4|dkA>2L ziVGJ}MvN$$Xb_Q*1VwS-BBK0HK@h=>kFB`Sg+biN_=eWt3XyL!?yR88LtUH4Y? zy|=5*J?DJ)oO5sWw_kjCuusa;NM-p8Cs+T!{OA+^9h4E2`H^z8m6=b&D4ZdsXanl; zS|1N8vHjaztQCvx^|b#{5<==0@vC8dY9kq@==%HAb-xU!}r@< z{abOJ?S@T16}iaucZs`xjmr(yq$;eK_ z(y{p29{9y{*7RWdaNqd*Hh1T)EmiiN)qmaMi}tA&&Q!sv6+SC}Pxr}Mn@f@WLsbvO z_7vC#9$&6h)ta=dfGe3Ul~ddPcv)_$m*tjvy_(eBrHFD=cRdV(E61m|%uY^>p!bIU zW}RmG`!KM8`kR`P`rGQ|?&)tzMYr{LtqIrHlpc4akf6^!C9>sOpU+{2aSG^cc}e6s z(AViuX-4as(T0nEr()&@#XZ<_t6^)h zMSiLM^z5Clo6F`9qZg)rw4R)rnr68h_``mZDXByC_g;_dYb>*k!XG?o1Akt4HH|-% zN4C))>hFL*q-JlYJm3#)i$7pnoPce?Ptvy7pTei>BF>ZQZs;67J-laEHhg;D;S-y$ zgne@xyLO#f2%r6pz7>ok7vZKZ|>fCaOPIi%(b=mQbgR^Gn&RN%BjXImNjmf zhYog=Aw#bn@_<|0Q@B)$Xd>6$V63-x(?1`d9U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@?3qx0_e#)LQmooGL*q)jJrm03UeP{xHqJd08b`X{ zGf`}N*Bii(U$?-I;CpY&dVT$4Uh!iidL@A$neAPx06*e@AKeYhCE!O){20P*^qxD9 zAN(h&e#4J9fgg`PpVmJDessr+{Zu-y_`wx34c8I$!%v(%+&B6MUpwH3>->ySxA?(k z^|~#4-PAukeh^QVvi6tl6>aVBRp7^OewGbC_XuX+TjO(r~a`7{6PCKoFWtrKmH2**nsU+ z$$f{d^bfvYzzcjHpyM~Cku zu5tJg)30u6Ugf%9vksVdjq#s8KA+b`!-2Pe1J51Gh68$iRnQ~Y+x;2xfCKy=pX2x+ zpDpMD9?Adlp-n2n{CX?Ootd-qY}R=m-_6;L-*_bJ+>fjcm<6&9e`c`%8fnw9d{G84 bNn|^}=+F*r-E8O6z1PohMG4zUe&^)>HH=Ru literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-015/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-015/tnlsys.out new file mode 100644 index 000000000..b029cbf62 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-015/tnlsys.out @@ -0,0 +1,135 @@ +{ + "ioctls": [ + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726530000000000000000000000000000000000000000000000000000000004500000000000000002f00000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ip_vti0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69705f76746930000000000000000000000000002000200000000000000000004500000000000000000400000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "tunl0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "74756e6c300000000000000000000000000000000000000000000000000000004500000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "73697430000000000000000000000000000000000000000000000000000000004500000000000000402900000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703100000000000000000000000c000000000000000000000000000000451000000000400040000000c0000201c6336401" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703200000000000000000000000000000000000000000000000000000045010000000000000000000000000000c6336409" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6772653100000000000000000000000000000000b000b00000000005000000054500000000004000202f0000c0000201c6336402" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726532000000000000000000000000000000003000a00000000001000000024500000000004000002f0000c0000201c6336403" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre3", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "677265330000000000000000000000000000000020002000ef010101ef0101014500000000004000012f0000c0000201ef010101" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743100000000000000000000000000000000000000000000000000000000450000000000400040000000c0000201c6336404" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743200000000000000000000000000000000000000000000000000000000450000000000400010290000c0000201c6336408" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "sit2", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isa1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973613100000000000000000000000000000000010000000000000000000000450000000000400000290000c000020100000000" + }, + { + "family": 2, + "req": "SIOCGETPRL", + "name": "isa1", + "in": "0000000000000000f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "00000000000000002000000000000000c000020b000000000000000000000000c000020a01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "isa1", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isan", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973616e00000000000000000000000000000000010000000000000000000000450000000000400000000000c000020200000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "vti1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7674693100000000000000000000000000000000210020000000000700000008450000000000000000040000c0000201c6336405" + } + ], + "run": { + "argv": [ + "ip", + "tunnel", + "show", + "local", + "192.0.2.1" + ], + "rc": 0, + "stdout": "ipip1: any/ip remote 198.51.100.1 local 192.0.2.1 dev d0 ttl 64 tos 0x10\ngre1: gre/ip remote 198.51.100.2 local 192.0.2.1 ttl 32 key 5\n Drop packets out of sequence.\n Checksum in received packet is required.\n Sequence packets on output.\n Checksum output packets.\ngre2: gre/ip remote 198.51.100.3 local 192.0.2.1 ttl inherit ikey 1 okey 2\n Drop packets out of sequence.\n Checksum output packets.\ngre3: gre/ip remote 239.1.1.1 local 192.0.2.1 ttl 1 key 4009820417\nsit1: any/ip remote 198.51.100.4 local 192.0.2.1 ttl 64\nsit2: ipv6/ip remote 198.51.100.8 local 192.0.2.1 ttl 16\nisa1: ipv6/ip remote any local 192.0.2.1 pr 192.0.2.11 pdr 192.0.2.10 ttl inherit\nvti1: ip/ip remote 198.51.100.5 local 192.0.2.1 ttl inherit nopmtudisc ikey 7 okey 8\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-016/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-016/cmd.json new file mode 100644 index 000000000..244e2ff74 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-016/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "tnl4", + "json": "0", + "words": "tunnel show dev d0" + }, + "cmd": "ip tunnel show dev d0", + "desc": "positive: opt=plain cmd=tnl4:tunnel_show_dev_d0", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/ec-016", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "ip tunnel add isa1 mode isatap local 192.0.2.1", + "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- tunnel show dev d0", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "rc": 0 + }, + { + "cmd": "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "rc": 0 + }, + { + "cmd": "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "rc": 0 + }, + { + "cmd": "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "rc": 0 + }, + { + "cmd": "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "rc": 0 + }, + { + "cmd": "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "rc": 0 + }, + { + "cmd": "ip tunnel add isa1 mode isatap local 192.0.2.1", + "rc": 0 + }, + { + "cmd": "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "rc": 0 + }, + { + "cmd": "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "rc": 0 + }, + { + "cmd": "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-016/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-016/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-016/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-016/ip.out new file mode 100644 index 000000000..f2ca07cfb --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-016/ip.out @@ -0,0 +1 @@ +ipip1: any/ip remote 198.51.100.1 local 192.0.2.1 dev d0 ttl 64 tos 0x10 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-016/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-016/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..942896de139fd573d9348f184e1604dbb920c9f5 GIT binary patch literal 33356 zcmeHQO^h7H6@D{4J?`DuWh7tksebj|`|7=_>iO`k=l)!mhP0_6|HH*?A2go0{;n-DfpZ?xi1st_G>(&N zr6xO(&)?H&BHxmsn#d-JWD=QK-#F@HC8nZOeK+I&2oBcw`Hs)t5!AgI*KZ*u>3R;L z9{xU$bi2lI3+;-0yXwr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/testdata/7_3_1/ws/tunnel/ec-016/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-016/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-016/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-016/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-016/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..73dcf7555d77daf5f66f2ec94e19dfcb4585dc04 GIT binary patch literal 33356 zcmeHQO^h7H6@D{4J?>rBu)yL(AqmTm0t8{!vEx{YlPo_uAo&0skP{)muq(7;y}QA? zQIgY02@z6qa3m8E#RmhH0LzFUk;I@VGCv}b!jUK-IQWDR2e|maA&L3E`q_Eg-80j( z-d%O?)RTIuyQiwA`qg{ytM{s^=iN77ezGnNX;VY~hl?Bk)p+=i!!?=2IS*+>dzg5d zz{w?2lkLdo@98v=ugOqNWQ#;Hh0Lt)Db&YGOhu{suEYIN9IWr7fB)%}pzaY|zloHj z>$&@an(+5|q}w%)TWDA0+f`>CMQq2zD8CPt^GKKfTg-OUO*@`B%hHXAEx28^V|HF7 zk*)G^BodoeGridSN-VdUoQdIS4f(!h?kBR-rI)+(>n{DiORsR{u9I`;SpW67&+^}O z=?`5x>C*4X=jXQI`@JszEx6Be?Qo}WA%5CPlDL*o4EZ3TJ*pxD- zG7LU=dPlzGPb;5JL7LW^M&t&_gyr7|xIH)j)1~R9X_<(=BEQ4^#}uF07Rs1D+MLg} z)aTRR@LnexMb}bR)5J2z>cfy3Q@S;V7E|_~+wp*$f!MLkS@#T+rf_XV8(Hcc=-5Rz zFVE%ay0q@BLF+~K;~}WiB*>D*V=`gFHHwNJHtrB0l= z^-vT-fu+8}frzLvC)hnrYizi>OB} zSHlRTa%N%o;@s>6YH!a5yv4$&uCw6157~ysp-Z7O@~R= zPo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ff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-016/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-016/tnlsys.out new file mode 100644 index 000000000..92f387519 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-016/tnlsys.out @@ -0,0 +1,114 @@ +{ + "ioctls": [ + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726530000000000000000000000000000000000000000000000000000000004500000000000000002f00000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ip_vti0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69705f76746930000000000000000000000000002000200000000000000000004500000000000000000400000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "tunl0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "74756e6c300000000000000000000000000000000000000000000000000000004500000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "73697430000000000000000000000000000000000000000000000000000000004500000000000000402900000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703100000000000000000000000c000000000000000000000000000000451000000000400040000000c0000201c6336401" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703200000000000000000000000000000000000000000000000000000045010000000000000000000000000000c6336409" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6772653100000000000000000000000000000000b000b00000000005000000054500000000004000202f0000c0000201c6336402" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726532000000000000000000000000000000003000a00000000001000000024500000000004000002f0000c0000201c6336403" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre3", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "677265330000000000000000000000000000000020002000ef010101ef0101014500000000004000012f0000c0000201ef010101" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743100000000000000000000000000000000000000000000000000000000450000000000400040000000c0000201c6336404" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743200000000000000000000000000000000000000000000000000000000450000000000400010290000c0000201c6336408" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isa1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973613100000000000000000000000000000000010000000000000000000000450000000000400000290000c000020100000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isan", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973616e00000000000000000000000000000000010000000000000000000000450000000000400000000000c000020200000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "vti1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7674693100000000000000000000000000000000210020000000000700000008450000000000000000040000c0000201c6336405" + } + ], + "run": { + "argv": [ + "ip", + "tunnel", + "show", + "dev", + "d0" + ], + "rc": 0, + "stdout": "ipip1: any/ip remote 198.51.100.1 local 192.0.2.1 dev d0 ttl 64 tos 0x10\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-017/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-017/cmd.json new file mode 100644 index 000000000..737e87dd5 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-017/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "tnl4", + "json": "0", + "words": "tunnel show isa1" + }, + "cmd": "ip tunnel show isa1", + "desc": "corner: opt=plain cmd=tnl4:tunnel_show_isa1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/ec-017", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "ip tunnel add isa1 mode isatap local 192.0.2.1", + "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- tunnel show isa1", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "rc": 0 + }, + { + "cmd": "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "rc": 0 + }, + { + "cmd": "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "rc": 0 + }, + { + "cmd": "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "rc": 0 + }, + { + "cmd": "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "rc": 0 + }, + { + "cmd": "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "rc": 0 + }, + { + "cmd": "ip tunnel add isa1 mode isatap local 192.0.2.1", + "rc": 0 + }, + { + "cmd": "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "rc": 0 + }, + { + "cmd": "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "rc": 0 + }, + { + "cmd": "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-017/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-017/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-017/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-017/ip.out new file mode 100644 index 000000000..9aa20d0ef --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-017/ip.out @@ -0,0 +1 @@ +isa1: ipv6/ip remote any local 192.0.2.1 pr 192.0.2.11 pdr 192.0.2.10 ttl inherit diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-017/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-017/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..ed8cdad04b2b2ec17aac219bedd92724ddcb8a15 GIT binary patch literal 33204 zcmeHQO^6)F6@D{4J?h;^@!DC*AtuQ>Hntoq`iX=jY$aJG${|6A*kG_h5Xr1!Hd*bi zq?NEj1ak->2MKf#{=rF*kq##4U~&*Xm>@?c1frwC*!Txy?Dz-#hn)BjTlv2F*?HSN zJJYk8-E{9%!Aw>6R8@DsdhdPp-mB_);nH88tV&IqsV1M};5+}U{p#4>ST>@}kJO^= z%zPR_;RdNh>rs#As{B%k?a!k9?v-Lb>GsdYB134!_Uk@n>snO7_fLf1A}b`4i7Amp zR>?b&NQ~M{v0U%+ADNnox%Ud{eb<~%WV6d}a``u0{ymp})3sYGSFf`FJ8+)u?{fJM zTt4dZyXCX1EAaacSO14N&vqlGpIB~o{oUfuZ*aMxn$%^NIj+l(O&-hbCLc7dOi>0E z^)Abe_T)179>XXuc3LTSf+sBZtpv3vrw$(3e`LRGjJ_r(aQ^p-&b$|Lm;R*rR^P9$ zmp-SDb$JLwOI}SU_H(8>2%cd{8pF6_^4?3E9+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Icnm2ZG6e?ObX70Ow_6);FhDGKBPSB6u5usGtImNl+m{d;CV*i78r;7f7#OsKef zCD^j#QEY$LcfgN-A5P;(h`qODy`KItulT_? zgC+1Iv%hNz;71(rqcgFb2Y$rFj{#gp@455%!GDtKHT?J<__5-efFGT4UT@dVD}Hdr zOx+C)D(Jj@aoDX{&4m@jt&2K+EY=-{gZ`~Z!y zu@0#fe(-nNAM?Nu^bf}=Qql0^XW&P9Dx3Ym=L`5jD)e^B1AfG*_=iMCU|6*O3h%t@ z-2OlxMS4%7ihopt{n43RYW!&Pp2TGiKVrt!EzPT3_iNSx^Qtla)5o9ZanW$#SKz>J wcV)u?y}l~g5ghH_OnJZo{*TW~_#dB>Fa-Q0|Hp?usR;Ayvr+G<-|am6Kkq$C_y7O^ literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-017/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-017/tnlsys.out new file mode 100644 index 000000000..43956ee8b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-017/tnlsys.out @@ -0,0 +1,36 @@ +{ + "ioctls": [ + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isa1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973613100000000000000000000000000000000010000000000000000000000450000000000400000290000c000020100000000" + }, + { + "family": 2, + "req": "SIOCGETPRL", + "name": "isa1", + "in": "0000000000000000f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "00000000000000002000000000000000c000020b000000000000000000000000c000020a01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "isa1", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + } + ], + "run": { + "argv": [ + "ip", + "tunnel", + "show", + "isa1" + ], + "rc": 0, + "stdout": "isa1: ipv6/ip remote any local 192.0.2.1 pr 192.0.2.11 pdr 192.0.2.10 ttl inherit\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-018/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-018/cmd.json new file mode 100644 index 000000000..d12a0e2e9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-018/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "tnl4", + "json": "0", + "words": "tunnel show isan" + }, + "cmd": "ip tunnel show isan", + "desc": "corner: opt=plain cmd=tnl4:tunnel_show_isan", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/ec-018", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "ip tunnel add isa1 mode isatap local 192.0.2.1", + "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- tunnel show isan", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "rc": 0 + }, + { + "cmd": "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "rc": 0 + }, + { + "cmd": "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "rc": 0 + }, + { + "cmd": "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "rc": 0 + }, + { + "cmd": "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "rc": 0 + }, + { + "cmd": "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "rc": 0 + }, + { + "cmd": "ip tunnel add isa1 mode isatap local 192.0.2.1", + "rc": 0 + }, + { + "cmd": "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "rc": 0 + }, + { + "cmd": "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "rc": 0 + }, + { + "cmd": "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-018/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-018/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-018/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-018/ip.out new file mode 100644 index 000000000..2d18634d3 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-018/ip.out @@ -0,0 +1 @@ +isan: any/ip remote any local 192.0.2.2 ttl inherit diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-018/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-018/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..ca21a398cccf92c5ecdbbcb7304b2ee65c71bd99 GIT binary patch literal 33204 zcmeHQU5H&*6<&AFJ$KHGNuAcQf`U$esHw#yO~M#7#;K+cl_>a@hk!|$&`vX%8Iws- z5WR|mNW>@s+aeM%54PkX1S+BU5J?ard2A_akW%_%)6n{pl)gy(zWp&f06OZ?CoXKKI27XMZ~&b!nx#{0}Fey;MK=(;vjL8D)N?9&Kml z(-;bONG;lkdb~EkgGy|F7VUSh6Z1*8|6?pNf>vz5=>}WZqZ*En2#+Fz63O(eNFwXy zpOHw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rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-018/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-018/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..71fe0afd47cada6b86821394eb5bfedc8df3defb GIT binary patch literal 33204 zcmeHQO^6)F6@IflGuyk7>{Yy$A%S>p3+E5(A4MpNvx?<|gJQ@{2SKE;LfL5lBCUiC zCYeJFKFCB7f;ho8ilReobT9@R5qwaPF#+jlW0HsvLVgvIKTF0JqkLce?7Z!so#|f9 zuDW-sV7jV%s%pAlz4yL)?^X4@d+GI`_eoWnsVX1i3) zJ}H%GJ?imV9}g!L-D3Zr$91;f;qtG#eAMM% zmXB`r45PTzX_b5tJYl(S6{tNm{k>xcj~$ea(Wm4Du0N;f%zGhs=}(ex_5J#K$!q#t zmxnO4u&oIgwsONv%=eLl~+->W!EWhZJ z#y2aF5|O=l2rC`)pKbp&(^<=d>BD{F@7vs+yS7l-ch>mVHea+)HFu^8POb1+`Fpxg z*4kQ$7!>tUk}=l@R4%n!(SU|OWu$v}(}<{Y>_U}gX@dSt2#l&s0^ zJfn_#u;*684$C%q`NM&eo8L2+%^^lFOao{=H9bAUayRgY{UlRThwAUW9@p1cW*db+ zcv6c$zXksM_{lW>P#)Pvf2h9${*aozor-`zv@KqSZE*v(1wTpK;)N7GeJSERso{ps z;nSfb2eaYRFC9Ly`BK;yw~J5babHRMBH)u7>@H^-pUyY&3A`loqQa-Tn+wz(CRsa` z{A00V*x`}By>|1n8jz4F7BW2Z)h_qAW#?~oX9?7uo$T?9xb@x3$Je~^b<@nXwf9ms z+@jqyHI>FK%BjXImNjmfhYogAlL30DR0Q1GlftD+L=(B;#$mO!o4$2?cHB6Rve-^r z!SmX7df)i8g6&i^)?RL3*gjy>0JI@^$vA5EC~O*bHj$tyG|&d%|EH}7wz-;Jq;=oeGd|JL4)smVRAzQrqzHz(!xV?L(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kAc9i61rIlh|VL!$(|Q(>#xLziJ&Ye%0sy^s(1*o;DmPFb=#o5)TLD`YLBfV6>Yv lB>@NUKR(N+eBO76y@#A~UauSt_@q3ZU$5qRhtKPI_J3C&O6mXr literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-020/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-020/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-020/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-020/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-020/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..b49a56a87327807b46711697aa1648ee1016414a GIT binary patch literal 33204 zcmeHQU1%It6h52T-AvL{qplScY}Dc}wrQKjVymWF5w!@S4@HZ%C9#C2No2x z@7c=iEE{{mIWiY@s}rQ=TsK$=#>&J0Cl@h`PCq59PhJ$ZYE3!qt@XmUBH^ zYr#PzwBO0?H+7Kugxh~rAnN2+Xus|}TIanSA0H(giCW2{p%EgV7SpdDQGshC73eCH zKcs5<>fUo)ZuG|o?-O*!y@0#qC(O6(*HF++}ojkPQ)o?;T zhg#a1XHcS`#CHtd`)lQP8h%Q*IcuJw4>h=+{cW31ayoRSu8T4qZlU1G97_q&W_}1Q z9hJ|v^*7a7)r0E8d}Hrh-JQ8MUDaJLu z0_&N_XDU^tDlH4ll}O9zikd&3r~89EZ3u#5Sa;_<$WdT==wPlK9PJ$&9_r@a%laF2 zs_E~ej0Mo&(3H^MS}!+Fe?ux7t-niExV|LxxFH2OeQqg{ESLKH0M9TMF`YFp5xvUv zH9C~4(YmCxVdd`>)cgQ^$4tw~H!|RJiRT=Ay-m#keC`pcNUUU4uICv=z6X7-HEfA` z>F0^y@Wd19vO4(O3sM`m9v&GP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8N{Us1=4^keGxyH@8M0$5?6TrdtyJ>RNP(ROLq25h`4*+*((uNjlCdo zC2r4zh`Hxw%pIL$&xFL0`u9v^+u!vsslQAse&EeuA^b?}?^*!( z;XC}OPb_DEA3pG-lYd6;xwH6zf0Al8{Fr3?So5~SkNP;Txof8tKd@pZFhhel{NSE# zO=ExHu^oPx!B3dgiy!D#uG`Y*W&6Y82k>MjYk$#S*4F;!R&A$a3GoBZXXEXNk+^s} zDAIf>t@wdA-UVhj41NsbG)Y_}!}bTqe6btQ;fEqZ9fvybgK3O^u!_eId=L9$2Kd4K zv*VOg*6<_G_z}FG%>KahIs5<>nmeTdKm17igS;g?EYg3)@4Tzu{@^~c^qxc!|0p>7 zqdvKm_)+6MiLC}de8kl?%?nuftJVSISAG6ZAA23=S;K)M%;{%_R$MfsuTyNcZJ5Pkpv literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-023/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-023/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-023/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-023/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-023/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..2ee2bd402b6359d000c79dfbeb0a6dd115f7cde8 GIT binary patch literal 168 zcmca|c+)~A1{MYcU}5+RE+E{6OF(F1skuC(Z2qM^-Xrdm*zH(5>}--o^wc8Wm%BEa?w8CujBbuvEo*7+Wywq5dhXpAkm29=>b-zr{gK$dw;`AICn0Tv5b5vSuUd zIq#}q{rYX4b?BQ|r+)aVr;$X(`l`nIkkiT^{H-97sFhitow+*4u3a#`%-;_|HOpqM zS&m-R*@j*a+rrknjB7+LAScblHT6Vq@K~Z^Td&Jo9J>>(NVZXzpJJ|2m*-_b76Xbp zC1UU(##7Ar;su@YIAZs`W?an$%Cm$-pT*SWOLo|ceH4si?(|rNoObTNBL|%lb(&nh zkIxaSER$`4aW7WEdI+k;w=wGz?(o_dq>)cipbTV&Q{LMhUmS#qYlknWJ_x>uWc3 z)}fE@9d$!Y;{67T_nCUUutLM_;$%I|*7f|lWF2mO3+rz}vYuwvJA7gs=&PKgZCHnu zjl{`%7n{3+^?uBN8qY6>WW9@7|GcF8b?6(`4cC4ah>!Iar<(_$vd(pOEr#)OSBy0% zckN-;PY>&?o7~lJmQ5cl5GU(B{Jsj-wHPKW>ltQ!eAKXRC=PFdI9bo|uv|Gb#Ot}j zWX*oPms$VvC>-l}rI(wE+PV3SNzOuJ9pYqtKbzK-=9R3^;#9`#wpxEje^3l_fLXtG z&#(?V83|{B_*f^WmxrXrF#PwxHT(5L%=&}-;aFGeFvhQkcy0p9=g H!FK-u!vX<_ literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-036/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-036/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-036/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-036/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-036/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..981f8b99de37d0972321233f2e6a4dc177261c9e GIT binary patch literal 14432 zcmeI3Jxmlq6vyB09&j9A2b?5oW2NmO1S!za5ef^UCU%N~dJ&HcccC#cYpI1X8l#;U z8$*nV7RJH?Lt|oNqJ;%oSr}rJ!oos>?>{$t3^&KJcd(m_H!s=U+1Y)&b8mk0?!9;L zarwm~n_{#fG5X6V>36ZqKaa*KjW#aEoM9Y1Ilzq`vYdXt4}A&j6oG#0u{gc&B(at2 zf3=B{WE1pn{IOX-=2)yhPS_K*kV7-Gcy93=eQ_~Pi<(#yvS7D!pSbR(xOaV>sCnQV ztrdvAIYhts`H)eux5S;e+uPPz7P^Y}qD_x&awjZ)Gtp@=KA~8;A9`n3i+z>$;u-Qn z@=)=)Vsx@^tG4$n_s5XeEPkrenbMF`h0lujsn5h+gO)=FmD^2odkc(EGxJuPq$+4O zF_nD)sfjHny9 zG2FwVjV;k}f5d@Lb)~r__ZR1;x90vy72IDsu5%B4m3g#P?!{1yzn3%8SckB<=P;%$ zrm-A+UAxk}9YueCX1Fje|1m7yk>8%={PqFox7f<_ z+e+&JIfl9(rswjx$*jH}7OPkf`t^S*+yM{in&Hzo|gex z3@GZ9h{63BPcY*P=XJ)Th~0OaaWxkx%@PuQ7E_lm+F>{LVK9!l(_Ab-V<5>SxYVbNfha<#}qQ zwSaWCd@UU2zFOk;4qgk-@0hiKxiAvU0%5HMo%MvnKmV6lM~=!hO1S+^e*aa#9JPyC zU%jrg4t;#@s2gGu?>AVy&(!0E6&h|ACF@DHuIJY!>u~FvSbrUm^(3?2Ss})OzREe; zhILrkNR+I1v$@MyAHWQ#@%&Oi*1MVYPm8)=hrVIma9zm)(Xk$PdUyaT>s)8oVi+%X z#aR7v*Is7*#E8zi$z3bWvgv~bqGY|7-&e-E7Q+N(J;kg~j2YGq#lbBQCF?03mMe#b zcs-M!tl6*kG3#F*24fws^m0>CJ2$^E$ysQuLzJxVVbi+Oypr`SPG!7qtMzyE`^7MO znf0r84ePLzkzf{xj&*YSct~mt!+#H4vtQrOtlz&EjCHjRWBhtBF8;^6!eSlqio<^u K;Qdb@Z1)dy{QBPj literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-036/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-036/tnlsys.out new file mode 100644 index 000000000..df1c77e69 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-036/tnlsys.out @@ -0,0 +1,37 @@ +{ + "ioctls": [ + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6tnl0", + "in": "00000000000000000000000000000000020000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036746e6c30000000000000000000000000002900000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6gre0", + "in": "00000000000000000000000000000000030000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667726530000000000000000000000000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6_vti0", + "in": "00000000000000000000000000000000040000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6970365f767469300000000000000000000000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + } + ], + "run": { + "argv": [ + "ip", + "tunnel", + "show", + "mode", + "any" + ], + "rc": 0, + "stdout": "ip6tnl0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\nip6gre0: gre/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\nip6_vti0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-037/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-037/cmd.json new file mode 100644 index 000000000..0815c11d9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-037/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "tnl4", + "json": "0", + "words": "-6 tunnel show" + }, + "cmd": "ip -6 tunnel show", + "desc": "corner: opt=plain cmd=tnl4:-6_tunnel_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": "tunnel/ec-037", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "ip tunnel add isa1 mode isatap local 192.0.2.1", + "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -6 tunnel show", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "rc": 0 + }, + { + "cmd": "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "rc": 0 + }, + { + "cmd": "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "rc": 0 + }, + { + "cmd": "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "rc": 0 + }, + { + "cmd": "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "rc": 0 + }, + { + "cmd": "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "rc": 0 + }, + { + "cmd": "ip tunnel add isa1 mode isatap local 192.0.2.1", + "rc": 0 + }, + { + "cmd": "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "rc": 0 + }, + { + "cmd": "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "rc": 0 + }, + { + "cmd": "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-037/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-037/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-037/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-037/ip.out new file mode 100644 index 000000000..6c1de7c74 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-037/ip.out @@ -0,0 +1,3 @@ +ip6tnl0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) +ip6gre0: gre/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) +ip6_vti0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-037/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-037/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..fc870447320b9922a255a1df509d35a6362cd389 GIT binary patch literal 14432 zcmeI3J!lj`6vyB0UNj~bjq$V)3o9)IxtNdyzlexmC=m-m1ks2g9-fyoITX=iMXxza|4)z1CU)`XL%Kz`k)B)wlw z;wYE@Y!bDSNs!+(W3qh0GFbiq;Y_rYEXoeyz0N(_8pSvbYG6r}aWlzn;<=sT)?$&U zyW=!XUm}{eh<@?=QF_JM5Ixb`J&Ih$S2%r9rw1n4M-2XCqGMuwLa@{ya;LsJZI#aA z9r8izM(4d^bh2%(y8ABsdzV{vW>vcLROC`&uJ}CfJJGAtuxNv)yROc!f$g+}d8@6Y zDo8dkl_jWO{oei4&I+OfO|f10r!yiaL;lM_g&2Wn`Zpr=N@W9;MKdOTJjuR^PkoPi=x|e$~6z%Wjip1*@ z7WaQD_40xDtJG5R^@$a9^S>=7wGF@Pj1n%y{n1(zlOy-^4rav-`?f? z7Dsu0Tge`fV|eXhV0a|opHuDONfq{x-KXuL{wb`V5r$|(=z4*1jmQP$qUpG%p6K--OIU2H`|<|I?nIN4ZS2dRVXm<+ z&t^ad1B!i0#Nd96Z)L_iFRP445xXxoy~9SVbyWUla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8{Z>VnIh8w<8G{i_29P`zk^vnazkZZ$12jm`l47M4A$`y!L_{Y605cQNa8w^i1muUU^9#lglKCF^Us zOC_v#pqJiwekvgAyP5SL+f>$}uUQW^_i<|#9qUP}g^lZFo%h+57{<+AF%N#Z>mFwP z(sh+}ox8@3;NatplJ#}mtrFIi7$zv|dztm|am{-0nbs|%WIe^^wx!7tucyZbs`l&q znf0Lu!C1#D_3wkF;bVM>lJ)g$XIt7@vYy4QjMq)?{yXaZVwgT=y>Lad4m)WHW`XEf wCu;+D$s5D)?}4lK>;267#N%MBxfq@{#AhcKYg&_U$F87vj6}9 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-037/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-037/tnlsys.out new file mode 100644 index 000000000..70f510056 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-037/tnlsys.out @@ -0,0 +1,36 @@ +{ + "ioctls": [ + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6tnl0", + "in": "00000000000000000000000000000000020000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036746e6c30000000000000000000000000002900000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6gre0", + "in": "00000000000000000000000000000000030000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667726530000000000000000000000000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6_vti0", + "in": "00000000000000000000000000000000040000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6970365f767469300000000000000000000000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + } + ], + "run": { + "argv": [ + "ip", + "-6", + "tunnel", + "show" + ], + "rc": 0, + "stdout": "ip6tnl0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\nip6gre0: gre/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\nip6_vti0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-038/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-038/cmd.json new file mode 100644 index 000000000..df2bb7990 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-038/cmd.json @@ -0,0 +1,64 @@ +{ + "axes": { + "fix": "prl16", + "json": "0", + "words": "tunnel show isa16" + }, + "cmd": "ip tunnel show isa16", + "desc": "positive: opt=plain cmd=prl16:tunnel_show_isa16", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/ec-038", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip tunnel add isa16 mode isatap local 192.0.2.1", + "i=10; while [ $i -lt 26 ]; do ip tunnel prl dev isa16 prl-nodefault 192.0.2.$i || exit 1; i=$((i+1)); done" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- tunnel show isa16", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip tunnel add isa16 mode isatap local 192.0.2.1", + "rc": 0 + }, + { + "cmd": "i=10; while [ $i -lt 26 ]; do ip tunnel prl dev isa16 prl-nodefault 192.0.2.$i || exit 1; i=$((i+1)); done", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-038/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-038/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-038/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-038/ip.out new file mode 100644 index 000000000..9b44812ed --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-038/ip.out @@ -0,0 +1 @@ +isa16: ipv6/ip remote any local 192.0.2.1 pr 192.0.2.25 pr 192.0.2.24 pr 192.0.2.23 pr 192.0.2.22 pr 192.0.2.21 pr 192.0.2.20 pr 192.0.2.19 pr 192.0.2.18 pr 192.0.2.17 pr 192.0.2.16 pr 192.0.2.15 pr 192.0.2.14 pr 192.0.2.13 pr 192.0.2.12 pr 192.0.2.11 ttl inherit diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-038/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-038/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..872876b6210d679fafefd0c6842d961bae2f7251 GIT binary patch literal 18804 zcmeHP&ud&o9RF_K?)D{3G}^U76|GwQfd^9)lGq;_ZAFA0^yZ;rqX{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rM=ZRX_%!8P;pa077wDD#wz z!Q&V|493%YOvdXGyRS9l;km#HDxBy;Y+l~C!&>Z%vpXpOPIOKg!$1U`YxV-#Pa6fR)_lB9zo_h}RJ zJnnsP9NZTMP41~5_dZYtv9Z1~L$mGb$Gzir!?@w`9^b0+aoh)S5T8jL_b0&pt4Wi4 z8wWKT&DGy;{kSi<8*y1-?(wZEe+hM!;+$&NC!7NJbGJ?I?fQi3IcT<)NpYWrAzfr` zf;E@4E9V54F(=^SPPM?ZY@O$J)MK5e(qVfFrw)N+WQ(*SaA7~!R_TZD7XJ5*9fbu( KJM5=Cuk;%!IY!w4 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-040/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-040/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-040/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-040/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-040/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..924e4141699328e1be56eee5119a7dbab8bc6e87 GIT binary patch literal 10896 zcmeI2J!lj`6vyB0Ui9*%Q4XxcRBD;TaF;^FR*i}xepKcpF@(hA$Q`1Bu(d@L#7dD! zQm9x-5DN<>pn{EsW$Y|OL@g{V)cF6;&c@|tZ*ym|$I0!3-JP4Aw>SIt_h#R`op+0m z@7a=)zmk$)_|f|&HNNe#Ej=i6law>SgD>4EY!%DtLp#>BaTgHkXQBUglc=p+|AQ^k zCAKL2-!}A9js^V#!oA2wab#kO*Y$q0F0J}$NeeV7vvvpS)Ok09+T~@D!9C|BofrA& zho4vLy%bYFlF$@1Ja$5CIDXz4q-q0tnE^M!^p-*(}@~%rA zUn-UT^X`|dU-a&3lM_9X33=k={ZR|K#|}d7sUP4TdLH+O!2Q8_lY8ouk>Eyd67Ffy z=9c<#pK~~-y4u{D`_bu<%G}?tf%|83Cim12GS705d)1X>yw^{pxejr0|1)H~=j+>Z z$`^W!nEpu(yccFn-j`P4UETW{$9npcFG+0gTcYugaq-Ui?QP6&=P|$KRzANC^9Rl` zg8ncvT`c4$O@DY;gFn2wp7=xKQ`k5?jLRQB8{>c4VNS@^x891_r#MzpagWZ~sC>@r z8d!gS&19YWNvzX2d^J)};$nTtV12-8$Bn;GB#N|y^~s3~QyAJ6s{LMd0)8=b%k+!ndlihENT>zk@(YvuoP%Wn<=l@(y$|l__W?T| z^*%TW?sLN?_tcMiA1H$)vA!}xv+e4~z2$VlxWVxr->R}v-1~75pGg$=r@;NoqRD*{ z2Q?eb)!%RZxX(FT(5)c%_*Rv@gt|&`PPOY3&Vc)cn%$~> literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-040/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-040/tnlsys.out new file mode 100644 index 000000000..50f30be23 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-040/tnlsys.out @@ -0,0 +1,70 @@ +{ + "ioctls": [ + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6tnl0", + "in": "00000000000000000000000000000000020000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036746e6c30000000000000000000000000002900000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6gre0", + "in": "00000000000000000000000000000000030000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667726530000000000000000000000000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6_vti0", + "in": "00000000000000000000000000000000040000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6970365f767469300000000000000000000000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t1", + "in": "000000000000000000000000000000000d0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743100000000000000000000000c00000029040100000123454300030020010db800000000000000000000000120010db8000000000000000000000002000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t2", + "in": "000000000000000000000000000000000e0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743200000000000000000000000000000004024000020000001400030020010db800000000000000000000000120010db8000000000000000000000003000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6g1", + "in": "000000000000000000000000000000000f0000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667310000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000004b000b0000000000900000009" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "vti61", + "in": "00000000000000000000000000000000100000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "767469363100000000000000000000000000000029000000000000000000000020010db800000000000000000000000120010db8000000000000000000000005200020000000000300000004" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "gre6x", + "in": "00000000000000000000000000000000110000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726536780000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000006000000000000000000000000" + } + ], + "run": { + "argv": [ + "ip", + "-6", + "tunnel" + ], + "rc": 0, + "stdout": "ip6tnl0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\nip6gre0: gre/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\nip6_vti0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\nip6t1: ipv6/ipv6 remote 2001:db8::2 local 2001:db8::1 dev d0 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 (flowinfo 0x00012345) allow-localremote\nip6t2: ip/ipv6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit (flowinfo 0x02000000) dscp inherit\nip6g1: gre/ipv6 remote 2001:db8::4 local 2001:db8::1 encaplimit 4 hoplimit 64 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) key 9\n Drop packets out of sequence.\n Checksum in received packet is required.\n Sequence packets on output.\n Checksum output packets.\nvti61: ipv6/ipv6 remote 2001:db8::5 local 2001:db8::1 encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) ikey 3 okey 4\ngre6x: gre/ipv6 remote 2001:db8::6 local 2001:db8::1 encaplimit 4 hoplimit 64 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-041/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-041/cmd.json new file mode 100644 index 000000000..768c42236 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-041/cmd.json @@ -0,0 +1,79 @@ +{ + "axes": { + "fix": "tnl6", + "json": "0", + "words": "-6 tunnel list" + }, + "cmd": "ip -6 tunnel list", + "desc": "positive: opt=plain cmd=tnl6:-6_tunnel_list", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/ec-041", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -6 tunnel list", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "rc": 0 + }, + { + "cmd": "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "rc": 0 + }, + { + "cmd": "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "rc": 0 + }, + { + "cmd": "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-041/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-041/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-041/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-041/ip.out new file mode 100644 index 000000000..076238745 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-041/ip.out @@ -0,0 +1,12 @@ +ip6tnl0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) +ip6gre0: gre/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) +ip6_vti0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) +ip6t1: ipv6/ipv6 remote 2001:db8::2 local 2001:db8::1 dev d0 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 (flowinfo 0x00012345) allow-localremote +ip6t2: ip/ipv6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit (flowinfo 0x02000000) dscp inherit +ip6g1: gre/ipv6 remote 2001:db8::4 local 2001:db8::1 encaplimit 4 hoplimit 64 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) key 9 + Drop packets out of sequence. + Checksum in received packet is required. + Sequence packets on output. + Checksum output packets. +vti61: ipv6/ipv6 remote 2001:db8::5 local 2001:db8::1 encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) ikey 3 okey 4 +gre6x: gre/ipv6 remote 2001:db8::6 local 2001:db8::1 encaplimit 4 hoplimit 64 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-041/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-041/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..cd5139e79eec3495453e8fd69f0f002c061ee0dc GIT binary patch literal 10896 zcmeI2J#5oJ6vvM$k$KOeq@!>4pPX?Ku^Ksr&_BaYjPcC2gRE+o`ng#P=TqP9}~&nb}( zNeT6@uce@$b{*&+6YfQJh%1E&_Ur#|Lkqk5`3#m5Lsq_X95HR8N~*b3ZyYQl9%qRdD}&&g7o@Vdhy5bFYSC=X-re8taf0_rD|Ndp@o` zZQgc&z8|_&98)1xxjDbT3ie+fHrc0s9Q*VG8|yR{^TE|7#r_YIeMD6vDL+(Ku?{Bu z;_zg*5z{}bg7>8%llRq4cvsiH#krpT6o`%O154EZF)7};zFo%p_951{+)CHCQU1U+ zM%W)lrlu!{$4!4&tim4-&RTz{e+uhogh~0sH)HZg{@OyQ+K~_dy)QdlJX}4RC+|n#sM5 zgBp$I%CEO}+z+_BF|086cvqF5L0!2xr_%2e=E403&*a{IpHMjmjn*yuX z%_Z&1HNhdgspZF=>I2V`?>xIukMBH{4%<_>bOc!7`~V1OV0Y(c=grN&{k+*XZ}-FU zquVJ-%RfoWAN)A@Hhpn^PgZ(R<|b)(fQLZ3P}n7o+lzLrYvC>=)PD~BciTm6rTQOJ zA{~+v>VI2JK|k#}&_5>Ji)<5D#>UyN|C@CgHBLvGph;OswV_U(_j0IRTN9Z+bWWNv zqED{KPxMbYs`id*$=1QP23gqQw`E!Gro=np;GacKsqrbr_4d>|``NFH+N(bFiH`k# zziM>4u3S0j%ln!SivCrt{|XiKt>U%v|H6H;RiER^zEE>p+}Hv~q#3;ZpX4Gmn?NPy zm%+H>l1PsyA#EUSbRu6YjP*z^;*OK|hfU-jI|#X_eu#VM`P^Rt_ot7W+*6;7gg0_y zxu-=NTWZIBzsot*)8^LPk4z4i=l*^b+&`T)xu<@Zd6vW6tD)HWUf+?%IwZyY?}+)H zk84kxx80xb2QL>#RY+BC&hM*&{bz?w_NgDoKK;PPI*rAAaJ5OX|J`ICQI$x_57kwy zg9*PlG|^+k^iQhbeQD6-ePsjQ)wOSOuBSf*Vq^Qj67_#fig&JWe_(xk59?cQrR&=$ zf8ZJ;><`0}Qxii4(;psG;SUF9tUuI0h4nMSr2OHFG5=>==7c%{_voCB z%ICbPg7xk>lXdFbSf_sYs;7}8#rlfD`heSt3xBCd6ln$Pg|SQHnA#QNFYtVb%URAK zce8ZHWSe?%Y%5!DGOkf;0e#bKTvJc<#*ZZ_w#~e}gV9^`Kk)JWcT+ zelthY<+LyAQ#?52{jrW)=o@i)`D@^Qb;{(P`f+o+&C!G`-eAQfxTguZW-WAPB@Jk~ zm9AN%{DMo{Qora$T{*v~^nH~Fzj!rf`h|U81>;(Yv_MjRVRGN^;Guh9;Qqa5a&Ny+sGNgFYnc@HIT+GK z)+YGol6K{qVE5jv@Z(PPfoI8gp53U&cb-az?I~P31d@?X$s%xJKV2L2!)FWsdvNjO MYeqZlr!=qh7j#li_y7O^ literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-041/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-041/tnlsys.out new file mode 100644 index 000000000..7fd31608d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-041/tnlsys.out @@ -0,0 +1,71 @@ +{ + "ioctls": [ + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6tnl0", + "in": "00000000000000000000000000000000020000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036746e6c30000000000000000000000000002900000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6gre0", + "in": "00000000000000000000000000000000030000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667726530000000000000000000000000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6_vti0", + "in": "00000000000000000000000000000000040000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6970365f767469300000000000000000000000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t1", + "in": "000000000000000000000000000000000d0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743100000000000000000000000c00000029040100000123454300030020010db800000000000000000000000120010db8000000000000000000000002000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t2", + "in": "000000000000000000000000000000000e0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743200000000000000000000000000000004024000020000001400030020010db800000000000000000000000120010db8000000000000000000000003000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6g1", + "in": "000000000000000000000000000000000f0000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667310000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000004b000b0000000000900000009" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "vti61", + "in": "00000000000000000000000000000000100000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "767469363100000000000000000000000000000029000000000000000000000020010db800000000000000000000000120010db8000000000000000000000005200020000000000300000004" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "gre6x", + "in": "00000000000000000000000000000000110000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726536780000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000006000000000000000000000000" + } + ], + "run": { + "argv": [ + "ip", + "-6", + "tunnel", + "list" + ], + "rc": 0, + "stdout": "ip6tnl0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\nip6gre0: gre/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\nip6_vti0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\nip6t1: ipv6/ipv6 remote 2001:db8::2 local 2001:db8::1 dev d0 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 (flowinfo 0x00012345) allow-localremote\nip6t2: ip/ipv6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit (flowinfo 0x02000000) dscp inherit\nip6g1: gre/ipv6 remote 2001:db8::4 local 2001:db8::1 encaplimit 4 hoplimit 64 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) key 9\n Drop packets out of sequence.\n Checksum in received packet is required.\n Sequence packets on output.\n Checksum output packets.\nvti61: ipv6/ipv6 remote 2001:db8::5 local 2001:db8::1 encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) ikey 3 okey 4\ngre6x: gre/ipv6 remote 2001:db8::6 local 2001:db8::1 encaplimit 4 hoplimit 64 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-042/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-042/cmd.json new file mode 100644 index 000000000..33332b799 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-042/cmd.json @@ -0,0 +1,79 @@ +{ + "axes": { + "fix": "tnl6", + "json": "0", + "words": "-s -6 tunnel show" + }, + "cmd": "ip -s -6 tunnel show", + "desc": "positive: opt=plain cmd=tnl6:-s_-6_tunnel_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": "tunnel/ec-042", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -s -6 tunnel show", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "rc": 0 + }, + { + "cmd": "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "rc": 0 + }, + { + "cmd": "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "rc": 0 + }, + { + "cmd": "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-042/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-042/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-042/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-042/ip.out new file mode 100644 index 000000000..f8f24f2a5 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-042/ip.out @@ -0,0 +1,44 @@ +ip6tnl0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +ip6gre0: gre/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +ip6_vti0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +ip6t1: ipv6/ipv6 remote 2001:db8::2 local 2001:db8::1 dev d0 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 (flowinfo 0x00012345) allow-localremote +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +ip6t2: ip/ipv6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit (flowinfo 0x02000000) dscp inherit +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +ip6g1: gre/ipv6 remote 2001:db8::4 local 2001:db8::1 encaplimit 4 hoplimit 64 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) key 9 + Drop packets out of sequence. + Checksum in received packet is required. + Sequence packets on output. + Checksum output packets. +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +vti61: ipv6/ipv6 remote 2001:db8::5 local 2001:db8::1 encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) ikey 3 okey 4 +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +gre6x: gre/ipv6 remote 2001:db8::6 local 2001:db8::1 encaplimit 4 hoplimit 64 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-042/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-042/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..64110c50f58f4db82bf0ceca6f87903d58b660f1 GIT binary patch literal 10896 zcmeI2O-L0{6vxlJd73`8EMCjNRUbPwc}f_xh@hpdT9rm34^1T>5iN2+iYSO$*Fq^M zDhMJZf}n5{wQ14PWs8W2AfXnO{r`9F*zoSW@x64O#@qw*b?2U$J7<39&bepq`-LZS z8Oh3D$;vMrbiK`v7QZ!0C-%8W*6rgakPhtZ5XbFCJ(lIT3JLYEL;u}YQA@f0hm1(O zWQ6*+erKScbsgv*6|P0Lh$~|gysm%DvL@9|M;f3>na#AKOr7`gC|zC_ncja&zR!q! zbVZhMeaa!Vc2rH)4whxe>^8qH_vKDTya5My7CElkrxaJ}Q*ZE-Ulz4i*U%^0_xRUU ztXVW1LT)Vg zv}n4ee%$xE>{C5$Zq5D3+2P9E->-rDmT8lF>W7)j4{WTHF6M)$O^W@mCi{r0L^6J;u3{Z@ z_@$xAP9vtDuYvdZ6DIGAtMIO#eT{uR{V5O|+Xt4|{M)2>=lFIGI#gdA9 zbk0WQb6(fLdhVdfI`wU=vr#l{?)xUi`l7*lpW6acyiz2Jw1D;Tu`?6s+7;t3@qLKP zS$fFbJoiktsTaq#vi=(58Z{QsuhGUe+7SQ2CMmYfyu5?hU1UMC&Aj|+aLv3t+&~-v z$~+}wjyT3=!1&Y=lks}QD(lU7cr37j3J3ZSo0s?Pupa9q80Wi-%FDN*{Dy9H&d<}7 zx^T=KO^4I=OrPS$A@5Ih+(O@o%gbK^_cCa5PyM*Q-R5X$>U2sH+|!aAv%bKXH4A9D zl#f}X{DMQ`l3zPd^7t;dDxgUx99^BU7 z12#PFdvFEZzd2xXPyM*>fij4V^_3aYwyGcZj@u67hWmT`t185CAH+d?Cvn_g1@{jx znB3bqC~Y)X|Gf3%zSrH3W`()OzpBD{lvRpzs-2&34cza$X>xDpCsfZt+G-}neIAB% zk+litT+*%_6Szx_!pWU#f@j%0&%G$eJWr*=`VWU}e5ZMK!ogCvv5yvgL{Hy7 z=aozQb-7;)e$soY)w4iCzbZZ}?-#6-rFtw!_6CZl$+a!eFWbP|zezqqvjJ36ej1Eh z4vBPm5z-9O#-<9ziSbU!N4#x`a1Q+y#KUGvH#6vA6}J+?YZj8*TH~a z9G>bleEP*IcwanW^1iYL@9NptIo7j3`I7qfz9qK)F)7|TzdeKb?S0H|xrOJqQT>5) zj9`BlnVy*%o-q5vqbmAC7v{*}xo+AYwmz4e)xxCu!xv-x&pM0=x%xpH;rq;t6_wwk zV>T+D^QH>ca|0&p)K7h#&7x^*-#01NR}9wsoF#^q0gYsTf#4a5SV zj8oF*h+}*XjL#f38Lx$}veAqO=K`y!aH0=MtIvPzP>U;z3pnpz2&sRxWVxr|Edac-1~kI-$@+zH^BYl z%O>}!A5?ENSN^=Upb@(AL~4o4$D(Gb?_xCZPEzGh4oxmqaJ=+c<-C9 Nv-9+JSWh^v^at{NK)e6| literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-042/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-042/tnlsys.out new file mode 100644 index 000000000..4dbc433ff --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-042/tnlsys.out @@ -0,0 +1,72 @@ +{ + "ioctls": [ + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6tnl0", + "in": "00000000000000000000000000000000020000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036746e6c30000000000000000000000000002900000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6gre0", + "in": "00000000000000000000000000000000030000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667726530000000000000000000000000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6_vti0", + "in": "00000000000000000000000000000000040000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6970365f767469300000000000000000000000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t1", + "in": "000000000000000000000000000000000d0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743100000000000000000000000c00000029040100000123454300030020010db800000000000000000000000120010db8000000000000000000000002000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t2", + "in": "000000000000000000000000000000000e0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743200000000000000000000000000000004024000020000001400030020010db800000000000000000000000120010db8000000000000000000000003000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6g1", + "in": "000000000000000000000000000000000f0000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667310000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000004b000b0000000000900000009" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "vti61", + "in": "00000000000000000000000000000000100000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "767469363100000000000000000000000000000029000000000000000000000020010db800000000000000000000000120010db8000000000000000000000005200020000000000300000004" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "gre6x", + "in": "00000000000000000000000000000000110000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726536780000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000006000000000000000000000000" + } + ], + "run": { + "argv": [ + "ip", + "-s", + "-6", + "tunnel", + "show" + ], + "rc": 0, + "stdout": "ip6tnl0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\nRX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts\n 0 0 0 0 0 0 \nTX: Packets Bytes Errors DeadLoop NoRoute NoBufs\n 0 0 0 0 0 0 \nip6gre0: gre/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\nRX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts\n 0 0 0 0 0 0 \nTX: Packets Bytes Errors DeadLoop NoRoute NoBufs\n 0 0 0 0 0 0 \nip6_vti0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\nRX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts\n 0 0 0 0 0 0 \nTX: Packets Bytes Errors DeadLoop NoRoute NoBufs\n 0 0 0 0 0 0 \nip6t1: ipv6/ipv6 remote 2001:db8::2 local 2001:db8::1 dev d0 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 (flowinfo 0x00012345) allow-localremote\nRX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts\n 0 0 0 0 0 0 \nTX: Packets Bytes Errors DeadLoop NoRoute NoBufs\n 0 0 0 0 0 0 \nip6t2: ip/ipv6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit (flowinfo 0x02000000) dscp inherit\nRX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts\n 0 0 0 0 0 0 \nTX: Packets Bytes Errors DeadLoop NoRoute NoBufs\n 0 0 0 0 0 0 \nip6g1: gre/ipv6 remote 2001:db8::4 local 2001:db8::1 encaplimit 4 hoplimit 64 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) key 9\n Drop packets out of sequence.\n Checksum in received packet is required.\n Sequence packets on output.\n Checksum output packets.\nRX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts\n 0 0 0 0 0 0 \nTX: Packets Bytes Errors DeadLoop NoRoute NoBufs\n 0 0 0 0 0 0 \nvti61: ipv6/ipv6 remote 2001:db8::5 local 2001:db8::1 encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) ikey 3 okey 4\nRX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts\n 0 0 0 0 0 0 \nTX: Packets Bytes Errors DeadLoop NoRoute NoBufs\n 0 0 0 0 0 0 \ngre6x: gre/ipv6 remote 2001:db8::6 local 2001:db8::1 encaplimit 4 hoplimit 64 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\nRX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts\n 0 0 0 0 0 0 \nTX: Packets Bytes Errors DeadLoop NoRoute NoBufs\n 0 0 0 0 0 0 \n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-043/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-043/cmd.json new file mode 100644 index 000000000..e0c477c0a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-043/cmd.json @@ -0,0 +1,79 @@ +{ + "axes": { + "fix": "tnl6", + "json": "0", + "words": "-o -6 tunnel show" + }, + "cmd": "ip -o -6 tunnel show", + "desc": "corner: opt=plain cmd=tnl6:-o_-6_tunnel_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": "tunnel/ec-043", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -o -6 tunnel show", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "rc": 0 + }, + { + "cmd": "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "rc": 0 + }, + { + "cmd": "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "rc": 0 + }, + { + "cmd": "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-043/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-043/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-043/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-043/ip.out new file mode 100644 index 000000000..94968692a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-043/ip.out @@ -0,0 +1,8 @@ +ip6tnl0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) +ip6gre0: gre/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) +ip6_vti0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) +ip6t1: ipv6/ipv6 remote 2001:db8::2 local 2001:db8::1 dev d0 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 (flowinfo 0x00012345) allow-localremote +ip6t2: ip/ipv6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit (flowinfo 0x02000000) dscp inherit +ip6g1: gre/ipv6 remote 2001:db8::4 local 2001:db8::1 encaplimit 4 hoplimit 64 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) key 9\ Drop packets out of sequence.\ Checksum in received packet is required.\ Sequence packets on output.\ Checksum output packets. +vti61: ipv6/ipv6 remote 2001:db8::5 local 2001:db8::1 encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) ikey 3 okey 4 +gre6x: gre/ipv6 remote 2001:db8::6 local 2001:db8::1 encaplimit 4 hoplimit 64 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-043/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-043/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..81e752279db6db925c16dc52739462969c275b1c GIT binary patch literal 10896 zcmeI2J!lj`6vyA*Ud*>fIj|B^sgNd#;S%rzTO0AC5iK-g2+{M5$)Q$qg@Q;zl3pRA zh=`SlT8SZzkj6r+PHZehMJ)t{sPX@wolTaTz0IA;9tSrMc6V-e-rVfl-68%1r!`X3S^ z9g-00&;3n6Kj}KqKOo$TG>R*k3+&hX&AKKvPDdJ`NtsQwp-!F8r%=1JByw%nY5ANL z`RI!LK>w8eYVW9)Z0&DLkl9UMTbAW+Lh^?l{Ike0H9n=d+@5-;K6!Ovd)0?N(Xqqp zSB*~Bl`8vv<-ex=qIXrxzXAn)t9Y&azhIwi)#tdfJvR0qXu%19faIdKfpcoR=8iBFuA8b83}IW#&S=K z*0)rT`+k>mYF?XLb3Z&bRGRw-6>vX!-{hY9LFQQwa<7JB=X-re>gx~}_rF8tdp@r7 z+Pv-Fe1Gy%ZbXGtrRMy;3fMoGG1;en6#Mi88|%~;^ZwPw#r}7beMD6v2`^Mvu?{Bu z+~8=p5z{}dfcJ&HChvt+cvsiH#<`yUu9w zXHB-L7sa-+^%~hIGG2|?eZ3hEt_7Cw5*PXqo0s?Oupaw380WnU%geW;ep(N@#mm#=dhnY$ znog(vxjw~%L*Ae0xP`tEm6yK>?k}G(xu<^A+-`F;0gKmJF%Ir&LateVV$GTawA_l< ztYLn^rERfa^rEhmUzGd4Y65<7amMru`@RaswGwK9xctK8zTd@X0ma-8M?DX2>E{6l z9`!t!1owybncP!9>Up3HVq<+}hI-pok9)`MfN_KKJ>FHNqqz6uAl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/ec-043/tnlsys.out @@ -0,0 +1,72 @@ +{ + "ioctls": [ + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6tnl0", + "in": "00000000000000000000000000000000020000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036746e6c30000000000000000000000000002900000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6gre0", + "in": "00000000000000000000000000000000030000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667726530000000000000000000000000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6_vti0", + "in": "00000000000000000000000000000000040000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6970365f767469300000000000000000000000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t1", + "in": "000000000000000000000000000000000d0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743100000000000000000000000c00000029040100000123454300030020010db800000000000000000000000120010db8000000000000000000000002000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t2", + "in": "000000000000000000000000000000000e0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743200000000000000000000000000000004024000020000001400030020010db800000000000000000000000120010db8000000000000000000000003000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6g1", + "in": "000000000000000000000000000000000f0000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667310000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000004b000b0000000000900000009" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "vti61", + "in": "00000000000000000000000000000000100000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "767469363100000000000000000000000000000029000000000000000000000020010db800000000000000000000000120010db8000000000000000000000005200020000000000300000004" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "gre6x", + "in": "00000000000000000000000000000000110000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726536780000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000006000000000000000000000000" + } + ], + "run": { + "argv": [ + "ip", + "-o", + "-6", + "tunnel", + "show" + ], + "rc": 0, + "stdout": "ip6tnl0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\nip6gre0: gre/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\nip6_vti0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\nip6t1: ipv6/ipv6 remote 2001:db8::2 local 2001:db8::1 dev d0 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 (flowinfo 0x00012345) allow-localremote\nip6t2: ip/ipv6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit (flowinfo 0x02000000) dscp inherit\nip6g1: gre/ipv6 remote 2001:db8::4 local 2001:db8::1 encaplimit 4 hoplimit 64 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) key 9\\ Drop packets out of sequence.\\ Checksum in received packet is required.\\ Sequence packets on output.\\ Checksum output packets.\nvti61: ipv6/ipv6 remote 2001:db8::5 local 2001:db8::1 encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) ikey 3 okey 4\ngre6x: gre/ipv6 remote 2001:db8::6 local 2001:db8::1 encaplimit 4 hoplimit 64 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-044/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-044/cmd.json new file mode 100644 index 000000000..d7402638a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-044/cmd.json @@ -0,0 +1,79 @@ +{ + "axes": { + "fix": "tnl6", + "json": "0", + "words": "-6 tunnel show ip6t1" + }, + "cmd": "ip -6 tunnel show ip6t1", + "desc": "positive: opt=plain cmd=tnl6:-6_tunnel_show_ip6t1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/ec-044", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -6 tunnel show ip6t1", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "rc": 0 + }, + { + "cmd": "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "rc": 0 + }, + { + "cmd": "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "rc": 0 + }, + { + "cmd": "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-044/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-044/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-044/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-044/ip.out new file mode 100644 index 000000000..10c4b5ee9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-044/ip.out @@ -0,0 +1 @@ +ip6t1: ipv6/ipv6 remote 2001:db8::2 local 2001:db8::1 dev d0 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 (flowinfo 0x00012345) allow-localremote \ No newline at end of file diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-044/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-044/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..0a836a18650e297d6f27fc2f5908bcf8391a6476 GIT binary patch literal 168 zcmca|c+)~A1{MYcU}5+Rhedhp<}H+v8f@gSm5S^xh@Qo~L*-L=iKu=60v>}1~T|aF zDfuTU`GX%_?^2i6kGD%F%G@O7^zjf#2MT+{a=Ouub-}b3qZ+3r4bY^_*{!Hk=iLly3k8wILlk-YOnh6Poxic{i@OV zb*0KdU+%YTQ1q^9<5#HQ-zr`!|1aDpTlH9u><=|J#my~nRCa*3|C3CFW&^0C{L&b= z91`jBB%~FjjZJ3rD*I4%sk6s?$uDteDB|p`Z^@V{d&ZF&&Rdv zo43uI?}x7B$5cpFYR>Pefc^KgI{Va*W1oItVx9V8KDgSX*#EAxkElw-_Cj?P>tMpq z4^MV#G5ul%yszETd0*XxcXjPsoa^aNftc7nute=2lj5E0+rwDj-pBfuTk-lf${)DK z2>Zjx^vvY&xb6>+EAWTGv&J84pTgQ1VN(9^Rh$1C9p;2w|I(Wf`^=2xRovs}Y*aqy zZ3V3V&graE-^4n#!&fbhBq`QcHP-u_7F_tUB2lCTtdHj|Phe_Sj4$E&5SO!jj@-?O zYdYK1i(^~adW&(5S_}9$&BQgeL~s09l44uW%Ug)uMOJ*anU}u^u9=sI8;Au!nWtn7 z9>@4gFrL1tGhU6@eY+VCuLU;l5*PXqlb84GupRp(80Wo<%FDN*e%2p!vzMpIci}g4 zG#ysk3;z@k7I|Or;}-fxTweYaxL+91xu<^I+-`C-A&b{pF$wNzLatfQV9lBWwA_l< ztWkc!rERfabfd16UzGd4>NWi0(*xZv%=;=B*GQxVlJX0k`(6j11r&2X8uvW7>pu@T z@VMu}8*qQ*w$45EjXb@A0lG8^?VR2l1Z7alZua-8(w> zCJw4Mn#;f5>T%!e?8dOd+~ZwU_A2U1#X04EpRf$>Pae~`H{U0e&q2MlOp5yq4Cx?i z6MS||Z K+F?J%d8NO-x>M2s literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-045/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-045/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-045/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-045/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-045/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..36954f54f285d8723a46cbb915b04d221f8e2075 GIT binary patch literal 10896 zcmeI2PiPZC6vp3XQ|(`klB>{D^;p}|RuB;{(u*KoiXgRODaF{9Hi~#!^eh&ydZ<*P zh$pF4L9wM5K@T20_GSeYDIP>rl=ywKvvtXAwu$YAK<2@2CbRPYMhQVK$9|?YDJy8?qyM1D2Oa}pOdBQA|G9m zZ|I+LRGl5wlC6WI0GZwGw`E!8QsSL-@XI2DYJ5s@qdoP`e)j94&Z-Z6A+z7_SB*~B zl`02)dF#DF(Z8#WZ=r&IRJ>RIUbs)T>Tz7@2sO9G%`I?Pc7V74lWc@$1E{3@Fc^1S z66x_Gq!px%P4?!;bDffnc;e*!VFS6x2}16vAL1T*KKGBo{h3oH_tYmN;e*^*?rG8b zmg;fe=WnBoQA4zflJ7T`)>)O-i zZS&{*q09L(6;hR&^Lr{_|ILiaKK0|+rytl@r@ojE?lvj*znbhLsuD^0p}LB7FyZHi zCp(Rpez5}H*KV4;uWrJ-y7w*4_4KDeY-}G`qV_+N;+^Z;OIY9D!}^v-@%lE(AGpQ{ z`@_i8^yKik=?@Po@Q1OQvUG8nExAH=7crIG#rpNLs?$J3LmCt!q z0qZ|=ChOFV$6lnqLiU#^q`ylJWc)}zB5PD z?zBDCm-yk3_XQod&^O}p^3TEj!hp#=_2cGto1+O?yv~YAa8DC*&H4#z)-<5yQM_i2 z@(V6)i~XVtb*22G-2bayz%Sn4H~qr?Uj^e@iL^jceqnOo=VDtxG54c!?}Iz~eZYao zy$@c3`$M-(?x`R5K2Qd+vA!}xy`8GZz2jzJ-0*yl|EhZ9xDVnWK9e}^m%zPu+vMKH zLG?y+`S)8r?)%(57*?2j{8!a`1$Cw3oO1UkEQ9+KM@;VR{)F;5sJE6$ai4`DU1V*7 zJ(sjA*90H1aehwUj`It0=v`=kkh3;S8$q#wRp_}hiK`R|N& J*iUg@=`a0QLl^)6 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-045/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-045/tnlsys.out new file mode 100644 index 000000000..39585b9f2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-045/tnlsys.out @@ -0,0 +1,24 @@ +{ + "ioctls": [ + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t1", + "in": "697036743100000000000000000000000d0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743100000000000000000000000c00000029040100000123454300030020010db800000000000000000000000120010db8000000000000000000000002000000000000000000000000" + } + ], + "run": { + "argv": [ + "ip", + "-s", + "-6", + "tunnel", + "show", + "ip6t1" + ], + "rc": 0, + "stdout": "ip6t1: ipv6/ipv6 remote 2001:db8::2 local 2001:db8::1 dev d0 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 (flowinfo 0x00012345) allow-localremote\nRX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts\n 0 0 0 0 0 0 \nTX: Packets Bytes Errors DeadLoop NoRoute NoBufs\n 0 0 0 0 0 0 \n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-046/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-046/cmd.json new file mode 100644 index 000000000..9b76537f8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-046/cmd.json @@ -0,0 +1,79 @@ +{ + "axes": { + "fix": "tnl6", + "json": "0", + "words": "-6 tunnel show name ip6g1" + }, + "cmd": "ip -6 tunnel show name ip6g1", + "desc": "positive: opt=plain cmd=tnl6:-6_tunnel_show_name_ip6g1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/ec-046", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -6 tunnel show name ip6g1", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "rc": 0 + }, + { + "cmd": "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "rc": 0 + }, + { + "cmd": "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "rc": 0 + }, + { + "cmd": "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-046/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-046/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-046/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-046/ip.out new file mode 100644 index 000000000..ec69252af --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-046/ip.out @@ -0,0 +1,5 @@ +ip6g1: gre/ipv6 remote 2001:db8::4 local 2001:db8::1 encaplimit 4 hoplimit 64 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) key 9 + Drop packets out of sequence. + Checksum in received packet is required. + Sequence packets on output. + Checksum output packets. \ No newline at end of file diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-046/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-046/ip.pcap new file mode 100644 index 0000000000000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(oIltA`=92`IiK=z?9&dcuahq3gV83%{!f#AcvT`9-&I$>4krA{ zM7huK>7O*f`<2@!?`zxeuExH@xt{hEB3XV9ap#ct$J%e9ZN$apUxWLxizfG!kDJ?Vj3%VDA1!5#fRV8`R$ z2XDdsT-oHF@^SA2r4Z}uD>bAoYaaKG+XLl>{UCg+D#URg_(6OoaooQL_YZHF+*>~= zZ8Xwk?(P2x^>dK6mPv7+haz1>ZGwL; Gsn@?^e>Y?R literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-048/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-048/tnlsys.out new file mode 100644 index 000000000..6932fcc7b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-048/tnlsys.out @@ -0,0 +1,73 @@ +{ + "ioctls": [ + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6tnl0", + "in": "00000000000000000000000000000000020000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036746e6c30000000000000000000000000002900000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6gre0", + "in": "00000000000000000000000000000000030000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667726530000000000000000000000000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6_vti0", + "in": "00000000000000000000000000000000040000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6970365f767469300000000000000000000000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t1", + "in": "000000000000000000000000000000000d0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743100000000000000000000000c00000029040100000123454300030020010db800000000000000000000000120010db8000000000000000000000002000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t2", + "in": "000000000000000000000000000000000e0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743200000000000000000000000000000004024000020000001400030020010db800000000000000000000000120010db8000000000000000000000003000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6g1", + "in": "000000000000000000000000000000000f0000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667310000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000004b000b0000000000900000009" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "vti61", + "in": "00000000000000000000000000000000100000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "767469363100000000000000000000000000000029000000000000000000000020010db800000000000000000000000120010db8000000000000000000000005200020000000000300000004" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "gre6x", + "in": "00000000000000000000000000000000110000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726536780000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000006000000000000000000000000" + } + ], + "run": { + "argv": [ + "ip", + "-6", + "tunnel", + "show", + "mode", + "ip6gre" + ], + "rc": 0, + "stdout": "ip6gre0: gre/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\nip6g1: gre/ipv6 remote 2001:db8::4 local 2001:db8::1 encaplimit 4 hoplimit 64 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) key 9\n Drop packets out of sequence.\n Checksum in received packet is required.\n Sequence packets on output.\n Checksum output packets.\ngre6x: gre/ipv6 remote 2001:db8::6 local 2001:db8::1 encaplimit 4 hoplimit 64 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-049/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-049/cmd.json new file mode 100644 index 000000000..7ac0bf429 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-049/cmd.json @@ -0,0 +1,79 @@ +{ + "axes": { + "fix": "tnl6", + "json": "0", + "words": "-6 tunnel show mode ip6ip6" + }, + "cmd": "ip -6 tunnel show mode ip6ip6", + "desc": "positive: opt=plain cmd=tnl6:-6_tunnel_show_mode_ip6ip6", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/ec-049", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -6 tunnel show mode ip6ip6", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "rc": 0 + }, + { + "cmd": "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "rc": 0 + }, + { + "cmd": "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "rc": 0 + }, + { + "cmd": "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-049/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-049/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-049/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-049/ip.out new file mode 100644 index 000000000..1f207508f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-049/ip.out @@ -0,0 +1,4 @@ +ip6tnl0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) +ip6_vti0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) +ip6t1: ipv6/ipv6 remote 2001:db8::2 local 2001:db8::1 dev d0 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 (flowinfo 0x00012345) allow-localremote +vti61: ipv6/ipv6 remote 2001:db8::5 local 2001:db8::1 encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) ikey 3 okey 4 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-049/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-049/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..b2fd5428991707a8933e2a95ef5a17ac4e30cf3f GIT binary patch literal 10896 zcmeI2KTH%s6vp4)9(w#!G}o$BYOGMmL1BS3#?p?$1W^gOh(O?i+FfC#jnU3%f)Nc- zD>cSaLqlSrg_WVSFoqZ;Bw_^d`(|fxv$MC{346KZ<|Vr~H#=``_U-S@zIivF=3YEZ zNm~9%TGsL9#QXH+Lw_>Tfie$CyFL8yr5%O+;<%k?$GRq-0z&;h=zrWJ>Imz9Nr|*c zN~oWAT%}Z;H#S6mbY75qH$}d> zA}i>h(yPvnYRT6Au>qOh>$PQB9;Kvs*1<1}^sDhH#m)BAJO9nAi#n@5^o6z~UcYK| zx~^2&@2mJd=NG-Z+WZzM=tsqSqvE0+5 z^)1!ozT4%TTGZy&+z(F-mF9l70`6z8o7_`B$UMtI?$uE2e6OEKeSIXw{aVC)&)0QP zo43`Q?+2y|c@eG*HT~gf1^%#n(fUK}Q&>AAOv)b?jrl+0GAC5jx88`@XEI+?R z1+1?Rn5UX9p&rx_2f1vZ}&7y1yJm-p2|xD*WQy6Vos3|5Y%ql}HODQ>U@3?I+Zg9TGe^t3S?)^B3&m@lf-{Af+Iu7s4 zv2jqn(OmxhR*(B`cOQlo#1c@PF#Kidj&(6kWXK!<7vd6*AgWa2(oi{i8_V;Gryqk}+ zFCU~NE&n7ftN7CXK7FBcPe$5M<{@dfn;*WkqOe;Ww*&21*T_>qsDBFjA9jd3!unrQ zA}x{<>VI}z=%-x=`X_{Ek?rEj@F@HBzO$}gjnk1jXi_Fq8Puukg)C~<)CtMMtt_4d>|`^~G1I;%ePg_eU} zziM>4u2|XctMEPN7rnb${}w3dN5y;P?*;p0t4`SRK%luTZft?0vJJfbpJXF6>p&%C z*@XLaNrCkVNxet>)EdE766`@?rk?x{~kf(N;= z+|#19EtTWG%jKL}(B{_M4~`EM=YF~j?x!bA?x`PSp5-9-YAANT*H5IjK9b^oC1Sqk z>$;%L+w9Hvy_fStDx@kl=XaLD{`^goed@=tPd~7+PHi#o-)&OtFPQ8jsuD?gp}LB7 zFyZI>#@dXSex?lG_xG5*&uzfFy7x`a_4FrSY;5maqWV9R;+^Z;Ygpe-VSURZyuOX{ z2d*)K{xC3pX{>L=^oJ*9_`~8k>krjWVfBnKDSwzZ=Kp$^IiZ5S^#;T~mxl5x?$J3L zmCt!s2J5T6ChOF>ZcS0Z-bYQ}?Wf%T`vg+9dQXGPyM*L-R5Wl7O$~l65P{-T(kbcnl%k* zd4$)jQGUUtZP+i`QCG|_O8viT8Gdo*vFR7~|0)>QN~8sn@(YvuE*IMZ!rTwWy$|l` z_W=hU_dfW=IOx8~J@w<>2g)Ee)>mezwNvG|cia{jH#pzpzp7ju_kJA2XA;N#Z*czz z9f$Yj*f^-xXfFMJE6078y9>h#a*zM2a#vATEY2x)f5Hm5KmOF@-tJE*or79ynH2X~ z7}7=7#@};EyK+tNVsA#cxl?WM4DItggnI1rR61-=;nKmEdf6up2wd3D%m)4N-NN7Q P?VotgXovlT^GbgK>JLaf literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-049/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-049/tnlsys.out new file mode 100644 index 000000000..b6e132b1f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-049/tnlsys.out @@ -0,0 +1,73 @@ +{ + "ioctls": [ + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6tnl0", + "in": "00000000000000000000000000000000020000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036746e6c30000000000000000000000000002900000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6gre0", + "in": "00000000000000000000000000000000030000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667726530000000000000000000000000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6_vti0", + "in": "00000000000000000000000000000000040000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6970365f767469300000000000000000000000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t1", + "in": "000000000000000000000000000000000d0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743100000000000000000000000c00000029040100000123454300030020010db800000000000000000000000120010db8000000000000000000000002000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t2", + "in": "000000000000000000000000000000000e0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743200000000000000000000000000000004024000020000001400030020010db800000000000000000000000120010db8000000000000000000000003000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6g1", + "in": "000000000000000000000000000000000f0000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667310000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000004b000b0000000000900000009" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "vti61", + "in": "00000000000000000000000000000000100000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "767469363100000000000000000000000000000029000000000000000000000020010db800000000000000000000000120010db8000000000000000000000005200020000000000300000004" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "gre6x", + "in": "00000000000000000000000000000000110000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726536780000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000006000000000000000000000000" + } + ], + "run": { + "argv": [ + "ip", + "-6", + "tunnel", + "show", + "mode", + "ip6ip6" + ], + "rc": 0, + "stdout": "ip6tnl0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\nip6_vti0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\nip6t1: ipv6/ipv6 remote 2001:db8::2 local 2001:db8::1 dev d0 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 (flowinfo 0x00012345) allow-localremote\nvti61: ipv6/ipv6 remote 2001:db8::5 local 2001:db8::1 encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) ikey 3 okey 4\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-050/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-050/cmd.json new file mode 100644 index 000000000..1e2c87e14 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-050/cmd.json @@ -0,0 +1,79 @@ +{ + "axes": { + "fix": "tnl6", + "json": "0", + "words": "-6 tunnel show mode ipip6" + }, + "cmd": "ip -6 tunnel show mode ipip6", + "desc": "positive: opt=plain cmd=tnl6:-6_tunnel_show_mode_ipip6", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/ec-050", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -6 tunnel show mode ipip6", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "rc": 0 + }, + { + "cmd": "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "rc": 0 + }, + { + "cmd": "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "rc": 0 + }, + { + "cmd": "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-050/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-050/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-050/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-050/ip.out new file mode 100644 index 000000000..34a6ea2fb --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-050/ip.out @@ -0,0 +1 @@ +ip6t2: ip/ipv6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit (flowinfo 0x02000000) dscp inherit diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-050/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-050/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..c8968694fcd6d767df0ad6875547d80433dc19b1 GIT binary patch literal 10752 zcmeI2KWG#|6vp4)Tr^((80GAPg|;yXmlPIiXQ3d1Xr&3p5E7G+96`ISQi<3qDIyvO zno2}0l{A8lg=I<$5fux;NYwNDW@qDav$wf3+2demU}xuM=k3kB`MudUZ}+q-`EguZpvMi5s;$QIa&mxy~|FqzCd&*t=6x7A#`X1&&&+*{Cx_73o zRyn+v|FskrgHdh&iWJOLajg8m=snqL5V|}TY3_i#>x9y8@We@MD8gc;U01U_dme>r7Je~lqVz6gWNdosnKkw z=5aryxTg9>-G=+|xv|>ZuQtH_`e~bc%14=JIm*56id*l^jAZMS7Wcnm)_Xp#eWTv4 zV7s|UadM{um&G|L0L~n9m(qh|=%X{$MMb-`5jLTmK*Nn@<48#MVj8oDFPhxxv zjIZ9Y*Y9Td?t9I6bT6Re@b>ow4o0y|03DU5eE}T6SS`Kcw(kKsEQ{Nza2N^E_b3lb#1M zI4Uc*ZSEpGal66HrA|E^o~Q7Qky7wHjS zD1XRTkk2U(@*~1rWUnZhp5=YR->hrb{q&>_l1xi}7wYu&pn%$PS!82iOb(wF`KUy` zc#CQXxUI4OB91Sd4p$ zLpZ6o){kjOpdW86b7Iirz76ks>^ofRX-`pdzI~*L=09h}JNLI!*xx?F{+37O{x-=TxW|aw z!}$D-xzQQh9v;_W56e%SJv2Xs&C|oI?BTPu{+2Tl!>SVlf2~Or=>+RD)7NLQv}?v+;rWmjv;2wJ&9wwS zo^okyYhCZquhDw}GilDRX(oEp`;rygc3j?r?=G@t*k)Y*D!67`9%djO0A-w#K6o1A zn_zt9j=g?2!gt?o#^ZZ|ty$tmAIZh#Lp|(9o(1EayQH{$9`*N3r#r$pP3bs(Ge*~V#O@DrwX}eeThA54$$(b+_NUx z1-G`9cF~WzYIafU`>HbRV)Kk`7w&x(lVb0O>pk9871Own{2E$%$Ni8xfNsUP$GfWHP1IHMb87uQL4o@(t2X!U`-Iv#XtkDEabJKU6{0rL IH<#4wU;Gm*F#rGn literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-050/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-050/tnlsys.out new file mode 100644 index 000000000..7df5147b4 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-050/tnlsys.out @@ -0,0 +1,73 @@ +{ + "ioctls": [ + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6tnl0", + "in": "00000000000000000000000000000000020000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036746e6c30000000000000000000000000002900000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6gre0", + "in": "00000000000000000000000000000000030000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667726530000000000000000000000000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6_vti0", + "in": "00000000000000000000000000000000040000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6970365f767469300000000000000000000000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t1", + "in": "000000000000000000000000000000000d0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743100000000000000000000000c00000029040100000123454300030020010db800000000000000000000000120010db8000000000000000000000002000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t2", + "in": "000000000000000000000000000000000e0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743200000000000000000000000000000004024000020000001400030020010db800000000000000000000000120010db8000000000000000000000003000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6g1", + "in": "000000000000000000000000000000000f0000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667310000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000004b000b0000000000900000009" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "vti61", + "in": "00000000000000000000000000000000100000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "767469363100000000000000000000000000000029000000000000000000000020010db800000000000000000000000120010db8000000000000000000000005200020000000000300000004" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "gre6x", + "in": "00000000000000000000000000000000110000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726536780000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000006000000000000000000000000" + } + ], + "run": { + "argv": [ + "ip", + "-6", + "tunnel", + "show", + "mode", + "ipip6" + ], + "rc": 0, + "stdout": "ip6t2: ip/ipv6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit (flowinfo 0x02000000) dscp inherit\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-051/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-051/cmd.json new file mode 100644 index 000000000..7d787808f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-051/cmd.json @@ -0,0 +1,79 @@ +{ + "axes": { + "fix": "tnl6", + "json": "0", + "words": "-6 tunnel show mode vti6" + }, + "cmd": "ip -6 tunnel show mode vti6", + "desc": "positive: opt=plain cmd=tnl6:-6_tunnel_show_mode_vti6", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/ec-051", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -6 tunnel show mode vti6", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "rc": 0 + }, + { + "cmd": "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "rc": 0 + }, + { + "cmd": "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "rc": 0 + }, + { + "cmd": "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-051/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-051/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-051/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-051/ip.out new file mode 100644 index 000000000..1f207508f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-051/ip.out @@ -0,0 +1,4 @@ +ip6tnl0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) +ip6_vti0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) +ip6t1: ipv6/ipv6 remote 2001:db8::2 local 2001:db8::1 dev d0 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 (flowinfo 0x00012345) allow-localremote +vti61: ipv6/ipv6 remote 2001:db8::5 local 2001:db8::1 encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) ikey 3 okey 4 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-051/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-051/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..d31e217e10ac553d7b8252ab413e6673076a1c98 GIT binary patch literal 10896 zcmeI2J!lj`6vyA*+$ERGhcR3$q!1OWd>oe)7J`+Hq9BMMnqUmUcnQfNR(fb-X{{EK zD2TBV6$=YB5Jj65f=x<`Afgr)776kHpPfyXo4w7Q$sPx{4|aEMcHZ3V+uxgg^LD>1 zK7W{yq-;r2*70NDbMnfS{UzuxcZuH0^}i)V zx+Njhf9xpeCzS*J|vpK?_19o>?xy=?bjra$i=5Tt(~6tzsdw?aTNkv~eV7y72i<=4 z=uBOuve#GXXWlEiSGD=eS1`AV*UJC%_sLc{*z$m{d0gDy0!O3;y#1eK12j{hlJeJL z+)*U5#FLN?kTx-$FBT^IBpYzY$@{YuxyKGd?y2wN9(r5cuO73xr#>0+Z{#NCo)&Fx zsUP=4igRkonA>naJ~LLC`zJMUzi`{;p89^~S@v_UhZ4{C=8iPiAu8_I0_J-@u1m(e zo$h>p;aYJ*hg6m3{9Fy}-#lZpPyI0V=?8JF(_GAZR~r@kzisvrRf#0rP+iA5nDC1u z(|uM<|EdPwhi}=uuWZA+zV;o?_4FrC;@IA^MB^W$;+^Z;uUOwc!upn5`T912n|12Pu}m+wUVT{Gy6o2M!E<2Q3O zy-w$AbBYItyuUDU3ws(oLj;1@k7ZNG@$SHZZk1X>^}zp%LJmA2? zo(Cy#UpQ}bPyMjxfi_4S>uWPK+pd1xJE|MT_0RWsSCtRr-iw2HPr|rw1^4go+uX-- zP_xlo{q@$5`ysU#!}4>FcUAf8sH+s`RQr8G8r-+su(^-FPpF=QW@{N0_gNTHA#3A( zb4j~$O>p=_M)+~3{=l>BJI_O?$9JAuhwUj`I(U+nebR=&h5htz(+{65{O|qCpYRqp HIIr{%(0xHz literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-051/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-051/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-051/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-051/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-051/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..24503345a58dc28da699caf42899aba5f272158c GIT binary patch literal 10896 zcmeI2J!lj`6vyB0+$EQfGcjB%q>7d?36~TWf|ZS;Ac!EEU<|={3CST=dT3*5trn43 zh^F!zv`_;g*eJvFl*dYq1=p-Gu{J5i_4mvX4x*brG89FsQ-BCAT| zH~Oa>)_X^{WNUxhfXsJ!ZCREDS4t-w{IkeuJwC0t*`9jmzk79Id)^m44>^qIXrBzXAnwt9Y&azhIwiHRLGi3p7uP+gsp}w1Bt&lU#^q8dOsLT8ul2 zM3#6G(h1TgXY$3uRKMgx?l^g0Op|-;AmpC<0q&u<#r^6Ln|tb$k>Eyd67Ffy=9c<# zKdd;XmW;U#_Ya{F)rS@zU}*(l?Pbgaw}iohWP{67(ss+ zpPic-E!h6>s0M%7b1dPC^X%a;`z&RI?KWVc~ zy(qS|t#=sL=(T{kX-QnuNc2XJB`&t@yu5?hU1Z6y&Aj{taLv3t+&~-v$~+}w@F>P* zXiV;$u^F#N?7rKK2iF3dcZmyqNRpTL?64dAI2h->3(L!AQGeSEy4}mu6c6Gzb2Pn9 z_LVusgG1h*nYe|%5tWyB!TpDeHuuzzn%k2cO~B$!R*ZvtnviSOMXXsUp3IlEnJj49&KyANP*xhH-=QJ>FI2qqz6uAl{QG?pwkA`@1&xNgUK{ zG*^GU_2Yh6?ZvQy+~ZwU{wnG!#W~e}pO69fE!S-BlkXF%=b+hI#>IUOhE&Mf_}^U8 zu3Qs5UC9bR?$jT6mVM`W0QLCJQ|qujg-ZutGO|zF5V)|P*W2{NXAA#(^iS6^qaF5B Ho>%$@_+L9; literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-051/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-051/tnlsys.out new file mode 100644 index 000000000..ed33bbb3c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-051/tnlsys.out @@ -0,0 +1,73 @@ +{ + "ioctls": [ + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6tnl0", + "in": "00000000000000000000000000000000020000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036746e6c30000000000000000000000000002900000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6gre0", + "in": "00000000000000000000000000000000030000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667726530000000000000000000000000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6_vti0", + "in": "00000000000000000000000000000000040000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6970365f767469300000000000000000000000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t1", + "in": "000000000000000000000000000000000d0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743100000000000000000000000c00000029040100000123454300030020010db800000000000000000000000120010db8000000000000000000000002000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t2", + "in": "000000000000000000000000000000000e0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743200000000000000000000000000000004024000020000001400030020010db800000000000000000000000120010db8000000000000000000000003000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6g1", + "in": "000000000000000000000000000000000f0000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667310000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000004b000b0000000000900000009" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "vti61", + "in": "00000000000000000000000000000000100000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "767469363100000000000000000000000000000029000000000000000000000020010db800000000000000000000000120010db8000000000000000000000005200020000000000300000004" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "gre6x", + "in": "00000000000000000000000000000000110000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726536780000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000006000000000000000000000000" + } + ], + "run": { + "argv": [ + "ip", + "-6", + "tunnel", + "show", + "mode", + "vti6" + ], + "rc": 0, + "stdout": "ip6tnl0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\nip6_vti0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\nip6t1: ipv6/ipv6 remote 2001:db8::2 local 2001:db8::1 dev d0 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 (flowinfo 0x00012345) allow-localremote\nvti61: ipv6/ipv6 remote 2001:db8::5 local 2001:db8::1 encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) ikey 3 okey 4\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-052/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-052/cmd.json new file mode 100644 index 000000000..81f7d41d0 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-052/cmd.json @@ -0,0 +1,79 @@ +{ + "axes": { + "fix": "tnl6", + "json": "0", + "words": "-6 tunnel show mode any" + }, + "cmd": "ip -6 tunnel show mode any", + "desc": "positive: opt=plain cmd=tnl6:-6_tunnel_show_mode_any", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/ec-052", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -6 tunnel show mode any", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "rc": 0 + }, + { + "cmd": "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "rc": 0 + }, + { + "cmd": "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "rc": 0 + }, + { + "cmd": "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-052/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-052/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-052/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-052/ip.out new file mode 100644 index 000000000..076238745 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-052/ip.out @@ -0,0 +1,12 @@ +ip6tnl0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) +ip6gre0: gre/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) +ip6_vti0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) +ip6t1: ipv6/ipv6 remote 2001:db8::2 local 2001:db8::1 dev d0 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 (flowinfo 0x00012345) allow-localremote +ip6t2: ip/ipv6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit (flowinfo 0x02000000) dscp inherit +ip6g1: gre/ipv6 remote 2001:db8::4 local 2001:db8::1 encaplimit 4 hoplimit 64 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) key 9 + Drop packets out of sequence. + Checksum in received packet is required. + Sequence packets on output. + Checksum output packets. +vti61: ipv6/ipv6 remote 2001:db8::5 local 2001:db8::1 encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) ikey 3 okey 4 +gre6x: gre/ipv6 remote 2001:db8::6 local 2001:db8::1 encaplimit 4 hoplimit 64 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-052/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-052/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..c68c07e39efe9bdc217eb945402390da827cc3a7 GIT binary patch literal 10896 zcmeI2KWG#|6vp4)-03Bk#2BtrNTq3n7{eunppBr7AXtbXF~JamF$u|`c3xvEDJ(@3 z{DVXb6%i{@(gf02Sf;cPQL(T{5sBY7JDY57_BMAWdmP+6*xlLLd9$-`e>3~$?R;5! zvyhUsY)M-F;-qgSef`zLob)2iP10(Rhd{cK=n_wzKsn~Mau*WnuR;HFhv=FcFDayK?aQvD;+F(>j( ziTpwRl+$|e>5?oRY#WgI1AbYi<#9?%7d+fqes7V zXYwkggStw;3PI9;s?D=d!n`UzEAJPslcoA$%Oj!UF1fP>PRc&;_J5L((9D2J%9_Qv zr$}Up7a?sRZG5^=oSf*De8d|k?=Lgt9y^eCvp)smeEYx>jeksvcg}CS9_8c-=C|C+=eJS)fpd&- ze;A#aogSXF`@>=l{b8i!`a|PW*f=drsz3a&#{aBhObB>tX@T!EJ6_a&kBQmnc+PSS ztRK2!vrc{I>lh=u!!`>f#rmqn`k>0;&Yv`iA~~==IdNkOL%U}DBfbxDF-wJ*W#PQd zHud7z)(^W&zedjmjMbc9vkjkyK1qsgJ1+0RcNbYQY%?x@4O}xWk8U6y0A-w#K6o7C z88AM3(Pq3JzWZJ?9-a$qLc)nY#Kq-(JM6_i3C8*EqT=%H$e%NfZuR3d#p5_Oc-!Trj8n|tcVjqNT*6S8=dC6nNuCghy;80M^LK+COs&KlJ( zIJGVB7k$X9)Gw<2U)6$sard6xFWmns7}rUp1(NC)HunPx%L2-|AB+1QJTTt_HazZo zkOTKUPi^k0ANM`b264W=Hbb-R>c_pOI$_-Kc#nTog*fg5KZx%nj{7!n-#uh=@BE-< zqq+L$tsnOT>L8jG<{tm53b&D0$6Rf$U zT{$OM#GHVOJM{w3vUQ$4$j3TQt;6yZP8|Zt%3*1NY!5nJmHKLUyU}=${ zMln{Rl2S<{rm?V0X(1vaVqu}g@0*=XHaB~lJCi*QZXWFJ?CiYR*|)!$ee-rct-M@F zNm@1~Eq`&+yP6&!U(87l(%dAi26zah3yA~bsbeU|yjJc)Lj8Nt|CkfKmFs^_iF8Uz zsDC-7pr2MA^v??SB6~&2#1!lG&zYCi?eruAP0D<#9eMhCDUaOsb&*uxu;gY%z9^Aj zsGo95?>$|TrGsr9GQZC+%d|X7N$I?YJBwV@?bC`I<*9e&tDhIO*L9c+ok#q7b?Z!C zrF2kN>3bna`cJiS7D|{`#b@RH!gaD#pQq$-sJKgRZ-EoC2fY2CyQ-petMhy4o&x1 zKK+{-cwZc~d0*Rxcm3=;9P8Pi0&%{5V2Q>*CdE7Fw;wRSeT?}nxAOUIRDa+cBitWG zuFp&lP1^n8c@6zxxa9gn<5So;EljFEe6z;?tYSTwntdPV^xzF7Ml6H}**|&UY6Tm+wIStZ8(sAEzlE#W`a%U0%ns zxx|A<-d`ENg?%F~E}sSWs}F4MsUJ7CyBJN#;!T!Jf_s{fbJpWebCL$M+{)*yQT>8b z+wy+Vi@ZwxqT2seE$A0_?%Vys{jY*?okUt7seWN|->=j@twqR-wy7(25s)0AJl9# zSO2{AfyJA_kO)R_mkcZ>nV>b F{R2AvGl2jA literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-052/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-052/tnlsys.out new file mode 100644 index 000000000..7e6729433 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-052/tnlsys.out @@ -0,0 +1,73 @@ +{ + "ioctls": [ + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6tnl0", + "in": "00000000000000000000000000000000020000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036746e6c30000000000000000000000000002900000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6gre0", + "in": "00000000000000000000000000000000030000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667726530000000000000000000000000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6_vti0", + "in": "00000000000000000000000000000000040000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6970365f767469300000000000000000000000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t1", + "in": "000000000000000000000000000000000d0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743100000000000000000000000c00000029040100000123454300030020010db800000000000000000000000120010db8000000000000000000000002000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t2", + "in": "000000000000000000000000000000000e0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743200000000000000000000000000000004024000020000001400030020010db800000000000000000000000120010db8000000000000000000000003000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6g1", + "in": "000000000000000000000000000000000f0000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667310000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000004b000b0000000000900000009" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "vti61", + "in": "00000000000000000000000000000000100000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "767469363100000000000000000000000000000029000000000000000000000020010db800000000000000000000000120010db8000000000000000000000005200020000000000300000004" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "gre6x", + "in": "00000000000000000000000000000000110000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726536780000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000006000000000000000000000000" + } + ], + "run": { + "argv": [ + "ip", + "-6", + "tunnel", + "show", + "mode", + "any" + ], + "rc": 0, + "stdout": "ip6tnl0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\nip6gre0: gre/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\nip6_vti0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\nip6t1: ipv6/ipv6 remote 2001:db8::2 local 2001:db8::1 dev d0 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 (flowinfo 0x00012345) allow-localremote\nip6t2: ip/ipv6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit (flowinfo 0x02000000) dscp inherit\nip6g1: gre/ipv6 remote 2001:db8::4 local 2001:db8::1 encaplimit 4 hoplimit 64 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) key 9\n Drop packets out of sequence.\n Checksum in received packet is required.\n Sequence packets on output.\n Checksum output packets.\nvti61: ipv6/ipv6 remote 2001:db8::5 local 2001:db8::1 encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) ikey 3 okey 4\ngre6x: gre/ipv6 remote 2001:db8::6 local 2001:db8::1 encaplimit 4 hoplimit 64 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-053/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-053/cmd.json new file mode 100644 index 000000000..fdf40d9cf --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-053/cmd.json @@ -0,0 +1,79 @@ +{ + "axes": { + "fix": "tnl6", + "json": "0", + "words": "tunnel show mode ip6ip6" + }, + "cmd": "ip tunnel show mode ip6ip6", + "desc": "corner: opt=plain cmd=tnl6:tunnel_show_mode_ip6ip6", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/ec-053", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- tunnel show mode ip6ip6", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "rc": 0 + }, + { + "cmd": "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "rc": 0 + }, + { + "cmd": "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "rc": 0 + }, + { + "cmd": "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-053/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-053/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-053/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-053/ip.out new file mode 100644 index 000000000..1f207508f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-053/ip.out @@ -0,0 +1,4 @@ +ip6tnl0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) +ip6_vti0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) +ip6t1: ipv6/ipv6 remote 2001:db8::2 local 2001:db8::1 dev d0 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 (flowinfo 0x00012345) allow-localremote +vti61: ipv6/ipv6 remote 2001:db8::5 local 2001:db8::1 encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) ikey 3 okey 4 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-053/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-053/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..8f12ae717c3fe93a8199cb04834ea5fb445d824b GIT binary patch literal 10896 zcmeI2&ui2`6vtmOTiyQBDti;5y{O=?tzC9|s34y7B6tuK1Z}aDV%?T@ksgEi2Z(3E z)+&fUQA9i{y$B+Rco6JC&_gLAf*ur<`u$Fl8g{bju5Ffu&4VPflXGY!bbd>wmUI zy2KXhf3y|!Q_6z=QQ=->qbM00XTR=m)}{40Eop%!WybD6oj&hmP`kV=vL`nr#S*jdS{p1y0E?O!#mNn)9qJ} z&a10b_WN?a=KZ33RV%*&1@BhzTKRv$KG`Z~DcKQdo)lNNz<_K3Z~rHm5X}})N%?6o zZYdJ!@Fb)Iq>WDGOU1FQWJ2yZdB4{}?y-ZAd+G?5iYvE5Kz$2yqs zOM??xBc^{^1MfF3o4hZq!n?lqHO}?)Cts4--nT^KALHVk>)Z4LTW(@~%dLEU8|DvO zV+8$ScyelDuxR?jof`aM-?79W8lS?(8DU)h@Wq(_(~3DE$Gh}a#6DA_B^~#8IUAkN zd07MNA7)L~sh`9;jl)+XjU+DC7Yx?>RXZ;Hg(gv?9jq6}E{tPp*Ni{M^C2o{xfi*c z#lt4s)Qe(U+j@<0jb00QH!X>48j0TMvBbr;nU}W^yNk?wY%?!^4qP)Y4>u4CfHF_X z7(9yc{b2m6V=`Wk*nPbjr%xKfg+3(7%e!`1k9{1B^WKH!Inyta_f;@%BB2(D%P&ms3kshFlyg54^*p%dJr6kW zsOLcr+;6*Na!>uJ=Ycjz66JL22zVqCLdVJ@pb=aQ5rGqbN*)FXJT-eXZD*f=;!vB8#spl7? K9rjb6SNaR%b3e2I literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-053/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-053/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-053/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-053/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-053/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..a4116034d165348799b97893293468f9b686914b GIT binary patch literal 10896 zcmeI2J!lj`6vyA*+-W{F$`yhLsZ{VQF~?ns2x6s;U?Idx6AU33FCjT3<)M}qVl9{$ z1yLJCMN%ng1RK#5f@uVcaHv>VSSa!TpWThi&EDqDWRHWJ2fH^rJ8y1w=J#gbyq%@R zr*jEO%0EfUA6)dkO5_y{e^4ptCzS*JQ^K>zR#7rO!Ft_m=C$Z{I+B7WWj4`)Jbk~IM(*mW$id98_k z?kEyj9ZpybkYrq&GO%)1G{>zP;ZQjsF`L?_A&R0=W0EzU5KAz74Ynt}%l4Ffuhg zIg~f;;b9H-aQL*fhsLL{aatIcJ$yCh{}#oVP|CV+HN^crhCt&v{b=>!0RK z)~RoOoyOs-ky;WL>&ph~{i+=g{#uhL(hk=1D}Uw zL*AcxehY0QDlXp(?gvhq+*3blZnrU-K#w##h9O9x+CWRJAMabZ25*Qtl^7XJ6QYo+(}c34k&TUPZhslBx$0 z5fKrON-qU39z02p9z>*g5D`)8_s!0>OJ=i8Y&Qfl4|X$|oi~|%`+Ku*UgqP{%f*zW zWkb^P7hi_nr>9mIl?=Y%_v+URZ&boFzPEXpPNhzngQKzq$vZ!5K6B*21lKr@pFQ1@t%G9?Qr_*iWmz7jq;$^1FN>Vl%*$B-xP)Ye^G43f6 zS>i=VH%OZ-N$5mkw#{7_xTI+*Z_V}$`L zrhi=r@1td#_mxd}*Z01~xt{(Mh>Pt5OEmvyQoM70+l%$>W2|p^RIYEM{DEtXus@8? z%@@XIY=3xKhd&&-=KP`gDQun*Cgl&`togrPF(*_qx88x+XMVD%;~tZ<(fOR^I#^%6 zVY5zs7wa?+U(Ga%U=f9%*(?K!~>wrQ!)mRV>}PW zGi96cM#S#h&3Je%u>O>|(1*CZyl;o?I48k4pIua5z6bSp&7eE|JWcU1zB5PD=k>fX zm-yk4_g5xvp>M?Hc`FPE=Loxc#9R2;GQPrnso?k)-<5yQMqP~@(V6) zEB#^+b=CZ$*8i)H!Y|I=wEe>UUj^ejiL^jceqnPztgtPhlKY9c_rZPhKH$LP-Ur9P zeboL0>c_ngv_V{~ug%bEr^a#bsSJ!8p6~HrRX&dUAP(X)iQ|40+#kAa&-X44YBic` zzu(4jKdkm(SYht*Use7(>Z-*#weC+i4(=bEu(@~p6Kdz6)mkRSeHMmP$l3&ZE@@Y; z38t_n;O0)f!LwqYXFuw(&r|ELJ%vk$K-#5OIuN+9pZQJt;k$*uz0mpM6QdpWQ<+!# E2Rb%Ac>n+a literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-054/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-054/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-054/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-054/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-054/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..873df320a407e194202798928005744a2f6353f4 GIT binary patch literal 10896 zcmeI2PiPZC6vp3XlGwi*C3+Kj((0+UF|AlsyolbsdDDueRBKz>pn@JEUPZiHB%%iq z@t{R}RC_6S@t_BxM-L(*B2rY8`hByz?ULDS6Wa}e%!A#`&d!_6&ivl&o450B{^`Ah zBxO~S@)s9vVq5cx|-)fW|6zREYh1hD?4t8d{QDm zP(S5}K0CT3OZ&$%q_o8?%e352Nb#hDe-=5V+ou&*%2V&mXE!hGtn2V@WOlpt>ehLA zmC}A)#jklk=|0uURUqLF6`z&=7p#+|a*mQ+f#No~b`K0n8od3VWJ5Glppx>_VBAq8 zvdEi|4v;oFnJcBRSLXg<4cu>kVscOYAoENIxz{6a=liBKfVjB-6EffPbzSs&xznBRPhTpG zYL}|goS&e=;4c_%guXC=aJ^5mNd%q_d|2Hn)xxU>yo0bPy-|{G5--g)(*BC*27@nG*92z(6 z;ZY6tu>Z2PhsLL{aatIcJ$y0d{}#oVP|CqXq5vcrhCt&snH}^@Xb@>(sZt zPUG;^NG*wr^+kjA0o9HNf2BzjX$R}$V;3hdwQI&-;{6a6v+P66@>s!Sn|e`f>%Ly6 zU!&Io-k@2(rjh84ZcAKjn{jyuzPrf0$2Q~g=fE}N@-PE&04U>>^uePT&x7$y$z;49 zzWYWq9$X8oj1m|65F3|w`(Y!_aWKxY3yaHlBLBA6=r%V_Q`m=V#%Q{n&N=TEe;o2Y z>-jCTji|W%0J!hIWpYpbsJY$7XaYUnWXU+VXBTqKI)gQ9643G}U$chU1(&wvcF~Kx zN_J80_o@T1ixbyOyRhG@(79GZdmt{mFuCtn*cMRE{YcdNV8(kNu;EefgM;8cY<~jv zquvL)L#(f_yP?@m_2b@A8FX%NzQ?z!d=&S-AH*?<;(id^@40Et_tp<;Hkzw{-uiLh zuePFDLGJObDt`remHeD)_a__z_jeDQ+}r&L)pO8nCF9~gi;h%?+W31e*{@s^{C<%Z zZtm0@Jj?cZb|WAAJhcwXQ@C{SrA2m1D;yWrqvoRP;k$+Z{p-W`*YtK+PkCJFAG}35 A*Z=?k literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-054/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-054/tnlsys.out new file mode 100644 index 000000000..ffe9b86db --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-054/tnlsys.out @@ -0,0 +1,73 @@ +{ + "ioctls": [ + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6tnl0", + "in": "00000000000000000000000000000000020000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036746e6c30000000000000000000000000002900000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6gre0", + "in": "00000000000000000000000000000000030000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667726530000000000000000000000000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6_vti0", + "in": "00000000000000000000000000000000040000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6970365f767469300000000000000000000000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t1", + "in": "000000000000000000000000000000000d0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743100000000000000000000000c00000029040100000123454300030020010db800000000000000000000000120010db8000000000000000000000002000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t2", + "in": "000000000000000000000000000000000e0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743200000000000000000000000000000004024000020000001400030020010db800000000000000000000000120010db8000000000000000000000003000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6g1", + "in": "000000000000000000000000000000000f0000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667310000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000004b000b0000000000900000009" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "vti61", + "in": "00000000000000000000000000000000100000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "767469363100000000000000000000000000000029000000000000000000000020010db800000000000000000000000120010db8000000000000000000000005200020000000000300000004" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "gre6x", + "in": "00000000000000000000000000000000110000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726536780000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000006000000000000000000000000" + } + ], + "run": { + "argv": [ + "ip", + "-6", + "tunnel", + "show", + "remote", + "2001:db8::2" + ], + "rc": 0, + "stdout": "ip6t1: ipv6/ipv6 remote 2001:db8::2 local 2001:db8::1 dev d0 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 (flowinfo 0x00012345) allow-localremote\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-055/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-055/cmd.json new file mode 100644 index 000000000..bd69b1c98 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-055/cmd.json @@ -0,0 +1,79 @@ +{ + "axes": { + "fix": "tnl6", + "json": "0", + "words": "-6 tunnel show local 2001:db8::1" + }, + "cmd": "ip -6 tunnel show local 2001:db8::1", + "desc": "positive: opt=plain cmd=tnl6:-6_tunnel_show_local_2001:db8::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": "tunnel/ec-055", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -6 tunnel show local 2001:db8::1", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "rc": 0 + }, + { + "cmd": "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "rc": 0 + }, + { + "cmd": "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "rc": 0 + }, + { + "cmd": "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-055/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-055/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-055/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-055/ip.out new file mode 100644 index 000000000..dd3176d9b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-055/ip.out @@ -0,0 +1,9 @@ +ip6t1: ipv6/ipv6 remote 2001:db8::2 local 2001:db8::1 dev d0 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 (flowinfo 0x00012345) allow-localremote +ip6t2: ip/ipv6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit (flowinfo 0x02000000) dscp inherit +ip6g1: gre/ipv6 remote 2001:db8::4 local 2001:db8::1 encaplimit 4 hoplimit 64 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) key 9 + Drop packets out of sequence. + Checksum in received packet is required. + Sequence packets on output. + Checksum output packets. +vti61: ipv6/ipv6 remote 2001:db8::5 local 2001:db8::1 encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) ikey 3 okey 4 +gre6x: gre/ipv6 remote 2001:db8::6 local 2001:db8::1 encaplimit 4 hoplimit 64 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-055/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-055/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..459ba07c45e6651af88553d9bfb9fad4b0d96ef6 GIT binary patch literal 10896 zcmeI2J!lj`6vyA*Y&4%5qiA6vRw)I8hzN>UDDnTF-Hpr5-rk+b9tSrMc5ile-rVfW@6En>JMWhs zEu_Sif8xp?TpWDko?kiXN;lFx#8o}~38V{&?c%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_E7&6)=vxLvWFF8{%=-{2^GCZZ-MVKJzCIyj~BDi@tikRuzu>1 z$vX9|uTwvK)l*C2Vtv_Qy+^g-!Cz?-McTmncz$dGQ@dvTCEgEFG0PsrZm#v4Y*R0a zZQa+K^lS85z#BB{*VGfe(QS!~Z8I+Kz;_o}^4Mlv{yey5Tpng14gh7Gl0JA8<43^w zi#e0=TKMi;%{Xn+5H9o~HZJe>!&aQ*V4PzY7MJfp{%x<(t!|vAa1hsw(R4W-&%Imx zamf2q&u^h^M8)NM!Tt9^lY8n%&FwZu6X@{)wt!OZN21;bbKd)a4Uc*s90T{) zL%vs0Kk9v;JH-0>x*HnpR6Fh+)rrmx&iD9Mm5t)w_k%blQQY@~``ih0zPEl*qtRUX z^VW|0oZ5+I1-Zw!s_bRtmGg5d-JdW3?)&bT+}r&Lm2=Q&CF9~gjgC}^+W31e*{@s^ z+_;z$Ztm0@JWKX@?ngfMd1@V&r*P@uOS9~j7C0`f=hg=G@ZG}yUYVU)q_@L*O5;j@ E0TSRmm;e9( literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-055/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-055/tnlsys.out new file mode 100644 index 000000000..a8d547137 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-055/tnlsys.out @@ -0,0 +1,73 @@ +{ + "ioctls": [ + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6tnl0", + "in": "00000000000000000000000000000000020000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036746e6c30000000000000000000000000002900000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6gre0", + "in": "00000000000000000000000000000000030000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667726530000000000000000000000000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6_vti0", + "in": "00000000000000000000000000000000040000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6970365f767469300000000000000000000000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t1", + "in": "000000000000000000000000000000000d0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743100000000000000000000000c00000029040100000123454300030020010db800000000000000000000000120010db8000000000000000000000002000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t2", + "in": "000000000000000000000000000000000e0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743200000000000000000000000000000004024000020000001400030020010db800000000000000000000000120010db8000000000000000000000003000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6g1", + "in": "000000000000000000000000000000000f0000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667310000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000004b000b0000000000900000009" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "vti61", + "in": "00000000000000000000000000000000100000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "767469363100000000000000000000000000000029000000000000000000000020010db800000000000000000000000120010db8000000000000000000000005200020000000000300000004" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "gre6x", + "in": "00000000000000000000000000000000110000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726536780000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000006000000000000000000000000" + } + ], + "run": { + "argv": [ + "ip", + "-6", + "tunnel", + "show", + "local", + "2001:db8::1" + ], + "rc": 0, + "stdout": "ip6t1: ipv6/ipv6 remote 2001:db8::2 local 2001:db8::1 dev d0 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 (flowinfo 0x00012345) allow-localremote\nip6t2: ip/ipv6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit (flowinfo 0x02000000) dscp inherit\nip6g1: gre/ipv6 remote 2001:db8::4 local 2001:db8::1 encaplimit 4 hoplimit 64 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) key 9\n Drop packets out of sequence.\n Checksum in received packet is required.\n Sequence packets on output.\n Checksum output packets.\nvti61: ipv6/ipv6 remote 2001:db8::5 local 2001:db8::1 encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) ikey 3 okey 4\ngre6x: gre/ipv6 remote 2001:db8::6 local 2001:db8::1 encaplimit 4 hoplimit 64 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-056/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-056/cmd.json new file mode 100644 index 000000000..5b18ef290 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-056/cmd.json @@ -0,0 +1,79 @@ +{ + "axes": { + "fix": "tnl6", + "json": "0", + "words": "-6 tunnel show dev d0" + }, + "cmd": "ip -6 tunnel show dev d0", + "desc": "positive: opt=plain cmd=tnl6:-6_tunnel_show_dev_d0", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/ec-056", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -6 tunnel show dev d0", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "rc": 0 + }, + { + "cmd": "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "rc": 0 + }, + { + "cmd": "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "rc": 0 + }, + { + "cmd": "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-056/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-056/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-056/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-056/ip.out new file mode 100644 index 000000000..470b4c71f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-056/ip.out @@ -0,0 +1 @@ +ip6t1: ipv6/ipv6 remote 2001:db8::2 local 2001:db8::1 dev d0 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 (flowinfo 0x00012345) allow-localremote diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-056/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-056/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..8d88662a95e6d11a79eea698445c8d2c0b3d8e26 GIT binary patch literal 10904 zcmeI2&ubGw6vy9Y6K&I0qXaw^3W8QoRYO{|g1&nfDWQhF3!SF)%;4bEzMj86&5J-ygl6@#pISL?sDjE@lSmH(&r$yx=+l>=IJo88<3{jvkx|DWU|T4q2c z<(I*@|Fj0~_s^Kzv%Std^E&tH$=mV1DIFjw?te#&_k3NKeJgi( zEG1Ad-k5m`^qM~D-E_d*3+K?v9Wz%iN-%C#XIM>$1%Tsg83~|czzq@51eD@{xC8# zJ3TyU`opst{9*Nl^@ql%uyHg@${)TO#Z37XU9q^?(x@b)OyZR4XnS6 zh;`WB#yX9|S0ibX6zeMn>wRt;Zv4F>QKSv5PmWJaVQ5#3zr*_>Zq0H4YnFFUnBzFx z#j&kyy~Vgj%?132X5*ShqBmZbq}Vps<)ilpxGoPj5C?#Aosuzl9OHvv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cKzq;je1&H4ET*k4#O*{6OS`?Le=>$Dg1!P6$i{!f#AcvT`P-&I$>4krA{Sb4zk z>6aVe{o#F+_q8o}SI@q~xt{hEi1qD*o@o7jQoM70`xWckyI9{c)vj-&?15{Husw{= z&XvbXrae4pz#cA7S$k-G3R|azN!i19WB%`O858pKqj$phnVYOAzemSxR6OTR1FWAJ zFtc@uU2YFQmn5TtPi=}c<`5sM3HW=UMk+0!PKr8e}VTyT+DI;G0WSFCfn4D zV_Wt04*eRn7SMxc{hC&yH@+=Nv2DiX9r*4dE1GS_<*$Kj#^qrK;s8*_Dd~g9F+K&x z&kvi7H^X<|ZN|fEfsIk(LLXw|@_s+;#x@DYId)NT`CgRY(v9x&<203HIA)Bd-|2m( zPjTmv_b1wKp>4#)<%{5c`n1VC_1TtiBBwSk&n|9nNrHR!DA%kbud|W{v`n>Y)+oE+ z(zezvj-#xeU2OMzRS9;nIA_|0{a%I6wG!C_N!f+T{h*8A0&2ORhh}Q~9``<& z0rxi-Ozx>4eitwwejl)28?#rv&~}^VaqqZ&=-u#qk8f3lIPL>Kh=UTxeHq+mJ(GLu z2eId@MD;-PxF2-)qXA*=@vW+WX}YeTv)%s_X2JcTd6Rqle?ruV+cNe*QrzcIw~MGv z@Xsah#Wlg`+pO^CPNv#5!BG_9KToB@(-bZp0_l*0(g|mU^^9*(58o}k_xnp9KhfJ^ IJ+*PAe@Q7p=l}o! literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-057/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-057/tnlsys.out new file mode 100644 index 000000000..297695852 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-057/tnlsys.out @@ -0,0 +1,73 @@ +{ + "ioctls": [ + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6tnl0", + "in": "00000000000000000000000000000000020000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036746e6c30000000000000000000000000002900000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6gre0", + "in": "00000000000000000000000000000000030000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667726530000000000000000000000000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6_vti0", + "in": "00000000000000000000000000000000040000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6970365f767469300000000000000000000000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t1", + "in": "000000000000000000000000000000000d0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743100000000000000000000000c00000029040100000123454300030020010db800000000000000000000000120010db8000000000000000000000002000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t2", + "in": "000000000000000000000000000000000e0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743200000000000000000000000000000004024000020000001400030020010db800000000000000000000000120010db8000000000000000000000003000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6g1", + "in": "000000000000000000000000000000000f0000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667310000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000004b000b0000000000900000009" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "vti61", + "in": "00000000000000000000000000000000100000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "767469363100000000000000000000000000000029000000000000000000000020010db800000000000000000000000120010db8000000000000000000000005200020000000000300000004" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "gre6x", + "in": "00000000000000000000000000000000110000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726536780000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000006000000000000000000000000" + } + ], + "run": { + "argv": [ + "ip", + "-6", + "tunnel", + "show", + "encaplimit", + "none" + ], + "rc": 0, + "stdout": "ip6t1: ipv6/ipv6 remote 2001:db8::2 local 2001:db8::1 dev d0 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 (flowinfo 0x00012345) allow-localremote\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-058/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-058/cmd.json new file mode 100644 index 000000000..47f513f8d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-058/cmd.json @@ -0,0 +1,79 @@ +{ + "axes": { + "fix": "tnl6", + "json": "0", + "words": "-6 tunnel show hoplimit 1" + }, + "cmd": "ip -6 tunnel show hoplimit 1", + "desc": "positive: opt=plain cmd=tnl6:-6_tunnel_show_hoplimit_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": "tunnel/ec-058", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -6 tunnel show hoplimit 1", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "rc": 0 + }, + { + "cmd": "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "rc": 0 + }, + { + "cmd": "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "rc": 0 + }, + { + "cmd": "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-058/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-058/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-058/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-058/ip.out new file mode 100644 index 000000000..470b4c71f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-058/ip.out @@ -0,0 +1 @@ +ip6t1: ipv6/ipv6 remote 2001:db8::2 local 2001:db8::1 dev d0 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 (flowinfo 0x00012345) allow-localremote diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-058/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-058/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..aca186457a0d046840b7d2b91ebdde7db53ce5f7 GIT binary patch literal 10896 zcmeI2KWG#|6vp4)Tr__!8s%Ccm9aC?p#7FQ`)DJc}S zh-g5>N`hD_X#_1SEK`X^5ETmxK|}n$+1X^-+1uQi>~V1WV0Y(c=grN|{NC)FxASS` z<>Qp3WlPesjvvS0r>~AY$VflZJS44#c=4nciG$*(9Lh1TlP8~0{|59w?h}0k^}nP< zdL$*(FQgUp)5?MVu<$IhSCkZ{S+Dz>dF{HLjI9m{j)l_A6T-vr@o(grv2ROrX=&d8Ijhy#KryJkolgk>x${# zZg;*PnJZ6fm#W&FpR0rYd#F6<>rg+6ecD0d>zF}lu}fU+|FqeMS0$2iU3Km2V8Snt zmijH9{#6~kUpQy;zPb(XdWd&8*VCRnNql>+Cz}5n7w=r(E?|B86zf|a!S!vJJ#dZT zw}qDvw5B^q@DAEPii-oCaOzoQSH+Vlp#Vn@~vpjRf zW}A9ZZ0o+>pzowb!jc!X^Y};{p2fn+=ieZ~^`7vZ#&A5LpusKRx=tGjYyxR}EagKv=j$K$>z8m>>Orty9I8Au~zZs+H zb-G`hTf8{recAXew2i2^{0z9iU$VKUe$?Ea#Atjy-eSo(xMvq~&AN;=YZ}n<2(DSf z?1D?%pj{k8UNyU@^?TJU?Be@f+b)vtRp{JALVF-CyRf+*RM-{}pHJZ&mpy?ma(?guHT}! J!+L^orGMsoJJ|pL literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-058/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-058/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-058/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-058/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-058/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..59c92f80cba45705eb9d5b649b710d97baa60eb4 GIT binary patch literal 10896 zcmeI2KWG#|6vp4)Tr__*%C$l&W0}Z#Nns&kVH5+@$s`jF-!X*I}8AU#MN6i*#PIp($V6cXw$LI2%8|ESdeloIKd zlu-XiT0uXpJm?Pz&mwz8Nq&m;`oEdis@v&F3p6PUsZQkS`{fLBH#S7_*%A3TB(knV zexiQL34Qi-NtOMMtDpV6sI#ua-01H0>(#9@ zdDYTEUFC1NAn8BV=C4q~3>BZ1{}-;4rLvxq!=d6Xxpfa5mp$O^|0ENk*#aslzbwW* zMIy_*3F!oB6UAJqknfXB#E6skr519J6NKDTKg2!s{&C-X*XEx3WF&l$8^=9+w7F&X zxF1lQQ_H5i4fo^IW7WBTS_k+2i#GSv4>Qknn0wt6H{Y8PX|79B-2aZ4@A>L*rA}I4w-d9==%ff2(3lsB9j+4ZhFJL`nNSCT64KIjeQB zURbnQr@r%b8i%h&YDrS8uUV`Qst!E(YfYj^2UsuUC#NvAYsQ!Heu#@%P9kP``kKu) z_2SspeZ5V;Mz00TpgF&$k?4(YOHypxad{8EyU2=Rn{oM3aLu?p%s@N<$~Yx`@Hob& z!1&NjoAKT7-FKSt@LFJVl(^7`xVXIE4?A&Af^m*rR9wCb`SYgH?S7o5)Q{hc(e!v- zugoo8Jo5g+_${=JxVZc@xW8Ytxu<^I-0osDp&oCtWD?x73%O>!a288dK+B_Y%^GDF zT-sLJ#Zlx{vx{24SIxjKzTUCz!hNqo=Q@e(fu!uh=6*n7TRL9k9!~J4spJ|?uKSN?H>1@>PF{==X-ps%EfUX_(2?#IPPb`{rYX2d*=r= z8_l&p@9uFwpbnr}Veav*DmRC`YJN_w`xEBC{i#u#d$&KKb`F}YWK!H`(2)vJn_$l+ z`;}{g<#Qt3+^IKsR_yaUf_&`r)H*Cr;nE?HRyibXa9mi=>K66z-NOGK`S1W9P;^}B EFH;>t!2kdN literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-058/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-058/tnlsys.out new file mode 100644 index 000000000..fc359a8e2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-058/tnlsys.out @@ -0,0 +1,73 @@ +{ + "ioctls": [ + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6tnl0", + "in": "00000000000000000000000000000000020000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036746e6c30000000000000000000000000002900000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6gre0", + "in": "00000000000000000000000000000000030000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667726530000000000000000000000000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6_vti0", + "in": "00000000000000000000000000000000040000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6970365f767469300000000000000000000000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t1", + "in": "000000000000000000000000000000000d0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743100000000000000000000000c00000029040100000123454300030020010db800000000000000000000000120010db8000000000000000000000002000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t2", + "in": "000000000000000000000000000000000e0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743200000000000000000000000000000004024000020000001400030020010db800000000000000000000000120010db8000000000000000000000003000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6g1", + "in": "000000000000000000000000000000000f0000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667310000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000004b000b0000000000900000009" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "vti61", + "in": "00000000000000000000000000000000100000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "767469363100000000000000000000000000000029000000000000000000000020010db800000000000000000000000120010db8000000000000000000000005200020000000000300000004" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "gre6x", + "in": "00000000000000000000000000000000110000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726536780000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000006000000000000000000000000" + } + ], + "run": { + "argv": [ + "ip", + "-6", + "tunnel", + "show", + "hoplimit", + "1" + ], + "rc": 0, + "stdout": "ip6t1: ipv6/ipv6 remote 2001:db8::2 local 2001:db8::1 dev d0 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 (flowinfo 0x00012345) allow-localremote\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-059/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-059/cmd.json new file mode 100644 index 000000000..a4555cff5 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-059/cmd.json @@ -0,0 +1,79 @@ +{ + "axes": { + "fix": "tnl6", + "json": "0", + "words": "-6 tunnel show tclass inherit" + }, + "cmd": "ip -6 tunnel show tclass inherit", + "desc": "positive: opt=plain cmd=tnl6:-6_tunnel_show_tclass_inherit", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/ec-059", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -6 tunnel show tclass inherit", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "rc": 0 + }, + { + "cmd": "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "rc": 0 + }, + { + "cmd": "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "rc": 0 + }, + { + "cmd": "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-059/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-059/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-059/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-059/ip.out new file mode 100644 index 000000000..470b4c71f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-059/ip.out @@ -0,0 +1 @@ +ip6t1: ipv6/ipv6 remote 2001:db8::2 local 2001:db8::1 dev d0 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 (flowinfo 0x00012345) allow-localremote diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-059/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-059/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..3dda08a4d7c58d635cf6be706219b92a1f367f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J8Y*i Guk;T!k~%Q} literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-059/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-059/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-059/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-059/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-059/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..dc6fb18f009ffa9dfa35af36d745ac1f50216d91 GIT binary patch literal 10896 zcmeI2J!lj`6vyA*-f2EH%3+fTSNYLJIWHkvq!KI?QV79DBZd$>lQTJu5`{xcEvz)4 zMIhp<{d6P+P0DUhQuikompdwJgg*LP|pp{#j&L^-n2oUQfMC-@Ll8y=p_B=sN7R zt9qyFDwX}VN;iB9Cg~8(6sV;9 zHW+tY5?SI&NC!w8FXW07`Cdtfj5v9Jl_K}pLC8Jz1KdMzi~DnPCim1QBf*W_Sng@j z=9c<#-{*2pEopOW?#HG^D|7#%2JSP%Cim12GS705d({;?-|G=+u0vehuZPU{d|a2b zc{{!N{^HHzxC*H%&H33H*k2kn*{6OK`}6}F>*zsgvO`?#|1{Z0R3(z|LUk4EV8Sns z6nc%A{#^~cFXm0&SGVC^4e<`=dis+uHn#UI(fG%>c<1`|9@e*uSl@ChU*CrL1J@Wq ze;A#bE{sf={_wH}e>nTt`a|PW*f>3m%OAcQ^M8xWoKQ*MdMjd|>G7h9dvwl5<#RsP z!1~&KlXdFbSf_FLYNVdT#rmqjdcWI_8~>n46ln+R6ZvbCnA#QN@9}(y%2`e!XSq}` z*`{6;+sf8EjBC_dKo6RYYZ{5(=)T0owwafA5W9=4XttS`zXGnAmxmjO13;OlWDFj~ z_zf^Vc+zCN9G;^dUAc@7dvh?BigZV;7c}??nA0-RU+jPg6XG-^|fu zoX%x^iU)_hztwRIeIqI_KLhU1KQy_ge$?D zc`ys^hn||;Q$Ol?pbTPTePxDb+trVI$L)e~gY!M!Rpp|%_v0XrNfh^Y!2R55lY1Kn zH5<*<-*5f6?{oK|TS4yet}1s6b(P|rYQImo3+@lhnB3d%6RPK+*{+O>`!o#cB5UJ+ zb4j~$P4Fb+NI%Nl%GU%(P=)V2l@3o+xODKPMGi_U0vEQkuuVIBw(!3%%)WlWXou~T H=av2fcqB50 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-059/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-059/tnlsys.out new file mode 100644 index 000000000..b732ebe98 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-059/tnlsys.out @@ -0,0 +1,73 @@ +{ + "ioctls": [ + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6tnl0", + "in": "00000000000000000000000000000000020000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036746e6c30000000000000000000000000002900000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6gre0", + "in": "00000000000000000000000000000000030000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667726530000000000000000000000000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6_vti0", + "in": "00000000000000000000000000000000040000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6970365f767469300000000000000000000000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t1", + "in": "000000000000000000000000000000000d0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743100000000000000000000000c00000029040100000123454300030020010db800000000000000000000000120010db8000000000000000000000002000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t2", + "in": "000000000000000000000000000000000e0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743200000000000000000000000000000004024000020000001400030020010db800000000000000000000000120010db8000000000000000000000003000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6g1", + "in": "000000000000000000000000000000000f0000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667310000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000004b000b0000000000900000009" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "vti61", + "in": "00000000000000000000000000000000100000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "767469363100000000000000000000000000000029000000000000000000000020010db800000000000000000000000120010db8000000000000000000000005200020000000000300000004" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "gre6x", + "in": "00000000000000000000000000000000110000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726536780000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000006000000000000000000000000" + } + ], + "run": { + "argv": [ + "ip", + "-6", + "tunnel", + "show", + "tclass", + "inherit" + ], + "rc": 0, + "stdout": "ip6t1: ipv6/ipv6 remote 2001:db8::2 local 2001:db8::1 dev d0 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 (flowinfo 0x00012345) allow-localremote\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-060/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-060/cmd.json new file mode 100644 index 000000000..d473a3ac2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-060/cmd.json @@ -0,0 +1,79 @@ +{ + "axes": { + "fix": "tnl6", + "json": "0", + "words": "-6 tunnel show flowlabel 0x12345" + }, + "cmd": "ip -6 tunnel show flowlabel 0x12345", + "desc": "positive: opt=plain cmd=tnl6:-6_tunnel_show_flowlabel_0x12345", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/ec-060", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -6 tunnel show flowlabel 0x12345", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "rc": 0 + }, + { + "cmd": "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "rc": 0 + }, + { + "cmd": "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "rc": 0 + }, + { + "cmd": "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-060/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-060/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-060/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-060/ip.out new file mode 100644 index 000000000..470b4c71f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-060/ip.out @@ -0,0 +1 @@ +ip6t1: ipv6/ipv6 remote 2001:db8::2 local 2001:db8::1 dev d0 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 (flowinfo 0x00012345) allow-localremote diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-060/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-060/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..3911ba1f34460d7aad20dcc42d04bb2a6f6e60ad GIT binary patch literal 10896 zcmeI2KWG#|6vp4)Tw?xv%5@^7QX3`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W6^?3=gy zY2oQ?LXxs7N%@N(*>}lv$F8QO3uSJSR6RU+(uu-0anwGvV_ge(KB4|4=zrKOdMnlc znh@!bgiyb)NkKoU9O(B8_ad7_$;cS{b$_!it;gv|3YwIeL>ub#`CdKY9zKTC{UeUd(m0!MsxmCPY{-3{3w#qt6cKDjd#kDQaD^1|-|0ENjnF5uR z-xlMJB9TR>URQ{CKV~I?^SXfICj!AE(GYb`Ww;eINJGTjhRtugyL6$%ua=H!=6L zXk$z5xbIe+Q;WvjhWp`(q4L~6sDk^m2W{@D?`NK6Klgel@qBOYNMjwM;{H#-e9y;q z(U`a0o$pUxDCBiWRc_ADR>A(jO`Cn{hp|sTh-00`V&1#jsMue!*+*0*l5j(H9qVAi zFAR=%Suy?dDtLc++2(z54c_&&uXC=aKY0?z_MRo`{}>hTT;JZp`t~l?x764alp%01k@~#~=Vjl(Lymvu)`F7M#n?bj@d78o={AP}( z(`lbKr+9G4`!f@_&^N;J^7p}gYRcxG`eAc>oTKqsyupf5a8DC*&ANm&YZB0MD_ye& z`30A@rGBv&b>;k`()U#l;TP}wY`=)#SHZZk1X>^}zp%OQR`@KSl>6bZ=fMs0JmA2? zo(FT_{>^@yd+LWh541tzSYMl=(RQ`t-ccPeu7AGAyQ*9m_g);tdlJU|BXED{gw1^% z2Q?bam0xe|xbIe5F)Tm#cvqFXh`MrdPNm-`JOTGdj@#VF-zQYgL8G;diu()6`Ob3}>hYbY)?s@Jmkyq!WxF&ZaA7~!*XW1O7XJ5_rv8tN KcGyp8Ug;kmN;}U0 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-061/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-061/tnlsys.out new file mode 100644 index 000000000..0e77a7c64 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-061/tnlsys.out @@ -0,0 +1,73 @@ +{ + "ioctls": [ + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6tnl0", + "in": "00000000000000000000000000000000020000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036746e6c30000000000000000000000000002900000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6gre0", + "in": "00000000000000000000000000000000030000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667726530000000000000000000000000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6_vti0", + "in": "00000000000000000000000000000000040000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6970365f767469300000000000000000000000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t1", + "in": "000000000000000000000000000000000d0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743100000000000000000000000c00000029040100000123454300030020010db800000000000000000000000120010db8000000000000000000000002000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t2", + "in": "000000000000000000000000000000000e0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743200000000000000000000000000000004024000020000001400030020010db800000000000000000000000120010db8000000000000000000000003000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6g1", + "in": "000000000000000000000000000000000f0000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667310000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000004b000b0000000000900000009" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "vti61", + "in": "00000000000000000000000000000000100000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "767469363100000000000000000000000000000029000000000000000000000020010db800000000000000000000000120010db8000000000000000000000005200020000000000300000004" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "gre6x", + "in": "00000000000000000000000000000000110000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726536780000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000006000000000000000000000000" + } + ], + "run": { + "argv": [ + "ip", + "-6", + "tunnel", + "show", + "key", + "9" + ], + "rc": 0, + "stdout": "ip6tnl0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\nip6gre0: gre/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\nip6_vti0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\nip6t1: ipv6/ipv6 remote 2001:db8::2 local 2001:db8::1 dev d0 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 (flowinfo 0x00012345) allow-localremote\nip6t2: ip/ipv6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit (flowinfo 0x02000000) dscp inherit\nip6g1: gre/ipv6 remote 2001:db8::4 local 2001:db8::1 encaplimit 4 hoplimit 64 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) key 9\n Drop packets out of sequence.\n Checksum in received packet is required.\n Sequence packets on output.\n Checksum output packets.\nvti61: ipv6/ipv6 remote 2001:db8::5 local 2001:db8::1 encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) ikey 3 okey 4\ngre6x: gre/ipv6 remote 2001:db8::6 local 2001:db8::1 encaplimit 4 hoplimit 64 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-062/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-062/cmd.json new file mode 100644 index 000000000..e80ae10ff --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-062/cmd.json @@ -0,0 +1,79 @@ +{ + "axes": { + "fix": "tnl6", + "json": "0", + "words": "-6 tunnel show allow-localremote" + }, + "cmd": "ip -6 tunnel show allow-localremote", + "desc": "positive: opt=plain cmd=tnl6:-6_tunnel_show_allow-localremote", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/ec-062", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -6 tunnel show allow-localremote", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "rc": 0 + }, + { + "cmd": "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "rc": 0 + }, + { + "cmd": "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "rc": 0 + }, + { + "cmd": "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-062/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-062/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-062/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-062/ip.out new file mode 100644 index 000000000..470b4c71f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-062/ip.out @@ -0,0 +1 @@ +ip6t1: ipv6/ipv6 remote 2001:db8::2 local 2001:db8::1 dev d0 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 (flowinfo 0x00012345) allow-localremote diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-062/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-062/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..80e8f0d3a5c42bcc2ed6fd844b171912344732d9 GIT binary patch literal 10896 zcmeI2&ubGw6vy9YlG>kIC0C)R)?<{I^x&b_9u*J8gIckaU~NkqM1*3%KcF5wdWa}m zN~KaoJSx2u^x&b#QVS~q!zDnP7e$l6!fdWMJ(ZDk$Q>u|D=Bi19faIdKfpcocDdhNG`Xif83}IW#&S=Kwzo8o z`@G_uTJp^8aX&dXQJedv2Do2XGP$RIka?Da-0Pv(`QE!D?RAKY`#&M`Js;O4&%Ax^ ze1GXiv7ke$T62E30rtxUlYQz(u}?p+u}*t2?_X_P?Ef&?M^q(}a6@$+>tMn!j?ZR{ znEqu0yl;=0yl?HnyT0~)&h_*sUuv+gPV{_-dt*#KroS!TPZ3!G*ukB#QKa_35eWGnm>n=ZFA=j**v1UyIT5i>A)-b=| z(zeM8u<_lW5i_I(wMYbDeIaruSGeO}?SfNJh1qn-!%z2^Z39`!s} z1^1(OOzx>4^*qo9v9Z23L%Z#o$GxNaVcg(+k9SqMDDM3@i1#Fl`)A;OJLFxJjf2{a z=K8OFI2ZlbPMoKx@j32Wf~R?(dA?e_`wbI@)rr#{BJI4 zSFQ;%Lme`VGPmkA!3k91J5Q~{(-bZpeCd?q(uKf<{p9!PhtC%N_u|9_xLSB#=^u`p BM124N literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-062/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-062/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-062/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-062/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-062/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..f3c5f4c0aee288f1ef0e42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/testdata/7_3_1/ws/tunnel/ec-062/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-062/tnlsys.out new file mode 100644 index 000000000..ec1da529f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-062/tnlsys.out @@ -0,0 +1,72 @@ +{ + "ioctls": [ + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6tnl0", + "in": "00000000000000000000000000000000020000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036746e6c30000000000000000000000000002900000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6gre0", + "in": "00000000000000000000000000000000030000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667726530000000000000000000000000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6_vti0", + "in": "00000000000000000000000000000000040000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6970365f767469300000000000000000000000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t1", + "in": "000000000000000000000000000000000d0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743100000000000000000000000c00000029040100000123454300030020010db800000000000000000000000120010db8000000000000000000000002000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t2", + "in": "000000000000000000000000000000000e0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743200000000000000000000000000000004024000020000001400030020010db800000000000000000000000120010db8000000000000000000000003000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6g1", + "in": "000000000000000000000000000000000f0000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667310000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000004b000b0000000000900000009" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "vti61", + "in": "00000000000000000000000000000000100000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "767469363100000000000000000000000000000029000000000000000000000020010db800000000000000000000000120010db8000000000000000000000005200020000000000300000004" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "gre6x", + "in": "00000000000000000000000000000000110000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726536780000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000006000000000000000000000000" + } + ], + "run": { + "argv": [ + "ip", + "-6", + "tunnel", + "show", + "allow-localremote" + ], + "rc": 0, + "stdout": "ip6t1: ipv6/ipv6 remote 2001:db8::2 local 2001:db8::1 dev d0 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 (flowinfo 0x00012345) allow-localremote\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-063/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-063/cmd.json new file mode 100644 index 000000000..3ce7d088b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-063/cmd.json @@ -0,0 +1,79 @@ +{ + "axes": { + "fix": "tnl6", + "json": "0", + "words": "-6 tunnel show encaplimit 300" + }, + "cmd": "ip -6 tunnel show encaplimit 300", + "desc": "corner: opt=plain cmd=tnl6:-6_tunnel_show_encaplimit_300", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/ec-063", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -6 tunnel show encaplimit 300", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "rc": 0 + }, + { + "cmd": "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "rc": 0 + }, + { + "cmd": "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "rc": 0 + }, + { + "cmd": "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-063/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-063/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-063/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-063/ip.out new file mode 100644 index 000000000..076238745 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-063/ip.out @@ -0,0 +1,12 @@ +ip6tnl0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) +ip6gre0: gre/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) +ip6_vti0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) +ip6t1: ipv6/ipv6 remote 2001:db8::2 local 2001:db8::1 dev d0 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 (flowinfo 0x00012345) allow-localremote +ip6t2: ip/ipv6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit (flowinfo 0x02000000) dscp inherit +ip6g1: gre/ipv6 remote 2001:db8::4 local 2001:db8::1 encaplimit 4 hoplimit 64 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) key 9 + Drop packets out of sequence. + Checksum in received packet is required. + Sequence packets on output. + Checksum output packets. +vti61: ipv6/ipv6 remote 2001:db8::5 local 2001:db8::1 encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) ikey 3 okey 4 +gre6x: gre/ipv6 remote 2001:db8::6 local 2001:db8::1 encaplimit 4 hoplimit 64 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-063/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-063/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..bc617717d7d48cbb1e7c23517f0a734c83b5d19c GIT binary patch literal 10896 zcmeI2J!lj`6vyA*-o<=slxx)#qLxw4O9}9mkU#KJ-(a{m9bv&pivx4ARf<6!r}?#<24o11<6d$Vue&8MY> zhbc+RhNR^$zU1DguPv;!NH5AfByIQe!<8Ns_K0O4Lp#>B^W+ige}MkSouUrE{@0X9 zx1@ynm5dGjv~5BEwD2slLu?rtWxvjM*0ri}T9Sb#Wh&K)I(5CAMQx=bGMl?1lQSaU zY>{8+pK?;2E!C2(-J=4T+U2xmS*BA`9Rn!O>VnRy4}GEgkkhXk zovy1^cKa&-$h$@7uGYVK3i?s;Uio|8KG`Z~*>cd+JSlE&f#cEw-u_Rr0h$?5N%?Is zZrLQV%!`mtkTyJ)FBM06B^&U>$@^S}+~Wix_tf`r54{cU4@{ZdQ=g1@4|0=m52M6f z8pnN~%{jHK?X9^lj1N`kex?rY@6VdtQ{T%x%UEmsw^6bG(_|k}l}O47)m5y63BNQr z)@#J{FY4g^bHU_&c@y5%y>D@@r$4!p#P+Twn*TE@-nqX0g7xhqtZ#Yv*SA6bz%_=~ zABM&!#s-U~KRl_!AO4(6{Gs_NY@QKDPN=MJy$!L?#BfQ)JvwKj@;UG7 zVExQllXdDRu}<^w)l4IaiuGlK^?thpH~v%RdG8h4bdzPW`aCJ;~8{EFQCB6x`Ee!`+x%v zdmk)<`vL50@b6Ece%Sj!86=7Il^No8Y8>~L-3{Y<=X?BDl@H_Ijf411!nl79?pN=c z+$V8R+-R=-ejCSqpS>Hy@^X*=s`58cS1rz|b$`N3a6dn7a-Zx^sGWnjwTz1UEDUKQ zYvb;@q+PitII-Fy+}x=)c>4Bv9!5R(c`6;Yr*P@uN~`RZHUuv0=hPQxC zNVlYf`nOtL=%-x=`p1Q5ksad7$SC{uzO$}Pjnk19Xi}zAov2g4SF)>@{(jUy!L; zkx#D3PxMbYrp}IP$=3d{3Yp&JwPjgmQc@Xk@XsP=)%cX+T6^l9|LoO8omC(DhwlAe zziM>4u3FjetMaYj7rm=m`xYqZTg7YT{{{PGtGwgNzCd$Z+}Hv~r4_vWpJXF6TRlE?~wgmi+m;ju!wG?J5S#2qK^^DX2aCkVNxet>)Et#iM3+T@=4WF&Zy8_PY6 z(&SP5z{}df%o@CllPSkcvsiH#krpTa{XHvX#eftCJ+k05w@(8bQqx^wu zjG#XZjZcgXmP~(mP=i1GK4tx(@hNPa5hmpiUyb>{&1FugqA$H2vCqVCS;aj%XQT2t zuWMla#7UEN>f2bSarkPaktD_Xiotrn+kp#zrAQR%0PCfZ%cGdu72_}Qe2B|g&Ld}e znviSOD=EBb1++ZE zYt|^g;Lv@SYMf;*-rK2-f_EO+~9nVcU6Tr?)^B3_au({C*c0e zO_O^Y2Q?ebo4?-rao^|e#;}6i<6TwZ8tSUWIh);|@C@89%$VHU{Rx}rpxIg`#eEir zbdk03_gvDhToW8@%?LMlstul@eVzwUkA0p>hwUj`I{4Bid!!wK3;W4!&<~$2{O=Dv Ni<69Y*iSgG^bgClK5_s6 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-063/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-063/tnlsys.out new file mode 100644 index 000000000..c65dd9c5b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-063/tnlsys.out @@ -0,0 +1,73 @@ +{ + "ioctls": [ + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6tnl0", + "in": "00000000000000000000000000000000020000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036746e6c30000000000000000000000000002900000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6gre0", + "in": "00000000000000000000000000000000030000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667726530000000000000000000000000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6_vti0", + "in": "00000000000000000000000000000000040000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6970365f767469300000000000000000000000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t1", + "in": "000000000000000000000000000000000d0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743100000000000000000000000c00000029040100000123454300030020010db800000000000000000000000120010db8000000000000000000000002000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t2", + "in": "000000000000000000000000000000000e0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743200000000000000000000000000000004024000020000001400030020010db800000000000000000000000120010db8000000000000000000000003000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6g1", + "in": "000000000000000000000000000000000f0000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667310000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000004b000b0000000000900000009" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "vti61", + "in": "00000000000000000000000000000000100000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "767469363100000000000000000000000000000029000000000000000000000020010db800000000000000000000000120010db8000000000000000000000005200020000000000300000004" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "gre6x", + "in": "00000000000000000000000000000000110000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726536780000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000006000000000000000000000000" + } + ], + "run": { + "argv": [ + "ip", + "-6", + "tunnel", + "show", + "encaplimit", + "300" + ], + "rc": 0, + "stdout": "ip6tnl0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\nip6gre0: gre/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\nip6_vti0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\nip6t1: ipv6/ipv6 remote 2001:db8::2 local 2001:db8::1 dev d0 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 (flowinfo 0x00012345) allow-localremote\nip6t2: ip/ipv6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit (flowinfo 0x02000000) dscp inherit\nip6g1: gre/ipv6 remote 2001:db8::4 local 2001:db8::1 encaplimit 4 hoplimit 64 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) key 9\n Drop packets out of sequence.\n Checksum in received packet is required.\n Sequence packets on output.\n Checksum output packets.\nvti61: ipv6/ipv6 remote 2001:db8::5 local 2001:db8::1 encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) ikey 3 okey 4\ngre6x: gre/ipv6 remote 2001:db8::6 local 2001:db8::1 encaplimit 4 hoplimit 64 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-064/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-064/cmd.json new file mode 100644 index 000000000..a579a417a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-064/cmd.json @@ -0,0 +1,79 @@ +{ + "axes": { + "fix": "tnl6", + "json": "0", + "words": "tunnel show" + }, + "cmd": "ip tunnel show", + "desc": "positive: opt=plain cmd=tnl6:tunnel_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": "tunnel/ec-064", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- tunnel show", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "rc": 0 + }, + { + "cmd": "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "rc": 0 + }, + { + "cmd": "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "rc": 0 + }, + { + "cmd": "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-064/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-064/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-064/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-064/ip.out new file mode 100644 index 000000000..3d386ef27 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-064/ip.out @@ -0,0 +1,4 @@ +gre0: gre/ip remote any local any ttl inherit nopmtudisc +ip_vti0: ip/ip remote any local any ttl inherit nopmtudisc key 0 +tunl0: any/ip remote any local any ttl inherit nopmtudisc +sit0: ipv6/ip remote any local any ttl 64 nopmtudisc diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-064/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-064/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..8ea2fdc5c0936834f7bd0d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w2i*_a!b+$ZU; zF$mb9L%Fp6-JTma^Xoi3yb=L?j=yK;aeJ93C>1*~6S^GzGMRN(#gOkN<6&pbi24fn zQ?dW_Zho%hPepc&!A~fCzCk=EZ!a?zgWK~J*elkWX+DW>P$7f;wbr{jw+>5_Cthso zcfAhF-ph>LToJTp`gIsJARe;|*bnR!8fYg+EaJoK->6( z(~aWbPtwoQmqTT(tDE2&o^lN zS@zPh?sctPnF>*JgK5B@uNZ$8tq$XlJ4-|Ntcz_5BmsY-&dPw)TKKawuKjZ;;r^_L z_}ivv|70Eh*c@E>*~Fh}XJw3ue(?ygS{vM;u%H2FWmvW-+eh{GyDavWb#i%}l_7D+ zJS)TFUo|e3-(#k6>CQj4Ub^X7u1tlr;?mcQOIsfa;}Yc5w26>5?IQ8nZjMEF|D1}G zfJ>Vq{BkYa3nQv0;FrVM261u8_RFQ^oQ$yE3;E@Ihf9+aPZO7_os$u!zi;D?uht^- zI(J^2%cqg)wa4(Uy?o)-g`4gT+Lu-wImI~Ax-X0)&c7D)txJ_sAPG1UW#7!>W|}y{ zd!sw{@VhwvHJmY)Vm?LtCg*UZlz*!|nK)9-zCm4;&H@bMOvt{;)zZFs?7+_} zM~((xm{wf+hH>fQTVY&+oI3j^=wFu#D3AnP!ud_V@%c?lxmmdE^PAwQ@YuT^{C^Ch F{{d%E0672v literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-064/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-064/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-064/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-064/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-064/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..96b6cb1b946184041dcbefc2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YW*%cS!uwkPH{PJ-P&AF|sSwJQ6pvD@6c+!NDg zbMA01_b$(c&8E%aUcL;JgnO5%OX)oQ^z|UhmiLSe4!(q{>dlt_4qN`_BVk)UA9Lec z`gH%-!j`+XfAXzrdQt67<^Kiqqz2#G%tHR%~B_;l*v?h{r9GADr zf+39JRO^Aexd`0Y`B4}*Qtqa; zGJe2Tl|Om7aR}`S&U4cbSatHi+U2KHKLFh`@?YhMr8@&~ZxUu=#Ke&2$+#(r=Qj_K{Z0Dh9$?(JgTHq^o= zv2~TjsZUbY9ksYf0=7i0*X7Kei!EGp85djXb-nJok&eU1e@n4tHgfG^OSSd7FpIzx zZMnE!7Zj$#8pZ}|S`5}8F2kC}#f~+90c(DKHHi|2`7uvg(yT`y06P<+EYjp&q8V lgBP2IP!A*lcliB^JMjIAHE11=;P)%2wI0TxrSF4_{11)Dto;B0 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-066/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-066/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-066/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-066/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-066/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..f057c0c1eded07075eccf906229b02ce9fb681fb GIT binary patch literal 23724 zcmeHPUuYaf82|3}?s7?!8rxH$LXBAeA=ucav1qNawhv+v^+hRFTS<(;{IgA@wFrxd zhzeH7Ln+0!*as~ILm#9MBGpzAt#5)4>VyBFR_TNGp+1!O`_0be=63h)_L587OLky) zX7^_1W@o?e`_1>8nf>m}$)jn>NHJvO3NF@tlX+q9<+OAn%|kNIdPXL6AhAqRPB-%L zUYaK>u>3)k-`Xnb@R$E2E7FcqEd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u?y@^&I%;KIv>I~bsBN%0)CQWEhkQ8I2*;O)P+7|Z933L zo4@nt*SjaWjm@7Z(|4bPJ{)}L>I3DeUGYj=9sM?iOS0BHrO{qJl6e2dtixtFCZ!L> z@-p}fz(2e*FB9?pqT|ijT$ka!+`P;@cptj$@=p0U>uh`8Hv^5y&v7GpXG%V@?~GOZ zvc|yEzSn*nd3O~5U7^2ovrPN`1-!pK b.txt" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -batch b.txt", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "rc": 0 + }, + { + "cmd": "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "rc": 0 + }, + { + "cmd": "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "rc": 0 + }, + { + "cmd": "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "rc": 0 + }, + { + "cmd": "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "rc": 0 + }, + { + "cmd": "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "rc": 0 + }, + { + "cmd": "ip tunnel add isa1 mode isatap local 192.0.2.1", + "rc": 0 + }, + { + "cmd": "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "rc": 0 + }, + { + "cmd": "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "rc": 0 + }, + { + "cmd": "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8", + "rc": 0 + }, + { + "cmd": "printf '%s\\n' 'tunnel show' 'tunnel show' > b.txt", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-069/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-069/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-069/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-069/ip.out new file mode 100644 index 000000000..cef32cc8c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-069/ip.out @@ -0,0 +1,40 @@ +gre0: gre/ip remote any local any ttl inherit nopmtudisc +ip_vti0: ip/ip remote any local any ttl inherit nopmtudisc key 0 +tunl0: any/ip remote any local any ttl inherit nopmtudisc +sit0: ipv6/ip remote any local any ttl 64 nopmtudisc +ipip1: any/ip remote 198.51.100.1 local 192.0.2.1 dev d0 ttl 64 tos 0x10 +ipip2: any/ip remote 198.51.100.9 local any ttl inherit tos inherit nopmtudisc +gre1: gre/ip remote 198.51.100.2 local 192.0.2.1 ttl 32 key 5 + Drop packets out of sequence. + Checksum in received packet is required. + Sequence packets on output. + Checksum output packets. +gre2: gre/ip remote 198.51.100.3 local 192.0.2.1 ttl inherit ikey 1 okey 2 + Drop packets out of sequence. + Checksum output packets. +gre3: gre/ip remote 239.1.1.1 local 192.0.2.1 ttl 1 key 4009820417 +sit1: any/ip remote 198.51.100.4 local 192.0.2.1 ttl 64 +sit2: ipv6/ip remote 198.51.100.8 local 192.0.2.1 ttl 16 +isa1: ipv6/ip remote any local 192.0.2.1 pr 192.0.2.11 pdr 192.0.2.10 ttl inherit +isan: any/ip remote any local 192.0.2.2 ttl inherit +vti1: ip/ip remote 198.51.100.5 local 192.0.2.1 ttl inherit nopmtudisc ikey 7 okey 8 +gre0: gre/ip remote any local any ttl inherit nopmtudisc +ip_vti0: ip/ip remote any local any ttl inherit nopmtudisc key 0 +tunl0: any/ip remote any local any ttl inherit nopmtudisc +sit0: ipv6/ip remote any local any ttl 64 nopmtudisc +ipip1: any/ip remote 198.51.100.1 local 192.0.2.1 dev d0 ttl 64 tos 0x10 +ipip2: any/ip remote 198.51.100.9 local any ttl inherit tos inherit nopmtudisc +gre1: gre/ip remote 198.51.100.2 local 192.0.2.1 ttl 32 key 5 + Drop packets out of sequence. + Checksum in received packet is required. + Sequence packets on output. + Checksum output packets. +gre2: gre/ip remote 198.51.100.3 local 192.0.2.1 ttl inherit ikey 1 okey 2 + Drop packets out of sequence. + Checksum output packets. +gre3: gre/ip remote 239.1.1.1 local 192.0.2.1 ttl 1 key 4009820417 +sit1: any/ip remote 198.51.100.4 local 192.0.2.1 ttl 64 +sit2: ipv6/ip remote 198.51.100.8 local 192.0.2.1 ttl 16 +isa1: ipv6/ip remote any local 192.0.2.1 pr 192.0.2.11 pdr 192.0.2.10 ttl inherit +isan: any/ip remote any local 192.0.2.2 ttl inherit +vti1: ip/ip remote 198.51.100.5 local 192.0.2.1 ttl inherit nopmtudisc ikey 7 okey 8 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-069/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-069/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..1166af8aedf5fc47a72d2f137ce0e80f3651f44d GIT binary patch literal 66496 zcmeHQUx-xK89%dkX1zOVyV0q&#^@Tw#57GbF&k-Z-KI8)AcTex@*s2#O4xK=H*qaZ zLtq|K2r&UGK1lGvQlTM;NC_d7JSYjJP#^kG$b)^!n-tQ#gert$f4}o*?zi{O+&Q!E zuJ`Vo19#5-bIzH2zw@2%cfRjCfByODpZ_qRswxRp^*>xZ_V?Ko2YOlT?R6o~oP2H#Cy3VCf zRb5c;s`{?ExdeU>p%xc9tW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VLF6=99i0YfjE%^`%m&v)bYndN(?btU4&BYYsj zAKv1dmM^gH=DuaIzCq%|2>MmDYib?=xfXig3Gi3>RIJ@|^OoT_3zheQ*{V zs~gt`zZ3tT?t{}`A=X?9dl|8kdI(aEce1B)Ru*kzhRzY!S;BrrRW*+LwBJx?llD~d zaWW>dn>{sIr-}a~?W$$4-`oN0xOF;<9l?Hs$_$|`1r`H4_(#29$M!bZ!O_cU?BL2m z%K~z1254**t1E-a3o_pjBb+5%Sv<+rZ1Z=vH`fV=B+HQ zu$>WS<&SnJ=S$|dhWWml3VnAdDz1#6CQ`WKz4sm0S1mHGoW-|w!IdcBN^eck7gx4v z+DD3YU~xt7$&E|w8IkPC4Lt>O&N=!!;L1ke$`!0*dupy2@*_;%T4BA|xZ3F}9Mzk`747Kov2k50IIi4{Z_C4#FDsScAMscUfg<3_c*YJEN1P=h zaRqZGyzO8uzq`hl^30hKe)nq7S2C=cdqd(%-kb^HbFWIDI}3MqE{7w%&zUH&oet6rvmH~dm0Y7?cmh-@mnD{Y*zmaq9oF1|j_xlY$ zwg5kNJ|FO-H_q$t)J4S)j+klMsnLG1pLsI z7Y<$&C<1nIBUNG;%t7kjr7 zNqp(Dj^YZ7FR@-nMh$4cJH~J6al$Mx#-2W=F3O1$_W>u4zv_n*a{N`$Gg|D_cPB-` ZiPOM|O`tx1X`G b.txt" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -batch b.txt", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "rc": 0 + }, + { + "cmd": "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "rc": 0 + }, + { + "cmd": "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "rc": 0 + }, + { + "cmd": "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "rc": 0 + }, + { + "cmd": "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "rc": 0 + }, + { + "cmd": "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "rc": 0 + }, + { + "cmd": "ip tunnel add isa1 mode isatap local 192.0.2.1", + "rc": 0 + }, + { + "cmd": "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "rc": 0 + }, + { + "cmd": "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "rc": 0 + }, + { + "cmd": "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8", + "rc": 0 + }, + { + "cmd": "printf '%s\\n' 'tunnel show mode gre' 'tunnel show' > b.txt", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-070/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-070/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-070/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-070/ip.out new file mode 100644 index 000000000..c8f59394f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-070/ip.out @@ -0,0 +1,21 @@ +gre0: gre/ip remote any local any ttl inherit nopmtudisc +gre0: gre/ip remote any local any ttl inherit nopmtudisc +ip_vti0: ip/ip remote any local any ttl inherit nopmtudisc key 0 +tunl0: any/ip remote any local any ttl inherit nopmtudisc +sit0: ipv6/ip remote any local any ttl 64 nopmtudisc +ipip1: any/ip remote 198.51.100.1 local 192.0.2.1 dev d0 ttl 64 tos 0x10 +ipip2: any/ip remote 198.51.100.9 local any ttl inherit tos inherit nopmtudisc +gre1: gre/ip remote 198.51.100.2 local 192.0.2.1 ttl 32 key 5 + Drop packets out of sequence. + Checksum in received packet is required. + Sequence packets on output. + Checksum output packets. +gre2: gre/ip remote 198.51.100.3 local 192.0.2.1 ttl inherit ikey 1 okey 2 + Drop packets out of sequence. + Checksum output packets. +gre3: gre/ip remote 239.1.1.1 local 192.0.2.1 ttl 1 key 4009820417 +sit1: any/ip remote 198.51.100.4 local 192.0.2.1 ttl 64 +sit2: ipv6/ip remote 198.51.100.8 local 192.0.2.1 ttl 16 +isa1: ipv6/ip remote any local 192.0.2.1 pr 192.0.2.11 pdr 192.0.2.10 ttl inherit +isan: any/ip remote any local 192.0.2.2 ttl inherit +vti1: ip/ip remote 198.51.100.5 local 192.0.2.1 ttl inherit nopmtudisc ikey 7 okey 8 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-070/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-070/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..96ae36a986f30d4d9ac54a5b292e4cae7ecbddb9 GIT binary patch literal 33348 zcmeHQO^6)F6@D{4GwR()$;O$;e{sCFh5rPRV#ym}EAb|_0|s3Tf%xDgQrN{TS?zA5 zRY-0F_Q8Z0_Mn3gKCH0}CWs(%5SGb7u^nTuZZQb~hnxaIf#f1gaxlvGRlVAI(>*)W zvw!K?se%M`S`uxzFw7@v_nlk!^NW?)qe7qE8}t)X&zEbjxh>h z5{X-+l1!l-^Qt_V!1|4M#^uCbaYwfP@9H8GsKxr%(*!kZNd@O;glCaGlF0m`NGki} zAGlpdX@@b9f0qIy&F&l7%JV>pVzHIy=P|?h z9O&$MN#rHaS7oSlqjl3s!_MESyZHh64or)X>KI6o!kh#7V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8IuV|Xuu5Jm*vdJMKFUtgfiQYXv!a;Z&V{@6k^|YA&VLP_GMjhv`>Vw zuD7l0+6%-D)fx6s7pZbz)(py79O>3UIJ042PHTLd#vWff`?5N^2n&pwF0voEau5c% ztS_14jP$Sv?Lg5d;n-lTPi4gwj@0woGm0zjBdJAjh2Li_Gp=03dkw&qB;ty8e!-|H zt{if-PvjzE#TD2N!7$iTl))A3IrnRj#vNDg2d?ZpoyQf9Gm9xqM_eH*#ZXpU;mj|C zE6&kT1Xr$=99JI3yY<7Bk1Cbu9~p9J7R8krNBcw=6IV!U;);(u`U9;Us|@fg7xo(?O<)cyTg~!*)w7M?zO0|R?8#_qWb_`!dY8aMoS82It|=koeT#E;>4ahyt*6+gIQrllQ0 zf63yRlVhWQ@UyG{r@Pl}=k+r{UZ`Azl2Y?@+!ylMr{q4Q* zgYOso?evkv?{AYL;}^<`AN=B7OS?nyW0{vl{30W)f57L<-GC8491(^%4S^q^F+OgA z&<{U&pZdoJ@B{6`aEdT$_;C>UarLQ)AFlJ_sSpLqfFEhj{~-zgQqtP5@Xfp7^$)Z$ zO5aH|{*QXpKMJvLyO70?0pCg7qxg~1ukLAH=el3F4wwz5_)njZ&+Adcfk%J?e}B0c z4%qcoQIBA6k7p b.txt" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -batch b.txt", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "rc": 0 + }, + { + "cmd": "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "rc": 0 + }, + { + "cmd": "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "rc": 0 + }, + { + "cmd": "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "rc": 0 + }, + { + "cmd": "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "rc": 0 + }, + { + "cmd": "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "rc": 0 + }, + { + "cmd": "ip tunnel add isa1 mode isatap local 192.0.2.1", + "rc": 0 + }, + { + "cmd": "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "rc": 0 + }, + { + "cmd": "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "rc": 0 + }, + { + "cmd": "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8", + "rc": 0 + }, + { + "cmd": "printf '%s\\n' 'tunnel show mode any' 'tunnel show' > b.txt", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-071/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-071/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-071/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-071/ip.out new file mode 100644 index 000000000..0285bee94 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-071/ip.out @@ -0,0 +1,23 @@ +ip6tnl0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) +ip6gre0: gre/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) +ip6_vti0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit inherit tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) +gre0: gre/ip remote any local any ttl inherit nopmtudisc +ip_vti0: ip/ip remote any local any ttl inherit nopmtudisc key 0 +tunl0: any/ip remote any local any ttl inherit nopmtudisc +sit0: ipv6/ip remote any local any ttl 64 nopmtudisc +ipip1: any/ip remote 198.51.100.1 local 192.0.2.1 dev d0 ttl 64 tos 0x10 +ipip2: any/ip remote 198.51.100.9 local any ttl inherit tos inherit nopmtudisc +gre1: gre/ip remote 198.51.100.2 local 192.0.2.1 ttl 32 key 5 + Drop packets out of sequence. + Checksum in received packet is required. + Sequence packets on output. + Checksum output packets. +gre2: gre/ip remote 198.51.100.3 local 192.0.2.1 ttl inherit ikey 1 okey 2 + Drop packets out of sequence. + Checksum output packets. +gre3: gre/ip remote 239.1.1.1 local 192.0.2.1 ttl 1 key 4009820417 +sit1: any/ip remote 198.51.100.4 local 192.0.2.1 ttl 64 +sit2: ipv6/ip remote 198.51.100.8 local 192.0.2.1 ttl 16 +isa1: ipv6/ip remote any local 192.0.2.1 pr 192.0.2.11 pdr 192.0.2.10 ttl inherit +isan: any/ip remote any local 192.0.2.2 ttl inherit +vti1: ip/ip remote 198.51.100.5 local 192.0.2.1 ttl inherit nopmtudisc ikey 7 okey 8 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-071/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-071/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..b6966279bfa1761f9a83e39d1af74a6fc8bddf0d GIT binary patch literal 47724 zcmeHQO^h5z6@D|lv+iBnu$U#FL`gP35R(Ae#Ot*Q2G#@)LGd9MTfLnLwlneVHg>6-4I zp6c11p=YN`ny&7is{VQXRekTh`uppRYtPqZOp-7r|HZ+Ow{kzEqW@+z;Z zk9jUu&smcOax!ez_u!oRzd4PwH*bo}96T-0To!pR68Q+%XIN0%no7yk_IDFu^OHI) z_vLb3nor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aMQNAm~TeA%Np@J9=v zo;xM@12WcY(-rXtZ%g~52mZkIwLLRz{k6iH?}0x&i(4yM75IbeTc5}J)}KQ=2!HAI zt>aAlNYVQ7CHMum>c<+_Tb&!E)7TQHeWVfWlNN-%c3ghxGLPae!!I%0-L=dc>=&&1 z3G-$#*7ULGc|2@9ap>S_dFeS(Yr%hH^pyp?2mQX}OZUh53^rkQy$8zWzFe+L^NE^b z;Nwtr=>KDI^PGHNpUc~-YnVUm8mr7}L#KWFfAa&iM3Xvn)7t-4tf#+JYajD|>2zVO z(l%*%9aM!Uo&`_bizntU%@g!lMZohR@JVAr>xkr*YshmL|M8d3!)3Yl0lo7`$G;gk qKG}v?ZkGuFh}U_!%XL^5c%8-@5B-}Zg4emBN`|11K_rW_BL4$eOZ(IS literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-071/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-071/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-071/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-071/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-071/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..223dda1a7847c933d761b1169bbc2c218a30edae GIT binary patch literal 47724 zcmeHQTWlOx8UA<2yBRx9Fu@d*s;zs0hLnP796OW%4uyxJ=AjZod5A<3IYI`FP_gG=&Ip*%!sg+M|mRVsu;ABu#Ekot&3RH3#HeW(y9eBZfv&RlkO zX6;>Oz2`_fXJ+=Cx%~5;^ZoySZhyUb{iV8$NEAlozc@Jf=aKKfaA~(pW1l}62@Wx` zVG28Yq!!E~9nXz%;{@h^75U%XE$Wxd|Bt%Jgw%!kFO3GsKN8fC|8e0~WQPQ@w8HD^ zW1b7ubJnDRo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nNU?;p-;iuBJp*fI`fKN530Jn zvW|D_z$=00l`<$U&MVVO_JQyl7+%3TsmhMPeC;t_!I*R12Wi-O#jl&@d8J%w6wDai z?0N>|yt%^4__(s{70zs#;1$)`sECj2M#bB^_v792c;&rX&9{$~1aeV(WlG6DP<9A; zg|a5E=s4mP9+Ov+ey?G)SNs}xj1$4cKgyN5YS<-N{K1*QT)PD0r<4P$ zh+VP`_#^cEQ4Yyn@JC4gm{7c-{9Q5r;7U-##vgtyUC$roN?mpNgFR+i=4ImR?rwkk zgRkxR!+iXLQCa@rW!-*T`Z%&bEPurPSjGGP@_K{TkIS!5?fHYaEfcEHE|O(`v|r15 zTk{9neA%Pf^G6vBGi?d}fQ%W z9P3+u673-TCD*qOQ|%*p>&KVi7u>2BYg})3Zjg3kOPuzRhPO}3pghhm9p+KoVfZCv zyStWogZ+Y4KVjZA#LOo4JdX#BC*}^Gl2@J+wHEvbMqio7d(iJozI1<_&tM&9*DX*k z_vLb3T2Iy#10RE`L;oLxo9Dzk`drplUBmog*H~p<8`|yL|6A|cS!MJ+?fF=&r@vHd zAM<|hHJQ$@RT`64p@XXM#5M5519)Qok~~45RRBECfln@tY8_E=%ld9Pg#Y+U=Haqj ydw||q b.txt" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -batch - < b.txt", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "rc": 0 + }, + { + "cmd": "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "rc": 0 + }, + { + "cmd": "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "rc": 0 + }, + { + "cmd": "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1", + "rc": 0 + }, + { + "cmd": "printf '%s\\n' 'tunnel show mode ip6ip6 ip6t1' 'tunnel show' > b.txt", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-072/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-072/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-072/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-072/ip.out new file mode 100644 index 000000000..0929a9a3a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-072/ip.out @@ -0,0 +1,4 @@ +ip6t1: ipv6/ipv6 remote 2001:db8::2 local 2001:db8::1 dev d0 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 (flowinfo 0x00012345) allow-localremotegre0: gre/ip remote any local any ttl inherit nopmtudisc +ip_vti0: ip/ip remote any local any ttl inherit nopmtudisc key 0 +tunl0: any/ip remote any local any ttl inherit nopmtudisc +sit0: ipv6/ip remote any local any ttl 64 nopmtudisc diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-072/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-072/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..d7f09883c96abef6c869c7be15bc0473ecb89399 GIT binary patch literal 25660 zcmeHQ-EUMy6hGU$yKF09(W;3=t%4MSgpWc+M63eFn!fm=K9C3og4NO%Xbr@etcmd> z@=%o+B%ly^K!b|L5F$Q^Xrhrv5@X;G@F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7_3_1/ws/tunnel/ec-072/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-072/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..acbf18028ab20147c8990262272853d889e03dfe GIT binary patch literal 25660 zcmeHQU2IfE6h7O#yX;n~MXM$fwF>eRZ1^cuf{0bXNYWQyj1MG&fnc??1zN=zlQr=- z`hZFd5>QYc&|pME2oWD7XksFdB*tK3^hq?4XbAB|@%!edclO@9yLaifxl8XPcW3V1 znc0~$=bUfOnVGw1Pk(W+MY7_Dto)0cW#4C??);@qmLttevYv{VWSEERddWx+@~H>- zm~In@3v#OzGrFF|HR@?ce%7=2!+mE2b+Vq*h#97dCz}@Odd{OBB-IscPbZ$EJ)Uh( z3+~;({gxy zzv-a%;Lx_w&7+%Tk#~!{iRZ65bY@$~WA5csKHO59&;5qaDus3oEqOHoONjA9_{cOj#RQ>N3KC>vUeG<)aoUJ(7X6iadr+Xz3{L+lJp& zWsx7M4)cv|x7)W$XU;*_v zH6``8*2|64-;|0*>+g;TuJ3U4xFLn4`rJ|?UhL}g-I!rq13GJ75_t*qH9AzHXx*W- zVfpXm%v>u6xnU?687LryNeTF|sAd2K)X0z*C|MQjc}5;>(Dz!yc1VxByXwT;b)T!p z>Z5>K7>X!8I5afObR+PG^#nsuhq~WeJ?=hZnq?gPK~FXQ+y(r3{{1liP##&vy{Nxa z{2?``c1QyL(6;Dob3A-HZ19Q2C&IoMFFqYX zyYjMD_0HNCDLyH3H2lNGrz1W-ftN(~Irx+}bAi0UByFdXf51!#9R`ow23DJ&<$#0? z1!MJdUZw9XZt3}3-dF;8V<%fYBW_*#?Ch-lr&KXhR=1@YaqHuQVcepex|qeZi(9JG zsomr=z!XX)0k`@>xRmi|BA3iKv}wEP@n=T*mGdZ$?X(m;@7hj3D4$kpJ0*>^C)*dc z9@tcbHUuvzM@^rDO&!K2a%n`HAQ%b;!wO>I&LGM`7@kudlRvl<<-ns3K%q89=y?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3>?`z7`AUx|5|;#H!4^D3q3jhEB literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-072/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-072/tnlsys.out new file mode 100644 index 000000000..dd3d6161a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ec-072/tnlsys.out @@ -0,0 +1,56 @@ +{ + "ioctls": [ + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t1", + "in": "69703674310000000000000000000000000000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743100000000000000000000000c00000029040100000123454300030020010db800000000000000000000000120010db8000000000000000000000002000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726530000000000000000000000000000000000000000000000000000000004500000000000000002f00000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ip_vti0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69705f76746930000000000000000000000000002000200000000000000000004500000000000000000400000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "tunl0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "74756e6c300000000000000000000000000000000000000000000000000000004500000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "73697430000000000000000000000000000000000000000000000000000000004500000000000000402900000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "sit0", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + } + ], + "run": { + "argv": [ + "ip", + "-batch", + "-" + ], + "rc": 0, + "stdout": "ip6t1: ipv6/ipv6 remote 2001:db8::2 local 2001:db8::1 dev d0 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 (flowinfo 0x00012345) allow-localremotegre0: gre/ip remote any local any ttl inherit nopmtudisc\nip_vti0: ip/ip remote any local any ttl inherit nopmtudisc key 0\ntunl0: any/ip remote any local any ttl inherit nopmtudisc\nsit0: ipv6/ip remote any local any ttl 64 nopmtudisc\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-001/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-001/cmd.json new file mode 100644 index 000000000..64540f6e0 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-001/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "tnl4", + "json": "0", + "words": "tunnel show gre9" + }, + "cmd": "ip tunnel show gre9", + "desc": "negative: opt=plain cmd=ng:tnl4:tunnel_show_gre9: a gre name asks gre9 by ioctl: ENODEV, rc 1 (T5)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 1, + "refused_by": "iproute2" + }, + "id": "tunnel/ng-001", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "ip tunnel add isa1 mode isatap local 192.0.2.1", + "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- tunnel show gre9", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "rc": 0 + }, + { + "cmd": "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "rc": 0 + }, + { + "cmd": "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "rc": 0 + }, + { + "cmd": "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "rc": 0 + }, + { + "cmd": "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "rc": 0 + }, + { + "cmd": "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "rc": 0 + }, + { + "cmd": "ip tunnel add isa1 mode isatap local 192.0.2.1", + "rc": 0 + }, + { + "cmd": "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "rc": 0 + }, + { + "cmd": "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "rc": 0 + }, + { + "cmd": "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8", + "rc": 0 + } + ], + "rc": 1, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-001/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-001/ip.err new file mode 100644 index 000000000..ff72a2a5e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-001/ip.err @@ -0,0 +1 @@ +get tunnel "gre9" failed: No such device diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-001/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-001/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-001/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/ng-001/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..dcb4ca9230c6394d543bc19b01657744a5108bbd GIT binary patch literal 24 Wcmca|c+)~A1{MYcU}5+RKf&i%XL;AZGFd&5Qsl1YvYDJ%BKf&i%XL;AZ7*w&5Qsl1YvYDJ%B&IzOmxjq(hdkQAu+PCL4qn25z?rMm@V-Sz(6O2TCq^X z#J~(w#%vKq%xI}rT9sAem>tj-J*~;w zX&Q-aFUEDLY)_ zyt9<#Q*o?(pWP;Ft#}5Ptm>6|{0v;dDdFwkB+Rg^36+$6hjGu4$cPU`=7qF&uQBL$ z>IgHwIC+0vBlnVtkbBx&+>2ezeN(u9^vva+_GH9PT)6-R54qQu+Jji%i$0DDHn}_zm%f3WafFFnI8taI|A2fS)C#HX!gZJw#m-pc@ zyzAIc=ToBdw1>#m1aIo89I z$JKf$KZWJ#VNvVhhvWZe49|q3Wawuk_UX3=8uuh;HhP}(F$e2=eV29GSFuic_$pIR ziei1}u)b#IWZ>_WL|{%>?{*$+h-+8I-^m&1q%+IAa&~j@++~|~li1d|K4Dy=dx7Mm XRdG$3=$+h`qSy}QwZ=M^XD|K$$hkfc literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-001/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-001/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-001/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-001/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-001/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..43544b05c4204f702ef75c7ce91850b4ef066f24 GIT binary patch literal 6180 zcmeI0zi-n(6vw~z*--ieDwGW&F~ORlq#Xb;Au+PCL4qn25z?rMm@V-Sl!XbQRxE&+ z7??pUh%O9_85s~lh@k@mQFz~HyPSGXDpMI*il21n=kvYu-T8CR@9y*a*E>D}{FMMB zxoPYM_eLK>)J11PVAgm^<(w#|;h9yb$Fg~5meBs}Zir7Oq3NLg7av%L587|d8?g_J zC-&FD95@bx&Ia3!?^!md{qzuuC1u-RlrnuD)uePh23i+eSb70`HNc*{N1RpU|Z z-&soXsW?`?&u){oRy>3AR`p6fdOmg-XgVhjGu4$cPU`7KOBSuQBL$ z>ZoOWaq|8uB=?eukbBx&+>2ezeN(u9_{8O&_GH9PT)6-R54qQu+Jji_F%gDDHn}_hP@uvH~YP2*If@UbF7C) zTh)3fKZWJ#VNvVhyW{`o49|q3WauX(_UX3=8uuh;HhP}(AqVSweV29GSFuic_$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la7wh!>#A%MC#`_-p%pNx^wh>PKbb4-RMy^K}cF0*^>}zM|+T$#)slJ{>$Gb&e zlWU^HSgr-+db^hNHP83;)^X@ob{aYKEa`5y@a3l_(sRWd(6v@`Me~(5$vgNq$k`k} zZ>_YGkbJ$?jl}lGS(qzUn_vsqkbP{Knm;#pcBVaS`84C$aux5EoD1gI(iyq;vE{1r z-&S@+mcSQ;a<{RCk?b=MbaQYYYX)&A$%k*}Jh5A_=EQuCHJy>#-O)-Gu;xsPcaVTP zEn@uycJ0+t-0koV-z(OzdKUedCG;zaHO}Vcyn}x94Msl3j4AH`9$SVz4%>}wotrM2 zr#K$EjwcWxgq^|@EH%+DGAS`%5}^#9ptiuBchr~l_ul3DWri&?r|n)RszJZFPBc9? zZT78Aw$QQqUOKB&Yjb$5_s}^V-6=Xbn)0urfUIV$Qbn%)+;pw&HQiO6G}w0tj3@W6 zW@k+|$Gpy)3m@~&E9OCFq`Hnij-e}|uH8B=-R)^DL24N4-1^4#vRizmg~hb5L_KQ7 z%Ncfglf0Z|sLe1-&db?x=!SC^e5J1-pN(s@qXBpMeQTsvu;VX~nd+Ofpye9oavWd( zKMG!xPx%H*XWR=kV6M~u!BH0?x%L0xs7;;zkAiDEcIM8vuwn9Em+G#Vb2s-cTlEe; zP7DAi$ZHxI!BBPj|F>qN@2@i??>qaK%x4|%|AW>4-(JK2Zsq%-d6v&S>%5Ti(i}o literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-002/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-002/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-002/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-002/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-002/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..ea26c36450b2f647911570245566d0e4d47cc662 GIT binary patch literal 15720 zcmeHOF>D+~6#eJD+pI4(7&t%z35@BJx>p z(6m#MN3^|1HUBA%&8SHzN6d97M@?Lk$4y)|wMUq2K}e5cwZ??mlp!-r zNnAmXDSMOqCuHD~t#eD?VVosU&OO`3%LrHQv}Ku=PkJPNtpF_%If0k3+R^xKr~WjJ zH9eU&^p5Md>7C}SmUfNBe~q}LeXEr#FQI0I@5<--ZL-vGA&|$s;(2oI5jX@Hzg?}W zG^tsFR5I+5JJx)7QJ#;B@rhB;&)rD07yI^n5i^Y47-uU>A{Q{eYD1;jSXYcS zY>Sgbz#q1g3`ra6-*e;g+4h zh3W}}>L)uqBX0e&|Bb!p|25ULuI)=V;@02i)3`-F^)ZWSAGgd)=YCUN0CrF+3%GSW zg-eBiE^@5jq2KyVZ@yQXHsnz|zSA&d-uIn;gRdP)?mJ~ow6~fII|*#+g*AjM8KUO6 zhfNjriTp95Pmm0eVpz0-Vb+HtmK=O~_m|f#)oQ9aT}#jz+T$#)slFaT$Gb&e zlWU^HSgr-+db^tRHP83;)^X@ob{aYKEa`5y@Z~2a(sRX|(6v@`Me~(5$UFEp$k`k} zZ?&|OkbJ$?jl|Z*S(qzUn_vsqkbP{Knm;>tdZs;W`6A=kaux5EoD1gI(iyq;vE{1r z-&S@+7Qq*kRI$-7SXRH);OD&^A7sa*BSX3Gp@V?cx)N=IBYkzb#A(7 zp5l1uI-Wp)5Vi|Xu-HVu$fU%4NrWS>9P>JFE_}>8r26PJ2&rMHbL;EZ%Wm%v9f*1ufSwm*e>Q z|55Ooe9CuNI^$lT0dt-H501JJ$?g9KM{Vl#e-vEXu{#_27B;;4x=VFe%(S*n77scZ5H_-x@lzz literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-002/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-002/tnlsys.out new file mode 100644 index 000000000..d490b3a52 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-002/tnlsys.out @@ -0,0 +1,50 @@ +{ + "ioctls": [ + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726530000000000000000000000000000000000000000000000000000000004500000000000000002f00000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ip_vti0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69705f76746930000000000000000000000000002000200000000000000000004500000000000000000400000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "tunl0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "74756e6c300000000000000000000000000000000000000000000000000000004500000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "73697430000000000000000000000000000000000000000000000000000000004500000000000000402900000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "sit0", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + } + ], + "run": { + "argv": [ + "ip", + "-j", + "tunnel", + "show" + ], + "rc": 0, + "stdout": "[{\"ifname\":\"gre0\",\"mode\":\"gre/ip\",\"remote\":\"0.0.0.0\",\"local\":\"0.0.0.0\",\"nopmtudisc\":null,\"flags\":[]}\n,{\"ifname\":\"ip_vti0\",\"mode\":\"ip/ip\",\"remote\":\"0.0.0.0\",\"local\":\"0.0.0.0\",\"nopmtudisc\":null,\"key\":0}\n,{\"ifname\":\"tunl0\",\"mode\":\"any/ip\",\"remote\":\"0.0.0.0\",\"local\":\"0.0.0.0\",\"nopmtudisc\":null}\n,{\"ifname\":\"sit0\",\"mode\":\"ipv6/ip\",\"remote\":\"0.0.0.0\",\"local\":\"0.0.0.0\",\"ttl\":64,\"nopmtudisc\":null}\n]\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-003/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-003/cmd.json new file mode 100644 index 000000000..65690f450 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-003/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "tnl4", + "json": "1", + "words": "tunnel show" + }, + "cmd": "ip -j tunnel show", + "desc": "positive: opt=json cmd=tnl4:tunnel_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": "tunnel/pw-003", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "ip tunnel add isa1 mode isatap local 192.0.2.1", + "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -j tunnel show", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "rc": 0 + }, + { + "cmd": "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "rc": 0 + }, + { + "cmd": "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "rc": 0 + }, + { + "cmd": "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "rc": 0 + }, + { + "cmd": "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "rc": 0 + }, + { + "cmd": "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "rc": 0 + }, + { + "cmd": "ip tunnel add isa1 mode isatap local 192.0.2.1", + "rc": 0 + }, + { + "cmd": "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "rc": 0 + }, + { + "cmd": "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "rc": 0 + }, + { + "cmd": "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-003/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-003/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-003/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-003/ip.out new file mode 100644 index 000000000..2cf90c8c6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-003/ip.out @@ -0,0 +1,15 @@ +[{"ifname":"gre0","mode":"gre/ip","remote":"0.0.0.0","local":"0.0.0.0","nopmtudisc":null,"flags":[]} +,{"ifname":"ip_vti0","mode":"ip/ip","remote":"0.0.0.0","local":"0.0.0.0","nopmtudisc":null,"key":0} +,{"ifname":"tunl0","mode":"any/ip","remote":"0.0.0.0","local":"0.0.0.0","nopmtudisc":null} +,{"ifname":"sit0","mode":"ipv6/ip","remote":"0.0.0.0","local":"0.0.0.0","ttl":64,"nopmtudisc":null} +,{"ifname":"ipip1","mode":"any/ip","remote":"198.51.100.1","local":"192.0.2.1","dev":"d0","ttl":64,"tos":"0x10"} +,{"ifname":"ipip2","mode":"any/ip","remote":"198.51.100.9","local":"0.0.0.0","nopmtudisc":null} +,{"ifname":"gre1","mode":"gre/ip","remote":"198.51.100.2","local":"192.0.2.1","ttl":32,"key":5,"flags":["rx_drop_ooseq","rx_csum","tx_seq","tx_csum"]} +,{"ifname":"gre2","mode":"gre/ip","remote":"198.51.100.3","local":"192.0.2.1","ikey":1,"okey":2,"flags":["rx_drop_ooseq","tx_csum"]} +,{"ifname":"gre3","mode":"gre/ip","remote":"239.1.1.1","local":"192.0.2.1","ttl":1,"key":4009820417,"flags":[]} +,{"ifname":"sit1","mode":"any/ip","remote":"198.51.100.4","local":"192.0.2.1","ttl":64} +,{"ifname":"sit2","mode":"ipv6/ip","remote":"198.51.100.8","local":"192.0.2.1","ttl":16} +,{"ifname":"isa1","mode":"ipv6/ip","remote":"0.0.0.0","local":"192.0.2.1","pr":"192.0.2.11","pdr":"192.0.2.10"} +,{"ifname":"isan","mode":"any/ip","remote":"0.0.0.0","local":"192.0.2.2"} +,{"ifname":"vti1","mode":"ip/ip","remote":"198.51.100.5","local":"192.0.2.1","nopmtudisc":null,"ikey":7,"okey":8} +] diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-003/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-003/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..8bbd51a6a4fbf69b323e413222fc7908cef136d9 GIT binary patch literal 33348 zcmeHQU5F&r6+S)H-CHx+)lpl87=)xW0%Wh#{{cA--%NFUjWn?oaobs+#WV*`7(& z^u17ZZ&lrUyY9K?p6{M>?ydgvrRsMsEiO;J0k2LEtjx-OcM!OmLFowj% zQi*mUAMXwEqyo#IM)|#4#T?1d34i?49;RW826#aFv>H^{kjtp6vt&+@mq_%0Vuy7+ea z_qi>2zQ^Ui2lrWS%+ynpAG`XtyZbk}*icRCa-X@b%l#&<$@L~4F{MmWMilkV$mRCt zCOA)_7uP#%m7jqpEca~%wdWU}U7lW^mhtF^@+aK?qoOn4h1{i&B;V@y_4$(b^tDcp zqHD>k$-sJ!4vm0kn384#Z%p2szV+Agk5_G(v#t%3%z=FVw|#sL;pl}nFVphokTf5x zV3deFibmMcv9fJXerGDnJefM&6aU`k?cBZ9(!R3hKPPBkJt^7S*Cv)wr zL~@FlHD( z0G%x_iM#~*IvFZiv~Cz_xbk;uW`01v1JfeJZVbdoVa|d3!)68$qeh0hK**Zd&NJ$G z2YYQLY(pmGi^-q=^6xjA+vXIb7KUMzo?lp4WV#>t!+Me-DMR&hFUR#grddYe4_a#R zXA1c9)MOfeI38I>AC%t#e?XK04@JNq>K1-i7pOZ-vU)1{$6`eT zJ(die=4Uk^Aww)=c*f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QAGZGfmeu^ux~_+&3`#2b&%6!*zbns8{@8wR+u_y>9Ct9zTdDYgzlt z`pUNUcNzHc^;7xqgYEPFcKS$yznv5ryiip9;1}nKXWM`A*^%haWNh>Xzm;uKP9XfLURT|A+JU zd0jRfcmX)@dB(TdgCB#v8A28Xihu+BAD?^iKR(yu1$iX@$A>nl2=nV*$aj3i&H-8G zEtJ`fXFQT+_zj|qF$-iFK4!508fnw9Tq(ntB(k1Acd3WAZq~DW|9}6*6(y`E`JI#h E0grMzzyJUM literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-003/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-003/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-003/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-003/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-003/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..b0383b4172d60fa438a0177637e89b810d3d1fac GIT binary patch literal 33348 zcmeHQU5F&r6+S)H-CHxen~d5j_gBM#0N2uhZTPi)CWZnMDR6;=*vF%64vj#Kiy}ls=KRad&a8i zd!g&zs=oJj)w$=K@1Aq+t^VY#*Zw&oRcWWH{2wP%?^h4)d|^~3QRYXg(LQEAO`veD zRHA9rui6s%YW_i8JGV; zzCE)8-|u(ze~asEH(~mz$tAA8OWpPBTyCf)b-C4?*X1^o*W?P5kC|4cC}WCxAIOFF z;x;(WViY$!?UJj(6PEjSf!a&UPpr+Y&Bp9B_Ae^XOZe_OpgIQ>nj7_|OwWN>{$>2XI23HsbqB44ic`7z8e zc7o29mqeZgeVq=KELt~=HeCNZH8VdT-+^h7VkZMJN|N;2xATlT z?!lg04cm|@`FQ50JHNQrTsDUoy)ccU_0sb43d@7QANG?>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mE(A} z9=H+(TTOnN8yg!efg<3_Ov(=yM|{(=#uco8&+P|m#oZ0QlxNR` zin~{Xy^>jO zag?sCH`HGi6+h0ys3h8k8%8r-gD>iga0HoZ1}MX{J8Yb z0YCcVyy320RQ%wInWh^W#^L9W92^?^gO45X!wr7UtY7?Kw|d={J#X6|9zTdD8(I6y z{>rxYcMbUQ*`xXJgU{#V?TnFxcsnUFe5t7T!8hJD-EcVkSmJ4(xJZfZ55#=A8!+I9 zAwnOAKJWuHhJyyF8-DP6+8-Oh5A+YmDN@<+<0;_BAD;{OVFoW8a#5fN_z|b#9}-=F zyVw3Jyz{Pq`vZNH={<=m{!t6|M=thlRnqv;<2{Kx9Dc-%t6Q4axbD}i17?RY{vXa? z=Xu$1;19ro4>R7)9^x1r&5*JvPy`&{|M+}_|M9sDH^@)&e|+eZiZH*PM!o5sb`Hok z7ye^Z_Tf8zl5MWUrE@V0WE+0XWdAkNmSg#;jAD|=elF_K4}IP2=f$_*`Iak6*iZ63 GC*J`VlrRDS literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-003/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-003/tnlsys.out new file mode 100644 index 000000000..4466d96d5 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-003/tnlsys.out @@ -0,0 +1,141 @@ +{ + "ioctls": [ + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726530000000000000000000000000000000000000000000000000000000004500000000000000002f00000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ip_vti0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69705f76746930000000000000000000000000002000200000000000000000004500000000000000000400000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "tunl0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "74756e6c300000000000000000000000000000000000000000000000000000004500000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "73697430000000000000000000000000000000000000000000000000000000004500000000000000402900000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "sit0", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703100000000000000000000000c000000000000000000000000000000451000000000400040000000c0000201c6336401" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703200000000000000000000000000000000000000000000000000000045010000000000000000000000000000c6336409" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6772653100000000000000000000000000000000b000b00000000005000000054500000000004000202f0000c0000201c6336402" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726532000000000000000000000000000000003000a00000000001000000024500000000004000002f0000c0000201c6336403" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre3", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "677265330000000000000000000000000000000020002000ef010101ef0101014500000000004000012f0000c0000201ef010101" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743100000000000000000000000000000000000000000000000000000000450000000000400040000000c0000201c6336404" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743200000000000000000000000000000000000000000000000000000000450000000000400010290000c0000201c6336408" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "sit2", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isa1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973613100000000000000000000000000000000010000000000000000000000450000000000400000290000c000020100000000" + }, + { + "family": 2, + "req": "SIOCGETPRL", + "name": "isa1", + "in": "0000000000000000f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "00000000000000002000000000000000c000020b000000000000000000000000c000020a01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "isa1", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isan", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973616e00000000000000000000000000000000010000000000000000000000450000000000400000000000c000020200000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "vti1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7674693100000000000000000000000000000000210020000000000700000008450000000000000000040000c0000201c6336405" + } + ], + "run": { + "argv": [ + "ip", + "-j", + "tunnel", + "show" + ], + "rc": 0, + "stdout": "[{\"ifname\":\"gre0\",\"mode\":\"gre/ip\",\"remote\":\"0.0.0.0\",\"local\":\"0.0.0.0\",\"nopmtudisc\":null,\"flags\":[]}\n,{\"ifname\":\"ip_vti0\",\"mode\":\"ip/ip\",\"remote\":\"0.0.0.0\",\"local\":\"0.0.0.0\",\"nopmtudisc\":null,\"key\":0}\n,{\"ifname\":\"tunl0\",\"mode\":\"any/ip\",\"remote\":\"0.0.0.0\",\"local\":\"0.0.0.0\",\"nopmtudisc\":null}\n,{\"ifname\":\"sit0\",\"mode\":\"ipv6/ip\",\"remote\":\"0.0.0.0\",\"local\":\"0.0.0.0\",\"ttl\":64,\"nopmtudisc\":null}\n,{\"ifname\":\"ipip1\",\"mode\":\"any/ip\",\"remote\":\"198.51.100.1\",\"local\":\"192.0.2.1\",\"dev\":\"d0\",\"ttl\":64,\"tos\":\"0x10\"}\n,{\"ifname\":\"ipip2\",\"mode\":\"any/ip\",\"remote\":\"198.51.100.9\",\"local\":\"0.0.0.0\",\"nopmtudisc\":null}\n,{\"ifname\":\"gre1\",\"mode\":\"gre/ip\",\"remote\":\"198.51.100.2\",\"local\":\"192.0.2.1\",\"ttl\":32,\"key\":5,\"flags\":[\"rx_drop_ooseq\",\"rx_csum\",\"tx_seq\",\"tx_csum\"]}\n,{\"ifname\":\"gre2\",\"mode\":\"gre/ip\",\"remote\":\"198.51.100.3\",\"local\":\"192.0.2.1\",\"ikey\":1,\"okey\":2,\"flags\":[\"rx_drop_ooseq\",\"tx_csum\"]}\n,{\"ifname\":\"gre3\",\"mode\":\"gre/ip\",\"remote\":\"239.1.1.1\",\"local\":\"192.0.2.1\",\"ttl\":1,\"key\":4009820417,\"flags\":[]}\n,{\"ifname\":\"sit1\",\"mode\":\"any/ip\",\"remote\":\"198.51.100.4\",\"local\":\"192.0.2.1\",\"ttl\":64}\n,{\"ifname\":\"sit2\",\"mode\":\"ipv6/ip\",\"remote\":\"198.51.100.8\",\"local\":\"192.0.2.1\",\"ttl\":16}\n,{\"ifname\":\"isa1\",\"mode\":\"ipv6/ip\",\"remote\":\"0.0.0.0\",\"local\":\"192.0.2.1\",\"pr\":\"192.0.2.11\",\"pdr\":\"192.0.2.10\"}\n,{\"ifname\":\"isan\",\"mode\":\"any/ip\",\"remote\":\"0.0.0.0\",\"local\":\"192.0.2.2\"}\n,{\"ifname\":\"vti1\",\"mode\":\"ip/ip\",\"remote\":\"198.51.100.5\",\"local\":\"192.0.2.1\",\"nopmtudisc\":null,\"ikey\":7,\"okey\":8}\n]\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-004/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-004/cmd.json new file mode 100644 index 000000000..72cfe918a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-004/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "tnl4", + "json": "1", + "words": "tunnel" + }, + "cmd": "ip -j tunnel", + "desc": "corner: opt=json cmd=tnl4:tunnel", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/pw-004", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "ip tunnel add isa1 mode isatap local 192.0.2.1", + "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -j tunnel", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "rc": 0 + }, + { + "cmd": "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "rc": 0 + }, + { + "cmd": "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "rc": 0 + }, + { + "cmd": "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "rc": 0 + }, + { + "cmd": "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "rc": 0 + }, + { + "cmd": "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "rc": 0 + }, + { + "cmd": "ip tunnel add isa1 mode isatap local 192.0.2.1", + "rc": 0 + }, + { + "cmd": "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "rc": 0 + }, + { + "cmd": "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "rc": 0 + }, + { + "cmd": "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-004/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-004/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-004/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-004/ip.out new file mode 100644 index 000000000..2cf90c8c6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-004/ip.out @@ -0,0 +1,15 @@ +[{"ifname":"gre0","mode":"gre/ip","remote":"0.0.0.0","local":"0.0.0.0","nopmtudisc":null,"flags":[]} +,{"ifname":"ip_vti0","mode":"ip/ip","remote":"0.0.0.0","local":"0.0.0.0","nopmtudisc":null,"key":0} +,{"ifname":"tunl0","mode":"any/ip","remote":"0.0.0.0","local":"0.0.0.0","nopmtudisc":null} +,{"ifname":"sit0","mode":"ipv6/ip","remote":"0.0.0.0","local":"0.0.0.0","ttl":64,"nopmtudisc":null} +,{"ifname":"ipip1","mode":"any/ip","remote":"198.51.100.1","local":"192.0.2.1","dev":"d0","ttl":64,"tos":"0x10"} +,{"ifname":"ipip2","mode":"any/ip","remote":"198.51.100.9","local":"0.0.0.0","nopmtudisc":null} +,{"ifname":"gre1","mode":"gre/ip","remote":"198.51.100.2","local":"192.0.2.1","ttl":32,"key":5,"flags":["rx_drop_ooseq","rx_csum","tx_seq","tx_csum"]} +,{"ifname":"gre2","mode":"gre/ip","remote":"198.51.100.3","local":"192.0.2.1","ikey":1,"okey":2,"flags":["rx_drop_ooseq","tx_csum"]} +,{"ifname":"gre3","mode":"gre/ip","remote":"239.1.1.1","local":"192.0.2.1","ttl":1,"key":4009820417,"flags":[]} +,{"ifname":"sit1","mode":"any/ip","remote":"198.51.100.4","local":"192.0.2.1","ttl":64} +,{"ifname":"sit2","mode":"ipv6/ip","remote":"198.51.100.8","local":"192.0.2.1","ttl":16} +,{"ifname":"isa1","mode":"ipv6/ip","remote":"0.0.0.0","local":"192.0.2.1","pr":"192.0.2.11","pdr":"192.0.2.10"} +,{"ifname":"isan","mode":"any/ip","remote":"0.0.0.0","local":"192.0.2.2"} +,{"ifname":"vti1","mode":"ip/ip","remote":"198.51.100.5","local":"192.0.2.1","nopmtudisc":null,"ikey":7,"okey":8} +] diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-004/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-004/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..df3d82214c874c08819922b22fceec347bef1297 GIT binary patch literal 33348 zcmeHQ&yO5O6@IflGuyk^u!Kn>fq;crNk{_O#LId`9N3WLfMOv<${_~>HmnsE*1Kza zH!+EX1_cQY2>IYcgg7k32S7fU9HJm0WE2xcij_l@C=%iiKskhqg}8wEzWTBArh0a! zdw;2Wr%IZx>h7xQu2-+#SMR;5o_Ak=V`MdMbxq{3#cI#>Ef2__MCu-E#9L>;D3-v;0?F{52QP zx%eUZ&&^TXKkD*-9oJcI($v$C&$;^UaM$m5v7wqY+^-z z^tnz?pliviVPHM$Bjey1rlj4%8>8aKf)jqu}waj;dCVk_~Vr!y)AYIOMYJl7EpduQc`|fxx91oo1ib@f>uXH2jKUwZ z)Z)(q@aKiKEdFpjvW)&wenFX~2A_^3oF}zi*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~0z>hTIN3mhK1^h^f9}{?t-gD>iga0HoZ1`~= z_;Ka?5kHD?-f-tGD}HdrOxtx0{qPItP7aO!!DdJNaGjqsDvBShRfyBZ>ZYQe^l-S@DBkylcDeaQLyr(>#8W3hN*6 z`Eoa4#1BJ+0*3pG(AClaLZqfEDeDkij{((BG^qoZI|7b-0qu99A_%Yx+iK7lbQu@^`%^O_zYt{kt zsVV-`$6x1p)o`E<9Qfid^WlJAUlsKT_V#dwGT;FJ$LBBjAD=_$0{+7P@u5vB!TkCN z@?9IZb3m54Yj#v-agV>S48K8i3ub{V!`lq@Un6Zgl~2nUCW)-)O9Semt(*0{_p^sz M;ffO06MpC9|8+t+W&i*H literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-004/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-004/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-004/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-004/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-004/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..5bef3418e27b67b69c1dd821e84ed02b6a6768fd GIT binary patch literal 33348 zcmeHQO^h7H6@IflGwvPRWPt$$2-qZu-$YrkvtEILI7?|t>&tLpjs(+}PnlB%>*Rldi;_+P8PzxK(7jA5TYsYVmbd>X~h z6;g@zpd8N)aibFJPoVz39b$gT`XARsMo^3O_iv9-vl>;feN4C&*(Q<9%!$OZQ~rU= zHI!zm$>lD8*p!UTvsX~=ZgW1CT`s@gfI)nF0uXFah~<>arpx-pLF@X z^509_aDA^U{}9fz-l%D(CO>rT{n(xVnad5;q%Mz`s)m2Fv$`q=kM+FOGryUuw}U~?+i)n z7Zpf}$N{{Bm5$DLJM>S}Sl5kd!(H*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cWlsY;k{#oo-Gv>so{ zpUPERq_3rOWavzP>Lkw7e?yy1`%}rs+5I--uHBj$hiJcQ8T>bMz>dGan8uFazX213 z)Rh7ofgQY29_-lN1v@x!HtkBqD z%Qu+;>$j%Q|2Qz?nx_M1m`)CxOcW>rW*kUiMkAtxddzU^vWy!!3uZ8eP-OoRUHN_N zjiG=Unb>!^kj9K&>$1)p+DF3N&9|+&xfjUm&Suy~TV#mqvPMx(<4C6sl675H+ZI7{ z9rLcrV2hjpuKaO-8doT1q=){|59Ggz#CHwrfejS~Zc|iT89`4ZaK(HiH4Cor`>aLA zl_k7eA6$t7uH+NNthh2}Xdemtz~KsfhhP{iDN5i9)|}fpNP~_m3&54fPo;5%a;7nb z`vF(TN+A^$S1w1_Byhz{Hp+r47YdFmci`Q6;mW@&l@K4vDVkYvWz^6<66VAe(wewp z^R~UhW8w;R<)GurB5j$h@Vu}xPtlbnf+kPad(3+ zqn0r;n+}SwSOlTa*zh?|^?7b)J4fMsL;s?JBmcWn9{;n;6A928sd}6r@{D_GkBe;!TbLa7c|0FeN_;CvO zasIafKk{+jV3#f`esIQ2%XJOo@Y5#`4~+f6*ADpMIzMBU7eCmnp0{O>+xCaY58}yc z=Kiw1vd#T{7WnaYmo<_-5kGC^M65{Qo$l#@-;s?KY*K*zA@MD&TS>hrkwm%T_ z<_+QzzK1_F$$W-~j)}XZSz^>khg05UCnX=-!}DD#G}B z56bP|ZpVPEbM&c(u%IcNsB;_6Ux85|>-e_pzed`lSZ>t;I-eNy?B MGfLP_@;fL02f(o}-T(jq literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-004/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-004/tnlsys.out new file mode 100644 index 000000000..3572ec412 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-004/tnlsys.out @@ -0,0 +1,140 @@ +{ + "ioctls": [ + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726530000000000000000000000000000000000000000000000000000000004500000000000000002f00000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ip_vti0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69705f76746930000000000000000000000000002000200000000000000000004500000000000000000400000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "tunl0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "74756e6c300000000000000000000000000000000000000000000000000000004500000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "73697430000000000000000000000000000000000000000000000000000000004500000000000000402900000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "sit0", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703100000000000000000000000c000000000000000000000000000000451000000000400040000000c0000201c6336401" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703200000000000000000000000000000000000000000000000000000045010000000000000000000000000000c6336409" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6772653100000000000000000000000000000000b000b00000000005000000054500000000004000202f0000c0000201c6336402" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726532000000000000000000000000000000003000a00000000001000000024500000000004000002f0000c0000201c6336403" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre3", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "677265330000000000000000000000000000000020002000ef010101ef0101014500000000004000012f0000c0000201ef010101" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743100000000000000000000000000000000000000000000000000000000450000000000400040000000c0000201c6336404" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743200000000000000000000000000000000000000000000000000000000450000000000400010290000c0000201c6336408" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "sit2", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isa1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973613100000000000000000000000000000000010000000000000000000000450000000000400000290000c000020100000000" + }, + { + "family": 2, + "req": "SIOCGETPRL", + "name": "isa1", + "in": "0000000000000000f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "00000000000000002000000000000000c000020b000000000000000000000000c000020a01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "isa1", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isan", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973616e00000000000000000000000000000000010000000000000000000000450000000000400000000000c000020200000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "vti1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7674693100000000000000000000000000000000210020000000000700000008450000000000000000040000c0000201c6336405" + } + ], + "run": { + "argv": [ + "ip", + "-j", + "tunnel" + ], + "rc": 0, + "stdout": "[{\"ifname\":\"gre0\",\"mode\":\"gre/ip\",\"remote\":\"0.0.0.0\",\"local\":\"0.0.0.0\",\"nopmtudisc\":null,\"flags\":[]}\n,{\"ifname\":\"ip_vti0\",\"mode\":\"ip/ip\",\"remote\":\"0.0.0.0\",\"local\":\"0.0.0.0\",\"nopmtudisc\":null,\"key\":0}\n,{\"ifname\":\"tunl0\",\"mode\":\"any/ip\",\"remote\":\"0.0.0.0\",\"local\":\"0.0.0.0\",\"nopmtudisc\":null}\n,{\"ifname\":\"sit0\",\"mode\":\"ipv6/ip\",\"remote\":\"0.0.0.0\",\"local\":\"0.0.0.0\",\"ttl\":64,\"nopmtudisc\":null}\n,{\"ifname\":\"ipip1\",\"mode\":\"any/ip\",\"remote\":\"198.51.100.1\",\"local\":\"192.0.2.1\",\"dev\":\"d0\",\"ttl\":64,\"tos\":\"0x10\"}\n,{\"ifname\":\"ipip2\",\"mode\":\"any/ip\",\"remote\":\"198.51.100.9\",\"local\":\"0.0.0.0\",\"nopmtudisc\":null}\n,{\"ifname\":\"gre1\",\"mode\":\"gre/ip\",\"remote\":\"198.51.100.2\",\"local\":\"192.0.2.1\",\"ttl\":32,\"key\":5,\"flags\":[\"rx_drop_ooseq\",\"rx_csum\",\"tx_seq\",\"tx_csum\"]}\n,{\"ifname\":\"gre2\",\"mode\":\"gre/ip\",\"remote\":\"198.51.100.3\",\"local\":\"192.0.2.1\",\"ikey\":1,\"okey\":2,\"flags\":[\"rx_drop_ooseq\",\"tx_csum\"]}\n,{\"ifname\":\"gre3\",\"mode\":\"gre/ip\",\"remote\":\"239.1.1.1\",\"local\":\"192.0.2.1\",\"ttl\":1,\"key\":4009820417,\"flags\":[]}\n,{\"ifname\":\"sit1\",\"mode\":\"any/ip\",\"remote\":\"198.51.100.4\",\"local\":\"192.0.2.1\",\"ttl\":64}\n,{\"ifname\":\"sit2\",\"mode\":\"ipv6/ip\",\"remote\":\"198.51.100.8\",\"local\":\"192.0.2.1\",\"ttl\":16}\n,{\"ifname\":\"isa1\",\"mode\":\"ipv6/ip\",\"remote\":\"0.0.0.0\",\"local\":\"192.0.2.1\",\"pr\":\"192.0.2.11\",\"pdr\":\"192.0.2.10\"}\n,{\"ifname\":\"isan\",\"mode\":\"any/ip\",\"remote\":\"0.0.0.0\",\"local\":\"192.0.2.2\"}\n,{\"ifname\":\"vti1\",\"mode\":\"ip/ip\",\"remote\":\"198.51.100.5\",\"local\":\"192.0.2.1\",\"nopmtudisc\":null,\"ikey\":7,\"okey\":8}\n]\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-005/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-005/cmd.json new file mode 100644 index 000000000..9d4fdaf61 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-005/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "tnl4", + "json": "1", + "words": "tunnel list" + }, + "cmd": "ip -j tunnel list", + "desc": "positive: opt=json cmd=tnl4:tunnel_list", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/pw-005", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "ip tunnel add isa1 mode isatap local 192.0.2.1", + "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -j tunnel list", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "rc": 0 + }, + { + "cmd": "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "rc": 0 + }, + { + "cmd": "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "rc": 0 + }, + { + "cmd": "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "rc": 0 + }, + { + "cmd": "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "rc": 0 + }, + { + "cmd": "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "rc": 0 + }, + { + "cmd": "ip tunnel add isa1 mode isatap local 192.0.2.1", + "rc": 0 + }, + { + "cmd": "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "rc": 0 + }, + { + "cmd": "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "rc": 0 + }, + { + "cmd": "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-005/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-005/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-005/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-005/ip.out new file mode 100644 index 000000000..2cf90c8c6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-005/ip.out @@ -0,0 +1,15 @@ +[{"ifname":"gre0","mode":"gre/ip","remote":"0.0.0.0","local":"0.0.0.0","nopmtudisc":null,"flags":[]} +,{"ifname":"ip_vti0","mode":"ip/ip","remote":"0.0.0.0","local":"0.0.0.0","nopmtudisc":null,"key":0} +,{"ifname":"tunl0","mode":"any/ip","remote":"0.0.0.0","local":"0.0.0.0","nopmtudisc":null} +,{"ifname":"sit0","mode":"ipv6/ip","remote":"0.0.0.0","local":"0.0.0.0","ttl":64,"nopmtudisc":null} +,{"ifname":"ipip1","mode":"any/ip","remote":"198.51.100.1","local":"192.0.2.1","dev":"d0","ttl":64,"tos":"0x10"} +,{"ifname":"ipip2","mode":"any/ip","remote":"198.51.100.9","local":"0.0.0.0","nopmtudisc":null} +,{"ifname":"gre1","mode":"gre/ip","remote":"198.51.100.2","local":"192.0.2.1","ttl":32,"key":5,"flags":["rx_drop_ooseq","rx_csum","tx_seq","tx_csum"]} +,{"ifname":"gre2","mode":"gre/ip","remote":"198.51.100.3","local":"192.0.2.1","ikey":1,"okey":2,"flags":["rx_drop_ooseq","tx_csum"]} +,{"ifname":"gre3","mode":"gre/ip","remote":"239.1.1.1","local":"192.0.2.1","ttl":1,"key":4009820417,"flags":[]} +,{"ifname":"sit1","mode":"any/ip","remote":"198.51.100.4","local":"192.0.2.1","ttl":64} +,{"ifname":"sit2","mode":"ipv6/ip","remote":"198.51.100.8","local":"192.0.2.1","ttl":16} +,{"ifname":"isa1","mode":"ipv6/ip","remote":"0.0.0.0","local":"192.0.2.1","pr":"192.0.2.11","pdr":"192.0.2.10"} +,{"ifname":"isan","mode":"any/ip","remote":"0.0.0.0","local":"192.0.2.2"} +,{"ifname":"vti1","mode":"ip/ip","remote":"198.51.100.5","local":"192.0.2.1","nopmtudisc":null,"ikey":7,"okey":8} +] diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-005/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-005/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..245c8d845a6057c5c1c333ae4b12fe42c11337a4 GIT binary patch literal 33348 zcmeHQUx-~t8UOB{dvDHe5?$+B!J=-pXj=tW6E~qo-P#J4=EWE7L%~Egl*P^Nw%Ldx zl!N9$P%vo3R{Cc(5o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ih8+Ykz+W z{J7!XV)()L3-j%qBZ>3vq{#4vvf>B7c-PYIQ2bcrX_0x63fmu;^W|>9h#!s!eH{A0 z56~DNenRMmAG}WcV+;6!_Te~1s2YAe3;cM!!*>!p`LFnX5kE+U;SOcMk2E*`A<1>< z7VE#lH}CqlKhQ>%zLRL?KN`{g=ua*!e)RZG;vU71l=JGI<_)gXzAD-g?Cs$UWxxUckIxtJKR!333;4_aj}LuP3C7nmD7SCij{#Zd z!LQY12G{t@*0~i~*I*RLI=sx_|25L5Q~8jLVvxvo=6ke5UpL$N_Ti_`aYYH+$$sbL E|DYc=TL1t6 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-005/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-005/tnlsys.out new file mode 100644 index 000000000..c190be6d2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-005/tnlsys.out @@ -0,0 +1,141 @@ +{ + "ioctls": [ + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726530000000000000000000000000000000000000000000000000000000004500000000000000002f00000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ip_vti0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69705f76746930000000000000000000000000002000200000000000000000004500000000000000000400000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "tunl0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "74756e6c300000000000000000000000000000000000000000000000000000004500000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "73697430000000000000000000000000000000000000000000000000000000004500000000000000402900000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "sit0", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703100000000000000000000000c000000000000000000000000000000451000000000400040000000c0000201c6336401" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703200000000000000000000000000000000000000000000000000000045010000000000000000000000000000c6336409" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6772653100000000000000000000000000000000b000b00000000005000000054500000000004000202f0000c0000201c6336402" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726532000000000000000000000000000000003000a00000000001000000024500000000004000002f0000c0000201c6336403" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre3", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "677265330000000000000000000000000000000020002000ef010101ef0101014500000000004000012f0000c0000201ef010101" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743100000000000000000000000000000000000000000000000000000000450000000000400040000000c0000201c6336404" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743200000000000000000000000000000000000000000000000000000000450000000000400010290000c0000201c6336408" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "sit2", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isa1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973613100000000000000000000000000000000010000000000000000000000450000000000400000290000c000020100000000" + }, + { + "family": 2, + "req": "SIOCGETPRL", + "name": "isa1", + "in": "0000000000000000f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "00000000000000002000000000000000c000020b000000000000000000000000c000020a01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "isa1", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isan", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973616e00000000000000000000000000000000010000000000000000000000450000000000400000000000c000020200000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "vti1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7674693100000000000000000000000000000000210020000000000700000008450000000000000000040000c0000201c6336405" + } + ], + "run": { + "argv": [ + "ip", + "-j", + "tunnel", + "list" + ], + "rc": 0, + "stdout": "[{\"ifname\":\"gre0\",\"mode\":\"gre/ip\",\"remote\":\"0.0.0.0\",\"local\":\"0.0.0.0\",\"nopmtudisc\":null,\"flags\":[]}\n,{\"ifname\":\"ip_vti0\",\"mode\":\"ip/ip\",\"remote\":\"0.0.0.0\",\"local\":\"0.0.0.0\",\"nopmtudisc\":null,\"key\":0}\n,{\"ifname\":\"tunl0\",\"mode\":\"any/ip\",\"remote\":\"0.0.0.0\",\"local\":\"0.0.0.0\",\"nopmtudisc\":null}\n,{\"ifname\":\"sit0\",\"mode\":\"ipv6/ip\",\"remote\":\"0.0.0.0\",\"local\":\"0.0.0.0\",\"ttl\":64,\"nopmtudisc\":null}\n,{\"ifname\":\"ipip1\",\"mode\":\"any/ip\",\"remote\":\"198.51.100.1\",\"local\":\"192.0.2.1\",\"dev\":\"d0\",\"ttl\":64,\"tos\":\"0x10\"}\n,{\"ifname\":\"ipip2\",\"mode\":\"any/ip\",\"remote\":\"198.51.100.9\",\"local\":\"0.0.0.0\",\"nopmtudisc\":null}\n,{\"ifname\":\"gre1\",\"mode\":\"gre/ip\",\"remote\":\"198.51.100.2\",\"local\":\"192.0.2.1\",\"ttl\":32,\"key\":5,\"flags\":[\"rx_drop_ooseq\",\"rx_csum\",\"tx_seq\",\"tx_csum\"]}\n,{\"ifname\":\"gre2\",\"mode\":\"gre/ip\",\"remote\":\"198.51.100.3\",\"local\":\"192.0.2.1\",\"ikey\":1,\"okey\":2,\"flags\":[\"rx_drop_ooseq\",\"tx_csum\"]}\n,{\"ifname\":\"gre3\",\"mode\":\"gre/ip\",\"remote\":\"239.1.1.1\",\"local\":\"192.0.2.1\",\"ttl\":1,\"key\":4009820417,\"flags\":[]}\n,{\"ifname\":\"sit1\",\"mode\":\"any/ip\",\"remote\":\"198.51.100.4\",\"local\":\"192.0.2.1\",\"ttl\":64}\n,{\"ifname\":\"sit2\",\"mode\":\"ipv6/ip\",\"remote\":\"198.51.100.8\",\"local\":\"192.0.2.1\",\"ttl\":16}\n,{\"ifname\":\"isa1\",\"mode\":\"ipv6/ip\",\"remote\":\"0.0.0.0\",\"local\":\"192.0.2.1\",\"pr\":\"192.0.2.11\",\"pdr\":\"192.0.2.10\"}\n,{\"ifname\":\"isan\",\"mode\":\"any/ip\",\"remote\":\"0.0.0.0\",\"local\":\"192.0.2.2\"}\n,{\"ifname\":\"vti1\",\"mode\":\"ip/ip\",\"remote\":\"198.51.100.5\",\"local\":\"192.0.2.1\",\"nopmtudisc\":null,\"ikey\":7,\"okey\":8}\n]\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-006/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-006/cmd.json new file mode 100644 index 000000000..9d9d94d42 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-006/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "tnl4", + "json": "1", + "words": "tunnel lst" + }, + "cmd": "ip -j tunnel lst", + "desc": "positive: opt=json cmd=tnl4:tunnel_lst", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/pw-006", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "ip tunnel add isa1 mode isatap local 192.0.2.1", + "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -j tunnel lst", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "rc": 0 + }, + { + "cmd": "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "rc": 0 + }, + { + "cmd": "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "rc": 0 + }, + { + "cmd": "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "rc": 0 + }, + { + "cmd": "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "rc": 0 + }, + { + "cmd": "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "rc": 0 + }, + { + "cmd": "ip tunnel add isa1 mode isatap local 192.0.2.1", + "rc": 0 + }, + { + "cmd": "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "rc": 0 + }, + { + "cmd": "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "rc": 0 + }, + { + "cmd": "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-006/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-006/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-006/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-006/ip.out new file mode 100644 index 000000000..2cf90c8c6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-006/ip.out @@ -0,0 +1,15 @@ +[{"ifname":"gre0","mode":"gre/ip","remote":"0.0.0.0","local":"0.0.0.0","nopmtudisc":null,"flags":[]} +,{"ifname":"ip_vti0","mode":"ip/ip","remote":"0.0.0.0","local":"0.0.0.0","nopmtudisc":null,"key":0} +,{"ifname":"tunl0","mode":"any/ip","remote":"0.0.0.0","local":"0.0.0.0","nopmtudisc":null} +,{"ifname":"sit0","mode":"ipv6/ip","remote":"0.0.0.0","local":"0.0.0.0","ttl":64,"nopmtudisc":null} +,{"ifname":"ipip1","mode":"any/ip","remote":"198.51.100.1","local":"192.0.2.1","dev":"d0","ttl":64,"tos":"0x10"} +,{"ifname":"ipip2","mode":"any/ip","remote":"198.51.100.9","local":"0.0.0.0","nopmtudisc":null} +,{"ifname":"gre1","mode":"gre/ip","remote":"198.51.100.2","local":"192.0.2.1","ttl":32,"key":5,"flags":["rx_drop_ooseq","rx_csum","tx_seq","tx_csum"]} +,{"ifname":"gre2","mode":"gre/ip","remote":"198.51.100.3","local":"192.0.2.1","ikey":1,"okey":2,"flags":["rx_drop_ooseq","tx_csum"]} +,{"ifname":"gre3","mode":"gre/ip","remote":"239.1.1.1","local":"192.0.2.1","ttl":1,"key":4009820417,"flags":[]} +,{"ifname":"sit1","mode":"any/ip","remote":"198.51.100.4","local":"192.0.2.1","ttl":64} +,{"ifname":"sit2","mode":"ipv6/ip","remote":"198.51.100.8","local":"192.0.2.1","ttl":16} +,{"ifname":"isa1","mode":"ipv6/ip","remote":"0.0.0.0","local":"192.0.2.1","pr":"192.0.2.11","pdr":"192.0.2.10"} +,{"ifname":"isan","mode":"any/ip","remote":"0.0.0.0","local":"192.0.2.2"} +,{"ifname":"vti1","mode":"ip/ip","remote":"198.51.100.5","local":"192.0.2.1","nopmtudisc":null,"ikey":7,"okey":8} +] diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-006/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-006/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..03437dd33cfd0d46cd82bfd1963640a60e5c99f6 GIT binary patch literal 33348 zcmeHQO^h5z6@D{4GwxmQ!V;DsK)?bKgdYim&DsJJHo+l6vLYcx!UrSAXjfsydUuJ} z{D{j4ac}^E4^|Rc{Hztrih_|M4k(8l3?U>Embif60GDt9BY}i+03+Ca|?1Hd9!>6*UuX|^IphZ_LJpXd%vMx z_L@DnThaF>Tj=?ho`?O6~orw(_OfJ+URj5g+zTGC{Zl8 z`urkh82dqI&r2fT1btP9N;g_hJ8ii6cbaZ~K)wUhBBd$=DN2}g;QE-G0i@`WsU=Xd zF8A|{7Vg2Hdks4+v+~OSo_XoPSKMWHNYM+^7+No{tgNy;4E$j~*_73x_WPj6?KPI! z#^4X0w1YnrnC=j>EdEd)*~WgTza##Tnxmb{fIqY?F2S~V6}AOGS=-{t96lXRI8SQp z&?!DW^5{Y_e0o~(iOqMyzPMd{x`zA8+7}U@bg+k?E*h4B8O93hdFW~$ODI>pu!Oi0eQ;Th8IAKYUwewJZSbK(Zoxa7 zeduM9-KzM@|8O}!SNtPnt=C-9jnZxU9jp!tI>%nysvI~Z#%lv5b~i7>Tyd!jwlIcl zv1Q@Wv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?8 MTv5V)vhO+hKLeCTz5oCK literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-006/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-006/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-006/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-006/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-006/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..081793eb37d76abdd1f54b3106dd4d9edc638582 GIT binary patch literal 33348 zcmeHQO^h5z6@D{4Gwxm1VUsLD1OW>~BoHJ_Z0r@7un7(U$%+)o5&tLpjVi@&~5mxgpwL*By4fma$||MJgkvIk{;q>;=p z3uzjKo1~V^pdPQ)c`%9X=h6P~gt$+({coEhlW4{E2PP7fytN9l+ zpVjQN|7R zUX}Oyi#y;rhf&<>G$D6_Cp`B}fZB^o-#ByP%n8|(+$ul7^|OY~yccqp{bc#p-fyUv zy=KpCc@jfQUd<-XG>;|;mH-H?0Q?N(NI*AmK6TYH!Q zSI#f*Us+t(gWfy(n{~SB?<>Fp>ThaF>Tj=?ho`?O6~orwQ(d@z%II+=g+zTGC{Zl8 z`usd*81Dj|JuiuT2lQ1PD&1&3<+S1Y-)Xw}0r?J0iT3Tj#82H0}vMH-W?e{^C+iNVd zjlmy0X$OBMFx??$S^S|qvW@*ve@FZwHAg#@0e@&)T!L-!CTt6SvbM!jIea>haGuoG zp;LT%0l2zv-otSgHPZkkslj;YUx~{rI_UH zRPv9Qz~S5=DRfyxaH?>Ewuz%Y9|LgBW``^>Hq)j>YrRQZR_u) zin#UC19{w{oLbCc+2WRa=x8@}7+{1-Wx%b&Ib5nGG?Cjn4!gbGbnKfe^Uirx#CF;T zp0~EspJ8jK5^bllvG#WR!X5%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G&FjBYioQ56BoMiR|aGKK; literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-006/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-006/tnlsys.out new file mode 100644 index 000000000..108a93966 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-006/tnlsys.out @@ -0,0 +1,141 @@ +{ + "ioctls": [ + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726530000000000000000000000000000000000000000000000000000000004500000000000000002f00000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ip_vti0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69705f76746930000000000000000000000000002000200000000000000000004500000000000000000400000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "tunl0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "74756e6c300000000000000000000000000000000000000000000000000000004500000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "73697430000000000000000000000000000000000000000000000000000000004500000000000000402900000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "sit0", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703100000000000000000000000c000000000000000000000000000000451000000000400040000000c0000201c6336401" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703200000000000000000000000000000000000000000000000000000045010000000000000000000000000000c6336409" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6772653100000000000000000000000000000000b000b00000000005000000054500000000004000202f0000c0000201c6336402" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726532000000000000000000000000000000003000a00000000001000000024500000000004000002f0000c0000201c6336403" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre3", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "677265330000000000000000000000000000000020002000ef010101ef0101014500000000004000012f0000c0000201ef010101" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743100000000000000000000000000000000000000000000000000000000450000000000400040000000c0000201c6336404" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743200000000000000000000000000000000000000000000000000000000450000000000400010290000c0000201c6336408" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "sit2", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isa1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973613100000000000000000000000000000000010000000000000000000000450000000000400000290000c000020100000000" + }, + { + "family": 2, + "req": "SIOCGETPRL", + "name": "isa1", + "in": "0000000000000000f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "00000000000000002000000000000000c000020b000000000000000000000000c000020a01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "isa1", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isan", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973616e00000000000000000000000000000000010000000000000000000000450000000000400000000000c000020200000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "vti1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7674693100000000000000000000000000000000210020000000000700000008450000000000000000040000c0000201c6336405" + } + ], + "run": { + "argv": [ + "ip", + "-j", + "tunnel", + "lst" + ], + "rc": 0, + "stdout": "[{\"ifname\":\"gre0\",\"mode\":\"gre/ip\",\"remote\":\"0.0.0.0\",\"local\":\"0.0.0.0\",\"nopmtudisc\":null,\"flags\":[]}\n,{\"ifname\":\"ip_vti0\",\"mode\":\"ip/ip\",\"remote\":\"0.0.0.0\",\"local\":\"0.0.0.0\",\"nopmtudisc\":null,\"key\":0}\n,{\"ifname\":\"tunl0\",\"mode\":\"any/ip\",\"remote\":\"0.0.0.0\",\"local\":\"0.0.0.0\",\"nopmtudisc\":null}\n,{\"ifname\":\"sit0\",\"mode\":\"ipv6/ip\",\"remote\":\"0.0.0.0\",\"local\":\"0.0.0.0\",\"ttl\":64,\"nopmtudisc\":null}\n,{\"ifname\":\"ipip1\",\"mode\":\"any/ip\",\"remote\":\"198.51.100.1\",\"local\":\"192.0.2.1\",\"dev\":\"d0\",\"ttl\":64,\"tos\":\"0x10\"}\n,{\"ifname\":\"ipip2\",\"mode\":\"any/ip\",\"remote\":\"198.51.100.9\",\"local\":\"0.0.0.0\",\"nopmtudisc\":null}\n,{\"ifname\":\"gre1\",\"mode\":\"gre/ip\",\"remote\":\"198.51.100.2\",\"local\":\"192.0.2.1\",\"ttl\":32,\"key\":5,\"flags\":[\"rx_drop_ooseq\",\"rx_csum\",\"tx_seq\",\"tx_csum\"]}\n,{\"ifname\":\"gre2\",\"mode\":\"gre/ip\",\"remote\":\"198.51.100.3\",\"local\":\"192.0.2.1\",\"ikey\":1,\"okey\":2,\"flags\":[\"rx_drop_ooseq\",\"tx_csum\"]}\n,{\"ifname\":\"gre3\",\"mode\":\"gre/ip\",\"remote\":\"239.1.1.1\",\"local\":\"192.0.2.1\",\"ttl\":1,\"key\":4009820417,\"flags\":[]}\n,{\"ifname\":\"sit1\",\"mode\":\"any/ip\",\"remote\":\"198.51.100.4\",\"local\":\"192.0.2.1\",\"ttl\":64}\n,{\"ifname\":\"sit2\",\"mode\":\"ipv6/ip\",\"remote\":\"198.51.100.8\",\"local\":\"192.0.2.1\",\"ttl\":16}\n,{\"ifname\":\"isa1\",\"mode\":\"ipv6/ip\",\"remote\":\"0.0.0.0\",\"local\":\"192.0.2.1\",\"pr\":\"192.0.2.11\",\"pdr\":\"192.0.2.10\"}\n,{\"ifname\":\"isan\",\"mode\":\"any/ip\",\"remote\":\"0.0.0.0\",\"local\":\"192.0.2.2\"}\n,{\"ifname\":\"vti1\",\"mode\":\"ip/ip\",\"remote\":\"198.51.100.5\",\"local\":\"192.0.2.1\",\"nopmtudisc\":null,\"ikey\":7,\"okey\":8}\n]\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-007/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-007/cmd.json new file mode 100644 index 000000000..97d41308b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-007/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "tnl4", + "json": "1", + "words": "tunnel sh" + }, + "cmd": "ip -j tunnel sh", + "desc": "corner: opt=json cmd=tnl4:tunnel_sh", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/pw-007", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "ip tunnel add isa1 mode isatap local 192.0.2.1", + "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -j tunnel sh", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "rc": 0 + }, + { + "cmd": "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "rc": 0 + }, + { + "cmd": "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "rc": 0 + }, + { + "cmd": "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "rc": 0 + }, + { + "cmd": "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "rc": 0 + }, + { + "cmd": "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "rc": 0 + }, + { + "cmd": "ip tunnel add isa1 mode isatap local 192.0.2.1", + "rc": 0 + }, + { + "cmd": "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "rc": 0 + }, + { + "cmd": "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "rc": 0 + }, + { + "cmd": "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-007/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-007/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-007/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-007/ip.out new file mode 100644 index 000000000..2cf90c8c6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-007/ip.out @@ -0,0 +1,15 @@ +[{"ifname":"gre0","mode":"gre/ip","remote":"0.0.0.0","local":"0.0.0.0","nopmtudisc":null,"flags":[]} +,{"ifname":"ip_vti0","mode":"ip/ip","remote":"0.0.0.0","local":"0.0.0.0","nopmtudisc":null,"key":0} +,{"ifname":"tunl0","mode":"any/ip","remote":"0.0.0.0","local":"0.0.0.0","nopmtudisc":null} +,{"ifname":"sit0","mode":"ipv6/ip","remote":"0.0.0.0","local":"0.0.0.0","ttl":64,"nopmtudisc":null} +,{"ifname":"ipip1","mode":"any/ip","remote":"198.51.100.1","local":"192.0.2.1","dev":"d0","ttl":64,"tos":"0x10"} +,{"ifname":"ipip2","mode":"any/ip","remote":"198.51.100.9","local":"0.0.0.0","nopmtudisc":null} +,{"ifname":"gre1","mode":"gre/ip","remote":"198.51.100.2","local":"192.0.2.1","ttl":32,"key":5,"flags":["rx_drop_ooseq","rx_csum","tx_seq","tx_csum"]} +,{"ifname":"gre2","mode":"gre/ip","remote":"198.51.100.3","local":"192.0.2.1","ikey":1,"okey":2,"flags":["rx_drop_ooseq","tx_csum"]} +,{"ifname":"gre3","mode":"gre/ip","remote":"239.1.1.1","local":"192.0.2.1","ttl":1,"key":4009820417,"flags":[]} +,{"ifname":"sit1","mode":"any/ip","remote":"198.51.100.4","local":"192.0.2.1","ttl":64} +,{"ifname":"sit2","mode":"ipv6/ip","remote":"198.51.100.8","local":"192.0.2.1","ttl":16} +,{"ifname":"isa1","mode":"ipv6/ip","remote":"0.0.0.0","local":"192.0.2.1","pr":"192.0.2.11","pdr":"192.0.2.10"} +,{"ifname":"isan","mode":"any/ip","remote":"0.0.0.0","local":"192.0.2.2"} +,{"ifname":"vti1","mode":"ip/ip","remote":"198.51.100.5","local":"192.0.2.1","nopmtudisc":null,"ikey":7,"okey":8} +] diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-007/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-007/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..f89d3b4975fb46d91cbb9a9b7eedf9dde937a763 GIT binary patch literal 33348 zcmeHQU5ph;6+ZX&y_cSG&=E#9fvBTPR>Vz2K^PQtmR%m$%!`|tC5E`LJ1iL;W(F9@ zni%aEH6|J*1`{59V0U@g5H=x1c8Nd9tPnMkN0e;htBLVJUU=}ujNey3bI)|&xwr2y zGj`9dN^VzmcU5)QsZ-~xb52#?`*&`>UX_|OLrwmRlYM`wee3F9E3yk|{-hR-F!Es- ziA_?8Mv#x!sywK`@_$14u>mo^bot-aMFvrd<@XOnC|QdtI35umMK(wzlhY!xY?OcE zb{)AH>hfV1KWlQv=G`mE_jz+YmfbGi=HidJ_@IkF?#k_u`FYm=X+~0m5AdgaWxEpD<@|5 z&Q4A4LhViY%{;B-_jODpp#454GU>AtlEhDI~~qPlpF)| zr_P?thfi-gd}8s{&@UbrpRVJ*()vZfC)e349BF*I-oz*HlE|+VJ~iB2py4pd>Z#-( zixoo-kM!%co1fKzgbcBe;TdmqvBxbte``2RpyBjnk7vZKO%ER(8BI(vSJu8u8FB0I zSQfW9PBmsRt#QjVI_OPJ2I!$w5pZiPgG-gDhCWDKKWwym(@Pg-CyenZkM6VwJg;@9 z2garqbf==R_FCJ*jsctcAPvDw#!xe+uxZHYM4Cp_3DO~U7#1&JnAM?(B|rN`eC^Py z%@Q8h%7`V~zMaJqj;nT9LR<+pxMu(NQmP18LLKNEf2+vtQ(}H;9q0xWp2hx^{)i(y zaUIo%F>Mqeoae!ryAEeqyofr`WxQ8f2lBQeFUNu{j=h&ZXkF(b@PzcFqND9_o%Ed8 z={er+=Izb2yD`+^{bFd^-`eXjb=mClTfEYEb5S1O=VK~Q9f$)6ZkOV|*4Op8^)__NJBw}TMH;(h zv6p{uG&@)PJH}eOxuW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nl/testdata/7_3_1/ws/tunnel/pw-007/tnlsys.out @@ -0,0 +1,141 @@ +{ + "ioctls": [ + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726530000000000000000000000000000000000000000000000000000000004500000000000000002f00000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ip_vti0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69705f76746930000000000000000000000000002000200000000000000000004500000000000000000400000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "tunl0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "74756e6c300000000000000000000000000000000000000000000000000000004500000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "73697430000000000000000000000000000000000000000000000000000000004500000000000000402900000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "sit0", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703100000000000000000000000c000000000000000000000000000000451000000000400040000000c0000201c6336401" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703200000000000000000000000000000000000000000000000000000045010000000000000000000000000000c6336409" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6772653100000000000000000000000000000000b000b00000000005000000054500000000004000202f0000c0000201c6336402" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726532000000000000000000000000000000003000a00000000001000000024500000000004000002f0000c0000201c6336403" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre3", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "677265330000000000000000000000000000000020002000ef010101ef0101014500000000004000012f0000c0000201ef010101" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743100000000000000000000000000000000000000000000000000000000450000000000400040000000c0000201c6336404" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743200000000000000000000000000000000000000000000000000000000450000000000400010290000c0000201c6336408" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "sit2", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isa1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973613100000000000000000000000000000000010000000000000000000000450000000000400000290000c000020100000000" + }, + { + "family": 2, + "req": "SIOCGETPRL", + "name": "isa1", + "in": "0000000000000000f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "00000000000000002000000000000000c000020b000000000000000000000000c000020a01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "isa1", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isan", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973616e00000000000000000000000000000000010000000000000000000000450000000000400000000000c000020200000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "vti1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7674693100000000000000000000000000000000210020000000000700000008450000000000000000040000c0000201c6336405" + } + ], + "run": { + "argv": [ + "ip", + "-j", + "tunnel", + "sh" + ], + "rc": 0, + "stdout": "[{\"ifname\":\"gre0\",\"mode\":\"gre/ip\",\"remote\":\"0.0.0.0\",\"local\":\"0.0.0.0\",\"nopmtudisc\":null,\"flags\":[]}\n,{\"ifname\":\"ip_vti0\",\"mode\":\"ip/ip\",\"remote\":\"0.0.0.0\",\"local\":\"0.0.0.0\",\"nopmtudisc\":null,\"key\":0}\n,{\"ifname\":\"tunl0\",\"mode\":\"any/ip\",\"remote\":\"0.0.0.0\",\"local\":\"0.0.0.0\",\"nopmtudisc\":null}\n,{\"ifname\":\"sit0\",\"mode\":\"ipv6/ip\",\"remote\":\"0.0.0.0\",\"local\":\"0.0.0.0\",\"ttl\":64,\"nopmtudisc\":null}\n,{\"ifname\":\"ipip1\",\"mode\":\"any/ip\",\"remote\":\"198.51.100.1\",\"local\":\"192.0.2.1\",\"dev\":\"d0\",\"ttl\":64,\"tos\":\"0x10\"}\n,{\"ifname\":\"ipip2\",\"mode\":\"any/ip\",\"remote\":\"198.51.100.9\",\"local\":\"0.0.0.0\",\"nopmtudisc\":null}\n,{\"ifname\":\"gre1\",\"mode\":\"gre/ip\",\"remote\":\"198.51.100.2\",\"local\":\"192.0.2.1\",\"ttl\":32,\"key\":5,\"flags\":[\"rx_drop_ooseq\",\"rx_csum\",\"tx_seq\",\"tx_csum\"]}\n,{\"ifname\":\"gre2\",\"mode\":\"gre/ip\",\"remote\":\"198.51.100.3\",\"local\":\"192.0.2.1\",\"ikey\":1,\"okey\":2,\"flags\":[\"rx_drop_ooseq\",\"tx_csum\"]}\n,{\"ifname\":\"gre3\",\"mode\":\"gre/ip\",\"remote\":\"239.1.1.1\",\"local\":\"192.0.2.1\",\"ttl\":1,\"key\":4009820417,\"flags\":[]}\n,{\"ifname\":\"sit1\",\"mode\":\"any/ip\",\"remote\":\"198.51.100.4\",\"local\":\"192.0.2.1\",\"ttl\":64}\n,{\"ifname\":\"sit2\",\"mode\":\"ipv6/ip\",\"remote\":\"198.51.100.8\",\"local\":\"192.0.2.1\",\"ttl\":16}\n,{\"ifname\":\"isa1\",\"mode\":\"ipv6/ip\",\"remote\":\"0.0.0.0\",\"local\":\"192.0.2.1\",\"pr\":\"192.0.2.11\",\"pdr\":\"192.0.2.10\"}\n,{\"ifname\":\"isan\",\"mode\":\"any/ip\",\"remote\":\"0.0.0.0\",\"local\":\"192.0.2.2\"}\n,{\"ifname\":\"vti1\",\"mode\":\"ip/ip\",\"remote\":\"198.51.100.5\",\"local\":\"192.0.2.1\",\"nopmtudisc\":null,\"ikey\":7,\"okey\":8}\n]\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-008/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-008/cmd.json new file mode 100644 index 000000000..8555f96ea --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-008/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "tnl4", + "json": "1", + "words": "tunl show" + }, + "cmd": "ip -j tunl show", + "desc": "corner: opt=json cmd=tnl4:tunl_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": "tunnel/pw-008", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "ip tunnel add isa1 mode isatap local 192.0.2.1", + "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -j tunl show", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "rc": 0 + }, + { + "cmd": "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "rc": 0 + }, + { + "cmd": "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "rc": 0 + }, + { + "cmd": "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "rc": 0 + }, + { + "cmd": "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "rc": 0 + }, + { + "cmd": "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "rc": 0 + }, + { + "cmd": "ip tunnel add isa1 mode isatap local 192.0.2.1", + "rc": 0 + }, + { + "cmd": "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "rc": 0 + }, + { + "cmd": "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "rc": 0 + }, + { + "cmd": "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-008/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-008/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-008/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-008/ip.out new file mode 100644 index 000000000..2cf90c8c6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-008/ip.out @@ -0,0 +1,15 @@ +[{"ifname":"gre0","mode":"gre/ip","remote":"0.0.0.0","local":"0.0.0.0","nopmtudisc":null,"flags":[]} +,{"ifname":"ip_vti0","mode":"ip/ip","remote":"0.0.0.0","local":"0.0.0.0","nopmtudisc":null,"key":0} +,{"ifname":"tunl0","mode":"any/ip","remote":"0.0.0.0","local":"0.0.0.0","nopmtudisc":null} +,{"ifname":"sit0","mode":"ipv6/ip","remote":"0.0.0.0","local":"0.0.0.0","ttl":64,"nopmtudisc":null} +,{"ifname":"ipip1","mode":"any/ip","remote":"198.51.100.1","local":"192.0.2.1","dev":"d0","ttl":64,"tos":"0x10"} +,{"ifname":"ipip2","mode":"any/ip","remote":"198.51.100.9","local":"0.0.0.0","nopmtudisc":null} +,{"ifname":"gre1","mode":"gre/ip","remote":"198.51.100.2","local":"192.0.2.1","ttl":32,"key":5,"flags":["rx_drop_ooseq","rx_csum","tx_seq","tx_csum"]} +,{"ifname":"gre2","mode":"gre/ip","remote":"198.51.100.3","local":"192.0.2.1","ikey":1,"okey":2,"flags":["rx_drop_ooseq","tx_csum"]} +,{"ifname":"gre3","mode":"gre/ip","remote":"239.1.1.1","local":"192.0.2.1","ttl":1,"key":4009820417,"flags":[]} +,{"ifname":"sit1","mode":"any/ip","remote":"198.51.100.4","local":"192.0.2.1","ttl":64} +,{"ifname":"sit2","mode":"ipv6/ip","remote":"198.51.100.8","local":"192.0.2.1","ttl":16} +,{"ifname":"isa1","mode":"ipv6/ip","remote":"0.0.0.0","local":"192.0.2.1","pr":"192.0.2.11","pdr":"192.0.2.10"} +,{"ifname":"isan","mode":"any/ip","remote":"0.0.0.0","local":"192.0.2.2"} +,{"ifname":"vti1","mode":"ip/ip","remote":"198.51.100.5","local":"192.0.2.1","nopmtudisc":null,"ikey":7,"okey":8} +] diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-008/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-008/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..cecc2372576990ca0e8d82b73a8b1ecbde07ef81 GIT binary patch literal 33348 zcmeHQ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6z^>VC)7h})^_*kN zemq;!A0Du!JAALPWxw-(Tiy}b3x7dHPB*$Rmeb4+`Z>79nh|`H^oOtHJh3QP^X|O? zYr4a=z0pe^u;#9m-$5d-w5Yowu(4O`;?ClC_{d=mo9EGv*^B#1VvW~%!SCP(y~9jn z%((MAz>h7X%7^V~+we`7&98VrbOTSoKuD{_Pq4R%e9@Cq=R+b5z)vu@n=9`qFYVXf z1^F^$%gte><3w{VPBb|?Y1XYxw2-mJS~@FJi~I0euc7lYx>{s%EM;HC5xtsq$5r&T z@0y&;9MhebNrQds;PK@8)%?VC1Lk#KU1-dE$YCCMMyA@x<2Y`m;$pYnm+sfJR>3t) z4c~g_a#<8xX~R8fTZwYi$}eZU%g5=LvmR&tM^gxoc@%92%T{)(6BjA?}MW(#Ip2#aFnKQ@1tOB=W;%P zN?Z1;lL8evck|D(T+g6!Vi-6TJdimvis(a_DU89PZ^S zK}flGnRB2Jr|(?+n(6Y1-8*+ajIN5N%l{8u{`<3OUA_{ram#&{{vLxgPAyjUBbJPf z>-xS9rdKAB&-r`FI$R?0%c|uHTB8hiJcQ5&Sn_0Xyz(66+5B8!$mgO)0P(*ufv_1Up8X zUH(a!G=?C1~JK`zRkvS0^$)A4T7S;yjt6&gEieZMbwb^83j24?*4 z(X_o0FoUBXQZowV0W-FyFk>L1gnGr0fS14xzSHK`4r6`aGTp3UK!QzN-TGqIN_3xSeVDoWzgD=I| zGoj+{I(c5kLU-~j)}r*{4z_8oHXAyPRS)1yJ3RD}8U80x)0WaofvbLgLg z!iuJHqRmCPehOxRY~%Z~{~Bq}VmVv-F-c@UpSJ0TzHavO%pYGJ;ffOWlYGy~Ux|oD A4FCWD literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-009/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-009/tnlsys.out new file mode 100644 index 000000000..045232c15 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-009/tnlsys.out @@ -0,0 +1,142 @@ +{ + "ioctls": [ + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726530000000000000000000000000000000000000000000000000000000004500000000000000002f00000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ip_vti0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69705f76746930000000000000000000000000002000200000000000000000004500000000000000000400000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "tunl0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "74756e6c300000000000000000000000000000000000000000000000000000004500000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "73697430000000000000000000000000000000000000000000000000000000004500000000000000402900000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "sit0", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703100000000000000000000000c000000000000000000000000000000451000000000400040000000c0000201c6336401" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703200000000000000000000000000000000000000000000000000000045010000000000000000000000000000c6336409" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6772653100000000000000000000000000000000b000b00000000005000000054500000000004000202f0000c0000201c6336402" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726532000000000000000000000000000000003000a00000000001000000024500000000004000002f0000c0000201c6336403" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre3", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "677265330000000000000000000000000000000020002000ef010101ef0101014500000000004000012f0000c0000201ef010101" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743100000000000000000000000000000000000000000000000000000000450000000000400040000000c0000201c6336404" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743200000000000000000000000000000000000000000000000000000000450000000000400010290000c0000201c6336408" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "sit2", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isa1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973613100000000000000000000000000000000010000000000000000000000450000000000400000290000c000020100000000" + }, + { + "family": 2, + "req": "SIOCGETPRL", + "name": "isa1", + "in": "0000000000000000f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "00000000000000002000000000000000c000020b000000000000000000000000c000020a01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "isa1", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isan", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973616e00000000000000000000000000000000010000000000000000000000450000000000400000000000c000020200000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "vti1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7674693100000000000000000000000000000000210020000000000700000008450000000000000000040000c0000201c6336405" + } + ], + "run": { + "argv": [ + "ip", + "-j", + "-4", + "tunnel", + "show" + ], + "rc": 0, + "stdout": "[{\"ifname\":\"gre0\",\"mode\":\"gre/ip\",\"remote\":\"0.0.0.0\",\"local\":\"0.0.0.0\",\"nopmtudisc\":null,\"flags\":[]}\n,{\"ifname\":\"ip_vti0\",\"mode\":\"ip/ip\",\"remote\":\"0.0.0.0\",\"local\":\"0.0.0.0\",\"nopmtudisc\":null,\"key\":0}\n,{\"ifname\":\"tunl0\",\"mode\":\"any/ip\",\"remote\":\"0.0.0.0\",\"local\":\"0.0.0.0\",\"nopmtudisc\":null}\n,{\"ifname\":\"sit0\",\"mode\":\"ipv6/ip\",\"remote\":\"0.0.0.0\",\"local\":\"0.0.0.0\",\"ttl\":64,\"nopmtudisc\":null}\n,{\"ifname\":\"ipip1\",\"mode\":\"any/ip\",\"remote\":\"198.51.100.1\",\"local\":\"192.0.2.1\",\"dev\":\"d0\",\"ttl\":64,\"tos\":\"0x10\"}\n,{\"ifname\":\"ipip2\",\"mode\":\"any/ip\",\"remote\":\"198.51.100.9\",\"local\":\"0.0.0.0\",\"nopmtudisc\":null}\n,{\"ifname\":\"gre1\",\"mode\":\"gre/ip\",\"remote\":\"198.51.100.2\",\"local\":\"192.0.2.1\",\"ttl\":32,\"key\":5,\"flags\":[\"rx_drop_ooseq\",\"rx_csum\",\"tx_seq\",\"tx_csum\"]}\n,{\"ifname\":\"gre2\",\"mode\":\"gre/ip\",\"remote\":\"198.51.100.3\",\"local\":\"192.0.2.1\",\"ikey\":1,\"okey\":2,\"flags\":[\"rx_drop_ooseq\",\"tx_csum\"]}\n,{\"ifname\":\"gre3\",\"mode\":\"gre/ip\",\"remote\":\"239.1.1.1\",\"local\":\"192.0.2.1\",\"ttl\":1,\"key\":4009820417,\"flags\":[]}\n,{\"ifname\":\"sit1\",\"mode\":\"any/ip\",\"remote\":\"198.51.100.4\",\"local\":\"192.0.2.1\",\"ttl\":64}\n,{\"ifname\":\"sit2\",\"mode\":\"ipv6/ip\",\"remote\":\"198.51.100.8\",\"local\":\"192.0.2.1\",\"ttl\":16}\n,{\"ifname\":\"isa1\",\"mode\":\"ipv6/ip\",\"remote\":\"0.0.0.0\",\"local\":\"192.0.2.1\",\"pr\":\"192.0.2.11\",\"pdr\":\"192.0.2.10\"}\n,{\"ifname\":\"isan\",\"mode\":\"any/ip\",\"remote\":\"0.0.0.0\",\"local\":\"192.0.2.2\"}\n,{\"ifname\":\"vti1\",\"mode\":\"ip/ip\",\"remote\":\"198.51.100.5\",\"local\":\"192.0.2.1\",\"nopmtudisc\":null,\"ikey\":7,\"okey\":8}\n]\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-010/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-010/cmd.json new file mode 100644 index 000000000..e30703bb5 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-010/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "tnl4", + "json": "1", + "words": "-s tunnel show" + }, + "cmd": "ip -j -s tunnel show", + "desc": "positive: opt=json cmd=tnl4:-s_tunnel_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": "tunnel/pw-010", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "ip tunnel add isa1 mode isatap local 192.0.2.1", + "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -j -s tunnel show", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "rc": 0 + }, + { + "cmd": "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "rc": 0 + }, + { + "cmd": "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "rc": 0 + }, + { + "cmd": "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "rc": 0 + }, + { + "cmd": "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "rc": 0 + }, + { + "cmd": "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "rc": 0 + }, + { + "cmd": "ip tunnel add isa1 mode isatap local 192.0.2.1", + "rc": 0 + }, + { + "cmd": "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "rc": 0 + }, + { + "cmd": "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "rc": 0 + }, + { + "cmd": "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-010/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-010/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-010/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-010/ip.out new file mode 100644 index 000000000..27270b56a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-010/ip.out @@ -0,0 +1,71 @@ +[{"ifname":"gre0","mode":"gre/ip","remote":"0.0.0.0","local":"0.0.0.0","nopmtudisc":null,"flags":[]} +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +,{"ifname":"ip_vti0","mode":"ip/ip","remote":"0.0.0.0","local":"0.0.0.0","nopmtudisc":null,"key":0} +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +,{"ifname":"tunl0","mode":"any/ip","remote":"0.0.0.0","local":"0.0.0.0","nopmtudisc":null} +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +,{"ifname":"sit0","mode":"ipv6/ip","remote":"0.0.0.0","local":"0.0.0.0","ttl":64,"nopmtudisc":null} +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +,{"ifname":"ipip1","mode":"any/ip","remote":"198.51.100.1","local":"192.0.2.1","dev":"d0","ttl":64,"tos":"0x10"} +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +,{"ifname":"ipip2","mode":"any/ip","remote":"198.51.100.9","local":"0.0.0.0","nopmtudisc":null} +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +,{"ifname":"gre1","mode":"gre/ip","remote":"198.51.100.2","local":"192.0.2.1","ttl":32,"key":5,"flags":["rx_drop_ooseq","rx_csum","tx_seq","tx_csum"]} +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +,{"ifname":"gre2","mode":"gre/ip","remote":"198.51.100.3","local":"192.0.2.1","ikey":1,"okey":2,"flags":["rx_drop_ooseq","tx_csum"]} +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +,{"ifname":"gre3","mode":"gre/ip","remote":"239.1.1.1","local":"192.0.2.1","ttl":1,"key":4009820417,"flags":[]} +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +,{"ifname":"sit1","mode":"any/ip","remote":"198.51.100.4","local":"192.0.2.1","ttl":64} +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +,{"ifname":"sit2","mode":"ipv6/ip","remote":"198.51.100.8","local":"192.0.2.1","ttl":16} +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +,{"ifname":"isa1","mode":"ipv6/ip","remote":"0.0.0.0","local":"192.0.2.1","pr":"192.0.2.11","pdr":"192.0.2.10"} +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +,{"ifname":"isan","mode":"any/ip","remote":"0.0.0.0","local":"192.0.2.2"} +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +,{"ifname":"vti1","mode":"ip/ip","remote":"198.51.100.5","local":"192.0.2.1","nopmtudisc":null,"ikey":7,"okey":8} +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +] diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-010/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-010/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..ccbe3048528ff73893a56cad11b611566880c62c GIT binary patch literal 33348 zcmeHQU2GiH6+Y|PU5{P6HL06QtqLxUAf*pYo8TClwg%FNN_mO;l82}vk*#2GY&UkI zM1ZO26;^c#mh+ zyR**Po$=l)?c6)F_uid3_nhZvUM#mV+J%a4pb)+bv~=10oW z7&D(nP}m@)Xbkmut%nDd*nS_{?-~&ENw)t>MPvxA*naO|gqG!~gyTufh-`l-k_U4P$l*T3s>Lp7<&PIF$BpP0NNcbdH4v@%8M zSJb;GU$qz4!EpkkxY}tzz5|}H+&2Jf&&>Yf$mEep*%EzCp2hX26rFi54vhL*gVOzh`$Pd|8uC8-VLj>&uP+Rb<`K_Q!SpUf>SGe zR{oyuleM;$BDq6V55?9L*a042sZ-w8@8tLz|zyj)TYD(&FtCu^czbO@+*5AVoxPDmaaYqUX`rK0@ zTdwu_Da!&ugCQ@ zmf1$(51!QG&%b~_FV@odLwRHy{h|I2_yeMJdCCL+(6%@Z+u}NG3x1Ne#d9fq+8%M9 zRC8nJ@af>;$!z%avco4fUk&@>X7TAP?kj0u1blLX-Qi5*)7d&cftN&nr|_xj<^olR zN!Cs!|5&UTc6g+3ui5;p0wiRLg$&Pp(B&St?EJ0jEP<-ClRcghw+>(W^dD1py64*3 zdnqDrjUG+o7Ufi97Rws9%tHse$&jJj4tc<>T`62DMKqCXZZHO|-L&uM!jy3yWwD*M zf#-1Lb+;&CB&8BgR75!H?H-|H9o<|$#Iowy$2J*flug8Kfj-!`7Xh7^DtMOZh$R}A!}@z zJUl#DFWs+ct%7Tq>b~{%<+3QY(w~l{Z6(T4GryeiF5jeI&U&Z~nI-t;EFFq)%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 +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-011/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-011/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..8a451c99a7d1fe3cbd318b478c77ef2631229f9c GIT binary patch literal 33348 zcmeHQU1%It6h6DNvz^4YrZ!ek)TqUOFxr|%ts1S0VqZ!HTPWI=#2QVLXcMV#`yl8; z!Gcvpe5hJbqz~eQ6zM}nQNiMqpn^|=U<)d0{i~GtefKAOGqc&9O*e5SdoS$VJG1xR zojLcM^WAgKy|Z6^{Qet7DM>YzoP)t`9#qoGI_TCx4s)x-e7r*A7yX7tnEqOJb*w4XY zCwPV>sdVFx$$P)uyi+!f=r*U!GYqf>>e=76`4rN@b9G&o<*lMrHWeTxB3tkfS~_Mv z+xC;HvziChhxx|dx4JuXZML%Qtnzc8E$XM5K6462t?*g-dv2eswYCt*l}>eEY)pam z;PJUiRdThaF>Tj)=Tc^J%6|L6a-8Hzr+tK5O6yo){r9`^i)#nE=!#D?Y*1RP09O!Fw zsMMl$x6+0)e>z z$TseW`rG3VsoCBs3;09Z;_(e4r(j#~6Spm1P2khIfb*n^89IYcyPh6OhfnVqd}8zY zurJOQpAO@`;`W8dCo|YB&Rl#tT*W8wlE~{0K9$W}plmQn+o|LqjTPMnkKEg2hweo3s+bL_zz0kg} zZNR1uXhZOla@1^eu&LYFL@teJ6U0+wFf5wJFl|E-OTK)v)OqsRYKuH$$;`3fF-nnet->hWS9QLZJ_sH@XU;_bOx00iW#U5$h0zmaGnNdJ~24M z=2^6XUd4UIZ6NC_vU<$>;y8NglWXhj2cD3gG;~})Tq8RtGIoyjyIFrT{ccPlqF+o^ z|66@KCX|(?zQ!xpcG)jyAM;V2#}34S*-|~9TQffOZOOTzqFm7gcIdMJ?I(7Or}J5S zVC2=#3wi&MWM^JjOJ3tKQDQ7(0bXur?6edt+|-MskA-+UxFSNsmL zR&TDTM(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ndnQ~QX@1W{zWrTOz>lt%llb9d?{!(Pt-s7Feyqf( z#PB1vziScTN96INIkB7reniBNF8qwU=g#5>|4FLd@I(4`%8UCvel*8J-(Khx6AKT-H8T^!4v-rVo-E~{~ylQ_~{2-ppW$iEf%iG%DBJgANE9vlq z&u8Q9jFI?wJ1NqBDXaLwH{Mmua2Wg;a)z0$IS1C=vgVU={A(^ zNp#{Lp|?L$vF~&x7e5-jCvl0vkBD(~P4kfJe$_f)b{OG5ee89f=M4wSz=5|RJn?sl z_&5ef)2CV#$N~=Ve|#>zhx-ooC;mS^^hpJnU*CdyTbJuOAln?hU!))3@e^-zH7=cp rSs>f+YbO1#k-8ko#nOREBK!HQK|l0$v!4^!pE$x5CG02uo|FFoIs`gt literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-011/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-011/tnlsys.out new file mode 100644 index 000000000..214de265a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-011/tnlsys.out @@ -0,0 +1,142 @@ +{ + "ioctls": [ + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726530000000000000000000000000000000000000000000000000000000004500000000000000002f00000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ip_vti0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69705f76746930000000000000000000000000002000200000000000000000004500000000000000000400000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "tunl0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "74756e6c300000000000000000000000000000000000000000000000000000004500000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "73697430000000000000000000000000000000000000000000000000000000004500000000000000402900000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "sit0", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703100000000000000000000000c000000000000000000000000000000451000000000400040000000c0000201c6336401" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703200000000000000000000000000000000000000000000000000000045010000000000000000000000000000c6336409" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6772653100000000000000000000000000000000b000b00000000005000000054500000000004000202f0000c0000201c6336402" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726532000000000000000000000000000000003000a00000000001000000024500000000004000002f0000c0000201c6336403" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre3", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "677265330000000000000000000000000000000020002000ef010101ef0101014500000000004000012f0000c0000201ef010101" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743100000000000000000000000000000000000000000000000000000000450000000000400040000000c0000201c6336404" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743200000000000000000000000000000000000000000000000000000000450000000000400010290000c0000201c6336408" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "sit2", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isa1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973613100000000000000000000000000000000010000000000000000000000450000000000400000290000c000020100000000" + }, + { + "family": 2, + "req": "SIOCGETPRL", + "name": "isa1", + "in": "0000000000000000f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "00000000000000002000000000000000c000020b000000000000000000000000c000020a01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "isa1", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isan", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973616e00000000000000000000000000000000010000000000000000000000450000000000400000000000c000020200000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "vti1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7674693100000000000000000000000000000000210020000000000700000008450000000000000000040000c0000201c6336405" + } + ], + "run": { + "argv": [ + "ip", + "-j", + "-d", + "tunnel", + "show" + ], + "rc": 0, + "stdout": "[{\"ifname\":\"gre0\",\"mode\":\"gre/ip\",\"remote\":\"0.0.0.0\",\"local\":\"0.0.0.0\",\"nopmtudisc\":null,\"flags\":[]}\n,{\"ifname\":\"ip_vti0\",\"mode\":\"ip/ip\",\"remote\":\"0.0.0.0\",\"local\":\"0.0.0.0\",\"nopmtudisc\":null,\"key\":0}\n,{\"ifname\":\"tunl0\",\"mode\":\"any/ip\",\"remote\":\"0.0.0.0\",\"local\":\"0.0.0.0\",\"nopmtudisc\":null}\n,{\"ifname\":\"sit0\",\"mode\":\"ipv6/ip\",\"remote\":\"0.0.0.0\",\"local\":\"0.0.0.0\",\"ttl\":64,\"nopmtudisc\":null}\n,{\"ifname\":\"ipip1\",\"mode\":\"any/ip\",\"remote\":\"198.51.100.1\",\"local\":\"192.0.2.1\",\"dev\":\"d0\",\"ttl\":64,\"tos\":\"0x10\"}\n,{\"ifname\":\"ipip2\",\"mode\":\"any/ip\",\"remote\":\"198.51.100.9\",\"local\":\"0.0.0.0\",\"nopmtudisc\":null}\n,{\"ifname\":\"gre1\",\"mode\":\"gre/ip\",\"remote\":\"198.51.100.2\",\"local\":\"192.0.2.1\",\"ttl\":32,\"key\":5,\"flags\":[\"rx_drop_ooseq\",\"rx_csum\",\"tx_seq\",\"tx_csum\"]}\n,{\"ifname\":\"gre2\",\"mode\":\"gre/ip\",\"remote\":\"198.51.100.3\",\"local\":\"192.0.2.1\",\"ikey\":1,\"okey\":2,\"flags\":[\"rx_drop_ooseq\",\"tx_csum\"]}\n,{\"ifname\":\"gre3\",\"mode\":\"gre/ip\",\"remote\":\"239.1.1.1\",\"local\":\"192.0.2.1\",\"ttl\":1,\"key\":4009820417,\"flags\":[]}\n,{\"ifname\":\"sit1\",\"mode\":\"any/ip\",\"remote\":\"198.51.100.4\",\"local\":\"192.0.2.1\",\"ttl\":64}\n,{\"ifname\":\"sit2\",\"mode\":\"ipv6/ip\",\"remote\":\"198.51.100.8\",\"local\":\"192.0.2.1\",\"ttl\":16}\n,{\"ifname\":\"isa1\",\"mode\":\"ipv6/ip\",\"remote\":\"0.0.0.0\",\"local\":\"192.0.2.1\",\"pr\":\"192.0.2.11\",\"pdr\":\"192.0.2.10\"}\n,{\"ifname\":\"isan\",\"mode\":\"any/ip\",\"remote\":\"0.0.0.0\",\"local\":\"192.0.2.2\"}\n,{\"ifname\":\"vti1\",\"mode\":\"ip/ip\",\"remote\":\"198.51.100.5\",\"local\":\"192.0.2.1\",\"nopmtudisc\":null,\"ikey\":7,\"okey\":8}\n]\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-012/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-012/cmd.json new file mode 100644 index 000000000..34c8d7759 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-012/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "tnl4", + "json": "1", + "words": "-o tunnel show" + }, + "cmd": "ip -j -o tunnel show", + "desc": "corner: opt=json cmd=tnl4:-o_tunnel_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": "tunnel/pw-012", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "ip tunnel add isa1 mode isatap local 192.0.2.1", + "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -j -o tunnel show", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "rc": 0 + }, + { + "cmd": "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "rc": 0 + }, + { + "cmd": "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "rc": 0 + }, + { + "cmd": "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "rc": 0 + }, + { + "cmd": "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "rc": 0 + }, + { + "cmd": "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "rc": 0 + }, + { + "cmd": "ip tunnel add isa1 mode isatap local 192.0.2.1", + "rc": 0 + }, + { + "cmd": "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "rc": 0 + }, + { + "cmd": "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "rc": 0 + }, + { + "cmd": "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-012/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-012/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-012/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-012/ip.out new file mode 100644 index 000000000..2cf90c8c6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-012/ip.out @@ -0,0 +1,15 @@ +[{"ifname":"gre0","mode":"gre/ip","remote":"0.0.0.0","local":"0.0.0.0","nopmtudisc":null,"flags":[]} +,{"ifname":"ip_vti0","mode":"ip/ip","remote":"0.0.0.0","local":"0.0.0.0","nopmtudisc":null,"key":0} +,{"ifname":"tunl0","mode":"any/ip","remote":"0.0.0.0","local":"0.0.0.0","nopmtudisc":null} +,{"ifname":"sit0","mode":"ipv6/ip","remote":"0.0.0.0","local":"0.0.0.0","ttl":64,"nopmtudisc":null} +,{"ifname":"ipip1","mode":"any/ip","remote":"198.51.100.1","local":"192.0.2.1","dev":"d0","ttl":64,"tos":"0x10"} +,{"ifname":"ipip2","mode":"any/ip","remote":"198.51.100.9","local":"0.0.0.0","nopmtudisc":null} +,{"ifname":"gre1","mode":"gre/ip","remote":"198.51.100.2","local":"192.0.2.1","ttl":32,"key":5,"flags":["rx_drop_ooseq","rx_csum","tx_seq","tx_csum"]} +,{"ifname":"gre2","mode":"gre/ip","remote":"198.51.100.3","local":"192.0.2.1","ikey":1,"okey":2,"flags":["rx_drop_ooseq","tx_csum"]} +,{"ifname":"gre3","mode":"gre/ip","remote":"239.1.1.1","local":"192.0.2.1","ttl":1,"key":4009820417,"flags":[]} +,{"ifname":"sit1","mode":"any/ip","remote":"198.51.100.4","local":"192.0.2.1","ttl":64} +,{"ifname":"sit2","mode":"ipv6/ip","remote":"198.51.100.8","local":"192.0.2.1","ttl":16} +,{"ifname":"isa1","mode":"ipv6/ip","remote":"0.0.0.0","local":"192.0.2.1","pr":"192.0.2.11","pdr":"192.0.2.10"} +,{"ifname":"isan","mode":"any/ip","remote":"0.0.0.0","local":"192.0.2.2"} +,{"ifname":"vti1","mode":"ip/ip","remote":"198.51.100.5","local":"192.0.2.1","nopmtudisc":null,"ikey":7,"okey":8} +] diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-012/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-012/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..01245f7ad2e468237317fe08b04e97f1302af9a9 GIT binary patch literal 33348 zcmeHQO^h7H6@D{4J?`D?hJ`E;B?>J6e~EBnvuucQHv9+?`G8MY0tt-PvNo)D7rch# zfHa9XBvKSviVu$BgPr&gB1f_~01_OGKnMvRBSn!oAPxvD0T+uu0n7K*&(7QK`RQ5D zF5Np-Qg>B%SJiY?z4yL)?^X5u_qFFwRHY`(P?N84ar;}f$G`vMQQ3+#52-~{jC`0t z;u5JuQ^?1ARi0E}`8!a4*NB)SUH+9=WDKQP{+-bXC2LUy=lg|cku4I*+=56Vqw+o; z$H>hP%f&9f+vH5lyH}9!XXbt)+g$uZ7hmDxJ6(LGD|e$TFSGueaG&MxaPco)JniCN z$Y;x2@O+2Me;4kv+=QtomaANS*SPz)y4duZ)a4#?U6*@J9Lo(R9yX;+QifIUot4Y& z%}sEg!6>eG7?E2*6PEf$(A)D1PaN8JXrFA2ejtCw{XeRH=DU!(^pU1p{k}e5`kubl z=`jo~X*C^K&++OoXoe|ijN^?-d!OF+n7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!z<2@P3K(bCyy24_5ZSeTMx9 ze|Rn{w@JrZW;3njwyFOD{VA-^zo&n1-L`gVUncldd{1m_Tm-p&HY2wyW>xlUPHuDW z@=Q*dP2b^q?pm2{lnZZqlXjm<4P5{Qkl)-3i&MH3J4^GOb-+RSEe&|uq5J_mNl+m{d;aZ*oxoX;7fV- zOenv5E$Ay5Qtfy{<4UJJ6Uyga(>`}r&OH+vM|$5gQEq!z4fyfki7b8u-+M>W8|a5c z#SeZNEQKGr?OmGyKazkSy|LvQ@FO99jNxbWo;!~pH{t%E;YSSoIQBrmkKQP6uyYp` zKe%G1;f98O_}PPd2S)#3vjcv(!Ot1>iXW_2uiLWMP5r~;2k~SrYkyf^+1CEnfgfY@ z`S647^Zs`FNP@qeJu-NqsQAGz-Zk8CIQ#%*lb73nhsQow`$o!Vzk<(~y8#1!m`>>7 z)B}E?kNFQ)o$-Uuseh~iKTtmi520-MF%0}@;2Ze--_`Su4yVzMR`x5lFW?7zVX#9H z@FU6iKP0*g!=mk1_~u>j`UmPL({~b;|053iM{j(o@uSOk61O<~Na$C$eI9e&uUQAo zUrq3zKK?$h%Z39Zz=4B%^5KA9UlsHSj`m=NBH#f3$LAmTAD?S61U%CJ<3pQNgn7*r z^1U-^=YTBpIm%4o8IN=seuL-|%mP`4j~VR0M%r{DKawF#5?N2>C!On|t(*0nd*Qto MxuS&iq`!0W4Zu=C{r~^~ literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-012/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-012/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-012/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-012/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-012/netlink_route_tnlsys.pcap new file mode 100644 index 0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pfLCu@$nMN%s{=XPjl|qpbI!Gb z_Eg%&IIrtwPi1z_!Pjj!<~%8!hiJQM73?=306UKSB99%xegh&1 zp=}Rr1$OX3{b0wwHrT<{%USH;mx*=)cJ#9Q13N|oc94pSha%X)+O)r${j7a)#0rfa zHoxB&yfbb7{{?0|@tc4d9P1E@^*|Xg<7f^u#$s})#|*bG%b1aiU#nMxi>v`x-uqP^SIB4V5B;MZ$orDn*03Mg^uo{`%8Dx!7>Nw7n2)3u!4-a=wamD3 z5pC;%D{;V;{#danuIw>=9}CC8;R!;UM_^y9K}Fpn$bGmR-s z2V5a3g-}*pxgA53!4>1^D1s~3OO7j_N87sL%G*&C{3Cs`W>H+3GJPKlW8wQTU9cE9agGjU)ZoeYZ@6=p z6+gIQrs;-;e)xq`$A?D$V6y{$xWO+N^@|^@R=! zOU3Ym?eqS2`bdJmojo#qp{)49FWxoXa5($`Ws{dXe}~83SNle)XTO5am%9N2ewa?^ z``9CDS6T_nISNP^#|M~~&sM2>5mH#6N`bU3!sqv%7cM?Y&ex&rP+dfaY?$@jX z=2KJrr;oqR^Qz&%IB?+9(PB8D*H;BSf}=g0p$s^{|M7`NBkVim-a~|XJfla0HmMl% zn*GSPy4%hHS>_A7BVk69IaB6dT)zXeK$h`!*?*0+XQ_Nb@JL}j`+L+wTQ}?Z{+S1U N#}y^4C;Od~{{h$vHJtze literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-012/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-012/tnlsys.out new file mode 100644 index 000000000..100bbfe35 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-012/tnlsys.out @@ -0,0 +1,142 @@ +{ + "ioctls": [ + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726530000000000000000000000000000000000000000000000000000000004500000000000000002f00000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ip_vti0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69705f76746930000000000000000000000000002000200000000000000000004500000000000000000400000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "tunl0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "74756e6c300000000000000000000000000000000000000000000000000000004500000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "73697430000000000000000000000000000000000000000000000000000000004500000000000000402900000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "sit0", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703100000000000000000000000c000000000000000000000000000000451000000000400040000000c0000201c6336401" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703200000000000000000000000000000000000000000000000000000045010000000000000000000000000000c6336409" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6772653100000000000000000000000000000000b000b00000000005000000054500000000004000202f0000c0000201c6336402" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726532000000000000000000000000000000003000a00000000001000000024500000000004000002f0000c0000201c6336403" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre3", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "677265330000000000000000000000000000000020002000ef010101ef0101014500000000004000012f0000c0000201ef010101" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743100000000000000000000000000000000000000000000000000000000450000000000400040000000c0000201c6336404" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743200000000000000000000000000000000000000000000000000000000450000000000400010290000c0000201c6336408" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "sit2", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isa1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973613100000000000000000000000000000000010000000000000000000000450000000000400000290000c000020100000000" + }, + { + "family": 2, + "req": "SIOCGETPRL", + "name": "isa1", + "in": "0000000000000000f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "00000000000000002000000000000000c000020b000000000000000000000000c000020a01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "isa1", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isan", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973616e00000000000000000000000000000000010000000000000000000000450000000000400000000000c000020200000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "vti1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7674693100000000000000000000000000000000210020000000000700000008450000000000000000040000c0000201c6336405" + } + ], + "run": { + "argv": [ + "ip", + "-j", + "-o", + "tunnel", + "show" + ], + "rc": 0, + "stdout": "[{\"ifname\":\"gre0\",\"mode\":\"gre/ip\",\"remote\":\"0.0.0.0\",\"local\":\"0.0.0.0\",\"nopmtudisc\":null,\"flags\":[]}\n,{\"ifname\":\"ip_vti0\",\"mode\":\"ip/ip\",\"remote\":\"0.0.0.0\",\"local\":\"0.0.0.0\",\"nopmtudisc\":null,\"key\":0}\n,{\"ifname\":\"tunl0\",\"mode\":\"any/ip\",\"remote\":\"0.0.0.0\",\"local\":\"0.0.0.0\",\"nopmtudisc\":null}\n,{\"ifname\":\"sit0\",\"mode\":\"ipv6/ip\",\"remote\":\"0.0.0.0\",\"local\":\"0.0.0.0\",\"ttl\":64,\"nopmtudisc\":null}\n,{\"ifname\":\"ipip1\",\"mode\":\"any/ip\",\"remote\":\"198.51.100.1\",\"local\":\"192.0.2.1\",\"dev\":\"d0\",\"ttl\":64,\"tos\":\"0x10\"}\n,{\"ifname\":\"ipip2\",\"mode\":\"any/ip\",\"remote\":\"198.51.100.9\",\"local\":\"0.0.0.0\",\"nopmtudisc\":null}\n,{\"ifname\":\"gre1\",\"mode\":\"gre/ip\",\"remote\":\"198.51.100.2\",\"local\":\"192.0.2.1\",\"ttl\":32,\"key\":5,\"flags\":[\"rx_drop_ooseq\",\"rx_csum\",\"tx_seq\",\"tx_csum\"]}\n,{\"ifname\":\"gre2\",\"mode\":\"gre/ip\",\"remote\":\"198.51.100.3\",\"local\":\"192.0.2.1\",\"ikey\":1,\"okey\":2,\"flags\":[\"rx_drop_ooseq\",\"tx_csum\"]}\n,{\"ifname\":\"gre3\",\"mode\":\"gre/ip\",\"remote\":\"239.1.1.1\",\"local\":\"192.0.2.1\",\"ttl\":1,\"key\":4009820417,\"flags\":[]}\n,{\"ifname\":\"sit1\",\"mode\":\"any/ip\",\"remote\":\"198.51.100.4\",\"local\":\"192.0.2.1\",\"ttl\":64}\n,{\"ifname\":\"sit2\",\"mode\":\"ipv6/ip\",\"remote\":\"198.51.100.8\",\"local\":\"192.0.2.1\",\"ttl\":16}\n,{\"ifname\":\"isa1\",\"mode\":\"ipv6/ip\",\"remote\":\"0.0.0.0\",\"local\":\"192.0.2.1\",\"pr\":\"192.0.2.11\",\"pdr\":\"192.0.2.10\"}\n,{\"ifname\":\"isan\",\"mode\":\"any/ip\",\"remote\":\"0.0.0.0\",\"local\":\"192.0.2.2\"}\n,{\"ifname\":\"vti1\",\"mode\":\"ip/ip\",\"remote\":\"198.51.100.5\",\"local\":\"192.0.2.1\",\"nopmtudisc\":null,\"ikey\":7,\"okey\":8}\n]\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-013/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-013/cmd.json new file mode 100644 index 000000000..1826a2acd --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-013/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "tnl4", + "json": "1", + "words": "-p tunnel show" + }, + "cmd": "ip -j -p tunnel show", + "desc": "corner: opt=json cmd=tnl4:-p_tunnel_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": "tunnel/pw-013", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "ip tunnel add isa1 mode isatap local 192.0.2.1", + "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -j -p tunnel show", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "rc": 0 + }, + { + "cmd": "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "rc": 0 + }, + { + "cmd": "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "rc": 0 + }, + { + "cmd": "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "rc": 0 + }, + { + "cmd": "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "rc": 0 + }, + { + "cmd": "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "rc": 0 + }, + { + "cmd": "ip tunnel add isa1 mode isatap local 192.0.2.1", + "rc": 0 + }, + { + "cmd": "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "rc": 0 + }, + { + "cmd": "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "rc": 0 + }, + { + "cmd": "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-013/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-013/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-013/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-013/ip.out new file mode 100644 index 000000000..371523a27 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-013/ip.out @@ -0,0 +1,112 @@ +[ { + "ifname": "gre0", + "mode": "gre/ip", + "remote": "0.0.0.0", + "local": "0.0.0.0", + "nopmtudisc": null, + "flags": [ ] + } +,{ + "ifname": "ip_vti0", + "mode": "ip/ip", + "remote": "0.0.0.0", + "local": "0.0.0.0", + "nopmtudisc": null, + "key": 0 + } +,{ + "ifname": "tunl0", + "mode": "any/ip", + "remote": "0.0.0.0", + "local": "0.0.0.0", + "nopmtudisc": null + } +,{ + "ifname": "sit0", + "mode": "ipv6/ip", + "remote": "0.0.0.0", + "local": "0.0.0.0", + "ttl": 64, + "nopmtudisc": null + } +,{ + "ifname": "ipip1", + "mode": "any/ip", + "remote": "198.51.100.1", + "local": "192.0.2.1", + "dev": "d0", + "ttl": 64, + "tos": "0x10" + } +,{ + "ifname": "ipip2", + "mode": "any/ip", + "remote": "198.51.100.9", + "local": "0.0.0.0", + "nopmtudisc": null + } +,{ + "ifname": "gre1", + "mode": "gre/ip", + "remote": "198.51.100.2", + "local": "192.0.2.1", + "ttl": 32, + "key": 5, + "flags": [ "rx_drop_ooseq","rx_csum","tx_seq","tx_csum" ] + } +,{ + "ifname": "gre2", + "mode": "gre/ip", + "remote": "198.51.100.3", + "local": "192.0.2.1", + "ikey": 1, + "okey": 2, + "flags": [ "rx_drop_ooseq","tx_csum" ] + } +,{ + "ifname": "gre3", + "mode": "gre/ip", + "remote": "239.1.1.1", + "local": "192.0.2.1", + "ttl": 1, + "key": 4009820417, + "flags": [ ] + } +,{ + "ifname": "sit1", + "mode": "any/ip", + "remote": "198.51.100.4", + "local": "192.0.2.1", + "ttl": 64 + } +,{ + "ifname": "sit2", + "mode": "ipv6/ip", + "remote": "198.51.100.8", + "local": "192.0.2.1", + "ttl": 16 + } +,{ + "ifname": "isa1", + "mode": "ipv6/ip", + "remote": "0.0.0.0", + "local": "192.0.2.1", + "pr": "192.0.2.11", + "pdr": "192.0.2.10" + } +,{ + "ifname": "isan", + "mode": "any/ip", + "remote": "0.0.0.0", + "local": "192.0.2.2" + } +,{ + "ifname": "vti1", + "mode": "ip/ip", + "remote": "198.51.100.5", + "local": "192.0.2.1", + "nopmtudisc": null, + "ikey": 7, + "okey": 8 + } + ] diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-013/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-013/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..ef1df355c9b04fa149b66c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ml;$AiF+iQ^GJ`s2LOE?rjq;Eb83b`9et%jZswjQzpaj`*RSUoh(zKiI6D zx8={<_D8@E;>mXA{<6Jci?=@n{5XzDBK+UH8*WvRxH-|C><_+Qh_^FF62HGqii}<= zD}L~ccTMdM#gA2<7Kw`tvHgLVFINLb{BT6*W7h|MfW}aeNZs&*_i2A@13%C{9H&Ub zh99%EKYkVQ!*yQV6{0{H@FUH|KP0&mPjCHK_~u>z_6OP+rtc)0_(v_;ABEVrRmkE; zkMAUoD}JPmt9zQ)IPcfZ17?FM{?jL1=lQVVz#MSkj^7u<0Xx4c+7ayS(M)B)0sfEA zUHBiLgXjWo+5hpOPb$Iq`Vo}7zTb}lS?6b{Gmm@RvUT_kqT4YFWF6jS^8Xs?k5l=I eOkj}6c9wdyLti)B`S(Y!{fRS5*iQC4C;tZkGB&>e literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-013/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-013/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-013/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-013/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-013/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..2809169255b9bb251e907567a9a97b57ab281390 GIT binary patch literal 33348 zcmeHQO^h7H6@IflGuykd@frpaB_yng6&w)3;MHaUlPm-dkt`txteA)>7_DQivff?n zbp*FjlmikRjN}7{kQl{EBIE-~q=*9uM??V$j**ZexJNmViw{wv$oamiS2J(BXJ>lW zvzwlsDyh5rr>ds=)qC%&_g+=cU*G%v>tj-tcB;yMaWeN|^(VhQIxYus%uTAv9J7$7 zad4wllKWAP*T%RriS^${{Uf`?ZQ1&7*F>gJi}jz_lb~ibsbK$I;a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`3ru8`Km6`R-X6`m7Us4IIN zS4My;7f7#OsKefIoK;H zR&9Af<4UVN6DsCj)-iW>&OH+vM>^j#QEY$LRltvk>tF^G=!o;!~p{3oei!;h$dE9-Tv_SK|EQ`+F$lpw6(vZz>hC)&xRj- zJ|Ayqj3mU{Ns-=5dBqRD@vi2E!{G;JMwI2H-@{|SSNlea=f6VCm%9N2ei$NjaOeO( zKx4f438@u+@O#=H%fJux55_|(8h%^@{Mdg>zz;Kc;gE>}dBBf275|Xv4BWl;U*Vm1 zo!cMiqe$;bRPm2Wus<@f?_wp5A8p=~xX$56%(%Lxd4=nK%{pLq7~?;E{B@oe4F|RY z2OfVt8xH98Rl$znX!mBy0}k+idaaXlLJNky1nZ$-VoHrhGhf4dAa AQvd(} literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-014/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-014/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-014/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-014/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-014/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..ddacc6d7ec410dc25f43bb75137866391aff98ff GIT binary patch literal 33204 zcmeHQO^6&t6n?WkGuyi+W;LsVg032k8qw7(YobxtKUBy?5Y0g_k&R(>v%8v&D2NWI z5Ku5e5Je9Wa}dcPcn}c}5k(CNco78AgC|9ZUOae__&tLpjTt4}`Yld{xPS^mYzmXqbDfBUvyMp5QR%Fz~PK8>JozLcV^sK;x4 zJgCI>)$jUc`x-HyWcx2FB134!_LJ)(v@Ay@93K=OMfxR@=~(-8^#h8|yccqp{v`QU->`Ab9e6AVrAc1?ay&vv`@8grV382@LBnLx=+>`D@Ag(sve5% zD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X)ci)ol@U*RbxY2)4-e zz?JW}r*VaHMtbNE{XqVmNPO0?AJ|Z#=MH(rl_88o0$0pSQnT11U*sHD4&&L{;7Sy5 zr87~?iYudr_K|Q59In832!_Fyq6DsB&$(TL)a$r%18`;2>uFq}oM}v9Ip7LeDWtsO z3g3*Gz!ekd$bu`!bB-(5;n`Z@%3q~Yh>vtAnptsW#Lzwx=EN1!nz&-~y1l}4;tF+T zuj9%naOIAd)3`!83%CLX2`NQ^JmAVi$`2MteABYV6|8^H><3$jyBmBd&YlSscP|Hf zCB>>OFKAq8wP!-b+{-%V&d#}KLgPs1dnStQ@45;2aV*5%Tk=`>vXKIL#Sgw2EP)@H z{avd7KjMHNjeOefYzg=g6F-K~vEFm%@q_;))ob{1Gw@@_OxpekYq#2QU+;dOSN!0L znVK6G#^I;-?dlo(gO45X!wr7MtW*48w|d={J+Ipz9zTdDOIiEN{))EtcMSM(;(=`V z!RPbwcE(6Tyqy&3y_8q{;2ZC1Za5r%U}i*FUi>{g_ItH&quJoq@v-+Ex?Zh_XPYfgBK2&D3AyIh*R+oi7v$5YyTDA zdDpr9fj)}#oEo~Syl6PE z6*%zRd)aV6udfPr1V_6!Qyy@D|KoET{>NtnhJc^s|M<`+6=8n874;_9**V~UJK!VP literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-014/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-014/tnlsys.out new file mode 100644 index 000000000..15b7b5355 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-014/tnlsys.out @@ -0,0 +1,115 @@ +{ + "ioctls": [ + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726530000000000000000000000000000000000000000000000000000000004500000000000000002f00000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ip_vti0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69705f76746930000000000000000000000000002000200000000000000000004500000000000000000400000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "tunl0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "74756e6c300000000000000000000000000000000000000000000000000000004500000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "73697430000000000000000000000000000000000000000000000000000000004500000000000000402900000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703100000000000000000000000c000000000000000000000000000000451000000000400040000000c0000201c6336401" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703200000000000000000000000000000000000000000000000000000045010000000000000000000000000000c6336409" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6772653100000000000000000000000000000000b000b00000000005000000054500000000004000202f0000c0000201c6336402" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726532000000000000000000000000000000003000a00000000001000000024500000000004000002f0000c0000201c6336403" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre3", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "677265330000000000000000000000000000000020002000ef010101ef0101014500000000004000012f0000c0000201ef010101" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743100000000000000000000000000000000000000000000000000000000450000000000400040000000c0000201c6336404" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743200000000000000000000000000000000000000000000000000000000450000000000400010290000c0000201c6336408" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isa1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973613100000000000000000000000000000000010000000000000000000000450000000000400000290000c000020100000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isan", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973616e00000000000000000000000000000000010000000000000000000000450000000000400000000000c000020200000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "vti1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7674693100000000000000000000000000000000210020000000000700000008450000000000000000040000c0000201c6336405" + } + ], + "run": { + "argv": [ + "ip", + "-j", + "tunnel", + "show", + "remote", + "198.51.100.2" + ], + "rc": 0, + "stdout": "[{\"ifname\":\"gre1\",\"mode\":\"gre/ip\",\"remote\":\"198.51.100.2\",\"local\":\"192.0.2.1\",\"ttl\":32,\"key\":5,\"flags\":[\"rx_drop_ooseq\",\"rx_csum\",\"tx_seq\",\"tx_csum\"]}\n]\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-015/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-015/cmd.json new file mode 100644 index 000000000..913c30a92 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-015/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "tnl4", + "json": "1", + "words": "tunnel show local 192.0.2.1" + }, + "cmd": "ip -j tunnel show local 192.0.2.1", + "desc": "positive: opt=json cmd=tnl4:tunnel_show_local_192.0.2.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": "tunnel/pw-015", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "ip tunnel add isa1 mode isatap local 192.0.2.1", + "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -j tunnel show local 192.0.2.1", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "rc": 0 + }, + { + "cmd": "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "rc": 0 + }, + { + "cmd": "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "rc": 0 + }, + { + "cmd": "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "rc": 0 + }, + { + "cmd": "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "rc": 0 + }, + { + "cmd": "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "rc": 0 + }, + { + "cmd": "ip tunnel add isa1 mode isatap local 192.0.2.1", + "rc": 0 + }, + { + "cmd": "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "rc": 0 + }, + { + "cmd": "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "rc": 0 + }, + { + "cmd": "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-015/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-015/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-015/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-015/ip.out new file mode 100644 index 000000000..f77b61240 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-015/ip.out @@ -0,0 +1,9 @@ +[{"ifname":"ipip1","mode":"any/ip","remote":"198.51.100.1","local":"192.0.2.1","dev":"d0","ttl":64,"tos":"0x10"} +,{"ifname":"gre1","mode":"gre/ip","remote":"198.51.100.2","local":"192.0.2.1","ttl":32,"key":5,"flags":["rx_drop_ooseq","rx_csum","tx_seq","tx_csum"]} +,{"ifname":"gre2","mode":"gre/ip","remote":"198.51.100.3","local":"192.0.2.1","ikey":1,"okey":2,"flags":["rx_drop_ooseq","tx_csum"]} +,{"ifname":"gre3","mode":"gre/ip","remote":"239.1.1.1","local":"192.0.2.1","ttl":1,"key":4009820417,"flags":[]} +,{"ifname":"sit1","mode":"any/ip","remote":"198.51.100.4","local":"192.0.2.1","ttl":64} +,{"ifname":"sit2","mode":"ipv6/ip","remote":"198.51.100.8","local":"192.0.2.1","ttl":16} +,{"ifname":"isa1","mode":"ipv6/ip","remote":"0.0.0.0","local":"192.0.2.1","pr":"192.0.2.11","pdr":"192.0.2.10"} +,{"ifname":"vti1","mode":"ip/ip","remote":"198.51.100.5","local":"192.0.2.1","nopmtudisc":null,"ikey":7,"okey":8} +] diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-015/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-015/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..9bab0eb2a20698f27fc43af10c36a6f97bb60afc GIT binary patch literal 33348 zcmeHQOKcoP5Uus>uE!=J1`G%gU?Adqz>we=2w*~j_ynY!@Bs;e93czGHpD>zE(=1y zfkO`Ab3iCSkO1YtN8%%KNB|)Ok+>jnK}bj-Ar5fizyW05>yNiQv)-L`*4B)-TiWTK z+3wz%>Z*EORo$~ceEH!UJyMo>D$9R38U3#O$T=_d$}r0ONI4p1=F<=gr%Nfi9`$&w zhX<9|{ywzdxlYU{+5Yp2$N*Zg{rH9m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zraa&P|HtQB{EyE@3;{pM|M8(uD#HBwdej@=VCR5rbIQxTGK%l`Nw(oTh)%~WkZt%i mll|97TaM*?>BA(E{hZdKANso4&%5*A|H>65>?ir2lm7t+5-@N8 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-015/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-015/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-015/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-015/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-015/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..4185980edf1c5f34cb0af62d46ce5221c2335939 GIT binary patch literal 33348 zcmeHQO^6&t6n?WkGwB@@v+Am#sOt|J_26paX4R-`OeAU)1P?g`G_oNqZgy9*k*JqZ zL_K)OA*ctDXjT--!5{DkJj5SF(31!vh~PmH5Aou`gA%{5espHI2rx6{AmBNnhc}NkCdZPWlI=gMhzy_=+n-z?p=CKL;dr<3D6&Q(nVc4hWu5$iuPdm{RFSh> zey6D!n|m*z-VNq@EE`>Zq029J`K>O$#I@TXr%ti|t8ty}Z+7|ZE+2FGE%MK)HTZsu ztG^Z3*>1@6Q;|zuf0w)K*SXwKO{%iZoL6PL$t!Y|$!n&SDN0RI?>jl)UR(voag5?} zr?qk|c*1huT2Omx`muw15AK!W=mL2O*I!h0=Dm=+^e4%;`hI=A@C-{*AH*G#_eMq@k#XZ<_t6>La zL@s{j*AEYUY%ZHaj9!@f(RylndWPk0;1Byrrlbzl-+Mi-ud&QF3V-mV7JqI8{#=W@ zC1z>-p**sU{!o7h{2?`aJLLg?Xj|-qZSgm33x1Ne#j7cN+8lA7RChz?@M+)Ud$Zxw zI}V@Nd^zlk)5WLbxUZyr5%9?kc9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dlo)--V?gb9q`%pF<(Ce#$9l_D= z&6Ecm;Q#pa&(*N+kb4i2%F(DE4f>=a%&%`ky_4(h9MJst&)YR&MN>J^W&^IDjaeYu n_`dAFM%uGjE|Pvs64}pBZTg|FoBdpK#_w}nQNn(b?>YG&$*et* literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-015/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-015/tnlsys.out new file mode 100644 index 000000000..ec7ffd68f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-015/tnlsys.out @@ -0,0 +1,136 @@ +{ + "ioctls": [ + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726530000000000000000000000000000000000000000000000000000000004500000000000000002f00000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ip_vti0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69705f76746930000000000000000000000000002000200000000000000000004500000000000000000400000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "tunl0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "74756e6c300000000000000000000000000000000000000000000000000000004500000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "73697430000000000000000000000000000000000000000000000000000000004500000000000000402900000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703100000000000000000000000c000000000000000000000000000000451000000000400040000000c0000201c6336401" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703200000000000000000000000000000000000000000000000000000045010000000000000000000000000000c6336409" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6772653100000000000000000000000000000000b000b00000000005000000054500000000004000202f0000c0000201c6336402" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726532000000000000000000000000000000003000a00000000001000000024500000000004000002f0000c0000201c6336403" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre3", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "677265330000000000000000000000000000000020002000ef010101ef0101014500000000004000012f0000c0000201ef010101" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743100000000000000000000000000000000000000000000000000000000450000000000400040000000c0000201c6336404" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743200000000000000000000000000000000000000000000000000000000450000000000400010290000c0000201c6336408" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "sit2", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isa1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973613100000000000000000000000000000000010000000000000000000000450000000000400000290000c000020100000000" + }, + { + "family": 2, + "req": "SIOCGETPRL", + "name": "isa1", + "in": "0000000000000000f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "00000000000000002000000000000000c000020b000000000000000000000000c000020a01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "isa1", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isan", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973616e00000000000000000000000000000000010000000000000000000000450000000000400000000000c000020200000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "vti1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7674693100000000000000000000000000000000210020000000000700000008450000000000000000040000c0000201c6336405" + } + ], + "run": { + "argv": [ + "ip", + "-j", + "tunnel", + "show", + "local", + "192.0.2.1" + ], + "rc": 0, + "stdout": "[{\"ifname\":\"ipip1\",\"mode\":\"any/ip\",\"remote\":\"198.51.100.1\",\"local\":\"192.0.2.1\",\"dev\":\"d0\",\"ttl\":64,\"tos\":\"0x10\"}\n,{\"ifname\":\"gre1\",\"mode\":\"gre/ip\",\"remote\":\"198.51.100.2\",\"local\":\"192.0.2.1\",\"ttl\":32,\"key\":5,\"flags\":[\"rx_drop_ooseq\",\"rx_csum\",\"tx_seq\",\"tx_csum\"]}\n,{\"ifname\":\"gre2\",\"mode\":\"gre/ip\",\"remote\":\"198.51.100.3\",\"local\":\"192.0.2.1\",\"ikey\":1,\"okey\":2,\"flags\":[\"rx_drop_ooseq\",\"tx_csum\"]}\n,{\"ifname\":\"gre3\",\"mode\":\"gre/ip\",\"remote\":\"239.1.1.1\",\"local\":\"192.0.2.1\",\"ttl\":1,\"key\":4009820417,\"flags\":[]}\n,{\"ifname\":\"sit1\",\"mode\":\"any/ip\",\"remote\":\"198.51.100.4\",\"local\":\"192.0.2.1\",\"ttl\":64}\n,{\"ifname\":\"sit2\",\"mode\":\"ipv6/ip\",\"remote\":\"198.51.100.8\",\"local\":\"192.0.2.1\",\"ttl\":16}\n,{\"ifname\":\"isa1\",\"mode\":\"ipv6/ip\",\"remote\":\"0.0.0.0\",\"local\":\"192.0.2.1\",\"pr\":\"192.0.2.11\",\"pdr\":\"192.0.2.10\"}\n,{\"ifname\":\"vti1\",\"mode\":\"ip/ip\",\"remote\":\"198.51.100.5\",\"local\":\"192.0.2.1\",\"nopmtudisc\":null,\"ikey\":7,\"okey\":8}\n]\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-016/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-016/cmd.json new file mode 100644 index 000000000..e185d1eb2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-016/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "tnl4", + "json": "1", + "words": "tunnel show dev d0" + }, + "cmd": "ip -j tunnel show dev d0", + "desc": "positive: opt=json cmd=tnl4:tunnel_show_dev_d0", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/pw-016", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "ip tunnel add isa1 mode isatap local 192.0.2.1", + "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -j tunnel show dev d0", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "rc": 0 + }, + { + "cmd": "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "rc": 0 + }, + { + "cmd": "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "rc": 0 + }, + { + "cmd": "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "rc": 0 + }, + { + "cmd": "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "rc": 0 + }, + { + "cmd": "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "rc": 0 + }, + { + "cmd": "ip tunnel add isa1 mode isatap local 192.0.2.1", + "rc": 0 + }, + { + "cmd": "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "rc": 0 + }, + { + "cmd": "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "rc": 0 + }, + { + "cmd": "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-016/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-016/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-016/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-016/ip.out new file mode 100644 index 000000000..a46ed6ec2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-016/ip.out @@ -0,0 +1,2 @@ +[{"ifname":"ipip1","mode":"any/ip","remote":"198.51.100.1","local":"192.0.2.1","dev":"d0","ttl":64,"tos":"0x10"} +] diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-016/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-016/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..7d244b3d948d9b64aaf4c9c7a73d643440687d25 GIT binary patch literal 33356 zcmeHQU5H#s6+Yd!yK`qu%&2Vye@7G6H9iJ*opZiA=TzPPJ*K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4){MzDKqi_ literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-016/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-016/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-016/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-016/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-016/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..eb6d0730f811f938ffafaabb0b5196f63395667e GIT binary patch literal 33356 zcmeHQU2Ggz6+XMOvl-h7HFO&!D8>CzDS?VWBIA;zF-cmK%4!rIP*qi;sccm)j%^yJ zq7Ri;0wRPc@?7TF~}RTwg`b zq}zG$rz67O=aKH$7;d3ok?&WPWmIB69zp#nG|nSk|Iab|Q8oP-8jVZ=_Taec$J~NQ zBD>@t_&PSdX8vjOE3q6kB@;u_3d()M+)rem%Rle(yIg+A%v z{IJU>U4B45UfF@~54!S4aG&+YOgpjM?b^H7-T#`)4b`MB$INwI9x-_=Uo!cysbx-O z7DPI9kSo-Y*wdWUpcy{LOjO>j*C%?e`pD8-CFXSj_0D}`%^TzX)IQbfl{#_i zj?c>9(`~ZU{z@eGtK#9bI|UAc$2TffjW#u7a3#}y@~N&rUXzELHTib4Sx@WkN<=wo zx)yeVD`ywSm*(g8qV<;kW|?;S`!cYA`kR`P`rGQ|{^@T@M8EZSqYc+Llpc4akf6^! zCGzE3pP$DJV+3@zyd?4y(AViuX-DgZ(S~b(Cw6nL7;?juI2lNAhDizdamdU7612!v z7bsbi+j&MEeX!S7!!~4G-hA?xS9aepx6Ma_R+xrRdwyYIk>~xuAGVWDX&tJ+_j+94 z<2man{K1o2{5b&p`S_(Q{!kuSM<3MR0e?u%!A?cMAKDh@U|ZaTUBM%5TU^NC(>Ei| z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ko96oYUpa_`pL*Pr%6EV(uPtVAg>n{f1q>2Wh5|*v zmC1}BEQ$E0WsNIX|DM|qwibj+QNbI*jv zk>2-Al-u8R9Qbkdg)DxA*n3CT8|W{KiXXRQR8shn+uyYf@FNNM(VJLq06!Aq$0&YA z@455%!GDq(H2ioB_%YSyKa2u?^u~*WRJy46!4)%2HxP`M%$_+lF!l!@JK%>K{G3^@ z_`zoNx-EO%vOhe25KlI;_LuFIE#5u_{J8dVKKp~u=i}{+k%aeelOltcii#h6<6YAY zhr^F~Ugn95l-T}2%$K`i0)7}G^zhLGet^c<9D&pcKlnZEj}71l+K1y5sciUh0{HQ( zlL0@>;DwJ|6et3IB$@b!M7z;@?Z3i1?|QdC&_tzkUeihDPli@DqTzEII%H literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-016/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-016/tnlsys.out new file mode 100644 index 000000000..03f13bb04 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-016/tnlsys.out @@ -0,0 +1,115 @@ +{ + "ioctls": [ + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726530000000000000000000000000000000000000000000000000000000004500000000000000002f00000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ip_vti0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69705f76746930000000000000000000000000002000200000000000000000004500000000000000000400000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "tunl0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "74756e6c300000000000000000000000000000000000000000000000000000004500000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit0", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "73697430000000000000000000000000000000000000000000000000000000004500000000000000402900000000000000000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703100000000000000000000000c000000000000000000000000000000451000000000400040000000c0000201c6336401" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697069703200000000000000000000000000000000000000000000000000000045010000000000000000000000000000c6336409" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6772653100000000000000000000000000000000b000b00000000005000000054500000000004000202f0000c0000201c6336402" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726532000000000000000000000000000000003000a00000000001000000024500000000004000002f0000c0000201c6336403" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "gre3", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "677265330000000000000000000000000000000020002000ef010101ef0101014500000000004000012f0000c0000201ef010101" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743100000000000000000000000000000000000000000000000000000000450000000000400040000000c0000201c6336404" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "sit2", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7369743200000000000000000000000000000000000000000000000000000000450000000000400010290000c0000201c6336408" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isa1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973613100000000000000000000000000000000010000000000000000000000450000000000400000290000c000020100000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isan", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973616e00000000000000000000000000000000010000000000000000000000450000000000400000000000c000020200000000" + }, + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "vti1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "7674693100000000000000000000000000000000210020000000000700000008450000000000000000040000c0000201c6336405" + } + ], + "run": { + "argv": [ + "ip", + "-j", + "tunnel", + "show", + "dev", + "d0" + ], + "rc": 0, + "stdout": "[{\"ifname\":\"ipip1\",\"mode\":\"any/ip\",\"remote\":\"198.51.100.1\",\"local\":\"192.0.2.1\",\"dev\":\"d0\",\"ttl\":64,\"tos\":\"0x10\"}\n]\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-017/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-017/cmd.json new file mode 100644 index 000000000..d21c17a8b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-017/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "tnl4", + "json": "1", + "words": "tunnel show isa1" + }, + "cmd": "ip -j tunnel show isa1", + "desc": "corner: opt=json cmd=tnl4:tunnel_show_isa1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/pw-017", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "ip tunnel add isa1 mode isatap local 192.0.2.1", + "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -j tunnel show isa1", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "rc": 0 + }, + { + "cmd": "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "rc": 0 + }, + { + "cmd": "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "rc": 0 + }, + { + "cmd": "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "rc": 0 + }, + { + "cmd": "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "rc": 0 + }, + { + "cmd": "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "rc": 0 + }, + { + "cmd": "ip tunnel add isa1 mode isatap local 192.0.2.1", + "rc": 0 + }, + { + "cmd": "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "rc": 0 + }, + { + "cmd": "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "rc": 0 + }, + { + "cmd": "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-017/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-017/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-017/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-017/ip.out new file mode 100644 index 000000000..31229c683 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-017/ip.out @@ -0,0 +1,2 @@ +[{"ifname":"isa1","mode":"ipv6/ip","remote":"0.0.0.0","local":"192.0.2.1","pr":"192.0.2.11","pdr":"192.0.2.10"} +] diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-017/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-017/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..ccaeebd07f4ca08c28f366d46913e16cd443bf01 GIT binary patch literal 33204 zcmeHQUx-}Q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_3_1/ws/tunnel/pw-017/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-017/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-017/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-017/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..6956b193c54b6d31e39b13e08f4410aeb33e45ca GIT binary patch literal 33204 zcmeHQO^6)F6@D{4J?h;^@hYCkV1u(sgdJN4E0I{sk`iwsCB(77m|S!a*fP6THd*bi zq?NGH!E?wV2a^cAU_jIcw%DBo8+YQ@n6B!cs+#Us@4c_ydsRLEy!Q7$SEVMcRFf}p^2ocj-&}aHD%(-!M{3b7 zWGp5NA|q(U_8*T#XjzLYI6fvkifoWbre{SG z*(5jcb&T3fv21qvK2tL>_g+E0ADHWj>~Q%#F2C31KXm!GT)Xedty}E>0bFPM-7bIB z<>M~jBmcd%0pIU+^?!ovY&UB9iRIg_zwf&154qe>P3p4WoY&>2CXeNQlMkC#rYOUT zde`MHdvP5cCoqbuoi@rg@Py^QjiC0-?6H%RCnsflbho^K>%UWU=Dm=+^e4@?`hI=A z^fi61%Oe{W<9ODD-q?W>3Y}* zuAG`1o1dB9j^11Pn|0dh?@Pb}>ThaF>Tj!;`=`Gt75&!VjW%50P=sV-2m zCb#p9I_|-qTMgTgG5OiQXI`6s&0IEz1idf~q4mt{>>SJez#sOLPH7#gzxR4vUt^hV z6#n2zE&fabe=hzti$9b{w$UHz?|?s~=3u8H;16w!FJN2Tgl)l3+O{~C!Ka5K&XbyM z=o~&BIX;;WpI&wN#OAAEU)(M}UBZ2(?TdgTWJjcbH`D zRPv9-iiX1@eS4keXEBhFDG@R}^Gz=IxMk;Wb!Q3Got^CQ%;47VtM^{IYMQyW_Fl?} zTOa%>i(8aajae*f+%gXx?4}k23{a^ExOE_dOO=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h6<6YAYhr^E*l-T}2%$K_X1AZ7H z^l<0_KR{z_jzH>!AN-#7#|rQR{ljsJR5tuL4gC1uuLFLV!3&366et3IB$@b!L|bt8 z+JA+2-t}&OppP=WCsD;e;$VN|V&BC|8b7+cCvk(rkA!h`OY@lPe$6^yc9`Hlef)Kv zmkkHb00%z$TRt4n>#Kqt!Ob$dKR)zHMVMdjM!k>Tj_ DqAxeN literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-017/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-017/tnlsys.out new file mode 100644 index 000000000..c1f395361 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-017/tnlsys.out @@ -0,0 +1,37 @@ +{ + "ioctls": [ + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isa1", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973613100000000000000000000000000000000010000000000000000000000450000000000400000290000c000020100000000" + }, + { + "family": 2, + "req": "SIOCGETPRL", + "name": "isa1", + "in": "0000000000000000f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "00000000000000002000000000000000c000020b000000000000000000000000c000020a01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "isa1", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + } + ], + "run": { + "argv": [ + "ip", + "-j", + "tunnel", + "show", + "isa1" + ], + "rc": 0, + "stdout": "[{\"ifname\":\"isa1\",\"mode\":\"ipv6/ip\",\"remote\":\"0.0.0.0\",\"local\":\"192.0.2.1\",\"pr\":\"192.0.2.11\",\"pdr\":\"192.0.2.10\"}\n]\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-018/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-018/cmd.json new file mode 100644 index 000000000..077542c1b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-018/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "tnl4", + "json": "1", + "words": "tunnel show isan" + }, + "cmd": "ip -j tunnel show isan", + "desc": "corner: opt=json cmd=tnl4:tunnel_show_isan", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/pw-018", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "ip tunnel add isa1 mode isatap local 192.0.2.1", + "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -j tunnel show isan", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "rc": 0 + }, + { + "cmd": "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "rc": 0 + }, + { + "cmd": "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "rc": 0 + }, + { + "cmd": "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "rc": 0 + }, + { + "cmd": "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "rc": 0 + }, + { + "cmd": "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "rc": 0 + }, + { + "cmd": "ip tunnel add isa1 mode isatap local 192.0.2.1", + "rc": 0 + }, + { + "cmd": "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "rc": 0 + }, + { + "cmd": "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "rc": 0 + }, + { + "cmd": "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-018/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-018/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-018/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-018/ip.out new file mode 100644 index 000000000..97c0b579a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-018/ip.out @@ -0,0 +1,2 @@ +[{"ifname":"isan","mode":"any/ip","remote":"0.0.0.0","local":"192.0.2.2"} +] diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-018/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-018/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..6d826037d5dfa732b6eb5a6d5cde09297e734855 GIT binary patch literal 33204 zcmeHQO=w(I6h4zTGkJ+=8#Pu?&{W0Wh1HhWYSpM!Q0l^s3W{1ut-&;jO(KdYqtxm` zq+$^T7Ztk@?Lvx(3z2H82zDvBaU*U-L^m#UA@%$2Pv+#k$;_K%65q?*3-j)MZ|=SG z-nr+T@1Aq+ee=V~gkO+OXcvA*^&P ze747aGo3X&m_FP${=UuKxoeA+eP^{lMtspe)%=+%IJLrOW^O0Jw5|dSrHTVl#TL>u=U+ zq`!{=3#h-TDXG7$UhbU!rc`uVe-Aa_`XQyq9VsN}b5DtExz^{0F~c|ubhf-Casc#o zI#e3bddO(Qg}+lV^8@l7m=-B^G7zJLIR~!ynHfNg9+|2FC2Mj!-a?77v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)x*CzZEkN(SFq;_-`hG9UEUtV@L4cfC)lsNP(5W4*pO(*s-+% zc5wA_52qP2h>t^EGLj=q2$yo=%9+L#mIJPkl|srZuJFy6 z30yIOjx4xxBImerHJ+^*uKZalh4@IDqL~#}h7Ii_VNP5jt%)l(uiGm;C$3Oeb~~=j z09Q`klg1UwS-=%ANJuFPiuiGCUKZqwwS^LZWinjLmS>VT?Z)C#{KA(@b zGe#2P?W9QerM%(?-*{JZ!{P8_lBZeXA_cZT5cB13zUi2`}Rk2n?okZ2?BUi+``&b#*Q5A;!__av(L zM!}lE#k~?@8=+_z^R%ZfRcOx?i&nm>tIWPal7s=S9PT7k~pFyqpaO^!ln` oM{u;eGvxsX_&+}9<9~cE!w~S3{2w3sq$13(x1-*{K|2Th55B@F^#A|> literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-018/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-018/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-018/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-018/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-018/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..05c3d1e66b2ead88d18a02c215f2d9b9466f0b41 GIT binary patch literal 33204 zcmeHQO^6&t6n-;3GwEG7y6PH1L01j_9*iceF-BcA3Q9Z(qJpAEHpV5J-A#5^6j4U; z?;sL2h=PZRIf&#SB9eoL_=}(yLGa>5yoiWiJeY&7-&a37Z@Xt_dN#9b_f8c|S9MQS zP4}z!-dFFvs-7Rd_~_lTRHTtA@()g~{kF1q|G#C~gfc%;iMBHHX&8kwq!evKJzgvG zpc31^j`lkT#C($NKdp)kq7~bp7>v-e5|wbgU3e5(Cy`7{iNvyAe#O^S)Ml#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8T8FsLBST3u8IU{GgwMYpfZ@H%Wi^YR(gjf;Df9 z2dwE1*Y-v)dBB>7Q+@}DxYDBThQP*Nt&2O0-{BjFHEf$*n2-Dvs#YtUIov zuYG2GHgimOK_(6MZHC8_>sRv=(+!x{eRZKR?+J%_;2D`{BafrFm8y%~dSAL<(^>=9 zFg1MZoy%oWY^7%&P1{P8qgH-7<6S;Uznt|@8!}7q%UL=U;g|&F$OwB)Te^F5e4X{_&3V9DFrm*u|i{qt?%~*uT7u-6food zv49yI>yWZhAP<;vUkWq&BTA^p47V?f=0+yWU<@J8{v*2b+t?fBfEgU^>`7xrt9@A? zqD#Jig1K97TXkzMkk_2eu#UD!nftPaQBUK@VjCpuzO05Vg67hUL1NnC%@ma%uU_*tTJLDBt1~C!|Trn?6&0>r2{j7P$mBVu;<*aLF#o}IRIQaaZ4IkC}$c|SPr;CRthPvxWYGM zCUC_BI*+7^iXVJ4SOPyX z`@7Zve#8MkIupxf;73gS7{t%$J$D{I_)k*3h98duKeoRV@S`)%>+RZk#SgBSsk@@cDea zoiUOSZzn~1FXa_K_{O`s8xDsblRV857b&p)ftW9M0|xvsMCjnq0e*nSc<~cbEBxU1 zv_F=CALt*BQ>3Ed$5X(M6Egun%;1GXCJN*MKjKvUL!u41d+oo%JMTKTKhQ^!-jk@} zAJt%gWMbciN*X`fyeDy;!;hG8bxZRq*ZrDx!0a%_fBN|AJTDp!JPjOp@40L^px0Lg oJA$L#n<)=C!2j_%i2w1~h#}x7`9D7NNky1nZ$rHkgLV%19}-A7HUIzs literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-018/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-018/tnlsys.out new file mode 100644 index 000000000..dbf8b0475 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-018/tnlsys.out @@ -0,0 +1,23 @@ +{ + "ioctls": [ + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isan", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973616e00000000000000000000000000000000010000000000000000000000450000000000400000000000c000020200000000" + } + ], + "run": { + "argv": [ + "ip", + "-j", + "tunnel", + "show", + "isan" + ], + "rc": 0, + "stdout": "[{\"ifname\":\"isan\",\"mode\":\"any/ip\",\"remote\":\"0.0.0.0\",\"local\":\"192.0.2.2\"}\n]\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-019/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-019/cmd.json new file mode 100644 index 000000000..fcb9ac71c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-019/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "tnl4", + "json": "1", + "words": "tunnel show sit2" + }, + "cmd": "ip -j tunnel show sit2", + "desc": "positive: opt=json cmd=tnl4:tunnel_show_sit2", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/pw-019", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "ip tunnel add isa1 mode isatap local 192.0.2.1", + "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -j tunnel show sit2", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "rc": 0 + }, + { + "cmd": "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "rc": 0 + }, + { + "cmd": "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "rc": 0 + }, + { + "cmd": "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "rc": 0 + }, + { + "cmd": "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "rc": 0 + }, + { + "cmd": "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "rc": 0 + }, + { + "cmd": "ip tunnel add isa1 mode isatap local 192.0.2.1", + "rc": 0 + }, + { + "cmd": "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "rc": 0 + }, + { + "cmd": "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "rc": 0 + }, + { + "cmd": "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-019/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-019/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-019/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-019/ip.out new file mode 100644 index 000000000..9af091b48 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-019/ip.out @@ -0,0 +1 @@ +sit2: ipv6/ip remote 198.51.100.8 local 192.0.2.1 ttl 16 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-019/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-019/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..dcb4ca9230c6394d543bc19b01657744a5108bbd GIT binary patch literal 24 Wcmca|c+)~A1{MYcU}5+R_j4{l_k}d zO46rsNJ4DVRs{w8kO!BVHUtwwDJ77QxFm!?{1OO+LLUn)HMB2o=}S?+@BV1d&a8H4 z<&`?4y%%Qgo!NWu&YXMB`R+OA-rdhW_}#Atq$-V6mH*=6-cPDOI`^AM4xr3Ks?lL) zK8>UB1*t?wP>=Tpcv6Y&-$eVV5iv)){kt`hQM6+F-FqUmtVR`_9~PcP1|^cY1(8^G z$=~pC4YiqSvd85Qn3}P9_6q9VWA4Xt(B)rp`E4%$w##pK?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H|7QT~(%JJ_3!cazRK7Duem*kSAYeZf1^ z=YJfS@ySZS432e3`6y5X%(yRu86y!T)MJL*mql|U7iKVqP-OoRUHM(?jiG=U9PRu` zV@9WaS#O|A{{94Wx8Anq)?Og5JDXt_ZIL1F%bG+zjU%l#NZx%}Oij#TCjK>7ft$fqX2P?;2tfh6)3BDk`pwV!cfg<2aBjX2)BmUB|#uco8&+P|WkGmUuDbJn>6?d-& zdnLoF9dBq{>9l7;#oVhp=FZN!XF}sh?|UZ7?eBUS`0?+1viK2V?;Tlhpg$}seq4@G zN#RFsf7cGck2v5*Z(_L#{D_Gk*hucfH#m z=%Y-(lc?e!wP1hbV&C;j8b7-HPU0?yA2H+VmgY6C`!(x;*SG!3;~by|M<`+6=8mT0QFwoZRdbr1MrP6;s5{u literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-020/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-020/tnlsys.out new file mode 100644 index 000000000..51cb9eb32 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-020/tnlsys.out @@ -0,0 +1,14 @@ +{ + "run": { + "argv": [ + "ip", + "-j", + "tunnel", + "show", + "nosuch" + ], + "rc": 0, + "stdout": "[]\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-021/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-021/cmd.json new file mode 100644 index 000000000..b5108faf3 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-021/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "tnl4", + "json": "1", + "words": "tunnel show name ipip2" + }, + "cmd": "ip -j tunnel show name ipip2", + "desc": "corner: opt=json cmd=tnl4:tunnel_show_name_ipip2", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/pw-021", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "ip tunnel add isa1 mode isatap local 192.0.2.1", + "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -j tunnel show name ipip2", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "rc": 0 + }, + { + "cmd": "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "rc": 0 + }, + { + "cmd": "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "rc": 0 + }, + { + "cmd": "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "rc": 0 + }, + { + "cmd": "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "rc": 0 + }, + { + "cmd": "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "rc": 0 + }, + { + "cmd": "ip tunnel add isa1 mode isatap local 192.0.2.1", + "rc": 0 + }, + { + "cmd": "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "rc": 0 + }, + { + "cmd": "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "rc": 0 + }, + { + "cmd": "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-021/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-021/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-021/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-021/ip.out new file mode 100644 index 000000000..0cc537495 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-021/ip.out @@ -0,0 +1 @@ +ipip2: any/ip remote 198.51.100.9 local any ttl inherit tos inherit nopmtudisc diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-021/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-021/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..dcb4ca9230c6394d543bc19b01657744a5108bbd GIT binary patch literal 24 Wcmca|c+)~A1{MYcU}5+RH3_vqM<{SpnAi&PR%#dQhzyJVLzY)Cv literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-023/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-023/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-023/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-023/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-023/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..1ec0b6e5ac638a47b55ea368fe6187f11725d6e0 GIT binary patch literal 168 zcmca|c+)~A1{MYcU}5+ReZz+eGngD?XNGnfJ~K|lkDg%}tatbyvl0ziTX u#sJbB46+QIj1Y4s5imyps2*gF!kjA&3_vqM<{SpnAi&PR%#dQhzyJW4g%T?O literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-023/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-023/tnlsys.out new file mode 100644 index 000000000..9c87a5138 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-023/tnlsys.out @@ -0,0 +1,23 @@ +{ + "ioctls": [ + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "ipip1", + "in": "69706970310000000000000000000000000000000000000000000000000000004500000000004000000400000000000000000000", + "out": "697069703100000000000000000000000c000000000000000000000000000000451000000000400040000000c0000201c6336401" + } + ], + "run": { + "argv": [ + "ip", + "-j", + "tunnel", + "show", + "ipip1" + ], + "rc": 0, + "stdout": "ipip1: any/ip remote 198.51.100.1 local 192.0.2.1 dev d0 ttl 64 tos 0x10\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-024/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-024/cmd.json new file mode 100644 index 000000000..6642fdbe5 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-024/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "tnl4", + "json": "1", + "words": "tunnel show sit1" + }, + "cmd": "ip -j tunnel show sit1", + "desc": "positive: opt=json cmd=tnl4:tunnel_show_sit1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/pw-024", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "ip tunnel add isa1 mode isatap local 192.0.2.1", + "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -j tunnel show sit1", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "rc": 0 + }, + { + "cmd": "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "rc": 0 + }, + { + "cmd": "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "rc": 0 + }, + { + "cmd": "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "rc": 0 + }, + { + "cmd": "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "rc": 0 + }, + { + "cmd": "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "rc": 0 + }, + { + "cmd": "ip tunnel add isa1 mode isatap local 192.0.2.1", + "rc": 0 + }, + { + "cmd": "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "rc": 0 + }, + { + "cmd": "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "rc": 0 + }, + { + "cmd": "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-024/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-024/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-024/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-024/ip.out new file mode 100644 index 000000000..7fd168b4d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-024/ip.out @@ -0,0 +1 @@ +sit1: any/ip remote 198.51.100.4 local 192.0.2.1 ttl 64 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-024/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-024/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..dcb4ca9230c6394d543bc19b01657744a5108bbd GIT binary patch literal 24 Wcmca|c+)~A1{MYcU}5+Ryy^1FfLd8R^Sju9%-L|VNRC*D-h$d~BjNu4AK=(~W~)_H(6$ET@P2p{))(r9gg?<=-}u*n;w( zY@%ke3G!$6IxL@ZES5h>*b{9hhlWRSUGE%iwPKtW)vzSWtlhwE;&V66t*fgPv4w0;3 zDp7uEj9U(fbnzjV1|}_&>&$0|+bA6}q4Y=nW7jO@Gg?pCsxSwS1hkAAHArD5> z4cr*+St(UslHu?hrIE1Du=I18cAHNuV}1yJN5kFuLOxi^~`#9cx04KyI_2YzaKWr zSieF@B5llkYKQX{`s12&yBAl6>JWg2I62HH$j~Gf#cNNJ`!6nP7PZN z2xo(9;V8G2N>m2_1zrZ?TRL)Vt?60x=FCxaM)66>F zSqQ#+0C{}xs2h9||2J6N&*bBU7OHNSBLY4>vx&;#gN=1^X;rX?Gd^>)mF>d!AlWPOHNf7-9xb;ujm4cB2BNRIVdr-cWgvd(#S&4=-0 zSB$k-?0Sz`AG@xzZerK4SvGCZK$5Jt^8Es=Yd%a=)@PaZ_A`ccLveHsB*}W3hvmwl z!C%iz43urxA292!{HA^|HVw1uxTPPPirl&RjY-ZzbsdsqeK)JtmFktOXK^b1bz9B9 zqrI39Gsmo-7&ELxPo_lEKys{;vxkSI`Y`-HaM^Z!o>@OU6ODB>4`b|lG%o(fUU9Jw Pf5qXq0{s8??4 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-036/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-036/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-036/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-036/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-036/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..71ee8d165b0bcaeae0807a8e9ca5e3889c279376 GIT binary patch literal 14432 zcmeI3!AlfT9LIk%vzDz|rdvU$F4Zk8O+6@hjZPf`p}>qpmTX;htLxNXP(fItWQ8db z5gnpK2g6I?C8DFpf(VHY9Xb^D`@VUzJ?D+D-Z|Rp#W*dhV@Z@*yOG<(=Wd2u*Vl>ebzP>@ zH;KMFL_hiZD1BmYiJs`~Z|huU_j!F$r>8c#=PbT6QNI|U5G?kG+@)_`Ti9M)Lw?YF z+`FzAoow5z?qAFO-sxAprz)N)6**OSR@_g$CVF*P4jogvo9fmY=%HQATV*8^B3Z{& zqWsbrw;T}Z;zKTtOj3IE;9WfXHf=rDlV6N)?`xv^k8$yi_%=Ob(*urgu?6GX zu=Ri#LtPI;;}iM8oW33w%UBOx&&+zLehRB+gmJBhHO>ClJID#S^3nIO?=z7t2){?> zY(zfieHpADUC>#FyzzCahp%cHNnEV2YOHrV4gBEm1c^iq%zAF*+9;cL!T1t?KWvq= zoSV|whFmGOg|4^h*N9j^PMYy+s)^pxV~LAxJuh#u?@qKV*+yRe3UiITJTC*X7*OOX z;e(fA{66O=KZfMxlknYlnsGH2D9#cBeJ&<1@9AMD_Hi(dxzl|Wa+(H_(NwU75)g55H9W$W%^Ggv~pJCQt4(N6r@`iQ8b(jW{W4+#K;Q^?ubDmxEVf@$? zV=WcCK4R9#ZtJX@*fngHO&c_jBBpubcW!=TlCw}-ha_1)z^ZkndL`>QoJxP)R`c&@ zFXh9`G3&i!hIQ!4lxP}Aj&*Vl@{m*?hTjLS*sjkr>nCQSv99J}j9rh$#sAnVF4p0% NIQ&+C|DQhS?l0o2{2%}T literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-036/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-036/tnlsys.out new file mode 100644 index 000000000..61fc50725 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-036/tnlsys.out @@ -0,0 +1,38 @@ +{ + "ioctls": [ + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6tnl0", + "in": "00000000000000000000000000000000020000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036746e6c30000000000000000000000000002900000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6gre0", + "in": "00000000000000000000000000000000030000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667726530000000000000000000000000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6_vti0", + "in": "00000000000000000000000000000000040000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6970365f767469300000000000000000000000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + } + ], + "run": { + "argv": [ + "ip", + "-j", + "tunnel", + "show", + "mode", + "any" + ], + "rc": 0, + "stdout": "[{\"ifname\":\"ip6tnl0\",\"mode\":\"ipv6/ipv6\",\"remote\":\"::\",\"local\":\"::\",\"encap_limit\":0,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\"}\n,{\"ifname\":\"ip6gre0\",\"mode\":\"gre/ipv6\",\"remote\":\"::\",\"local\":\"::\",\"encap_limit\":0,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\",\"flags\":[]}\n,{\"ifname\":\"ip6_vti0\",\"mode\":\"ipv6/ipv6\",\"remote\":\"::\",\"local\":\"::\",\"encap_limit\":0,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\"}\n]\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-037/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-037/cmd.json new file mode 100644 index 000000000..c6636566b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-037/cmd.json @@ -0,0 +1,109 @@ +{ + "axes": { + "fix": "tnl4", + "json": "1", + "words": "-6 tunnel show" + }, + "cmd": "ip -j -6 tunnel show", + "desc": "corner: opt=json cmd=tnl4:-6_tunnel_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": "tunnel/pw-037", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "ip tunnel add isa1 mode isatap local 192.0.2.1", + "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -j -6 tunnel show", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ipip1 type ipip remote 198.51.100.1 local 192.0.2.1 ttl 64 tos 0x10 dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ipip2 type ipip remote 198.51.100.9 nopmtudisc tos inherit", + "rc": 0 + }, + { + "cmd": "ip link add gre1 type gre remote 198.51.100.2 local 192.0.2.1 key 5 seq csum ttl 32", + "rc": 0 + }, + { + "cmd": "ip link add gre2 type gre remote 198.51.100.3 local 192.0.2.1 ikey 1 okey 2 iseq ocsum", + "rc": 0 + }, + { + "cmd": "ip link add gre3 type gre remote 239.1.1.1 local 192.0.2.1 ttl 1", + "rc": 0 + }, + { + "cmd": "ip link add sit1 type sit remote 198.51.100.4 local 192.0.2.1 ttl 64", + "rc": 0 + }, + { + "cmd": "ip tunnel add sit2 mode sit remote 198.51.100.8 local 192.0.2.1 ttl 16", + "rc": 0 + }, + { + "cmd": "ip tunnel add isa1 mode isatap local 192.0.2.1", + "rc": 0 + }, + { + "cmd": "ip tunnel prl dev isa1 prl-default 192.0.2.10 && ip tunnel prl dev isa1 prl-nodefault 192.0.2.11", + "rc": 0 + }, + { + "cmd": "ip link add isan type sit local 192.0.2.2 isatap && ip tunnel prl dev isan prl-default 192.0.2.12", + "rc": 0 + }, + { + "cmd": "ip link add vti1 type vti remote 198.51.100.5 local 192.0.2.1 ikey 7 okey 8", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-037/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-037/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-037/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-037/ip.out new file mode 100644 index 000000000..f869f26aa --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-037/ip.out @@ -0,0 +1,4 @@ +[{"ifname":"ip6tnl0","mode":"ipv6/ipv6","remote":"::","local":"::","encap_limit":0,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000"} +,{"ifname":"ip6gre0","mode":"gre/ipv6","remote":"::","local":"::","encap_limit":0,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000","flags":[]} +,{"ifname":"ip6_vti0","mode":"ipv6/ipv6","remote":"::","local":"::","encap_limit":0,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000"} +] diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-037/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-037/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..888dc03a6b262753f3e2f69b48fe2e0dbd5b59f9 GIT binary patch literal 14432 zcmeI3J!lj`6vyB0Tr}px#CVEYDS}o))R07oAZTMH>BL4)jB4Er0ViL9{4mRZ+)VN) zmj7ZCwUSMcAKD>UJ|QfYKS?+fZ6raNemvK`M_audr$u!vi85k0ahv?yNpkDb647|q zd1|>s^i>f3wQ=zPW9s&hi=R zgVz1-bLHq%+e&rsSC3;oqNcG z5&r>h4ENAzyi0W4cM14ZN2yzJe`%m^W$qtW!2S3coqNdpnMd8vy&Q`1_i9DrbqS06 z-zEG#{#-jsz0Iz_KYJ~omLb(jKEI;^_CMdy*@t{N_F)Gm)`=JM-fY8S|A)>#M^!|& z8>-7#haG-Cm21~x`sWq!{vf0CzOV}Ka_(#N^{^+enAqOaMD1V0;vM|s&!|MdcULXMjHCXRgu(|H;9 zs689GpEFwl>!bH{)*)|Vo!a56mPQg5>kAs|-J+2vJ}F5gYGl^4nJfM5+9l%?{P&^U zp5+_fyE$@GXB%?m*p|9pV_YM10kvo*uBjz@%a0{2w)K5^i(_}9DaAJSuQ%iVT%fQ@Nc6dweR)?8>v0Z)ajcyltB`2s_Sn|OhbrY*71)GbefiPIdOOU5dbDo;pMe-=l zQ%l(b(%E8LIK*w$#O*U|3&SJE7Fd0z1k^xSwxF}#Ao%P50_(_8d5;oqf0^HZ5im!6 z%dF4z>a0WF#PI-lxXI^6m))?Wo=eU@22P~v-6$Q#yU264dYM#=gX z9#awPhcQflJU@tr&?()oL*B3+aPec-EjrfgMH}nZ&pPk3YcY(MyJ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W1dA_XntxYx1v0yKq)~Wg&UgJG5Ei>YhNr^6R+uR=%m8F z1I&10|7v>HbTiCry}7V4?}T6;%M8tIqL1VJD6XvC8ZO=JX)UnSAOzfc^Lp7SzS5uX zMSUgcQ6pYXvCCWJV(w<% zrCsk}~cG7Hf#>g^5s}badsJVplqGK zdG(94LxmAhG^o}A&- zv;9^w_z5H1jyK|NbRXj+BK$XPP;Bl7vTJiUxKGaAjF4`hClnlPZnYCQoF5oJ{{A3} wA8{NG-Y+|gj9%#O&<^}Sk2ZrJ*oQyK`|$UvdVC4}PZCaNIy^@X{^yA3e<{r7&;S4c literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-038/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-038/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-038/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-038/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-038/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..de973ccef147e9ad481f63c760bb0b0e38cf2f22 GIT binary patch literal 18804 zcmeHPO=u)V6n-;3J=+-*jXJKfqDEZ&!GqBa+2|%3brpqNyooHhkwhJKGKtAVR=qT` zpooVBBQEG6;vynJ77w}y57{44aE}YJpm*8BdTC6MB*^n6B!Y zs+#Vq_ug0UtE#zp?%U6^l%pWz=s&(0{Uvu~{(FxGIgJnHoDoDO3~=Hm$~a?O4tZHz ztbqEV zs5hY6ap`Vp?;gp2NMhA%l&6F0K2Oi6*roeaTu`-Ck_uMuU7%Za<~F!a@hEmW^wNVY z6I%Luxwk8`Z!AtPPSc>Xhd$)|_pN@$vp~A+Pgrj4=QZWRdG@`X?&qO}tcC;HSb7TU|VE1)+y)S7vADkZuS5pq+3C+fe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/tnlsys.out @@ -0,0 +1,37 @@ +{ + "ioctls": [ + { + "family": 2, + "req": "SIOCGETTUNNEL", + "name": "isa16", + "in": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6973613136000000000000000000000000000000010000000000000000000000450000000000400000290000c000020100000000" + }, + { + "family": 2, + "req": "SIOCGETPRL", + "name": "isa16", + "in": "0000000000000000f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "0000000000000000f000000000000000c0000219000000000000000000000000c0000218000000000000000000000000c0000217000000000000000000000000c0000216000000000000000000000000c0000215000000000000000000000000c0000214000000000000000000000000c0000213000000000000000000000000c0000212000000000000000000000000c0000211000000000000000000000000c0000210000000000000000000000000c000020f000000000000000000000000c000020e000000000000000000000000c000020d000000000000000000000000c000020c000000000000000000000000c000020b000000000000000000000000" + }, + { + "family": 2, + "req": "SIOCGET6RD", + "name": "isa16", + "in": "000000000000000000000000000000000000000000000000", + "errno": 22 + } + ], + "run": { + "argv": [ + "ip", + "-j", + "tunnel", + "show", + "isa16" + ], + "rc": 0, + "stdout": "[{\"ifname\":\"isa16\",\"mode\":\"ipv6/ip\",\"remote\":\"0.0.0.0\",\"local\":\"192.0.2.1\",\"pr\":\"192.0.2.25\",\"pr\":\"192.0.2.24\",\"pr\":\"192.0.2.23\",\"pr\":\"192.0.2.22\",\"pr\":\"192.0.2.21\",\"pr\":\"192.0.2.20\",\"pr\":\"192.0.2.19\",\"pr\":\"192.0.2.18\",\"pr\":\"192.0.2.17\",\"pr\":\"192.0.2.16\",\"pr\":\"192.0.2.15\",\"pr\":\"192.0.2.14\",\"pr\":\"192.0.2.13\",\"pr\":\"192.0.2.12\",\"pr\":\"192.0.2.11\"}\n]\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-039/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-039/cmd.json new file mode 100644 index 000000000..394e132af --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-039/cmd.json @@ -0,0 +1,79 @@ +{ + "axes": { + "fix": "tnl6", + "json": "1", + "words": "-6 tunnel show" + }, + "cmd": "ip -j -6 tunnel show", + "desc": "positive: opt=json cmd=tnl6:-6_tunnel_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": "tunnel/pw-039", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -j -6 tunnel show", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "rc": 0 + }, + { + "cmd": "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "rc": 0 + }, + { + "cmd": "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "rc": 0 + }, + { + "cmd": "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-039/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-039/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-039/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-039/ip.out new file mode 100644 index 000000000..a0bc78e6a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-039/ip.out @@ -0,0 +1,9 @@ +[{"ifname":"ip6tnl0","mode":"ipv6/ipv6","remote":"::","local":"::","encap_limit":0,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000"} +,{"ifname":"ip6gre0","mode":"gre/ipv6","remote":"::","local":"::","encap_limit":0,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000","flags":[]} +,{"ifname":"ip6_vti0","mode":"ipv6/ipv6","remote":"::","local":"::","encap_limit":0,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000"} +,{"ifname":"ip6t1","mode":"ipv6/ipv6","remote":"2001:db8::2","local":"2001:db8::1","link":"d0","ip6_tnl_f_ign_encap_limit":null,"hoplimit":1,"ip6_tnl_f_use_orig_tclass":null,"flowlabel":"0x12345","flowinfo":"0x00012345","ip6_tnl_f_allow_local_remote":null} +,{"ifname":"ip6t2","mode":"ip/ipv6","remote":"2001:db8::3","local":"2001:db8::1","encap_limit":2,"hoplimit":64,"tclass":"0x20","ip6_tnl_f_use_orig_flowlabel":null,"flowinfo":"0x02000000","ip6_tnl_f_rcv_dscp_copy":null} +,{"ifname":"ip6g1","mode":"gre/ipv6","remote":"2001:db8::4","local":"2001:db8::1","encap_limit":4,"hoplimit":64,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000","key":9,"flags":["rx_drop_ooseq","rx_csum","tx_seq","tx_csum"]} +,{"ifname":"vti61","mode":"ipv6/ipv6","remote":"2001:db8::5","local":"2001:db8::1","encap_limit":0,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000","ikey":3,"okey":4} +,{"ifname":"gre6x","mode":"gre/ipv6","remote":"2001:db8::6","local":"2001:db8::1","encap_limit":4,"hoplimit":64,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000","flags":[]} +] diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-039/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-039/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..00d3d35eb6d9f6f1ebf12d06ec735b6c9ddb0a8f GIT binary patch literal 10896 zcmeI2ziSjh6vyA*Ud-iSE%gwmHV0Yi{4eO{|XfJt>U%v|AKw8Rj1?1{y=kE+}r})vID&RpQJ)GYd|Gs z)nMFlNo0;EAx$7{Xe^x_8Sao&$Q>u|k88+1b`Ww;{Q&pS+u(j~+T@=4WF)we8_PW{ zTHR7U?lUgu)SNcA=6-N|pfL9{C2+s*ipf3ogUquWeI!XQT2t zFG^s&<%!8U^=+(EIeb;pNaA9B*R zIAgL+y(qSot+yE0sI`E;X*RB@BzmLA5*OQMUfx0MF0!E6W?udrxMp4+ZXgZ-WuB5T zcogGr!1$>FlksxI?%U0Ha4oQYm$=Y}*u1=Fhwa$M!8q?-SYEyv^|$q)8@xPC_7HwE zN7L>!&+Ah>IOKg+$1U`YsJ#3;a6jE+a!>uJx!vYyXzJ>eIJl=Jxn_NZHER;ka?4+{ zhWQ1Tw)uW>7UnTiKMy$Y zsOP~4aR2g}$vyR>o(IYxHr7{WsJ31CxOdz(7&kcI<6TucihDl};ysDt{u8+WcGTqF z#zECabMe<(KJGK_P7Eu^J>FHNFQcwdoKx)g37^4zZ?DO{{XU_14yvtXT->K%NEcZf z|C>wNm1~05TeZTEJJkoCdEa>+L_NOqR61-=;nKmEI@v4r2wd3Do=y7UvxWbCWA*qK LMmy{$KdkwX%wd7(*~7AvvN}o~2l5VQCRj zNDx7g5G<8gL{b<~@hc#LVh|Mz3kxOw|FgTva4-D07pf>g2(fHWYSr&hWg!)IIzt|#rE7bp# z5NVZ!P``7hf__pt&_5>Ji)aRe-yH&ha{$H?9w(4+{>M_mlYK;0A_+HC*Rc*J z{9NB?yAjjRmcjekF_ZVDb$Hj;zQMVk{^W~|?R`sB|1mD!xxT%I_3d4(Z@Cq&Z^Qh7 zYmA^j^pA~?_6?i@G6rvCX{v8F0t<8 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-039/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-039/tnlsys.out new file mode 100644 index 000000000..36ce0df1f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-039/tnlsys.out @@ -0,0 +1,72 @@ +{ + "ioctls": [ + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6tnl0", + "in": "00000000000000000000000000000000020000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036746e6c30000000000000000000000000002900000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6gre0", + "in": "00000000000000000000000000000000030000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667726530000000000000000000000000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6_vti0", + "in": "00000000000000000000000000000000040000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6970365f767469300000000000000000000000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t1", + "in": "000000000000000000000000000000000d0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743100000000000000000000000c00000029040100000123454300030020010db800000000000000000000000120010db8000000000000000000000002000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t2", + "in": "000000000000000000000000000000000e0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743200000000000000000000000000000004024000020000001400030020010db800000000000000000000000120010db8000000000000000000000003000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6g1", + "in": "000000000000000000000000000000000f0000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667310000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000004b000b0000000000900000009" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "vti61", + "in": "00000000000000000000000000000000100000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "767469363100000000000000000000000000000029000000000000000000000020010db800000000000000000000000120010db8000000000000000000000005200020000000000300000004" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "gre6x", + "in": "00000000000000000000000000000000110000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726536780000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000006000000000000000000000000" + } + ], + "run": { + "argv": [ + "ip", + "-j", + "-6", + "tunnel", + "show" + ], + "rc": 0, + "stdout": "[{\"ifname\":\"ip6tnl0\",\"mode\":\"ipv6/ipv6\",\"remote\":\"::\",\"local\":\"::\",\"encap_limit\":0,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\"}\n,{\"ifname\":\"ip6gre0\",\"mode\":\"gre/ipv6\",\"remote\":\"::\",\"local\":\"::\",\"encap_limit\":0,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\",\"flags\":[]}\n,{\"ifname\":\"ip6_vti0\",\"mode\":\"ipv6/ipv6\",\"remote\":\"::\",\"local\":\"::\",\"encap_limit\":0,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\"}\n,{\"ifname\":\"ip6t1\",\"mode\":\"ipv6/ipv6\",\"remote\":\"2001:db8::2\",\"local\":\"2001:db8::1\",\"link\":\"d0\",\"ip6_tnl_f_ign_encap_limit\":null,\"hoplimit\":1,\"ip6_tnl_f_use_orig_tclass\":null,\"flowlabel\":\"0x12345\",\"flowinfo\":\"0x00012345\",\"ip6_tnl_f_allow_local_remote\":null}\n,{\"ifname\":\"ip6t2\",\"mode\":\"ip/ipv6\",\"remote\":\"2001:db8::3\",\"local\":\"2001:db8::1\",\"encap_limit\":2,\"hoplimit\":64,\"tclass\":\"0x20\",\"ip6_tnl_f_use_orig_flowlabel\":null,\"flowinfo\":\"0x02000000\",\"ip6_tnl_f_rcv_dscp_copy\":null}\n,{\"ifname\":\"ip6g1\",\"mode\":\"gre/ipv6\",\"remote\":\"2001:db8::4\",\"local\":\"2001:db8::1\",\"encap_limit\":4,\"hoplimit\":64,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\",\"key\":9,\"flags\":[\"rx_drop_ooseq\",\"rx_csum\",\"tx_seq\",\"tx_csum\"]}\n,{\"ifname\":\"vti61\",\"mode\":\"ipv6/ipv6\",\"remote\":\"2001:db8::5\",\"local\":\"2001:db8::1\",\"encap_limit\":0,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\",\"ikey\":3,\"okey\":4}\n,{\"ifname\":\"gre6x\",\"mode\":\"gre/ipv6\",\"remote\":\"2001:db8::6\",\"local\":\"2001:db8::1\",\"encap_limit\":4,\"hoplimit\":64,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\",\"flags\":[]}\n]\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-040/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-040/cmd.json new file mode 100644 index 000000000..5a9d24c01 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-040/cmd.json @@ -0,0 +1,79 @@ +{ + "axes": { + "fix": "tnl6", + "json": "1", + "words": "-6 tunnel" + }, + "cmd": "ip -j -6 tunnel", + "desc": "corner: opt=json cmd=tnl6:-6_tunnel", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/pw-040", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -j -6 tunnel", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "rc": 0 + }, + { + "cmd": "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "rc": 0 + }, + { + "cmd": "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "rc": 0 + }, + { + "cmd": "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-040/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-040/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-040/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-040/ip.out new file mode 100644 index 000000000..a0bc78e6a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-040/ip.out @@ -0,0 +1,9 @@ +[{"ifname":"ip6tnl0","mode":"ipv6/ipv6","remote":"::","local":"::","encap_limit":0,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000"} +,{"ifname":"ip6gre0","mode":"gre/ipv6","remote":"::","local":"::","encap_limit":0,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000","flags":[]} +,{"ifname":"ip6_vti0","mode":"ipv6/ipv6","remote":"::","local":"::","encap_limit":0,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000"} +,{"ifname":"ip6t1","mode":"ipv6/ipv6","remote":"2001:db8::2","local":"2001:db8::1","link":"d0","ip6_tnl_f_ign_encap_limit":null,"hoplimit":1,"ip6_tnl_f_use_orig_tclass":null,"flowlabel":"0x12345","flowinfo":"0x00012345","ip6_tnl_f_allow_local_remote":null} +,{"ifname":"ip6t2","mode":"ip/ipv6","remote":"2001:db8::3","local":"2001:db8::1","encap_limit":2,"hoplimit":64,"tclass":"0x20","ip6_tnl_f_use_orig_flowlabel":null,"flowinfo":"0x02000000","ip6_tnl_f_rcv_dscp_copy":null} +,{"ifname":"ip6g1","mode":"gre/ipv6","remote":"2001:db8::4","local":"2001:db8::1","encap_limit":4,"hoplimit":64,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000","key":9,"flags":["rx_drop_ooseq","rx_csum","tx_seq","tx_csum"]} +,{"ifname":"vti61","mode":"ipv6/ipv6","remote":"2001:db8::5","local":"2001:db8::1","encap_limit":0,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000","ikey":3,"okey":4} +,{"ifname":"gre6x","mode":"gre/ipv6","remote":"2001:db8::6","local":"2001:db8::1","encap_limit":4,"hoplimit":64,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000","flags":[]} +] diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-040/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-040/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..cb695c4e9c5e13b6b162d35f3fbf80e848bec56d GIT binary patch literal 10896 zcmeI2KWG#|6vp4)ZuIg`qg;_jNTrrh!d-+2f|aEhQB=^VA%w&jlOu?YR|;BKT3E!y zLd8l{(g;dG0$NyzibNE#5D`sbVG)VnH#-}bo4w7Q$zBd_9_;Sy?7rFAx4)Tv@9n;x zeQ+x!p8OL}{$Qu)g*UY4N?JNm<|3Zk%}pR3C~OtS-HY>B*ThvwsDBvxuQrKViuJ#w zMA{@J)Sqj2q3^j4^bZKvA{)h(;qz?Q-)CJ~_0y3CXi_FqEvQq+3mMcdEs4C%otBqZ zMZUTsztBEqpISTWOr9MqOOVOU{<$p6bV>>b9b8%DsOq0mTt1(Ar@r}hQESzPKG3$q zZ&&qB*Oe*c_xlax9xDjBr+$cg==t2g0r$tIP41~rM#2lZ zvE0+5^)1!oKId{yEogIV?gz&DOLKpx0`4!LF}bIHn0c1N+^eqG`CdPf`r0JL{bIy? z&)0Q9o43`U?@vzT2bD`zYR>Pffc-}|O!lcC$3Dk_^>ylt`QUDoVt>J8A6}J6%6HY3 zuY(Cc-#6N6`1Fq};N6SheSQVr)xEEBuIG3P#QOGuC2D`06z`002N2)hMtsYqIKGV< z4~#LwZDsvc`ZX#R(2vpjHMPxixOYjhZRX`2`0gUJnr-Ig&w^{_deg4?cqXpA#nc)Q@`~D1%sEUzwraR@LL)aob?r@O+PNRoOW113!q*B#!$} z;C||m$-VW1>W${|@3(r~=iDvmR+xKytIA$PT`51O-2W3kgZtyXCinLLgz`D4w=F_Xxp+g{P*(Qx}T-eU+3hnUS!fP)) OA6lfh!*+`EN`C>Ok4WMG literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-040/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-040/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-040/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-040/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-040/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..dee0f9a53dd70f34ccc1733ac30af60d086c940b GIT binary patch literal 10896 zcmeI2KWG#|6vp4)UNp%i8s!Qtgj8x7CETTmAXwQ5Vn9*BL=7<*lb9UA&Z{ic!qUPb zCJHK6qLNYxLcl**hz5x$Vj&`GVIiU<-#0rOmz%xKoylGfZXWFJ?CieT*|)zp`{wPw zn!a~EAxZfsN%@PN&Zo)K`!1xU4P`EpbUV25r4@yZ;<&qT9_t#p3JCRkq5pE7sHIT< zQ$nOg5<>m%%`Wtlt^@tO!nMd+ab;kL?RxvHt5^MWqz;;t@kA5q)bV^8we#~LZ?ebb z*(H(BuE3jyjWP`^!9Je7$!r%QBge{C)>l7CEH)rxX{@r(X9LuP$t@+Rz7D zwt4NU-s!qxWxuWbw~Sx(?rL!_P|%Nx_sZ)9+vHj8jw@ROr`zJv7U+~U;O+k;9imwW zDk;AV#vPYL=6Mj(1k(D4Gr7TmHc5v(aq@n*j@)AfA@|e|a1T9?``6(9@TAE-^~p$Z zAvczLTC}#Ma@=QKj;VQVZq0q)NN;iOZPN9pKd`Y*Z87iPZCvdCFxf{`C6e$$ zbrtJiz|Zvzw;3`0!!meJhVVYO1n=tJmpRtcpM0^gy>E%?-^Rr|=eIX8zrBI^EtkUi zZJ0lBjuG^S-jUJaoJrZCq2`JO_Ih7u#lD-a+gxGOgKWUj8JwW?mj{ zAPxX!o{}*~6ytBf_|$~ScqL+$m1aCR7g&5IoajSrUf#3AO045xoX;*SFW-#%E4tH- zUY;hm1N+R;v^vdG`Vcn`dB3mY7Wzh1UVaYTZ|XF;r+(DfZgVsNi`Q5&4(@3}&RJ(M zXH5cHE`@W}Fu&l`w$LwjqOO=V5DY+4Q#`?+(wYI7p_m0~F;|9lje5=Ytaqq`Ld?r!c ze*pIr2Tbm598_yGmwvyM<38(dK(~V2<6Bkc9O{b2Ii>!e@Dbb}=`y*u|0k5rL9Lw` z7x!rx(nZ$B|L2l+<(%Nj#gufQ%%yNnupL$S&r|8}FojbGU+QIxG$3$cJI|MBhwm0% Q`_%6jGmLiFPGMeY0jA+Yl>h($ literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-040/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-040/tnlsys.out new file mode 100644 index 000000000..dc05d0454 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-040/tnlsys.out @@ -0,0 +1,71 @@ +{ + "ioctls": [ + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6tnl0", + "in": "00000000000000000000000000000000020000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036746e6c30000000000000000000000000002900000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6gre0", + "in": "00000000000000000000000000000000030000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667726530000000000000000000000000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6_vti0", + "in": "00000000000000000000000000000000040000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6970365f767469300000000000000000000000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t1", + "in": "000000000000000000000000000000000d0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743100000000000000000000000c00000029040100000123454300030020010db800000000000000000000000120010db8000000000000000000000002000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t2", + "in": "000000000000000000000000000000000e0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743200000000000000000000000000000004024000020000001400030020010db800000000000000000000000120010db8000000000000000000000003000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6g1", + "in": "000000000000000000000000000000000f0000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667310000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000004b000b0000000000900000009" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "vti61", + "in": "00000000000000000000000000000000100000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "767469363100000000000000000000000000000029000000000000000000000020010db800000000000000000000000120010db8000000000000000000000005200020000000000300000004" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "gre6x", + "in": "00000000000000000000000000000000110000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726536780000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000006000000000000000000000000" + } + ], + "run": { + "argv": [ + "ip", + "-j", + "-6", + "tunnel" + ], + "rc": 0, + "stdout": "[{\"ifname\":\"ip6tnl0\",\"mode\":\"ipv6/ipv6\",\"remote\":\"::\",\"local\":\"::\",\"encap_limit\":0,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\"}\n,{\"ifname\":\"ip6gre0\",\"mode\":\"gre/ipv6\",\"remote\":\"::\",\"local\":\"::\",\"encap_limit\":0,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\",\"flags\":[]}\n,{\"ifname\":\"ip6_vti0\",\"mode\":\"ipv6/ipv6\",\"remote\":\"::\",\"local\":\"::\",\"encap_limit\":0,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\"}\n,{\"ifname\":\"ip6t1\",\"mode\":\"ipv6/ipv6\",\"remote\":\"2001:db8::2\",\"local\":\"2001:db8::1\",\"link\":\"d0\",\"ip6_tnl_f_ign_encap_limit\":null,\"hoplimit\":1,\"ip6_tnl_f_use_orig_tclass\":null,\"flowlabel\":\"0x12345\",\"flowinfo\":\"0x00012345\",\"ip6_tnl_f_allow_local_remote\":null}\n,{\"ifname\":\"ip6t2\",\"mode\":\"ip/ipv6\",\"remote\":\"2001:db8::3\",\"local\":\"2001:db8::1\",\"encap_limit\":2,\"hoplimit\":64,\"tclass\":\"0x20\",\"ip6_tnl_f_use_orig_flowlabel\":null,\"flowinfo\":\"0x02000000\",\"ip6_tnl_f_rcv_dscp_copy\":null}\n,{\"ifname\":\"ip6g1\",\"mode\":\"gre/ipv6\",\"remote\":\"2001:db8::4\",\"local\":\"2001:db8::1\",\"encap_limit\":4,\"hoplimit\":64,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\",\"key\":9,\"flags\":[\"rx_drop_ooseq\",\"rx_csum\",\"tx_seq\",\"tx_csum\"]}\n,{\"ifname\":\"vti61\",\"mode\":\"ipv6/ipv6\",\"remote\":\"2001:db8::5\",\"local\":\"2001:db8::1\",\"encap_limit\":0,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\",\"ikey\":3,\"okey\":4}\n,{\"ifname\":\"gre6x\",\"mode\":\"gre/ipv6\",\"remote\":\"2001:db8::6\",\"local\":\"2001:db8::1\",\"encap_limit\":4,\"hoplimit\":64,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\",\"flags\":[]}\n]\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-041/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-041/cmd.json new file mode 100644 index 000000000..a59b60e78 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-041/cmd.json @@ -0,0 +1,79 @@ +{ + "axes": { + "fix": "tnl6", + "json": "1", + "words": "-6 tunnel list" + }, + "cmd": "ip -j -6 tunnel list", + "desc": "positive: opt=json cmd=tnl6:-6_tunnel_list", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/pw-041", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -j -6 tunnel list", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "rc": 0 + }, + { + "cmd": "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "rc": 0 + }, + { + "cmd": "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "rc": 0 + }, + { + "cmd": "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-041/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-041/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-041/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-041/ip.out new file mode 100644 index 000000000..a0bc78e6a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-041/ip.out @@ -0,0 +1,9 @@ +[{"ifname":"ip6tnl0","mode":"ipv6/ipv6","remote":"::","local":"::","encap_limit":0,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000"} +,{"ifname":"ip6gre0","mode":"gre/ipv6","remote":"::","local":"::","encap_limit":0,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000","flags":[]} +,{"ifname":"ip6_vti0","mode":"ipv6/ipv6","remote":"::","local":"::","encap_limit":0,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000"} +,{"ifname":"ip6t1","mode":"ipv6/ipv6","remote":"2001:db8::2","local":"2001:db8::1","link":"d0","ip6_tnl_f_ign_encap_limit":null,"hoplimit":1,"ip6_tnl_f_use_orig_tclass":null,"flowlabel":"0x12345","flowinfo":"0x00012345","ip6_tnl_f_allow_local_remote":null} +,{"ifname":"ip6t2","mode":"ip/ipv6","remote":"2001:db8::3","local":"2001:db8::1","encap_limit":2,"hoplimit":64,"tclass":"0x20","ip6_tnl_f_use_orig_flowlabel":null,"flowinfo":"0x02000000","ip6_tnl_f_rcv_dscp_copy":null} +,{"ifname":"ip6g1","mode":"gre/ipv6","remote":"2001:db8::4","local":"2001:db8::1","encap_limit":4,"hoplimit":64,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000","key":9,"flags":["rx_drop_ooseq","rx_csum","tx_seq","tx_csum"]} +,{"ifname":"vti61","mode":"ipv6/ipv6","remote":"2001:db8::5","local":"2001:db8::1","encap_limit":0,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000","ikey":3,"okey":4} +,{"ifname":"gre6x","mode":"gre/ipv6","remote":"2001:db8::6","local":"2001:db8::1","encap_limit":4,"hoplimit":64,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000","flags":[]} +] diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-041/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-041/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..99a2ff2d4ff3f59763f64ea04c8345613cc6fbd8 GIT binary patch literal 10896 zcmeI2O=uHA6vy9Yk~aOcN-iFRp44NNk`}GtN$Am=qM$9760B)xqxf-&Cp{<>J$NZt zzd(x@MMUtTR6+3KK@g!w5fKp&9z0m%|35ohm&|6H*lq}9AMEaAcHU(6?eERLdAskI z9^XnxQvOL&R`6rwZSv&BYrQgnGB-)8VIDl`M`4RNY9HFMu9G{TP=6l!?|MaVmHM9& zB7Kq&>VMp-pr2F@^hbqzk#ggPaXONMCS@VfjXHh4ltFE|Eb?b)TvA6w zz9^BO=%2D*?;YKet-Y-bS=i*ZWm)bdq;$~1KZ_jF3h~Ix>vRO%U3YBir32j^Y_VCgN~BzzUFapZ3~P@8+iLa$pmPoKqcju z#kiwLWQivs-5@Pj$QJWc1Cj~2#1N(@3IXec57tSaspTUuqIXy1;sV>eMu*cFp(;JRibxmSyB_ zUhT2jrd}A^+ScogYxG*c+_X5ZX(oEZ#}XCWc3$2=>@Koo*k)e-1h{5i9&R8G0A-$% zF?bl`&hWUL%iD}MB6i zn>m_(r{|eD#e+lMpP0CXz7dv}PlEd^H*D^yA2zqgIU1kETdWub_cS5btgo?VO#)hO zm21`@zu?lg(l2(Su9{!e`o1a!zc_l&_KWy^6^t88par7x3!D2Ph0g*ixt|Ps9?YBP z0S6xTJZJ~^hxgjtQ$Or^pbZko`q~Vwwrd>sj_QMP{qsHERb|7t_u?SllQ8bn;C}9c z&3zmPwHnQ}UvJ~MA5xn!EI;>nSCu`Bx@vJwt=}hffcw+8ZSLdm6Kdz6)mlcyeFlb9 z$l7?{T+*&w6SQ6L6@J{QKk%&h&T}W~@tvpEVS5Uf4xXfCn{*&>VL#n#^uuQh|NFz@ N=jV)e*iU6%=`R(rMZo|7 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-041/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-041/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-041/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-041/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-041/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..c0217dff220ce30d33f0440cb9b95b69cb8b8356 GIT binary patch literal 10896 zcmeI2J!lj`6vyB0-kHmnM!8B5QmJ4QCENv#Vx^=Ku~7_Yf*~Bn%aNSoN8xr_7)WO$ z7{5S+l}NBuV~36c_BMAWdmP+6*xk9=d2_RGe{c59+x@is z;(;wG`6nq^#gD@uQWv{V*fM}JH%U1|JOt8@!Va;VBWTCEF784?{e95?xK-3vt^e5; z=@VP1e|)C{{gh)te?+(!=@3VzrrEFen{^pAPD|3zq%7Dys8i?NENUwikw5uyNuL$@ z;)wi2|CFO@Z>g4S9c&fI!Zxoh%ksz;_oRh?7CEiPrxe%PQ}6s&uP$n@`tVQm?eY3m zqx0)(m4m+A@42ApUDevJP{F@dyjK2SxKFkkv>e$TYHo__TVPnWfVcmXY=mYSR8oFv zj9U(gba@ie1JVkmT)8+kAlZmJPTrrV$vt)ua!>sb_t5jWUj_Hq=XLI>Pe#HUxiQ?+ zqU|ls<38_jPIY~A``k~?Ow{K7X#?Dk6m;&XA7-BAF!yRGX1@3DNP8WU;{JEUe9yzlXNoA1wEDHl{oRcp>4Y=He|!#exak7J*HU}By2Vm`Rqq}czVvyZ4s#P&jU73*Na zFOQW5w3vRW0p4#N(|KQ6hj(@D8=ULuPl1@&KCndVACuyp>)TPRZy#fQ%dL8S8|4pN zV}$)-VrI59R@D7ru>pU$T{8aA`V_X#2$S-MZ`%ByahMZw{Y&pe>@!;^tGLI{*{FQZ z`vzE_yRWlOeG}`n4qvS_lB8H)(O4gHx^dxe6p13;V7)kXX&O_zV*E9p4{kY;=YAxX3G!xgf620+bNs4VfFK;1s7g_e%W?udRxMp4+ZXgx_WuB5T zcpT%_(70SH>WnudcHeBq!)t-HyTpY)#N_2YJ8Z^23C4NvqVn>+sGs)--R0$J%KPz~ zIhuZ}_mzK&2aCMF^y3!#MqFM#1@7^1~IX|GDExVn#aB6^uf5{`5y18a&g=TaS-oG9QPS;KYv5# z-o!!eMsxkw+dS^`&UOqd%st*!<*uTxR-9As_X(Zg{_;bed-Hul{T#Gg%cQu^!jKNK zHo-TSv@6#Hb%llF8@06 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-041/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-041/tnlsys.out new file mode 100644 index 000000000..a64e308b3 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-041/tnlsys.out @@ -0,0 +1,72 @@ +{ + "ioctls": [ + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6tnl0", + "in": "00000000000000000000000000000000020000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036746e6c30000000000000000000000000002900000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6gre0", + "in": "00000000000000000000000000000000030000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667726530000000000000000000000000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6_vti0", + "in": "00000000000000000000000000000000040000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6970365f767469300000000000000000000000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t1", + "in": "000000000000000000000000000000000d0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743100000000000000000000000c00000029040100000123454300030020010db800000000000000000000000120010db8000000000000000000000002000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t2", + "in": "000000000000000000000000000000000e0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743200000000000000000000000000000004024000020000001400030020010db800000000000000000000000120010db8000000000000000000000003000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6g1", + "in": "000000000000000000000000000000000f0000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667310000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000004b000b0000000000900000009" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "vti61", + "in": "00000000000000000000000000000000100000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "767469363100000000000000000000000000000029000000000000000000000020010db800000000000000000000000120010db8000000000000000000000005200020000000000300000004" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "gre6x", + "in": "00000000000000000000000000000000110000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726536780000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000006000000000000000000000000" + } + ], + "run": { + "argv": [ + "ip", + "-j", + "-6", + "tunnel", + "list" + ], + "rc": 0, + "stdout": "[{\"ifname\":\"ip6tnl0\",\"mode\":\"ipv6/ipv6\",\"remote\":\"::\",\"local\":\"::\",\"encap_limit\":0,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\"}\n,{\"ifname\":\"ip6gre0\",\"mode\":\"gre/ipv6\",\"remote\":\"::\",\"local\":\"::\",\"encap_limit\":0,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\",\"flags\":[]}\n,{\"ifname\":\"ip6_vti0\",\"mode\":\"ipv6/ipv6\",\"remote\":\"::\",\"local\":\"::\",\"encap_limit\":0,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\"}\n,{\"ifname\":\"ip6t1\",\"mode\":\"ipv6/ipv6\",\"remote\":\"2001:db8::2\",\"local\":\"2001:db8::1\",\"link\":\"d0\",\"ip6_tnl_f_ign_encap_limit\":null,\"hoplimit\":1,\"ip6_tnl_f_use_orig_tclass\":null,\"flowlabel\":\"0x12345\",\"flowinfo\":\"0x00012345\",\"ip6_tnl_f_allow_local_remote\":null}\n,{\"ifname\":\"ip6t2\",\"mode\":\"ip/ipv6\",\"remote\":\"2001:db8::3\",\"local\":\"2001:db8::1\",\"encap_limit\":2,\"hoplimit\":64,\"tclass\":\"0x20\",\"ip6_tnl_f_use_orig_flowlabel\":null,\"flowinfo\":\"0x02000000\",\"ip6_tnl_f_rcv_dscp_copy\":null}\n,{\"ifname\":\"ip6g1\",\"mode\":\"gre/ipv6\",\"remote\":\"2001:db8::4\",\"local\":\"2001:db8::1\",\"encap_limit\":4,\"hoplimit\":64,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\",\"key\":9,\"flags\":[\"rx_drop_ooseq\",\"rx_csum\",\"tx_seq\",\"tx_csum\"]}\n,{\"ifname\":\"vti61\",\"mode\":\"ipv6/ipv6\",\"remote\":\"2001:db8::5\",\"local\":\"2001:db8::1\",\"encap_limit\":0,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\",\"ikey\":3,\"okey\":4}\n,{\"ifname\":\"gre6x\",\"mode\":\"gre/ipv6\",\"remote\":\"2001:db8::6\",\"local\":\"2001:db8::1\",\"encap_limit\":4,\"hoplimit\":64,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\",\"flags\":[]}\n]\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-042/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-042/cmd.json new file mode 100644 index 000000000..835fbb205 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-042/cmd.json @@ -0,0 +1,79 @@ +{ + "axes": { + "fix": "tnl6", + "json": "1", + "words": "-s -6 tunnel show" + }, + "cmd": "ip -j -s -6 tunnel show", + "desc": "positive: opt=json cmd=tnl6:-s_-6_tunnel_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": "tunnel/pw-042", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -j -s -6 tunnel show", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "rc": 0 + }, + { + "cmd": "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "rc": 0 + }, + { + "cmd": "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "rc": 0 + }, + { + "cmd": "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-042/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-042/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-042/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-042/ip.out new file mode 100644 index 000000000..98c5137df --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-042/ip.out @@ -0,0 +1,41 @@ +[{"ifname":"ip6tnl0","mode":"ipv6/ipv6","remote":"::","local":"::","encap_limit":0,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000"} +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +,{"ifname":"ip6gre0","mode":"gre/ipv6","remote":"::","local":"::","encap_limit":0,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000","flags":[]} +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +,{"ifname":"ip6_vti0","mode":"ipv6/ipv6","remote":"::","local":"::","encap_limit":0,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000"} +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +,{"ifname":"ip6t1","mode":"ipv6/ipv6","remote":"2001:db8::2","local":"2001:db8::1","link":"d0","ip6_tnl_f_ign_encap_limit":null,"hoplimit":1,"ip6_tnl_f_use_orig_tclass":null,"flowlabel":"0x12345","flowinfo":"0x00012345","ip6_tnl_f_allow_local_remote":null} +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +,{"ifname":"ip6t2","mode":"ip/ipv6","remote":"2001:db8::3","local":"2001:db8::1","encap_limit":2,"hoplimit":64,"tclass":"0x20","ip6_tnl_f_use_orig_flowlabel":null,"flowinfo":"0x02000000","ip6_tnl_f_rcv_dscp_copy":null} +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +,{"ifname":"ip6g1","mode":"gre/ipv6","remote":"2001:db8::4","local":"2001:db8::1","encap_limit":4,"hoplimit":64,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000","key":9,"flags":["rx_drop_ooseq","rx_csum","tx_seq","tx_csum"]} +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +,{"ifname":"vti61","mode":"ipv6/ipv6","remote":"2001:db8::5","local":"2001:db8::1","encap_limit":0,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000","ikey":3,"okey":4} +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +,{"ifname":"gre6x","mode":"gre/ipv6","remote":"2001:db8::6","local":"2001:db8::1","encap_limit":4,"hoplimit":64,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000","flags":[]} +RX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts + 0 0 0 0 0 0 +TX: Packets Bytes Errors DeadLoop NoRoute NoBufs + 0 0 0 0 0 0 +] diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-042/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-042/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..03ac5116025754a305e56589f768612ac1c6f580 GIT binary patch literal 10896 zcmeI2F=!M)6o%j4+?iZ1F;Py$LP(`4PYIVROb|QEfQ6k#4KW&%kep(9jfEJ&MrcC72-E+o`{1pN=Y{Vl5hIU~|1 z8KM5q0}A?C)8> zsoSg^^i}&-4vPL&ZTt!q%&p?J^8dnpvelrcyQ@rzhmZmKCWxV zygmMWf96_sQioKV&G~~3uzwRVQZ&|~eiHli0~hPG7xTf@rp5kun|(x8A{jqa*Rc*J z{OZ_j$%^S;G{Adh!RCE+3*Pm$Z*#7vKLz4q`@j;de@u&au5aIBeftpWTW-T@wxfgv1!{M9yj0*`6tdFTA#w!8DU!fux8Ewor*c3nz{5mVxRfRs*Zb1&PL~R z-ZjAbzGa(r>bqE{b@*zfk)*}?s>OOm6>#BiG>IYwus%I?Wd>8bX8bjt4@o)89CA1N zPuXl!FNtk!>utt0dM#jXnu}{%iQ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zgKluYcERMH`f<+#Z4evlYcr&6*E;SU)eqwa=X<=XD#dZ{$3eU&aoqQU`@)jR zy^Vv?MswrW+dA&cYA1#j}Pb7e)w$Re=j`ybDPl) J`w8cj{sM=+G@Sqd literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-042/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-042/tnlsys.out new file mode 100644 index 000000000..410aa1f20 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-042/tnlsys.out @@ -0,0 +1,73 @@ +{ + "ioctls": [ + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6tnl0", + "in": "00000000000000000000000000000000020000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036746e6c30000000000000000000000000002900000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6gre0", + "in": "00000000000000000000000000000000030000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667726530000000000000000000000000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6_vti0", + "in": "00000000000000000000000000000000040000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6970365f767469300000000000000000000000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t1", + "in": "000000000000000000000000000000000d0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743100000000000000000000000c00000029040100000123454300030020010db800000000000000000000000120010db8000000000000000000000002000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t2", + "in": "000000000000000000000000000000000e0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743200000000000000000000000000000004024000020000001400030020010db800000000000000000000000120010db8000000000000000000000003000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6g1", + "in": "000000000000000000000000000000000f0000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667310000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000004b000b0000000000900000009" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "vti61", + "in": "00000000000000000000000000000000100000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "767469363100000000000000000000000000000029000000000000000000000020010db800000000000000000000000120010db8000000000000000000000005200020000000000300000004" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "gre6x", + "in": "00000000000000000000000000000000110000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726536780000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000006000000000000000000000000" + } + ], + "run": { + "argv": [ + "ip", + "-j", + "-s", + "-6", + "tunnel", + "show" + ], + "rc": 0, + "stdout": "[{\"ifname\":\"ip6tnl0\",\"mode\":\"ipv6/ipv6\",\"remote\":\"::\",\"local\":\"::\",\"encap_limit\":0,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\"}\nRX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts\n 0 0 0 0 0 0 \nTX: Packets Bytes Errors DeadLoop NoRoute NoBufs\n 0 0 0 0 0 0 \n,{\"ifname\":\"ip6gre0\",\"mode\":\"gre/ipv6\",\"remote\":\"::\",\"local\":\"::\",\"encap_limit\":0,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\",\"flags\":[]}\nRX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts\n 0 0 0 0 0 0 \nTX: Packets Bytes Errors DeadLoop NoRoute NoBufs\n 0 0 0 0 0 0 \n,{\"ifname\":\"ip6_vti0\",\"mode\":\"ipv6/ipv6\",\"remote\":\"::\",\"local\":\"::\",\"encap_limit\":0,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\"}\nRX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts\n 0 0 0 0 0 0 \nTX: Packets Bytes Errors DeadLoop NoRoute NoBufs\n 0 0 0 0 0 0 \n,{\"ifname\":\"ip6t1\",\"mode\":\"ipv6/ipv6\",\"remote\":\"2001:db8::2\",\"local\":\"2001:db8::1\",\"link\":\"d0\",\"ip6_tnl_f_ign_encap_limit\":null,\"hoplimit\":1,\"ip6_tnl_f_use_orig_tclass\":null,\"flowlabel\":\"0x12345\",\"flowinfo\":\"0x00012345\",\"ip6_tnl_f_allow_local_remote\":null}\nRX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts\n 0 0 0 0 0 0 \nTX: Packets Bytes Errors DeadLoop NoRoute NoBufs\n 0 0 0 0 0 0 \n,{\"ifname\":\"ip6t2\",\"mode\":\"ip/ipv6\",\"remote\":\"2001:db8::3\",\"local\":\"2001:db8::1\",\"encap_limit\":2,\"hoplimit\":64,\"tclass\":\"0x20\",\"ip6_tnl_f_use_orig_flowlabel\":null,\"flowinfo\":\"0x02000000\",\"ip6_tnl_f_rcv_dscp_copy\":null}\nRX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts\n 0 0 0 0 0 0 \nTX: Packets Bytes Errors DeadLoop NoRoute NoBufs\n 0 0 0 0 0 0 \n,{\"ifname\":\"ip6g1\",\"mode\":\"gre/ipv6\",\"remote\":\"2001:db8::4\",\"local\":\"2001:db8::1\",\"encap_limit\":4,\"hoplimit\":64,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\",\"key\":9,\"flags\":[\"rx_drop_ooseq\",\"rx_csum\",\"tx_seq\",\"tx_csum\"]}\nRX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts\n 0 0 0 0 0 0 \nTX: Packets Bytes Errors DeadLoop NoRoute NoBufs\n 0 0 0 0 0 0 \n,{\"ifname\":\"vti61\",\"mode\":\"ipv6/ipv6\",\"remote\":\"2001:db8::5\",\"local\":\"2001:db8::1\",\"encap_limit\":0,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\",\"ikey\":3,\"okey\":4}\nRX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts\n 0 0 0 0 0 0 \nTX: Packets Bytes Errors DeadLoop NoRoute NoBufs\n 0 0 0 0 0 0 \n,{\"ifname\":\"gre6x\",\"mode\":\"gre/ipv6\",\"remote\":\"2001:db8::6\",\"local\":\"2001:db8::1\",\"encap_limit\":4,\"hoplimit\":64,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\",\"flags\":[]}\nRX: Packets Bytes Errors CsumErrs OutOfSeq Mcasts\n 0 0 0 0 0 0 \nTX: Packets Bytes Errors DeadLoop NoRoute NoBufs\n 0 0 0 0 0 0 \n]\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-043/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-043/cmd.json new file mode 100644 index 000000000..9a9a480e4 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-043/cmd.json @@ -0,0 +1,79 @@ +{ + "axes": { + "fix": "tnl6", + "json": "1", + "words": "-o -6 tunnel show" + }, + "cmd": "ip -j -o -6 tunnel show", + "desc": "corner: opt=json cmd=tnl6:-o_-6_tunnel_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": "tunnel/pw-043", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -j -o -6 tunnel show", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "rc": 0 + }, + { + "cmd": "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "rc": 0 + }, + { + "cmd": "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "rc": 0 + }, + { + "cmd": "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-043/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-043/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-043/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-043/ip.out new file mode 100644 index 000000000..a0bc78e6a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-043/ip.out @@ -0,0 +1,9 @@ +[{"ifname":"ip6tnl0","mode":"ipv6/ipv6","remote":"::","local":"::","encap_limit":0,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000"} +,{"ifname":"ip6gre0","mode":"gre/ipv6","remote":"::","local":"::","encap_limit":0,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000","flags":[]} +,{"ifname":"ip6_vti0","mode":"ipv6/ipv6","remote":"::","local":"::","encap_limit":0,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000"} +,{"ifname":"ip6t1","mode":"ipv6/ipv6","remote":"2001:db8::2","local":"2001:db8::1","link":"d0","ip6_tnl_f_ign_encap_limit":null,"hoplimit":1,"ip6_tnl_f_use_orig_tclass":null,"flowlabel":"0x12345","flowinfo":"0x00012345","ip6_tnl_f_allow_local_remote":null} +,{"ifname":"ip6t2","mode":"ip/ipv6","remote":"2001:db8::3","local":"2001:db8::1","encap_limit":2,"hoplimit":64,"tclass":"0x20","ip6_tnl_f_use_orig_flowlabel":null,"flowinfo":"0x02000000","ip6_tnl_f_rcv_dscp_copy":null} +,{"ifname":"ip6g1","mode":"gre/ipv6","remote":"2001:db8::4","local":"2001:db8::1","encap_limit":4,"hoplimit":64,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000","key":9,"flags":["rx_drop_ooseq","rx_csum","tx_seq","tx_csum"]} +,{"ifname":"vti61","mode":"ipv6/ipv6","remote":"2001:db8::5","local":"2001:db8::1","encap_limit":0,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000","ikey":3,"okey":4} +,{"ifname":"gre6x","mode":"gre/ipv6","remote":"2001:db8::6","local":"2001:db8::1","encap_limit":4,"hoplimit":64,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000","flags":[]} +] diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-043/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-043/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..7ecaeee3f10f0b7ee0a99c1deb02fc7ba517fd4f GIT binary patch literal 10896 zcmeI2F=!M)6o%j4T=bGl^b*cS2&53T3Q@x)g^HHi35sH4A|4?aV@M9Mu(--b1hEu_ z1Vw@ff&@uv2uQ$2(K3}-ND#3Qv{2&z&(6l>W^Z$6vd6*AgWa8*oi{i8_ItB$-tNcc zmvbpe%RfoWAN)A>Hhnd7#FGJ(xk*|L^AJcM3O(Yf<7mga4(>ui{eI}b+a-Fd)c>3k z$w^A6-@8{qKdn6IpAzmxc8ZdT>+IM6&AN;przdUDq|Bx|QK!$B^Qc{4NBiN+vQiZJ zqC|e6f658H_jF6P4z_j3>~6m;%knrS%EqpH|#xPrZ>fzb$c^Kk z7Hw^59QQ+tb86X`+i*WNU98Uid>!0>I&E`L{V?+^hq>27ar3>oBdv8viu>OY^F1He zWn*t`vrqjv_UQ*M)@d!~gR4!7{qHvWh^j( zgIbN|+OM~9+z+X43@gk%-c=QDqOMw;!|w}f`7UP#_iXfJv zkl-IgtwbcHAx$8SqGc+vkRW1VVWGtDo867e&EDqDWRHWJ2fI5rJ8y3G?eERLdApyM zUe9O5m4D*OAN)AJ;$F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`v3Ysd4x6!0f^puvsJwh9>Th|2ZgcZArTzHL z98Is&`N})RgG1gIy|{(G5to-g3hw8IP41~5H@DjyO~B$!R!o9>nviSOQLI_hfR+m#%O9x*vvP)VKxUipx>-58C3;+AYv-~2X K9rhE>EByn<`!)># literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-045/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-045/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-045/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-045/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-045/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..668a9f6f200ec7255f5b83ad76bb1c72d9449a7e GIT binary patch literal 10896 zcmeI2F=!M)6o%j4Tr|lgCdzdxq*5!15-uku8qp?TVX5YNs z&vVc2rz9;al9s>t(fc8N;rLWWI#K2(X_e=}lMWQNiK7mo9qXF8^9l8DLjThi(OXde zYf7YDQbPSV+ZFWF%7K2ra4)i1l#GnAU-vib8ud6GX@DkWCe?yEeZG`M?b4D+K7Ury zcSXJ_kzeSa(x>;1Zpqf(wgj1JbK9~k4^mP(;ozS|2K4x};&OZHo%!z8h3$18=0y8$ zw_iOvQ&+C+^;Pid~z+0VTmN;2P@J5pbVxVZllGT-xY zT{7lvb?5ujmx=`)Qk9$YyDDJ+&Sjf@>PN9pKS*Mo`eNR@+PK(XwAn{gC6aPObsg(q z!Y>YvcUm$1iwb!ESg?6tScP|e?dzQD=}(>{vAt)B+CRp{JJ+}KSl>Rx`j%U8eH-Qv zTx0nCVQ6AjwKKxF{NaZ+|2Hb;gi7Ypn-Kd<7K%FVF*zHZ z&v{<~>um>Z)~TPwI<>=BEsZ2D))y?+^D2W2pVcIaWWf69$i*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?j7f z&JSudnk&EG+Hv2lc4Amj?(wdwFo(Kweom#|Ck%o6L3C95J(~MIp>hrytz}x==b=c2 Ls7?6ICH49jav(7v literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-048/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-048/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-048/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-048/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-048/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..3fb9ecf8f218c8954a9ef8134cfc14cc7517a905 GIT binary patch literal 10752 zcmeI2KWG#|6vp4)Tr}pNQLeNIB3c?HTv9|4R78wONHAif35F1iNr;D}b8Rg|5IdEK zBBB9NL@bpwK^qIpU?nIbVqsyS#_yY*jmyp6=FVh~gPVb!otvFEH~Z%IX5YNs_Y2SN zW+W^BQdWNB$G*4O^H&Diq!VQxl2tuCg{cFDt>UTuXvexHW|2hsJCJ|ZCi*Cr|CkYJ zmyA&U@HPectnwg#RG5ow6eSZ=>^Jz$x<)-tPZ}V}G?!^XoxbkpP`kV=($_O0xBEms zE0G`QpXq?kJ>8P6!($m~ZgbF@&x=ScAZ>g)UznWelw8b=llS=sa*qs&+*3ZnJ>&xJkAeHe$2RwrCnM2=+&J#3 z(fUr+Vm`dvwAlY{vk$LIBonym+SkE? zUl^Y5w0!y(74W`e-sXL272fr|uW_xXJ%!2n_Ms+f|C|=@+~0n{{`Nlhw>*mXw{iBs zJx0_XMrSTg4^P_m@TdZNn7!)kq4p`Poe`#G4_~eIzfmzJXTdUuzOYn!)ERQ30 zv-^n6HszAo*1BG!U!(T|X40HrQ%m$Fk0mX(?YO)L-(6(Eu+6yqIdILmJj_5m0LnNe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p)Bp7{mB;_+xwPi{9|0abA9^>>)S_I-*PKm--h`E z*BC*67@nG*9Lk&i@T>-Z7&u}5q46nfoDs(558sXXzeO=8RP-*r6|v9sSV6}(sZgPUG;^NF#}h^<{(goNC8~zttp)w1f5h_@xO3(L!QqW+FI=r%V`Q|QHS z=4g7H&R5wV_xAgQ>N#k(mT_^Ph9MQQ zHvTu4v@6#H=PslqhcdU)HNjp~;X6;Q!_yQl9ein#ZfQl}!hZ4<`r)&M|9vd83tumW H=av2fpxQe0 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-049/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-049/tnlsys.out new file mode 100644 index 000000000..60bd55540 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-049/tnlsys.out @@ -0,0 +1,74 @@ +{ + "ioctls": [ + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6tnl0", + "in": "00000000000000000000000000000000020000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036746e6c30000000000000000000000000002900000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6gre0", + "in": "00000000000000000000000000000000030000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667726530000000000000000000000000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6_vti0", + "in": "00000000000000000000000000000000040000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6970365f767469300000000000000000000000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t1", + "in": "000000000000000000000000000000000d0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743100000000000000000000000c00000029040100000123454300030020010db800000000000000000000000120010db8000000000000000000000002000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t2", + "in": "000000000000000000000000000000000e0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743200000000000000000000000000000004024000020000001400030020010db800000000000000000000000120010db8000000000000000000000003000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6g1", + "in": "000000000000000000000000000000000f0000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667310000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000004b000b0000000000900000009" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "vti61", + "in": "00000000000000000000000000000000100000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "767469363100000000000000000000000000000029000000000000000000000020010db800000000000000000000000120010db8000000000000000000000005200020000000000300000004" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "gre6x", + "in": "00000000000000000000000000000000110000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726536780000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000006000000000000000000000000" + } + ], + "run": { + "argv": [ + "ip", + "-j", + "-6", + "tunnel", + "show", + "mode", + "ip6ip6" + ], + "rc": 0, + "stdout": "[{\"ifname\":\"ip6tnl0\",\"mode\":\"ipv6/ipv6\",\"remote\":\"::\",\"local\":\"::\",\"encap_limit\":0,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\"}\n,{\"ifname\":\"ip6_vti0\",\"mode\":\"ipv6/ipv6\",\"remote\":\"::\",\"local\":\"::\",\"encap_limit\":0,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\"}\n,{\"ifname\":\"ip6t1\",\"mode\":\"ipv6/ipv6\",\"remote\":\"2001:db8::2\",\"local\":\"2001:db8::1\",\"link\":\"d0\",\"ip6_tnl_f_ign_encap_limit\":null,\"hoplimit\":1,\"ip6_tnl_f_use_orig_tclass\":null,\"flowlabel\":\"0x12345\",\"flowinfo\":\"0x00012345\",\"ip6_tnl_f_allow_local_remote\":null}\n,{\"ifname\":\"vti61\",\"mode\":\"ipv6/ipv6\",\"remote\":\"2001:db8::5\",\"local\":\"2001:db8::1\",\"encap_limit\":0,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\",\"ikey\":3,\"okey\":4}\n]\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-050/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-050/cmd.json new file mode 100644 index 000000000..b60891f84 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-050/cmd.json @@ -0,0 +1,79 @@ +{ + "axes": { + "fix": "tnl6", + "json": "1", + "words": "-6 tunnel show mode ipip6" + }, + "cmd": "ip -j -6 tunnel show mode ipip6", + "desc": "positive: opt=json cmd=tnl6:-6_tunnel_show_mode_ipip6", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/pw-050", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -j -6 tunnel show mode ipip6", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "rc": 0 + }, + { + "cmd": "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "rc": 0 + }, + { + "cmd": "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "rc": 0 + }, + { + "cmd": "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-050/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-050/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-050/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-050/ip.out new file mode 100644 index 000000000..86f2a943f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-050/ip.out @@ -0,0 +1,2 @@ +[{"ifname":"ip6t2","mode":"ip/ipv6","remote":"2001:db8::3","local":"2001:db8::1","encap_limit":2,"hoplimit":64,"tclass":"0x20","ip6_tnl_f_use_orig_flowlabel":null,"flowinfo":"0x02000000","ip6_tnl_f_rcv_dscp_copy":null} +] diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-050/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-050/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..80716f7913308a7a13d21fa6c5bb988ed91f375b GIT binary patch literal 10752 zcmeI2J!lj`6vyA*Tr}oGqg*MHO50PyCEzDmh<53;Q6q`rG+!h~5CvT#TH9!4k)VZ& zm55j>0SVYd5NuLfh=^ENC@As&pPfyXo4w7Q$sPwg13No6J8y6H&F{^;dAlDMUo7M# zFY75UfAQnk`~20;eM*Wb^N_q6;3-VKDC`kW9Y;IXbuf!0$`>KOyi@d1E&n+u(jz&c z{K{Sh`MmNVe_EJ}Y!@YCle};6n|1BFpPsZql4(BIg*tuRFQ9gHRpk1>CHY+z`JzOA z;{Hr0bnfYvY#kn}Nb|dbwk*q|ocMzt{#oR#?w=N1Yfrh0UxT{1T;Ic7=s6JFSNG1; z)hdVg^1qkDV(?UJzaj-QRD4$cU-X`A)#oYMA8GE28*AW*Yy)rqmkKeGZJ?6rm&LfJ zNTkn;NL?VUJXNYpj1{F2Gveg^c^kP$hD7cuAK@Ny>)bC5+uT#0j6@G|Kk<%?nkFbYIFaj0qzgqvbm>xlzEn;-0QBm`QD63woYkr|0ia?=W^{E^>zpI z{e{^|S-VuV=KQ_}*uNYz=Tkn3ecFNZb+W~L__S%U|HEb);d@y`A2DeP|_V}Hw|dVd>d58Pu!?O|kk zW@>1{wufg8*u#hW&K_Ey!q(|wTK4eGn*ZAsV?w@p^d0bhX37=q_n4TCj^`{j!1|{_ zn{~=NU#E5WYNei}#rlfH`he=hgTK`zigbeYiLvoXOzoQSH&`E%VwN`$vwZi!W}9+J zY-?R_(y!5b0W)aMuW2QEllzhu+jd;ugYPb~XxL_4ei&RcE)O#h4}daGNgq6k@ta`$ z${CySX87(~&3JS#ur^BE=p(tfe4vM|$kSk)V;2{f??(MS)9H>NPE$FE-;B}pdfl(h zC7wL;{?hm@w2h>=ybtb|V|;YVC(Z3HMibF^#)@fhPZe^{I)puI9?PSi}CaJdf?tyLAfr)Y9KAUu(|J7_$;8B`_ZKJ;GtO$*zu(G;5N8F z_tfT|@=5D~R*3WUwHmUPHII8w^+37N`5y18N=e*@eh|kbiTgX?{^)|uz4L>zMsxko z+dS_3)oyev%01pym9C+#mY-Aa_X&5wePzz(-hH1?KL=TBnHKj2C{iJ66Ml0^z5WA) COf^&h literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-050/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-050/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-050/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-050/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-050/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..fd4bca18b583b9eeabf58eea543499e8a6eddb8d GIT binary patch literal 10752 zcmeI2J!lj`6vyA*Tw=_ZQLhyOf)+MW!X=8RDJ(42LOYEZVlZDMhxh@qL`SxJM;GUX5YNs&kJv! zfpLb%SHpwdj6&(gaDSxm-Ky^m)I4+LaZNoBfw$>4?Y| zCGrc`XF8#CPq$?2a9cr|+Yz*7S)S#@KkebpBIkAgwBTxc%3b^#)Wzlc8stE2X1?d^+BfR$ z2*GePWrK&XN_twCE=YY*V<&)T_9XMYnTg-=}O^f{>Hv90ZL~?bzXVR6>kL*rA}I6X|u9==)ge~V&F$TvgZ4&P^bq@?{G6SL9roR2lI zejgVrkLyt0`8r0)ZnsVYX|cX!vEHxRaOV%2M3FYIK0Z1&fvH_H{vPj#q?qL`#4PWP z*=$oTiETaDP5L!@Enu|f{F-(6H1t7QY};{p55Bv|f?=C+`ODy%ae0`5cmR}fO8VeQ zjNb<12VU5W*TZ+;YR02$fmKMj&_{A{`9Kd_k*C2ppIuyBz613SOs89eI8Eswjv1rr z_B!5~Q`~vvect#jw2h>=ybtbA&e+^jK51@uF`9_RGgeH4d#aFY*4<~DB@bx1m9JUj z?1D?%a=SQ$x=MCY?f0q~*u~G7xV`&c1?9RFtAVua!sfnD;kSTt?uV1!2anDBfE`bI zAKU@=a>ITfP(JB>pcUeLeXWM9W%c9UQ(aJQbiT*8s$vrNp&!I&lEnR8aR2a%&As!3 zvPN_DY7_o* HNxl99uv;!8 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-050/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-050/tnlsys.out new file mode 100644 index 000000000..233dcbf42 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-050/tnlsys.out @@ -0,0 +1,74 @@ +{ + "ioctls": [ + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6tnl0", + "in": "00000000000000000000000000000000020000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036746e6c30000000000000000000000000002900000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6gre0", + "in": "00000000000000000000000000000000030000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667726530000000000000000000000000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6_vti0", + "in": "00000000000000000000000000000000040000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6970365f767469300000000000000000000000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t1", + "in": "000000000000000000000000000000000d0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743100000000000000000000000c00000029040100000123454300030020010db800000000000000000000000120010db8000000000000000000000002000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t2", + "in": "000000000000000000000000000000000e0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743200000000000000000000000000000004024000020000001400030020010db800000000000000000000000120010db8000000000000000000000003000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6g1", + "in": "000000000000000000000000000000000f0000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667310000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000004b000b0000000000900000009" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "vti61", + "in": "00000000000000000000000000000000100000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "767469363100000000000000000000000000000029000000000000000000000020010db800000000000000000000000120010db8000000000000000000000005200020000000000300000004" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "gre6x", + "in": "00000000000000000000000000000000110000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726536780000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000006000000000000000000000000" + } + ], + "run": { + "argv": [ + "ip", + "-j", + "-6", + "tunnel", + "show", + "mode", + "ipip6" + ], + "rc": 0, + "stdout": "[{\"ifname\":\"ip6t2\",\"mode\":\"ip/ipv6\",\"remote\":\"2001:db8::3\",\"local\":\"2001:db8::1\",\"encap_limit\":2,\"hoplimit\":64,\"tclass\":\"0x20\",\"ip6_tnl_f_use_orig_flowlabel\":null,\"flowinfo\":\"0x02000000\",\"ip6_tnl_f_rcv_dscp_copy\":null}\n]\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-051/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-051/cmd.json new file mode 100644 index 000000000..1457d2428 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-051/cmd.json @@ -0,0 +1,79 @@ +{ + "axes": { + "fix": "tnl6", + "json": "1", + "words": "-6 tunnel show mode vti6" + }, + "cmd": "ip -j -6 tunnel show mode vti6", + "desc": "positive: opt=json cmd=tnl6:-6_tunnel_show_mode_vti6", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/pw-051", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -j -6 tunnel show mode vti6", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "rc": 0 + }, + { + "cmd": "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "rc": 0 + }, + { + "cmd": "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "rc": 0 + }, + { + "cmd": "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-051/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-051/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-051/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-051/ip.out new file mode 100644 index 000000000..977822143 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-051/ip.out @@ -0,0 +1,5 @@ +[{"ifname":"ip6tnl0","mode":"ipv6/ipv6","remote":"::","local":"::","encap_limit":0,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000"} +,{"ifname":"ip6_vti0","mode":"ipv6/ipv6","remote":"::","local":"::","encap_limit":0,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000"} +,{"ifname":"ip6t1","mode":"ipv6/ipv6","remote":"2001:db8::2","local":"2001:db8::1","link":"d0","ip6_tnl_f_ign_encap_limit":null,"hoplimit":1,"ip6_tnl_f_use_orig_tclass":null,"flowlabel":"0x12345","flowinfo":"0x00012345","ip6_tnl_f_allow_local_remote":null} +,{"ifname":"vti61","mode":"ipv6/ipv6","remote":"2001:db8::5","local":"2001:db8::1","encap_limit":0,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000","ikey":3,"okey":4} +] diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-051/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-051/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..c0399e196d6ea359e04f548a5fc254729ed2cda7 GIT binary patch literal 10896 zcmeI2J!lj`6vyA*>}ftV%C&*RLT!{p!zD#X#LhCEMT|xaA($_cLo8CPg2WF5L9~z* z5iLZ-LV~0cB?y8R7M3Y3L_{nsER^{F&(6l>W^Z$6vd6*ggWa8*oi{i8_V;GryxmW0 zFCJ#Zm4D*OAN&}2?_M0tyV8X+H*r-T4}s)S*e{M6L_5~Ca2FEl4@3Xs9?@H={^yKH zhh&8M*-iz0S2@r>CESbb7A2E2?AQOzx+XnNN3zhQEN9wKr_Xyi)NX8uTYe-Q*G27hALc~IA-`We zI#XA!9Q5UVF9b#Zsy2Ux3g%YvTKRwBKG~|rQF1WUJS}c*fqvNq-u_Q=5t><0N%^H2 z3N!8~66x_Iqz$A^%od8%lU?PyI0SEQh(*LrLd*b4MEMkQDd7Bj$TP zu03Pkc7MJ1=@qW+Ib@y_+_Y~Gc}Sl@ChUEfCe z1J@W~e;AvapBd(y*ReDt+yH1=(T{kX=z+jPxQu*B`LP;yu5?hU1ZI$&Aj{taLv3t+&~-v z$~+}w@Hob=f$?KEY{qL5yYDpP;kCf#UE)F?lIG=oJM6?h3C4NvqVn?XsJ~+d-QwqI zirx6l98KP7Up1$AaLD_LiCgF!ae4VgaDQ*a=AQa-b9N@;l#k2h)eP0FRrV?p^r2N9>zE|P1fKu+qeHd1ld%UYETt;2FIH%I@6K;e11J7;l)9({1=b+JACdGXY zhE&Mf1m9fJu3Qtm!kT~|cj^y3OTP0wjCy?Msdd<%!lgqXP0}gN2wd3Dhb{WyvxWct P_GtGKqaF5BnpgS@rcE=} literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-051/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-051/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-051/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-051/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-051/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..f30f7ec310463c2e15ab9f973a3e27565a7d44c1 GIT binary patch literal 10896 zcmeI2J!lj`6vyA*T)cd0BG(3jh1v))hD(YN#X_)AVr3Dd5km;(i{ucC6ssUngCd9) zVi8e6L@Xpo?36TujfG&7N-RWzScq6C@&BKljmyp6=3=tP!R>?HotvFEH~aSYX5YNs z4@)l|q$Dl>BrSjNqxW6<{Lf<d^j|%r98BsDi!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/dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-051/tnlsys.out @@ -0,0 +1,74 @@ +{ + "ioctls": [ + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6tnl0", + "in": "00000000000000000000000000000000020000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036746e6c30000000000000000000000000002900000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6gre0", + "in": "00000000000000000000000000000000030000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667726530000000000000000000000000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6_vti0", + "in": "00000000000000000000000000000000040000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6970365f767469300000000000000000000000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t1", + "in": "000000000000000000000000000000000d0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743100000000000000000000000c00000029040100000123454300030020010db800000000000000000000000120010db8000000000000000000000002000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t2", + "in": "000000000000000000000000000000000e0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743200000000000000000000000000000004024000020000001400030020010db800000000000000000000000120010db8000000000000000000000003000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6g1", + "in": "000000000000000000000000000000000f0000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667310000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000004b000b0000000000900000009" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "vti61", + "in": "00000000000000000000000000000000100000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "767469363100000000000000000000000000000029000000000000000000000020010db800000000000000000000000120010db8000000000000000000000005200020000000000300000004" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "gre6x", + "in": "00000000000000000000000000000000110000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726536780000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000006000000000000000000000000" + } + ], + "run": { + "argv": [ + "ip", + "-j", + "-6", + "tunnel", + "show", + "mode", + "vti6" + ], + "rc": 0, + "stdout": "[{\"ifname\":\"ip6tnl0\",\"mode\":\"ipv6/ipv6\",\"remote\":\"::\",\"local\":\"::\",\"encap_limit\":0,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\"}\n,{\"ifname\":\"ip6_vti0\",\"mode\":\"ipv6/ipv6\",\"remote\":\"::\",\"local\":\"::\",\"encap_limit\":0,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\"}\n,{\"ifname\":\"ip6t1\",\"mode\":\"ipv6/ipv6\",\"remote\":\"2001:db8::2\",\"local\":\"2001:db8::1\",\"link\":\"d0\",\"ip6_tnl_f_ign_encap_limit\":null,\"hoplimit\":1,\"ip6_tnl_f_use_orig_tclass\":null,\"flowlabel\":\"0x12345\",\"flowinfo\":\"0x00012345\",\"ip6_tnl_f_allow_local_remote\":null}\n,{\"ifname\":\"vti61\",\"mode\":\"ipv6/ipv6\",\"remote\":\"2001:db8::5\",\"local\":\"2001:db8::1\",\"encap_limit\":0,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\",\"ikey\":3,\"okey\":4}\n]\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-052/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-052/cmd.json new file mode 100644 index 000000000..dbfc84f79 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-052/cmd.json @@ -0,0 +1,79 @@ +{ + "axes": { + "fix": "tnl6", + "json": "1", + "words": "-6 tunnel show mode any" + }, + "cmd": "ip -j -6 tunnel show mode any", + "desc": "positive: opt=json cmd=tnl6:-6_tunnel_show_mode_any", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/pw-052", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -j -6 tunnel show mode any", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "rc": 0 + }, + { + "cmd": "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "rc": 0 + }, + { + "cmd": "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "rc": 0 + }, + { + "cmd": "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-052/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-052/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-052/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-052/ip.out new file mode 100644 index 000000000..a0bc78e6a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-052/ip.out @@ -0,0 +1,9 @@ +[{"ifname":"ip6tnl0","mode":"ipv6/ipv6","remote":"::","local":"::","encap_limit":0,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000"} +,{"ifname":"ip6gre0","mode":"gre/ipv6","remote":"::","local":"::","encap_limit":0,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000","flags":[]} +,{"ifname":"ip6_vti0","mode":"ipv6/ipv6","remote":"::","local":"::","encap_limit":0,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000"} +,{"ifname":"ip6t1","mode":"ipv6/ipv6","remote":"2001:db8::2","local":"2001:db8::1","link":"d0","ip6_tnl_f_ign_encap_limit":null,"hoplimit":1,"ip6_tnl_f_use_orig_tclass":null,"flowlabel":"0x12345","flowinfo":"0x00012345","ip6_tnl_f_allow_local_remote":null} +,{"ifname":"ip6t2","mode":"ip/ipv6","remote":"2001:db8::3","local":"2001:db8::1","encap_limit":2,"hoplimit":64,"tclass":"0x20","ip6_tnl_f_use_orig_flowlabel":null,"flowinfo":"0x02000000","ip6_tnl_f_rcv_dscp_copy":null} +,{"ifname":"ip6g1","mode":"gre/ipv6","remote":"2001:db8::4","local":"2001:db8::1","encap_limit":4,"hoplimit":64,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000","key":9,"flags":["rx_drop_ooseq","rx_csum","tx_seq","tx_csum"]} +,{"ifname":"vti61","mode":"ipv6/ipv6","remote":"2001:db8::5","local":"2001:db8::1","encap_limit":0,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000","ikey":3,"okey":4} +,{"ifname":"gre6x","mode":"gre/ipv6","remote":"2001:db8::6","local":"2001:db8::1","encap_limit":4,"hoplimit":64,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000","flags":[]} +] diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-052/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-052/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..03a0db3b568d92598c40e0b28bfc0217d71fcfc7 GIT binary patch literal 10896 zcmeI2O=#3W6vtn7QthX%We*B1^y0^{O4$|>74e|Q-n?nWQmSoT+eP#i5EQ?#^yHyn zwF)AFAfjFbr5DkQh$rdMgBB4{4<3~I|4))OWU}e5ZI*@2gCw()d9#zr@6Ehc4;dfng5Yt-$uqyd_gn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=|%A3K}4kBK@Xx*JP7un#Q%SGw=S8@HnH6h$UNB1WOm+U_U-S@zImCq zi?g>Al9Ydvlt1{g|8?@*k+W&(L79gnRUbcm=|*9jIO+h}v967$fKY!5`fs*~KFak! zCq%j=A=J<9P|!~*2l@lTv&d#qGB&|}-S4bx(c^R^1x?Cyq8)YmdNG6AQc2`V-x=vY zD)L2%{6znhgZk{~mTc`GCCGHA+m>aylaS(J2fr+GOpi}1uC}M%>91~G*je}CUFh27 z_Nzzd)m19{eHE9pe$lmhzsWZBqS)59UT0jR*8<){vvEx$(HlLMxY#!H@(yBmkwuSf=H-XLHS_Xt191Q- z^OTIiqZpq9GY{WSZ#`)~R^70+1zvd0P&CSyk z_TW2nG~G_ef_I4@4tbyR;uiWwR9=1_+<&-Ya!>uJx!vYy0v2zwVjSGlgj}=U#hNt< zXnB;cS;PE-OWSh4*o(SKeo^iJRSWQoft#jZ*#E0wTq~g#h|4cb?sE#;0?N4`iFzO0 z^4i8N8Jg`>KkgmX1>*+id;C|GjpE*qgZNCMxPJ!j zXRn*w+c>D%Xs-T#>&JagZN;#H+~dEh>?PDyigT*npYR;qmqPaC*!>CBbI@!pr#{5_YnE7t_6p|o&wr{3UMw$F1n>aovL>##kAO9x+CWV^H?aA7~4YxKi+3xE65 Op>OXQ?XaKnywYEP??6)k literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-053/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-053/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-053/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-053/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-053/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..f90fd057bb844a08d71fc3ba8987bfdda24ad512 GIT binary patch literal 10896 zcmeI2ziSjh6vyA*UNpara;=iaA7zwyNg@8ILa-7M`~hl$Ap~P`B!{tF^dGPY7Ge=G zh4=$Bgb>j}Nh8=;h@b>)EJP((2&PcZ?{{`KE;oCdJCi*QZXWF3-0Zx$*|(oJ`{v!e zTbjF@lC=DjwEV%B!*9};cb{*UE|hsl+U?~>Ae|`e5XU`&cC2gWDJ0ZC2K~3~qK;zy z&nb}(NeT65ce&6{yAJgGg=dki;>zea`}M!Gu2GHCkp^f|W>T%FQ`fx=Y6}ICr@e#H zcS_`oEAkWlQ;w>$qgt|ca1a7ea*xBrt&gk}S% zq^uf@J1&XzcoEVH(nfOG{McxhWFnq8d4JSE?s0;Ud+LX{hn~;<6L5d-mdQQ!$w>Gh zHjqBc@-dfcKRdllSFycvttn!MUFP6o`%O154EYXHvX#eLIcy?JU-}Jc`%1 zQU1U+M%W*QCMI(OW2QemsK6hl&RBn_eF|%5gh~0scVqrkY;=YAv82nvH8}iQf3JB*nIwmv<1mi!5ojnU}u=u9=sI8;Aoy znWtn79>@4R7=M4(WV{-&`(`s9UJI-}B`)+KHZSknVKdH2FwSQem6vZr{Y^dSWuZx!vYyLKd&HViMfbgj}!kpM!d9nH2XK z7}7=7CfIXHyK+r%e6U@(xl?WMEZXO}5B1pRsdU($!lgqXjj~gk5V)|Plk4=ucME@e P>f6EJjCR;habD>!hbKn3 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-053/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-053/tnlsys.out new file mode 100644 index 000000000..f2fe5c889 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-053/tnlsys.out @@ -0,0 +1,73 @@ +{ + "ioctls": [ + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6tnl0", + "in": "00000000000000000000000000000000020000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036746e6c30000000000000000000000000002900000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6gre0", + "in": "00000000000000000000000000000000030000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667726530000000000000000000000000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6_vti0", + "in": "00000000000000000000000000000000040000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6970365f767469300000000000000000000000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t1", + "in": "000000000000000000000000000000000d0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743100000000000000000000000c00000029040100000123454300030020010db800000000000000000000000120010db8000000000000000000000002000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t2", + "in": "000000000000000000000000000000000e0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743200000000000000000000000000000004024000020000001400030020010db800000000000000000000000120010db8000000000000000000000003000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6g1", + "in": "000000000000000000000000000000000f0000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667310000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000004b000b0000000000900000009" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "vti61", + "in": "00000000000000000000000000000000100000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "767469363100000000000000000000000000000029000000000000000000000020010db800000000000000000000000120010db8000000000000000000000005200020000000000300000004" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "gre6x", + "in": "00000000000000000000000000000000110000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726536780000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000006000000000000000000000000" + } + ], + "run": { + "argv": [ + "ip", + "-j", + "tunnel", + "show", + "mode", + "ip6ip6" + ], + "rc": 0, + "stdout": "[{\"ifname\":\"ip6tnl0\",\"mode\":\"ipv6/ipv6\",\"remote\":\"::\",\"local\":\"::\",\"encap_limit\":0,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\"}\n,{\"ifname\":\"ip6_vti0\",\"mode\":\"ipv6/ipv6\",\"remote\":\"::\",\"local\":\"::\",\"encap_limit\":0,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\"}\n,{\"ifname\":\"ip6t1\",\"mode\":\"ipv6/ipv6\",\"remote\":\"2001:db8::2\",\"local\":\"2001:db8::1\",\"link\":\"d0\",\"ip6_tnl_f_ign_encap_limit\":null,\"hoplimit\":1,\"ip6_tnl_f_use_orig_tclass\":null,\"flowlabel\":\"0x12345\",\"flowinfo\":\"0x00012345\",\"ip6_tnl_f_allow_local_remote\":null}\n,{\"ifname\":\"vti61\",\"mode\":\"ipv6/ipv6\",\"remote\":\"2001:db8::5\",\"local\":\"2001:db8::1\",\"encap_limit\":0,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\",\"ikey\":3,\"okey\":4}\n]\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-054/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-054/cmd.json new file mode 100644 index 000000000..c774c7072 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-054/cmd.json @@ -0,0 +1,79 @@ +{ + "axes": { + "fix": "tnl6", + "json": "1", + "words": "-6 tunnel show remote 2001:db8::2" + }, + "cmd": "ip -j -6 tunnel show remote 2001:db8::2", + "desc": "positive: opt=json cmd=tnl6:-6_tunnel_show_remote_2001:db8::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": "tunnel/pw-054", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -j -6 tunnel show remote 2001:db8::2", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "rc": 0 + }, + { + "cmd": "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "rc": 0 + }, + { + "cmd": "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "rc": 0 + }, + { + "cmd": "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-054/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-054/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-054/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-054/ip.out new file mode 100644 index 000000000..b98c5bd87 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-054/ip.out @@ -0,0 +1,2 @@ +[{"ifname":"ip6t1","mode":"ipv6/ipv6","remote":"2001:db8::2","local":"2001:db8::1","link":"d0","ip6_tnl_f_ign_encap_limit":null,"hoplimit":1,"ip6_tnl_f_use_orig_tclass":null,"flowlabel":"0x12345","flowinfo":"0x00012345","ip6_tnl_f_allow_local_remote":null} +] diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-054/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-054/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..fdf960d69af2ecfeef9b74b0cab23ea67b05d6b6 GIT binary patch literal 10896 zcmeI2J!lj`6vyA*UNj#U6Xmp1V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YrMtw1KE&naeLJkiJ_*Ko@1pYZO{l+O23_yxX>z;p zn>m^`uW81d;=v>D_f6bF--yf0KLPiz_u1T2KW=V!Ihv5gtE`v=_cS5btb1CpR0Xu$ z3fHVret{6g@{8T5E9MuazOQ-;zi7Q``-OX71>-u2v_MjRVRPT9@L511_k(fIgX`vb zz=6j-4`#vryD6J{>c>3~v_V{~ugy?xyS3xqQ_V1LI1a+Qs%#whK^(+;636`fp3=FA| zwF$ntq+RuzpjCt)cXBIS6YM}0zVp;NJWb)!A&^?xEOiK6*iX+g{qWhs{~nuo@RQLF J`zg#T{Q+J`MRfoG literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-054/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-054/tnlsys.out new file mode 100644 index 000000000..62cfb3408 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-054/tnlsys.out @@ -0,0 +1,74 @@ +{ + "ioctls": [ + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6tnl0", + "in": "00000000000000000000000000000000020000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036746e6c30000000000000000000000000002900000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6gre0", + "in": "00000000000000000000000000000000030000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667726530000000000000000000000000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6_vti0", + "in": "00000000000000000000000000000000040000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6970365f767469300000000000000000000000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t1", + "in": "000000000000000000000000000000000d0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743100000000000000000000000c00000029040100000123454300030020010db800000000000000000000000120010db8000000000000000000000002000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t2", + "in": "000000000000000000000000000000000e0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743200000000000000000000000000000004024000020000001400030020010db800000000000000000000000120010db8000000000000000000000003000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6g1", + "in": "000000000000000000000000000000000f0000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667310000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000004b000b0000000000900000009" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "vti61", + "in": "00000000000000000000000000000000100000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "767469363100000000000000000000000000000029000000000000000000000020010db800000000000000000000000120010db8000000000000000000000005200020000000000300000004" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "gre6x", + "in": "00000000000000000000000000000000110000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726536780000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000006000000000000000000000000" + } + ], + "run": { + "argv": [ + "ip", + "-j", + "-6", + "tunnel", + "show", + "remote", + "2001:db8::2" + ], + "rc": 0, + "stdout": "[{\"ifname\":\"ip6t1\",\"mode\":\"ipv6/ipv6\",\"remote\":\"2001:db8::2\",\"local\":\"2001:db8::1\",\"link\":\"d0\",\"ip6_tnl_f_ign_encap_limit\":null,\"hoplimit\":1,\"ip6_tnl_f_use_orig_tclass\":null,\"flowlabel\":\"0x12345\",\"flowinfo\":\"0x00012345\",\"ip6_tnl_f_allow_local_remote\":null}\n]\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-055/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-055/cmd.json new file mode 100644 index 000000000..84042f0a3 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-055/cmd.json @@ -0,0 +1,79 @@ +{ + "axes": { + "fix": "tnl6", + "json": "1", + "words": "-6 tunnel show local 2001:db8::1" + }, + "cmd": "ip -j -6 tunnel show local 2001:db8::1", + "desc": "positive: opt=json cmd=tnl6:-6_tunnel_show_local_2001:db8::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": "tunnel/pw-055", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -j -6 tunnel show local 2001:db8::1", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "rc": 0 + }, + { + "cmd": "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "rc": 0 + }, + { + "cmd": "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "rc": 0 + }, + { + "cmd": "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-055/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-055/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-055/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-055/ip.out new file mode 100644 index 000000000..c2df30d2a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-055/ip.out @@ -0,0 +1,6 @@ +[{"ifname":"ip6t1","mode":"ipv6/ipv6","remote":"2001:db8::2","local":"2001:db8::1","link":"d0","ip6_tnl_f_ign_encap_limit":null,"hoplimit":1,"ip6_tnl_f_use_orig_tclass":null,"flowlabel":"0x12345","flowinfo":"0x00012345","ip6_tnl_f_allow_local_remote":null} +,{"ifname":"ip6t2","mode":"ip/ipv6","remote":"2001:db8::3","local":"2001:db8::1","encap_limit":2,"hoplimit":64,"tclass":"0x20","ip6_tnl_f_use_orig_flowlabel":null,"flowinfo":"0x02000000","ip6_tnl_f_rcv_dscp_copy":null} +,{"ifname":"ip6g1","mode":"gre/ipv6","remote":"2001:db8::4","local":"2001:db8::1","encap_limit":4,"hoplimit":64,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000","key":9,"flags":["rx_drop_ooseq","rx_csum","tx_seq","tx_csum"]} +,{"ifname":"vti61","mode":"ipv6/ipv6","remote":"2001:db8::5","local":"2001:db8::1","encap_limit":0,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000","ikey":3,"okey":4} +,{"ifname":"gre6x","mode":"gre/ipv6","remote":"2001:db8::6","local":"2001:db8::1","encap_limit":4,"hoplimit":64,"tclass":"0x00","flowlabel":"0x00000","flowinfo":"0x00000000","flags":[]} +] diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-055/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-055/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..33af04806488be04c9cb2137f9f20ab8d78241da GIT binary patch literal 10896 zcmeI2ziSjh6vyA*Tr|H4R7XCskL@m_#{m$+t%gx^A&SVc|=fUpI&CZ*fefxQ{Z{F_9 zsXLc4l9hSM$}jxrdY(OTeRodUQ069CRp23zRuoo?qqd_R>l(QW3H7I;|6+yctyKSQ zMx;eDLjAFI3i?^)K!2}rFS1;e3=FYf?>Fn}^*9}=gC=D>(~LTO-p!+Sc2?v;;h0Q} zi@Z}JU(r8hhu%B7C0hsEEM$D8*Oq0uoDuhcgMSt|q{pWf=h{>6=m)PZYOnk7Pqb|C z`qiWJ>&lgbzTD3pLD9RaxnH4zf2(+{{J(IYY}M{4Ss!X{iwj#|n=Auwe<%3}%{ov? z`C%~bC=%)NB%~Rn^$&Lx2M5|DA92UY`^`FXj~#^EQ$NH#^yaz$*kf`}eKHc>$c^Qm z7EQO*j{8oa58<^~21w9OhmR#m@Ks9ZAp_hlwiuVV7(D0cN#Qp#_rihfl`*U$2-Ga{X~NAodyUFY36*&)MjF z&U6*5Z`p6MPJJ8eRCx1K)+{O3XAIU0stLAzq)8NM0_%eVCxe2B|gK19xP z&1sWu>cz3GZ|5T88od_qxv+7~|KlJ@v2Et%9mMV;Q$E|w%lCk5=H=lA;s8+QDH(&u zF+K^#Zyz@quSM*>)QpGM0&~Q0p%1ZndCv|@u}^|=-n*#0d=B+z{6RN*d79!T{AP}( z)yduWPx0W8_q%@FLf?qX%RdJ9H^xlvsUJ7D+Z;{E;wdX8!97jLHS0I5S+jtaTj`oL z$}hOIE%l4ds4M3emA8L;%k&HTz6!>*5@~^?{KDkEQ{l6KQttcWo(C8F=K%*E z_dIwC?th;%xu<^I^FSNK#`@X}Y1`F~dq=gvxZ(L8@2WcDxDVnW-jg`)pMm@H`%La_ z9F#ViE5F{_ao?#{VOU}A@vf=^VSCv)r_%2erosLDh`go!KB00B($+F5?(;CDLe?hu z=8|^hnxL>JC;YgRTj`o$BdYM7r`F+V3YQLn)XQ3FK;XiDb}rBlpDq0F*IU0|WwgV7 IO7lv805-EjkN^Mx literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-055/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-055/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-055/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-055/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-055/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..3c4f091983e51b83efcd66537db541d7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cmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-056/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-056/tnlsys.out new file mode 100644 index 000000000..48afee3ff --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-056/tnlsys.out @@ -0,0 +1,74 @@ +{ + "ioctls": [ + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6tnl0", + "in": "00000000000000000000000000000000020000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036746e6c30000000000000000000000000002900000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6gre0", + "in": "00000000000000000000000000000000030000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667726530000000000000000000000000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6_vti0", + "in": "00000000000000000000000000000000040000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6970365f767469300000000000000000000000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t1", + "in": "000000000000000000000000000000000d0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743100000000000000000000000c00000029040100000123454300030020010db800000000000000000000000120010db8000000000000000000000002000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t2", + "in": "000000000000000000000000000000000e0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743200000000000000000000000000000004024000020000001400030020010db800000000000000000000000120010db8000000000000000000000003000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6g1", + "in": "000000000000000000000000000000000f0000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667310000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000004b000b0000000000900000009" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "vti61", + "in": "00000000000000000000000000000000100000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "767469363100000000000000000000000000000029000000000000000000000020010db800000000000000000000000120010db8000000000000000000000005200020000000000300000004" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "gre6x", + "in": "00000000000000000000000000000000110000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726536780000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000006000000000000000000000000" + } + ], + "run": { + "argv": [ + "ip", + "-j", + "-6", + "tunnel", + "show", + "dev", + "d0" + ], + "rc": 0, + "stdout": "[{\"ifname\":\"ip6t1\",\"mode\":\"ipv6/ipv6\",\"remote\":\"2001:db8::2\",\"local\":\"2001:db8::1\",\"link\":\"d0\",\"ip6_tnl_f_ign_encap_limit\":null,\"hoplimit\":1,\"ip6_tnl_f_use_orig_tclass\":null,\"flowlabel\":\"0x12345\",\"flowinfo\":\"0x00012345\",\"ip6_tnl_f_allow_local_remote\":null}\n]\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-057/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-057/cmd.json new file mode 100644 index 000000000..f127772a8 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-057/cmd.json @@ -0,0 +1,79 @@ +{ + "axes": { + "fix": "tnl6", + "json": "1", + "words": "-6 tunnel show encaplimit none" + }, + "cmd": "ip -j -6 tunnel show encaplimit none", + "desc": "positive: opt=json cmd=tnl6:-6_tunnel_show_encaplimit_none", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/pw-057", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -j -6 tunnel show encaplimit none", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "rc": 0 + }, + { + "cmd": "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "rc": 0 + }, + { + "cmd": "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "rc": 0 + }, + { + "cmd": "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-057/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-057/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-057/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-057/ip.out new file mode 100644 index 000000000..b98c5bd87 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-057/ip.out @@ -0,0 +1,2 @@ +[{"ifname":"ip6t1","mode":"ipv6/ipv6","remote":"2001:db8::2","local":"2001:db8::1","link":"d0","ip6_tnl_f_ign_encap_limit":null,"hoplimit":1,"ip6_tnl_f_use_orig_tclass":null,"flowlabel":"0x12345","flowinfo":"0x00012345","ip6_tnl_f_allow_local_remote":null} +] diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-057/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-057/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..3b3ead420824c8b12ccc491ad51737c3fc4c55ae GIT binary patch literal 10896 zcmeI2&rj4q6vtn8cICIC*^`Nplj02wSvY9KBS&uD1OwR+5eTfr=%s&w@!-LzF&H#4 zMlZ%+M}>-Rftq3LuBD-<``c}d&pv~N0n{k-X$*S=YNbUPzi zS(mK*!On@L?AeRQbJB$}7s;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pnl/testdata/7_3_1/ws/tunnel/pw-057/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-057/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..9d41cc17ce743322610099330ac4065886200cca GIT binary patch literal 10896 zcmeI2&rj4q6vtn87Fm8Nnmw72a02y&N`Qk#JaXjbO)!uRia=l`Bwp%&;L-Ri7(5u` z$*A$Da53Sc(IZC>Mu{4Kg%}Nfztbr;JKe$x#Z7iz(snxSn@(RpZ~Er7Z+Yj=hSlc!j+DkbfL^evZ{}pP})&AAfD>Sd8}*XDk9Xs1^t(MMK7iLZ!;pTk`d~+ zwJYdnl?VL+;aa3#l#EZZ-C&<}Io(fB>Yz!P&orY>ANTX9U0)aZ(05KQUl)0&M82VY zO21xv`b?f3F6)r_eZjdb%R)x{K@V3JIivfh6*tbO-q8D?E^e*cFb7&YgLZZAOkKHh z*p~mXCoBecwXqi|m`BBX<@KU%@~m!8Nk`;#SKQnJCu9$J`!~tQXx4#B%9_Qvr%0sF zgOFyBHa68$oEYzte9RLk?+@z8JysBMPyGn@(EH2%?ID|c>XVV^LT()QFiMTf?s4C% zIHvl>-iG_a^k{kR?^VEk{iw}7^`p$Q9OYhj#f|soiPY96E$)BCjQ4z9`^LO2!FYdm zwm7Cks&Zp~cLnUP+_2fFeiHli0~hPm7W3iVrp5ken|(x8BAFmm*Rc);{NnIbmle}L zset#x1)KMkO?cP$zRj_o{uGLf?L$jc|28e&Ilq04`R!fIZ@HAtZ{z%dbBw4zj84x? z4NutqaK8e7xHRJYq53JTo*t&<53APrpHs{U`R3Le5c|xG6?NQWayB}j^P&RQ7YA+D zsqbQ)>fx)JdXg6FD;Dd0stGs#T$3o$1lA|UFHT};*Ni{I`ynZ3xr&_S+-aL_>LszQ zZN1I7M$ZMzLvwLWHPM^gm$cZn^YR{IcabH-HuLf$;F@`PxPf>8lzB?V;7N>s0^4DvL^qu6JTrrm3KY7TMZk@rU? zZlP}^<>kMC`=8hBv7P!!W4p`IL@Zuo#Wc952{~uYc7k3&%cXSA8s`_B+LrpoG1Qgw zi>-dI`U<}&EZBbGzE{DxPGT*PmS5Q1_bU7rP|AHF>3wk1ybsv%r1!yhaKAijb5H%G z_klKui}ke`YHhW9+p%N+X`8m@SjUwi*thWM{>fS wJGqq32@atO|9NU19;R^W5K2zkqyd2o+nL#<9ll$5?c*nhUNPEXJEeK0Kel8&m;e9( literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-057/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-057/tnlsys.out new file mode 100644 index 000000000..8a2332f94 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-057/tnlsys.out @@ -0,0 +1,74 @@ +{ + "ioctls": [ + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6tnl0", + "in": "00000000000000000000000000000000020000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036746e6c30000000000000000000000000002900000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6gre0", + "in": "00000000000000000000000000000000030000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667726530000000000000000000000000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6_vti0", + "in": "00000000000000000000000000000000040000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6970365f767469300000000000000000000000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t1", + "in": "000000000000000000000000000000000d0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743100000000000000000000000c00000029040100000123454300030020010db800000000000000000000000120010db8000000000000000000000002000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t2", + "in": "000000000000000000000000000000000e0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743200000000000000000000000000000004024000020000001400030020010db800000000000000000000000120010db8000000000000000000000003000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6g1", + "in": "000000000000000000000000000000000f0000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667310000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000004b000b0000000000900000009" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "vti61", + "in": "00000000000000000000000000000000100000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "767469363100000000000000000000000000000029000000000000000000000020010db800000000000000000000000120010db8000000000000000000000005200020000000000300000004" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "gre6x", + "in": "00000000000000000000000000000000110000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726536780000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000006000000000000000000000000" + } + ], + "run": { + "argv": [ + "ip", + "-j", + "-6", + "tunnel", + "show", + "encaplimit", + "none" + ], + "rc": 0, + "stdout": "[{\"ifname\":\"ip6t1\",\"mode\":\"ipv6/ipv6\",\"remote\":\"2001:db8::2\",\"local\":\"2001:db8::1\",\"link\":\"d0\",\"ip6_tnl_f_ign_encap_limit\":null,\"hoplimit\":1,\"ip6_tnl_f_use_orig_tclass\":null,\"flowlabel\":\"0x12345\",\"flowinfo\":\"0x00012345\",\"ip6_tnl_f_allow_local_remote\":null}\n]\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-058/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-058/cmd.json new file mode 100644 index 000000000..2032dc941 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-058/cmd.json @@ -0,0 +1,79 @@ +{ + "axes": { + "fix": "tnl6", + "json": "1", + "words": "-6 tunnel show hoplimit 1" + }, + "cmd": "ip -j -6 tunnel show hoplimit 1", + "desc": "positive: opt=json cmd=tnl6:-6_tunnel_show_hoplimit_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": "tunnel/pw-058", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -j -6 tunnel show hoplimit 1", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "rc": 0 + }, + { + "cmd": "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "rc": 0 + }, + { + "cmd": "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "rc": 0 + }, + { + "cmd": "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-058/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-058/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-058/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-058/ip.out new file mode 100644 index 000000000..b98c5bd87 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-058/ip.out @@ -0,0 +1,2 @@ +[{"ifname":"ip6t1","mode":"ipv6/ipv6","remote":"2001:db8::2","local":"2001:db8::1","link":"d0","ip6_tnl_f_ign_encap_limit":null,"hoplimit":1,"ip6_tnl_f_use_orig_tclass":null,"flowlabel":"0x12345","flowinfo":"0x00012345","ip6_tnl_f_allow_local_remote":null} +] diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-058/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-058/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..f06575dbc692902791fc80b9f0650b61216adda8 GIT binary patch literal 10896 zcmeI2KWG#|6vp4)+?oFxcRrzh*HTJ8?iIb2>VHj$ zbV@>~ztE+ipHvR?PYL%TO`>FSiv7C3S=X$`=|~Eil-Wc(>h$?y8nqi6BFp__GIUPl zn-W<;|CB+!cXUg(_O=bk>^`?G%QBac;u#13EHa|UrxiEbQ}4o(TNkv~eV7xShuwbl z=uBO?ve#GfXT~eKSGD=eS1`AV*UJC%_sLehj*>&Z=5cX*3!IQW;O+k;9iW*4m6TPB zaYvEJB2PlvL0Wb?Q^-yBNIKw-llNySa*rK^+*9AjJ@mG?ZyL0@r#>0+Z{#NC9!6hg9X}{N5_qzj51UpZa0!(+}cUr?Hs#t~M(6mu>bDRf#0rP+iA5nD7gu z(>+#9|Dp=shwt0GFK)xTzV;o?_4FrC;@IA^MExJ5;+^Z;0jzHyV|~l5bbTA-4_ssT z{b772KRueW{o!d9{&03K_J{hXuzp4ul|THj=Kp5JoKVqRdJAHoe72zD9+R`t`J8uE zuzqL6W}W(RtW!UH)ze6#VtvtKy;k`()U%X@Qc?u+b`nxRWNQWffk6$FKq7n6g~?m<$faUdGOFY4><6! z=fN7dKYG>Xp88?W18tBv*4Jiev|a7EcT^{g>!0uOt|}A8y%z`Zo`iA#2i%X1+T6!+ zP@~aY`SsS0`#!ZF!}4>FcU76|s4ExeRQi3wI=G*|XmcNbpHMjmjn*HdBpSkDyu{og78Y07XeG8< zL}DRgB|*}uq!Dc_1QAkNh>8XY7}OB||Jm7Ox!K#?ne1_J`(StHX6Mb#zWu$~H*fd- z;gU0eZWQ*3qXy89b?w~wg!*To|8BSFtz7?8 zLZnL)LjBX-3i?UqK>w_8FVZSXCa2i1`zAm!dKPH10 zL_RB#74%OT(0fO>WNU9*hs^GA+p;Wk2`Qa(@XsQ{dVE@OqdoOTzPNQkd)vzkCIAt9Y&aKYyQW)$1rZ=xZJqx3<7Z*#+MIPci|TEufOJ zYBBC85?SI&NGC|kO=pYw$sWlB+;Q^$w1wPb2O;;=_i+!sP3~ImsRrI-^cnM-d&>{G}Ub=+feHaeg4 zx(3$o4BML~r<5qGH?5%R7kOMHUU)%*$T}*UZbq4a5PU%u_N3 z4`X}k|;ziS5F?&fKV$MBmu znr!}@KmD!;I~?^F0Jpq%@Ou;;-8^E}|d z!=4Af!Tr%|HuuyIdmd(uTl={iL_(htC%NcVhp@8%8_q Ir#!Fp5Af$fu>b%7 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-058/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-058/tnlsys.out new file mode 100644 index 000000000..aaf209c08 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-058/tnlsys.out @@ -0,0 +1,74 @@ +{ + "ioctls": [ + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6tnl0", + "in": "00000000000000000000000000000000020000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036746e6c30000000000000000000000000002900000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6gre0", + "in": "00000000000000000000000000000000030000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667726530000000000000000000000000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6_vti0", + "in": "00000000000000000000000000000000040000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6970365f767469300000000000000000000000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t1", + "in": "000000000000000000000000000000000d0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743100000000000000000000000c00000029040100000123454300030020010db800000000000000000000000120010db8000000000000000000000002000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t2", + "in": "000000000000000000000000000000000e0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743200000000000000000000000000000004024000020000001400030020010db800000000000000000000000120010db8000000000000000000000003000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6g1", + "in": "000000000000000000000000000000000f0000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667310000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000004b000b0000000000900000009" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "vti61", + "in": "00000000000000000000000000000000100000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "767469363100000000000000000000000000000029000000000000000000000020010db800000000000000000000000120010db8000000000000000000000005200020000000000300000004" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "gre6x", + "in": "00000000000000000000000000000000110000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726536780000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000006000000000000000000000000" + } + ], + "run": { + "argv": [ + "ip", + "-j", + "-6", + "tunnel", + "show", + "hoplimit", + "1" + ], + "rc": 0, + "stdout": "[{\"ifname\":\"ip6t1\",\"mode\":\"ipv6/ipv6\",\"remote\":\"2001:db8::2\",\"local\":\"2001:db8::1\",\"link\":\"d0\",\"ip6_tnl_f_ign_encap_limit\":null,\"hoplimit\":1,\"ip6_tnl_f_use_orig_tclass\":null,\"flowlabel\":\"0x12345\",\"flowinfo\":\"0x00012345\",\"ip6_tnl_f_allow_local_remote\":null}\n]\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-059/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-059/cmd.json new file mode 100644 index 000000000..9b5720dab --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-059/cmd.json @@ -0,0 +1,79 @@ +{ + "axes": { + "fix": "tnl6", + "json": "1", + "words": "-6 tunnel show tclass inherit" + }, + "cmd": "ip -j -6 tunnel show tclass inherit", + "desc": "positive: opt=json cmd=tnl6:-6_tunnel_show_tclass_inherit", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/pw-059", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -j -6 tunnel show tclass inherit", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "rc": 0 + }, + { + "cmd": "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "rc": 0 + }, + { + "cmd": "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "rc": 0 + }, + { + "cmd": "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-059/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-059/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-059/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-059/ip.out new file mode 100644 index 000000000..b98c5bd87 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-059/ip.out @@ -0,0 +1,2 @@ +[{"ifname":"ip6t1","mode":"ipv6/ipv6","remote":"2001:db8::2","local":"2001:db8::1","link":"d0","ip6_tnl_f_ign_encap_limit":null,"hoplimit":1,"ip6_tnl_f_use_orig_tclass":null,"flowlabel":"0x12345","flowinfo":"0x00012345","ip6_tnl_f_allow_local_remote":null} +] diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-059/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-059/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..087b1739ecea77528f963d54be6349620695f243 GIT binary patch literal 10896 zcmeI2&ui2`6vtn7wsreUtL|0oMeDIj*;WzkRm6kfp*L-{mc_cR?IMB)S3G$25Ae|9 z52Sdph`0b!oA2gQ8ICv^}6TG%jkAG(gID&bgC11`g%Ew+|^Z)--DyleoN$w z68VMtDMNbi=#nh$Z>x~$9d22sc%s9>XVV+Ms6(k?9t|y z`f)#?IHs1p?)JDJpB$^q{i7PVKbJSTr+$!mri0w;rr7b`dn3(tNQ(RAi1D7E>$2Cq zUG8{)=4vUgU8+iBet!+@zq@U+PyIOdX$RKVX)fmdr%j6epC&u^pbfpd(Y zJ&a9G6-NrDJfXy*~2$u{Ld)Hgv#Edx54+B%9pg?og8ujntB)SYI?)A5yEKe6q zwy77#w(jdq`Zank;Jq~K*EABn@ohTzFCv;did^J&3JGwu=bWX(TCW$yxR|3u}^|=zPqTnd>8WXc#Up%<20p%IA@He z$LV_RUE;wZ?@v9yg|-nFmtO(*sS76e)Q=n6ZHy++<4u-Kf_ru$=d8Owv`QM#atqH{ zqwIoH+pt|6LS7}isP=!=U)aUX8PhK8|0;B@mB=1Q$}UXq2NaeCgt;G&`ySl&z6Wf0 z-1k5ZkIM3p$vySsz6Y$=#_V-3G~KR#+&iipy&D|w@vkZu$Gz_d@ukFZ?|}OU5#zn} zgPIQKsvo$1+z+UoXjPDV{Hw}cLtZ66r`q)i3f%XeFvoklKA~z1nyz3{+-K2~3Q-$> z%_TdQbAn;a3AngZFYpYl^E`ljtn<`5EKlLo!IzBekv2FktY>tCdiZVOy+2N6-qPD) IJ>j_0KdXF7-v9sr literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-059/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-059/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-059/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-059/netlink_route_tnlsys.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-059/netlink_route_tnlsys.pcap new file mode 100644 index 0000000000000000000000000000000000000000..d956ede78bbaa4dea5083a9446f04cc67172bc48 GIT binary patch literal 10896 zcmeI2J!lj`6vyA}TugGwX_RY)G#bk&;qDY6X+zyO7N3~N>7i&TmoPN$z*WEnl*6T#SOOuqnOY~I| z{o?u|V`?u{NtE`tI?KX7uPoB^$RT%J@STaysrD(w&GOK@@XgDM+N(PBg@GZjUe!9C z*C_4R<^Cx6N$;sP&jJbks_?A1U$9P;8WEBX2a4O|_C0Wt_Aqb%C;14?E~XN)W-u-! zh;(t0rJqSFR|~bu%rNC6-Z*%F-UaS?#{%x5AK;$#wzxlY&Ey{XU?jMK8_PX4eVueM?>}u)?Ef^`XRnIL@mzJ~>+pbIo2U*O zKK<(!cz;nfd0*XzclGQ$9P43EzF6Ph?}^SoCdE7Ew-0!J`*VN&++-5CFSBw|9Ye)L}UedfzG<@e~Ajf&^2w7~k) zTPEw!x4us2@YP8zNs9GVgY}Z^;|G7INF?fG)+;ktXL)E>jKAgYLtM;qjboN)D<<2} zi(^~$^$z_SH5bq?&H6Q+L~ndsl49G8%M141iIz3nh|6DMt`V1KGa$i$B2Eb(JdW`{ z%=n=tlks-=?z_!+a4xX2=M+&`z^4IxVZcVbMIU>xrct-*luGqfgVp;G70X{g_yIx=Q(SJp~V)Svqsqk zrnX_bIL3L6?4sHKRe#wo?kt*iVgFZg=UR#Efu!uhA3H~L;XEK!{fdO zbbON5$4u^_ANM^#y*6gAdLebY_Hi%d0QYWiyyt&ag*fhgKL{@+j(fq}KZzLctsj&+ zoSS~&_Hkd7`?*y??)hI;;Rfe5@^hM9pCFn0q0{DgZ`UU@jX~-PCdGZ8ds1@L#$R)Z zj>Vinh%8}or&{0{TIYF$^Ld@8(m{C$rVhUJ&_U{D#|8CtZ&MGxEx31Xw7vpw2la&G GO8)@**Fp3E literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-059/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-059/tnlsys.out new file mode 100644 index 000000000..be6972ca9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-059/tnlsys.out @@ -0,0 +1,74 @@ +{ + "ioctls": [ + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6tnl0", + "in": "00000000000000000000000000000000020000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036746e6c30000000000000000000000000002900000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6gre0", + "in": "00000000000000000000000000000000030000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667726530000000000000000000000000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6_vti0", + "in": "00000000000000000000000000000000040000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6970365f767469300000000000000000000000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t1", + "in": "000000000000000000000000000000000d0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743100000000000000000000000c00000029040100000123454300030020010db800000000000000000000000120010db8000000000000000000000002000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t2", + "in": "000000000000000000000000000000000e0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743200000000000000000000000000000004024000020000001400030020010db800000000000000000000000120010db8000000000000000000000003000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6g1", + "in": "000000000000000000000000000000000f0000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667310000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000004b000b0000000000900000009" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "vti61", + "in": "00000000000000000000000000000000100000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "767469363100000000000000000000000000000029000000000000000000000020010db800000000000000000000000120010db8000000000000000000000005200020000000000300000004" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "gre6x", + "in": "00000000000000000000000000000000110000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726536780000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000006000000000000000000000000" + } + ], + "run": { + "argv": [ + "ip", + "-j", + "-6", + "tunnel", + "show", + "tclass", + "inherit" + ], + "rc": 0, + "stdout": "[{\"ifname\":\"ip6t1\",\"mode\":\"ipv6/ipv6\",\"remote\":\"2001:db8::2\",\"local\":\"2001:db8::1\",\"link\":\"d0\",\"ip6_tnl_f_ign_encap_limit\":null,\"hoplimit\":1,\"ip6_tnl_f_use_orig_tclass\":null,\"flowlabel\":\"0x12345\",\"flowinfo\":\"0x00012345\",\"ip6_tnl_f_allow_local_remote\":null}\n]\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-060/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-060/cmd.json new file mode 100644 index 000000000..f1eeebe4a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-060/cmd.json @@ -0,0 +1,79 @@ +{ + "axes": { + "fix": "tnl6", + "json": "1", + "words": "-6 tunnel show flowlabel 0x12345" + }, + "cmd": "ip -j -6 tunnel show flowlabel 0x12345", + "desc": "positive: opt=json cmd=tnl6:-6_tunnel_show_flowlabel_0x12345", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/pw-060", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -j -6 tunnel show flowlabel 0x12345", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "rc": 0 + }, + { + "cmd": "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "rc": 0 + }, + { + "cmd": "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "rc": 0 + }, + { + "cmd": "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-060/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-060/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-060/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-060/ip.out new file mode 100644 index 000000000..b98c5bd87 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-060/ip.out @@ -0,0 +1,2 @@ +[{"ifname":"ip6t1","mode":"ipv6/ipv6","remote":"2001:db8::2","local":"2001:db8::1","link":"d0","ip6_tnl_f_ign_encap_limit":null,"hoplimit":1,"ip6_tnl_f_use_orig_tclass":null,"flowlabel":"0x12345","flowinfo":"0x00012345","ip6_tnl_f_allow_local_remote":null} +] diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-060/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-060/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..6184df72ab901b46e43a746aa4e2f3b146a270ae GIT binary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zHavA#A#t?equy>i-MT>pHJcU9>y?!7pO_auz_UT{Bq z!sb4XgKCZD(yzC2+z&YI7?z)VysJuIKwYsor_}Eg`oR70yv=?5eM0FR)LP4^xKF{5 z4zf1hHu*-9^ZLt9k!=%>EKDd?2rZoF6`&kI{on3!vB8S Oy7w8Q9rjb0SNaQ1-afbh literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-061/tnlsys.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-061/tnlsys.out new file mode 100644 index 000000000..e948e2f87 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-061/tnlsys.out @@ -0,0 +1,74 @@ +{ + "ioctls": [ + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6tnl0", + "in": "00000000000000000000000000000000020000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036746e6c30000000000000000000000000002900000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6gre0", + "in": "00000000000000000000000000000000030000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667726530000000000000000000000000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6_vti0", + "in": "00000000000000000000000000000000040000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "6970365f767469300000000000000000000000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t1", + "in": "000000000000000000000000000000000d0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743100000000000000000000000c00000029040100000123454300030020010db800000000000000000000000120010db8000000000000000000000002000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6t2", + "in": "000000000000000000000000000000000e0000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "697036743200000000000000000000000000000004024000020000001400030020010db800000000000000000000000120010db8000000000000000000000003000000000000000000000000" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "ip6g1", + "in": "000000000000000000000000000000000f0000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "69703667310000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000004b000b0000000000900000009" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "vti61", + "in": "00000000000000000000000000000000100000002900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "767469363100000000000000000000000000000029000000000000000000000020010db800000000000000000000000120010db8000000000000000000000005200020000000000300000004" + }, + { + "family": 10, + "req": "SIOCGETTUNNEL", + "name": "gre6x", + "in": "00000000000000000000000000000000110000002f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "out": "67726536780000000000000000000000000000002f044000000000000000030020010db800000000000000000000000120010db8000000000000000000000006000000000000000000000000" + } + ], + "run": { + "argv": [ + "ip", + "-j", + "-6", + "tunnel", + "show", + "key", + "9" + ], + "rc": 0, + "stdout": "[{\"ifname\":\"ip6tnl0\",\"mode\":\"ipv6/ipv6\",\"remote\":\"::\",\"local\":\"::\",\"encap_limit\":0,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\"}\n,{\"ifname\":\"ip6gre0\",\"mode\":\"gre/ipv6\",\"remote\":\"::\",\"local\":\"::\",\"encap_limit\":0,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\",\"flags\":[]}\n,{\"ifname\":\"ip6_vti0\",\"mode\":\"ipv6/ipv6\",\"remote\":\"::\",\"local\":\"::\",\"encap_limit\":0,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\"}\n,{\"ifname\":\"ip6t1\",\"mode\":\"ipv6/ipv6\",\"remote\":\"2001:db8::2\",\"local\":\"2001:db8::1\",\"link\":\"d0\",\"ip6_tnl_f_ign_encap_limit\":null,\"hoplimit\":1,\"ip6_tnl_f_use_orig_tclass\":null,\"flowlabel\":\"0x12345\",\"flowinfo\":\"0x00012345\",\"ip6_tnl_f_allow_local_remote\":null}\n,{\"ifname\":\"ip6t2\",\"mode\":\"ip/ipv6\",\"remote\":\"2001:db8::3\",\"local\":\"2001:db8::1\",\"encap_limit\":2,\"hoplimit\":64,\"tclass\":\"0x20\",\"ip6_tnl_f_use_orig_flowlabel\":null,\"flowinfo\":\"0x02000000\",\"ip6_tnl_f_rcv_dscp_copy\":null}\n,{\"ifname\":\"ip6g1\",\"mode\":\"gre/ipv6\",\"remote\":\"2001:db8::4\",\"local\":\"2001:db8::1\",\"encap_limit\":4,\"hoplimit\":64,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\",\"key\":9,\"flags\":[\"rx_drop_ooseq\",\"rx_csum\",\"tx_seq\",\"tx_csum\"]}\n,{\"ifname\":\"vti61\",\"mode\":\"ipv6/ipv6\",\"remote\":\"2001:db8::5\",\"local\":\"2001:db8::1\",\"encap_limit\":0,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\",\"ikey\":3,\"okey\":4}\n,{\"ifname\":\"gre6x\",\"mode\":\"gre/ipv6\",\"remote\":\"2001:db8::6\",\"local\":\"2001:db8::1\",\"encap_limit\":4,\"hoplimit\":64,\"tclass\":\"0x00\",\"flowlabel\":\"0x00000\",\"flowinfo\":\"0x00000000\",\"flags\":[]}\n]\n", + "stderr": "" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-062/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-062/cmd.json new file mode 100644 index 000000000..a2d3dd66c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-062/cmd.json @@ -0,0 +1,79 @@ +{ + "axes": { + "fix": "tnl6", + "json": "1", + "words": "-6 tunnel show allow-localremote" + }, + "cmd": "ip -j -6 tunnel show allow-localremote", + "desc": "positive: opt=json cmd=tnl6:-6_tunnel_show_allow-localremote", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tunnel/pw-062", + "modules": [ + "ipip", + "ip_gre", + "sit", + "ip_vti", + "ip6_tunnel", + "ip6_gre", + "ip6_vti" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tnlsnap -- -j -6 tunnel show allow-localremote", + "name": "tnlsys" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:01:01 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip addr add 192.0.2.1/24 dev d0 && ip addr add 2001:db8::1/64 dev d0 nodad", + "rc": 0 + }, + { + "cmd": "ip link add ip6t1 type ip6tnl mode ip6ip6 remote 2001:db8::2 local 2001:db8::1 encaplimit none hoplimit 1 tclass inherit flowlabel 0x12345 allow-localremote dev d0", + "rc": 0 + }, + { + "cmd": "ip link add ip6t2 type ip6tnl mode ipip6 remote 2001:db8::3 local 2001:db8::1 encaplimit 2 hoplimit 64 tclass 0x20 flowlabel inherit dscp inherit", + "rc": 0 + }, + { + "cmd": "ip link add ip6g1 type ip6gre remote 2001:db8::4 local 2001:db8::1 key 9 seq csum", + "rc": 0 + }, + { + "cmd": "ip link add vti61 type vti6 remote 2001:db8::5 local 2001:db8::1 ikey 3 okey 4", + "rc": 0 + }, + { + "cmd": "ip link add gre6x type ip6gre remote 2001:db8::6 local 2001:db8::1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-062/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-062/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-062/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-062/ip.out new file mode 100644 index 000000000..b98c5bd87 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-062/ip.out @@ -0,0 +1,2 @@ +[{"ifname":"ip6t1","mode":"ipv6/ipv6","remote":"2001:db8::2","local":"2001:db8::1","link":"d0","ip6_tnl_f_ign_encap_limit":null,"hoplimit":1,"ip6_tnl_f_use_orig_tclass":null,"flowlabel":"0x12345","flowinfo":"0x00012345","ip6_tnl_f_allow_local_remote":null} +] diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-062/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tunnel/pw-062/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..ab3f998011128dfaf3db29053e3dbc1140d85bed GIT binary patch literal 10896 zcmeI2KWG#|6vp4)Tr~fUa*c%$8zZQgXtNDi^ExJD}r(