summaryrefslogtreecommitdiffhomepage
path: root/libs/core/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-11-15 12:30:26 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-11-15 12:30:26 +0000
commit3ac93d53eae01e0bcb37f6055bc8b2ec86799a38 (patch)
tree14b45c2c227e84ab02e657396c911279d9b856c2 /libs/core/luasrc
parent59e3062cafcef9c6c59603404576da146623f0fb (diff)
libs/core: make network model 6to4 aware
Diffstat (limited to 'libs/core/luasrc')
-rw-r--r--libs/core/luasrc/model/network.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/core/luasrc/model/network.lua b/libs/core/luasrc/model/network.lua
index 7ef31b8626..7882c81a85 100644
--- a/libs/core/luasrc/model/network.lua
+++ b/libs/core/luasrc/model/network.lua
@@ -154,8 +154,8 @@ function _iface_ignore(x)
return (
x:match("^wmaster%d") or x:match("^wifi%d") or x:match("^hwsim%d") or
x:match("^imq%d") or x:match("^mon.wlan%d") or x:match("^6in4-%w") or
- x:match("^3g-%w") or x:match("^ppp-%w") or x:match("^pppoe-%w") or
- x:match("^pppoa-%w") or x == "lo"
+ x:match("^6to4-%w") or x:match("^3g-%w") or x:match("^ppp-%w") or
+ x:match("^pppoe-%w") or x:match("^pppoa-%w") or x == "lo"
)
end
@@ -546,7 +546,7 @@ end
function network.is_virtual(self)
local p = self:proto()
return (
- p == "3g" or p == "6in4" or p == "ppp" or
+ p == "3g" or p == "6in4" or p == "6to4" or p == "ppp" or
p == "pppoe" or p == "pppoa"
)
end