diff options
author | Steven Barth <steven@midlink.org> | 2008-08-13 16:18:39 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-08-13 16:18:39 +0000 |
commit | 36f1dac36f14cbc53ece4d208d366e3203fd4a8c (patch) | |
tree | 560aaa30333e42fc344bfbc6fb350730675a8b00 /modules/admin-core | |
parent | 40d6a3c57e75b48d008006f87bfb07caef94c343 (diff) |
User interface improvements part #2
Diffstat (limited to 'modules/admin-core')
-rw-r--r-- | modules/admin-core/luasrc/tools/webadmin.lua | 7 |
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 |