On Wed, Mar 26, 2014 at 5:41 PM, Jonas Gorski <[email protected]> wrote: > On Wed, Mar 26, 2014 at 5:11 PM, Helmut Schaa > <[email protected]> wrote: >> >> Signed-off-by: Helmut Schaa <[email protected]> >> --- >> >> Changes in v2: Tell netifd core that we have a renew handler >> >> >> package/network/ipv6/odhcp6c/files/dhcpv6.sh | 8 ++++++++ >> 1 file changed, 8 insertions(+) >> >> diff --git a/package/network/ipv6/odhcp6c/files/dhcpv6.sh >> b/package/network/ipv6/odhcp6c/files/dhcpv6.sh >> index 9b6275e..cd03c25 100755 >> --- a/package/network/ipv6/odhcp6c/files/dhcpv6.sh >> +++ b/package/network/ipv6/odhcp6c/files/dhcpv6.sh >> @@ -5,6 +5,8 @@ >> init_proto "$@" >> >> proto_dhcpv6_init_config() { >> + renew_handler=1 >> + >> 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 >> @@ -67,6 +69,12 @@ proto_dhcpv6_setup() { >> $opts $iface >> } >> >> +proto_dhcpv6_renew() { >> + local interface="$1" >> + # SIGUSR1 forces odhcp6c to renew its lease >> + proto_kill_command "$interface" 16 > > SIGUSR1 is 16 only for mips; other arches use different values (see > e.g. > <http://de.wikipedia.org/wiki/Signal_(Computer)#G.C3.A4ngige_UNIX-Signale>).
Ouch, thanks for catching that! Helmut _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
