diff options
author | Steven Barth <steven@midlink.org> | 2013-10-07 08:43:33 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2013-10-07 08:43:33 +0000 |
commit | 9f6f08e80de70ed4b62a93834ee880a61b846c47 (patch) | |
tree | 503eea09a9f85d9d56a41f8377440db55aac2ede /package/network/ipv6/odhcp6c/files | |
parent | 7dbe38610428d1a443bf5726dd0a2bbf6a8b4d8c (diff) | |
download | upstream-9f6f08e80de70ed4b62a93834ee880a61b846c47.tar.gz upstream-9f6f08e80de70ed4b62a93834ee880a61b846c47.tar.bz2 upstream-9f6f08e80de70ed4b62a93834ee880a61b846c47.zip |
odhcp6c: improve server selection, introduce "forceprefix" option
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38314 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/ipv6/odhcp6c/files')
-rwxr-xr-x | package/network/ipv6/odhcp6c/files/dhcpv6.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/package/network/ipv6/odhcp6c/files/dhcpv6.sh b/package/network/ipv6/odhcp6c/files/dhcpv6.sh index bf6cd9aa62..ab344e1d30 100755 --- a/package/network/ipv6/odhcp6c/files/dhcpv6.sh +++ b/package/network/ipv6/odhcp6c/files/dhcpv6.sh @@ -10,6 +10,7 @@ proto_dhcpv6_init_config() { 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" @@ -20,8 +21,8 @@ proto_dhcpv6_setup() { local config="$1" local iface="$2" - local reqaddress reqprefix clientid reqopts noslaaconly norelease ip6prefix iface_dslite ifaceid - json_get_vars reqaddress reqprefix clientid reqopts noslaaconly norelease ip6prefix iface_dslite ifaceid + local reqaddress reqprefix clientid reqopts noslaaconly forceprefix norelease ip6prefix iface_dslite ifaceid + json_get_vars reqaddress reqprefix clientid reqopts noslaaconly forceprefix norelease ip6prefix iface_dslite ifaceid # Configure @@ -35,6 +36,8 @@ proto_dhcpv6_setup() { [ "$noslaaconly" = "1" ] && append opts "-S" + [ "$forceprefix" = "1" ] && append opts "-F" + [ "$norelease" = "1" ] && append opts "-k" [ -n "$ifaceid" ] && append opts "-i$ifaceid" |