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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
Testing that the hardware offload flowtable lists the WDS station ports of a
wireless bridge member by name prefix, in place of the ports that exist at
the time of the render. A wireless member whose name leaves no room for a
port name gets no prefix. Name prefixes need Linux 6.17 or later.
-- Testcase --
{%
fw4.load(false);
print(fw4.resolve_offload_devices(), "\n");
%}
-- End --
-- File fs/open~_proc_version.txt --
Linux version 6.18.55 (builder@host) (aarch64-openwrt-linux-musl-gcc) #0 SMP
-- End --
-- File uci/helpers.json --
{}
-- End --
-- File uci/firewall.json --
{
"defaults": [
{
"flow_offloading": 1,
"flow_offloading_hw": 1
}
],
"zone": [
{
"name": "lan",
"network": "lan",
"auto_helper": 0
},
{
"name": "wan",
"network": "wan",
"auto_helper": 0
}
]
}
-- End --
-- File fs/opendir~_sys_class_net_br-lan.json --
[
"lower_eth0",
"lower_wlan0",
"lower_wlan0.sta1",
"lower_wlan0.sta2",
"lower_wlan0-long-ap"
]
-- End --
-- File fs/opendir~_sys_class_net_wlan0-long-ap.json --
[]
-- End --
-- File fs/open~_sys_class_net_wlan0-long-ap_uevent.txt --
DEVTYPE=wlan
INTERFACE=wlan0-long-ap
IFINDEX=8
-- End --
-- File fs/opendir~_sys_class_net_wlan0.json --
[]
-- End --
-- File fs/opendir~_sys_class_net_wlan0_sta1.json --
[]
-- End --
-- File fs/opendir~_sys_class_net_wlan0_sta2.json --
[]
-- End --
-- File fs/open~_sys_class_net_wlan0_sta1_uevent.txt --
DEVTYPE=wlan
INTERFACE=wlan0.sta1
IFINDEX=9
-- End --
-- File fs/open~_sys_class_net_wlan0_sta2_uevent.txt --
DEVTYPE=wlan
INTERFACE=wlan0.sta2
IFINDEX=10
-- End --
-- File fs/open~_sys_class_net_wlan0_uevent.txt --
DEVTYPE=wlan
INTERFACE=wlan0
IFINDEX=7
-- End --
-- Expect stdout --
[ "eth0", "eth1", "pppoe-wan", "wlan0", "wlan0-long-ap", "wlan0.sta*" ]
-- End --
|