From 60f9b7b84d13f0dd33064b8f4692d989a76a33e7 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Thu, 29 Nov 2012 18:14:02 +0100 Subject: [PATCH] Wait 1 second between disable and enable calls --- src/odhcp6c.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/odhcp6c.c b/src/odhcp6c.c index b517204..940acd5 100644 --- a/src/odhcp6c.c +++ b/src/odhcp6c.c @@ -150,6 +150,8 @@ int main(_unused int argc, char* const argv[]) if (reset) { sysctl_interface(ifname, "accept_ra", "2"); sysctl_interface(ifname, "disable_ipv6", "1"); + struct timespec ts = {1, 0}; + nanosleep(&ts, NULL); sysctl_interface(ifname, "disable_ipv6", "0"); } -- 2.25.1