summaryrefslogtreecommitdiffstats
path: root/tests/01_configuration/09_flow_offloading_zone_wildcard_old_kernel
blob: e2a65edace522bb962fefa49324d0f83c7e828fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Testing that software flow offloading leaves out a wildcard zone device
before Linux 6.17, which refuses a name prefix in a flowtable.

-- Testcase --
{%
	fw4.load(false);
	print(fw4.resolve_offload_devices(), "\n");
%}
-- End --

-- File fs/open~_proc_version.txt --
Linux version 6.12.57 (builder@host) (aarch64-openwrt-linux-musl-gcc) #0 SMP
-- End --

-- File uci/helpers.json --
{}
-- End --

-- File uci/firewall.json --
{
	"defaults": [
		{
			"flow_offloading": "1"
		}
	],
	"zone": [
		{
			"name": "lan",
			"network": "lan",
			"auto_helper": 0
		},
		{
			"name": "wan",
			"network": "wan",
			"auto_helper": 0
		},
		{
			"name": "docker",
			"device": [ "docker0", "tap+", "!veth9" ],
			"auto_helper": 0
		}
	]
}
-- End --

-- File fs/opendir~_sys_class_net_docker0.json --
[ "lower_vethc1a2" ]
-- End --

-- File fs/opendir~_sys_class_net_vethc1a2.json --
[]
-- End --

-- File fs/open~_sys_class_net_docker0_uevent.txt --
DEVTYPE=bridge
INTERFACE=docker0
IFINDEX=21
-- End --

-- File fs/open~_sys_class_net_vethc1a2_uevent.txt --
INTERFACE=vethc1a2
IFINDEX=23
-- End --

-- Expect stdout --
[ "eth0", "eth1", "pppoe-wan", "vethc1a2" ]
-- End --