diff options
author | John Crispin <john@openwrt.org> | 2014-02-18 13:34:04 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2014-02-18 13:34:04 +0000 |
commit | 8fb44e0d1ec60393b76cf31427b0d2db1893e5d8 (patch) | |
tree | 6d55ba6aea47984498e1bdd9dc8c7b65ceb57765 /package/network/config/netifd/files/lib | |
parent | 26e850dafab44cc42e72123951bfa4064eec1919 (diff) | |
download | upstream-8fb44e0d1ec60393b76cf31427b0d2db1893e5d8.tar.gz upstream-8fb44e0d1ec60393b76cf31427b0d2db1893e5d8.tar.bz2 upstream-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-x | package/network/config/netifd/files/lib/netifd/proto/dhcp.sh | 18 |
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() { |