diff options
author | John Crispin <blogic@openwrt.org> | 2014-02-18 13:34:16 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-02-18 13:34:16 +0000 |
commit | 216641d3c0a617ef964c0a89c046ea7a3ecc06ce (patch) | |
tree | 6753cdc9f9bec961cc01dc0c94c6ae534c2c59dc | |
parent | 7e90362903d4bce505ecdc464a368d53162307c3 (diff) | |
download | upstream-216641d3c0a617ef964c0a89c046ea7a3ecc06ce.tar.gz upstream-216641d3c0a617ef964c0a89c046ea7a3ecc06ce.tar.bz2 upstream-216641d3c0a617ef964c0a89c046ea7a3ecc06ce.zip |
odhcp6c: add validation rules to proto handler
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39624 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-x | package/network/ipv6/odhcp6c/files/dhcpv6.sh | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/package/network/ipv6/odhcp6c/files/dhcpv6.sh b/package/network/ipv6/odhcp6c/files/dhcpv6.sh index 387fa300cc..07259735ff 100755 --- a/package/network/ipv6/odhcp6c/files/dhcpv6.sh +++ b/package/network/ipv6/odhcp6c/files/dhcpv6.sh @@ -5,19 +5,17 @@ init_proto "$@" proto_dhcpv6_init_config() { - proto_config_add_string "reqaddress" - proto_config_add_string "reqprefix" - proto_config_add_string "clientid" - proto_config_add_string "reqopts" - proto_config_add_string "noslaaconly" - proto_config_add_string "forceprefix" - proto_config_add_string "norelease" - proto_config_add_string "ip6prefix" - proto_config_add_string "iface_dslite" - proto_config_add_string "ifaceid" - proto_config_add_string "sourcerouting" - proto_config_add_string "userclass" - proto_config_add_string "vendorclass" + proto_config_add_string 'reqaddress:or("try","force","none")' + proto_config_add_string 'reqprefix:or("auto","no",range(0, 64))' + proto_config_add_string clientid + proto_config_add_string 'reqopts:list(uinteger)' + proto_config_add_string 'noslaaconly:bool' + proto_config_add_string 'forceprefix:bool' + proto_config_add_string 'norelease:bool' + proto_config_add_string 'ip6prefix:ip6addr' + proto_config_add_string iface_dslite + proto_config_add_string 'ifaceid:ip6addr' + proto_config_add_string 'sourcerouting:bool' } proto_dhcpv6_setup() { |