summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-08-13 16:18:39 +0000
committerSteven Barth <steven@midlink.org>2008-08-13 16:18:39 +0000
commit36f1dac36f14cbc53ece4d208d366e3203fd4a8c (patch)
tree560aaa30333e42fc344bfbc6fb350730675a8b00 /modules
parent40d6a3c57e75b48d008006f87bfb07caef94c343 (diff)
User interface improvements part #2
Diffstat (limited to 'modules')
-rw-r--r--modules/admin-core/luasrc/tools/webadmin.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/admin-core/luasrc/tools/webadmin.lua b/modules/admin-core/luasrc/tools/webadmin.lua
index b9f18ac40..3664997a5 100644
--- a/modules/admin-core/luasrc/tools/webadmin.lua
+++ b/modules/admin-core/luasrc/tools/webadmin.lua
@@ -15,6 +15,7 @@ $Id$
module("luci.tools.webadmin", package.seeall)
require("luci.model.uci")
+require("luci.sys")
function byte_format(byte)
local suff = {"B", "KB", "MB", "GB", "TB"}
@@ -35,4 +36,10 @@ function cbi_add_networks(field)
end
end
)
+end
+
+function cbi_add_knownips(field)
+ for i, dataset in ipairs(luci.sys.net.arptable()) do
+ field:value(dataset["IP address"])
+ end
end \ No newline at end of file