summaryrefslogtreecommitdiffstats
path: root/package/network/config/netifd/files/lib
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-02-18 13:34:04 +0000
committerJohn Crispin <john@openwrt.org>2014-02-18 13:34:04 +0000
commit8fb44e0d1ec60393b76cf31427b0d2db1893e5d8 (patch)
tree6d55ba6aea47984498e1bdd9dc8c7b65ceb57765 /package/network/config/netifd/files/lib
parent26e850dafab44cc42e72123951bfa4064eec1919 (diff)
downloadmaster-31e0f0ae-8fb44e0d1ec60393b76cf31427b0d2db1893e5d8.tar.gz
master-31e0f0ae-8fb44e0d1ec60393b76cf31427b0d2db1893e5d8.tar.bz2
master-31e0f0ae-8fb44e0d1ec60393b76cf31427b0d2db1893e5d8.zip
netifd: add validation support
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 39621
Diffstat (limited to 'package/network/config/netifd/files/lib')
-rwxr-xr-xpackage/network/config/netifd/files/lib/netifd/proto/dhcp.sh18
1 files changed, 9 insertions, 9 deletions
diff --git a/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh b/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh
index 0117b27ff8..80668ee4fd 100755
--- a/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh
+++ b/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh
@@ -5,15 +5,15 @@
init_proto "$@"
proto_dhcp_init_config() {
- proto_config_add_string "ipaddr"
- proto_config_add_string "netmask"
- proto_config_add_string "hostname"
- proto_config_add_string "clientid"
- proto_config_add_string "vendorid"
- proto_config_add_boolean "broadcast"
- proto_config_add_string "reqopts"
- proto_config_add_string "iface6rd"
- proto_config_add_string "sendopts"
+ proto_config_add_string 'ipaddr:ipaddr'
+ proto_config_add_string 'netmask:ipaddr'
+ proto_config_add_string 'hostname:hostname'
+ proto_config_add_string clientid
+ proto_config_add_string vendorid
+ proto_config_add_boolean 'broadcast:ipaddr'
+ proto_config_add_string 'reqopts:list(string)'
+ proto_config_add_string iface6rd
+ proto_config_add_string sendopts
}
proto_dhcp_setup() {