projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
admin-full/diagnostics: Allow to use ping6 and traceroute6 when available, #487
[project/luci.git]
/
modules
/
admin-full
/
luasrc
/
controller
/
admin
/
network.lua
diff --git
a/modules/admin-full/luasrc/controller/admin/network.lua
b/modules/admin-full/luasrc/controller/admin/network.lua
index
85dc68f
..
6f55ff7
100644
(file)
--- a/
modules/admin-full/luasrc/controller/admin/network.lua
+++ b/
modules/admin-full/luasrc/controller/admin/network.lua
@@
-156,6
+156,12
@@
function index()
page = entry({"admin", "network", "diag_traceroute"}, call("diag_traceroute"), nil)
page.leaf = true
page = entry({"admin", "network", "diag_traceroute"}, call("diag_traceroute"), nil)
page.leaf = true
+
+ page = entry({"admin", "network", "diag_ping6"}, call("diag_ping6"), nil)
+ page.leaf = true
+
+ page = entry({"admin", "network", "diag_traceroute6"}, call("diag_traceroute6"), nil)
+ page.leaf = true
-- end
end
-- end
end
@@
-463,3
+469,11
@@
end
function diag_nslookup()
diag_command("nslookup %q 2>&1")
end
function diag_nslookup()
diag_command("nslookup %q 2>&1")
end
+
+function diag_ping6()
+ diag_command("ping6 -c 5 %q 2>&1")
+end
+
+function diag_traceroute6()
+ diag_command("traceroute6 -q 1 -w 2 -n %q 2>&1")
+end