summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-diag-devinfo/root
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-07-17 20:27:05 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-07-17 20:27:05 +0000
commit820f11932f548182ebb32704e1df83b78e69b19e (patch)
treece56e5183f28520ce6078aa5fd723d8bb3f2b310 /applications/luci-diag-devinfo/root
parent768bf67b867df0fde2715308eef482cb677a8566 (diff)
[PATCH] add tools to scan network for any device, or for sip devices, and output device information, thanks cshore
Diffstat (limited to 'applications/luci-diag-devinfo/root')
-rw-r--r--applications/luci-diag-devinfo/root/etc/config/luci_devinfo20
-rw-r--r--applications/luci-diag-devinfo/root/lib/uci/schema/default/luci_devinfo109
-rw-r--r--applications/luci-diag-devinfo/root/lib/uci/schema/default/mactodevinfo57
3 files changed, 186 insertions, 0 deletions
diff --git a/applications/luci-diag-devinfo/root/etc/config/luci_devinfo b/applications/luci-diag-devinfo/root/etc/config/luci_devinfo
new file mode 100644
index 0000000000..1bcdc198c0
--- /dev/null
+++ b/applications/luci-diag-devinfo/root/etc/config/luci_devinfo
@@ -0,0 +1,20 @@
+config 'smap_scannet' 'SIP_LAN'
+ option 'enable' '0'
+ option 'interface' 'lan'
+ option 'subnet' '192.168.99.0/24'
+
+config 'smap_scannet' 'SIP_WAN'
+ option 'enable' '0'
+ option 'interface' 'wan'
+ option 'subnet' '216.218.0.0/16'
+
+config 'netdiscover_scannet' 'SCAN_LAN'
+ option 'enable' '0'
+ option 'interface' 'lan'
+ option 'subnet' '192.168.99.0/24'
+
+config 'netdiscover_scannet' 'SCAN_WAN'
+ option 'enable' '0'
+ option 'interface' 'wan'
+ option 'subnet' '216.218.0.0/16'
+
diff --git a/applications/luci-diag-devinfo/root/lib/uci/schema/default/luci_devinfo b/applications/luci-diag-devinfo/root/lib/uci/schema/default/luci_devinfo
new file mode 100644
index 0000000000..db63d1e610
--- /dev/null
+++ b/applications/luci-diag-devinfo/root/lib/uci/schema/default/luci_devinfo
@@ -0,0 +1,109 @@
+package luci_devinfo
+
+config package
+ option title 'Device Info Scanning Configuration'
+
+config section
+ option name 'smap_scannet'
+ option title 'SMAP scanning network configuration'
+ option package 'luci_devinfo'
+ option named 'true'
+ option required 'true'
+
+config variable
+ option name 'subnet'
+ option title 'Subnet to scan'
+ option section 'luci_devinfo.smap_scannet'
+ option datatype 'ip4addr'
+ option required 'true'
+
+config variable
+ option name 'ports'
+ option title 'Ports to scan'
+ option section 'luci_devinfo.smap_scannet'
+ option datatype 'string'
+
+config variable
+ option name 'enable'
+ option title 'Enable'
+ option section 'luci_devinfo.smap_scannet'
+ option datatype 'boolean'
+ option required 'true'
+
+config variable
+ option name 'timeout'
+ option title 'Seconds to wait for responses to scan'
+ option section 'luci_devinfo.smap_scannet'
+ option datatype 'uint'
+ option required 'false'
+
+config variable
+ option name 'interface'
+ option title 'Interface'
+ option section 'luci_devinfo.smap_scannet'
+ option datatype 'string'
+ option required 'true'
+
+config variable
+ option name 'repeat_count'
+ option title 'Repeat Count'
+ option section 'luci_devinfo.smap_scannet'
+ option datatype 'uint'
+ option required 'false'
+
+config variable
+ option name 'sleepreq'
+ option title 'Sleep between requests'
+ option section 'luci_devinfo.smap_scannet'
+ option datatype 'uint'
+ option required 'false'
+
+config section
+ option name 'netdiscover_scannet'
+ option title 'Network scanning configuration'
+ option package 'luci_devinfo'
+ option named true
+ option required true
+
+config variable
+ option name 'subnet'
+ option title 'Subnet to scan'
+ option section 'luci_devinfo.netdiscover_scannet'
+ option datatype 'ip4addr'
+ option required 'true'
+
+config variable
+ option name 'interface'
+ option title 'Interface to use for scan'
+ option section 'luci_devinfo.netdiscover_scannet'
+ option datatype 'string'
+ option required 'true'
+
+config variable
+ option name 'enable'
+ option title 'Enable'
+ option section 'luci_devinfo.netdiscover_scannet'
+ option datatype 'boolean'
+ option required 'true'
+
+config variable
+ option name 'timeout'
+ option title 'Seconds to wait for responses to scan'
+ option section 'luci_devinfo.netdiscover_scannet'
+ option datatype 'uint'
+ option required 'false'
+
+config variable
+ option name 'repeat_count'
+ option title 'Repeat Count'
+ option section 'luci_devinfo.netdiscover_scannet'
+ option datatype 'uint'
+ option required 'false'
+
+config variable
+ option name 'sleepreq'
+ option title 'Sleep between requests'
+ option section 'luci_devinfo.netdiscover_scannet'
+ option datatype 'uint'
+ option required 'false'
+
diff --git a/applications/luci-diag-devinfo/root/lib/uci/schema/default/mactodevinfo b/applications/luci-diag-devinfo/root/lib/uci/schema/default/mactodevinfo
new file mode 100644
index 0000000000..f846e000a1
--- /dev/null
+++ b/applications/luci-diag-devinfo/root/lib/uci/schema/default/mactodevinfo
@@ -0,0 +1,57 @@
+package luci-devinfo
+
+config package
+ option title 'MAC Device Info Overrides'
+
+config section
+ option name 'mactodevinfo'
+ option title 'MAC Device Info Override'
+ option package 'mactodevinfo'
+ option named 'false'
+ option required 'false'
+
+config variable
+ option name 'name'
+ option title 'Name for Device'
+ option section 'mactodevinfo.name'
+ option datatype 'string'
+
+config variable
+ option name 'maclow'
+ option title 'Beginning of MAC address range'
+ option section 'mactodevinfo.maclow'
+ option datatype 'macaddr'
+ option required 'true'
+
+config variable
+ option name 'machigh'
+ option title 'End of MAC address range'
+ option section 'mactodevinfo.machigh'
+ option datatype 'macaddr'
+ option required 'true'
+
+config variable
+ option name 'vendor'
+ option title 'Vendor'
+ option section 'mactodevinfo.vendor'
+ option datatype 'string'
+
+config variable
+ option name 'devtype'
+ option title 'Device Type'
+ option section 'mactodevinfo.devtype'
+ option datatype 'string'
+ option required 'true'
+
+config variable
+ option name 'model'
+ option title 'Device Type'
+ option section 'mactodevinfo.model'
+ option datatype 'string'
+ option required 'true'
+
+config variable
+ option name 'ouiowneroverride'
+ option title 'OUI Owner Override'
+ option section 'mactodevinfo.ouiowneroverride'
+ option datatype 'string'