aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/ipv6/odhcp6c/files/dhcpv6.sh
diff options
context:
space:
mode:
authorSteven Barth <cyrus@openwrt.org>2013-02-01 12:28:39 +0000
committerSteven Barth <cyrus@openwrt.org>2013-02-01 12:28:39 +0000
commit9a62439c282490622d5817f3464b1870e9f1b87c (patch)
tree99fd5cae4bbbe2d335330c7031a7b7daa6f5f4a8 /package/network/ipv6/odhcp6c/files/dhcpv6.sh
parenta3368da479b7b830867512bdf0fb4a4d5c8d0400 (diff)
downloadupstream-9a62439c282490622d5817f3464b1870e9f1b87c.tar.gz
upstream-9a62439c282490622d5817f3464b1870e9f1b87c.tar.bz2
upstream-9a62439c282490622d5817f3464b1870e9f1b87c.zip
odhcp6c: switch to userspace RA-handling and offload address assignment to netifd
SVN-Revision: 35419
Diffstat (limited to 'package/network/ipv6/odhcp6c/files/dhcpv6.sh')
-rwxr-xr-xpackage/network/ipv6/odhcp6c/files/dhcpv6.sh7
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 14b6fb63b4..99867cd99d 100755
--- a/package/network/ipv6/odhcp6c/files/dhcpv6.sh
+++ b/package/network/ipv6/odhcp6c/files/dhcpv6.sh
@@ -9,14 +9,15 @@ proto_dhcpv6_init_config() {
proto_config_add_string "reqprefix"
proto_config_add_string "clientid"
proto_config_add_string "reqopts"
+ proto_config_add_string "allow_slaaconly"
}
proto_dhcpv6_setup() {
local config="$1"
local iface="$2"
- local reqaddress reqprefix clientid reqopts
- json_get_vars reqaddress reqprefix clientid reqopts
+ local reqaddress reqprefix clientid reqopts allow_slaaconly
+ json_get_vars reqaddress reqprefix clientid reqopts allow_slaaconly
# Configure
@@ -28,6 +29,8 @@ proto_dhcpv6_setup() {
[ -n "$clientid" ] && append opts "-c$clientid"
+ [ "$allow_slaaconly" = "1" ] && append opts "-S"
+
for opt in $reqopts; do
append opts "-r$opt"
done