diff options
author | Steven Barth <steven@midlink.org> | 2013-02-01 12:28:39 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2013-02-01 12:28:39 +0000 |
commit | 884f9354e37ae808deb1c4a6b90e88e6f4956f1d (patch) | |
tree | 68410b5f5fa621036a1c3395cb38acf4a3fdae6d /package/network/ipv6/odhcp6c/files/dhcpv6.sh | |
parent | 977543229a2d15173843f941f0e6c774cdfd971b (diff) | |
download | master-187ad058-884f9354e37ae808deb1c4a6b90e88e6f4956f1d.tar.gz master-187ad058-884f9354e37ae808deb1c4a6b90e88e6f4956f1d.tar.bz2 master-187ad058-884f9354e37ae808deb1c4a6b90e88e6f4956f1d.zip |
odhcp6c: switch to userspace RA-handling and offload address assignment to netifd
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35419 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/ipv6/odhcp6c/files/dhcpv6.sh')
-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 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 |