protocols: fix contains_interface() implementation in several backends
authorJo-Philipp Wich <jo@mein.io>
Tue, 6 Aug 2019 13:19:15 +0000 (15:19 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 6 Aug 2019 13:21:17 +0000 (15:21 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 1fc8d021edc6d60b49b607c917d23b0655a69d47)

protocols/luci-proto-3g/luasrc/model/network/proto_3g.lua
protocols/luci-proto-ipv6/luasrc/model/network/proto_4x6.lua
protocols/luci-proto-ipv6/luasrc/model/network/proto_6x4.lua

index b2454838f90803b72b97105d9901fae2e9ce1444..60d8e2ebae20b38ce38931e29885c339d2bf99b4 100644 (file)
@@ -38,7 +38,7 @@ function proto.get_interfaces(self)
        return nil
 end
 
-function proto.contains_interface(self, ifname)
+function proto.contains_interface(self, ifc)
        if self:is_floating() then
                return (netmod:ifnameof(ifc) == self:ifname())
        else
index 7508e0d4b00cb622df8a4e8c769df78a7872b2a5..0b329d8a92bb08dc387a4cce705e3194140abcc9 100644 (file)
@@ -49,7 +49,7 @@ for _, p in ipairs({"dslite", "map", "464xlat"}) do
                return nil
        end
 
-       function proto.contains_interface(self, ifname)
+       function proto.contains_interface(self, ifc)
                return (netmod:ifnameof(ifc) == self:ifname())
        end
 end
index 9a4396c5be431d33cfadd60789040c7fe0bc7547..2fd0b119578a7466f24da38a0a3c6141a2aca040 100644 (file)
@@ -42,7 +42,7 @@ for _, p in ipairs({"6in4", "6to4", "6rd"}) do
                return nil
        end
 
-       function proto.contains_interface(self, ifname)
+       function proto.contains_interface(self, ifc)
                return (netmod:ifnameof(ifc) == self:ifname())
        end