dhcpv6: set default solicit timeout back to 120s
authorSteven Barth <cyrus@openwrt.org>
Wed, 4 Jun 2014 09:59:45 +0000 (09:59 +0000)
committerSteven Barth <cyrus@openwrt.org>
Wed, 4 Jun 2014 09:59:45 +0000 (09:59 +0000)
This deliberatly breaks RFC 7083 since its not really user-friendly.

SVN-Revision: 41001

package/network/ipv6/odhcp6c/Makefile
package/network/ipv6/odhcp6c/files/dhcpv6.sh

index 2aa4200d7572c155b110f4f18f1e1bfdaec02dc7..7ad9bd284d726ecfb25a72cc092616f0054fb454 100644 (file)
@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=odhcp6c
-PKG_VERSION:=2014-05-30
+PKG_VERSION:=2014-06-04
 PKG_RELEASE=$(PKG_SOURCE_VERSION)
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
index 226ca76d049b914bc5ac26f8f2a878210dbeaffc..1c6d609d4365500754962f60d1e5f67dfe50a989 100755 (executable)
@@ -24,14 +24,15 @@ proto_dhcpv6_init_config() {
        proto_config_add_string "userclass"
        proto_config_add_string "vendorclass"
        proto_config_add_boolean delegate
+       proto_config_add_int "soltimeout"
 }
 
 proto_dhcpv6_setup() {
        local config="$1"
        local iface="$2"
 
-       local reqaddress reqprefix clientid reqopts noslaaconly forceprefix norelease ip6prefix iface_dslite iface_map ifaceid sourcerouting userclass vendorclass delegate zone_dslite zone_map
-       json_get_vars reqaddress reqprefix clientid reqopts noslaaconly forceprefix norelease ip6prefix iface_dslite iface_map ifaceid sourcerouting userclass vendorclass delegate zone_dslite zone_map
+       local reqaddress reqprefix clientid reqopts noslaaconly forceprefix norelease ip6prefix iface_dslite iface_map ifaceid sourcerouting userclass vendorclass delegate zone_dslite zone_map soltimeout
+       json_get_vars reqaddress reqprefix clientid reqopts noslaaconly forceprefix norelease ip6prefix iface_dslite iface_map ifaceid sourcerouting userclass vendorclass delegate zone_dslite zone_map soltimeout
 
 
        # Configure
@@ -59,6 +60,8 @@ proto_dhcpv6_setup() {
                append opts "-r$opt"
        done
 
+       append opts "-t${soltimeout:-120}"
+
        [ -n "$ip6prefix" ] && proto_export "USERPREFIX=$ip6prefix"
        [ -n "$iface_dslite" ] && proto_export "IFACE_DSLITE=$iface_dslite"
        [ -n "$iface_map" ] && proto_export "IFACE_MAP=$iface_map"