Wait 1 second between disable and enable calls
authorSteven Barth <steven@midlink.org>
Thu, 29 Nov 2012 17:14:02 +0000 (18:14 +0100)
committerSteven Barth <steven@midlink.org>
Thu, 29 Nov 2012 17:14:02 +0000 (18:14 +0100)
src/odhcp6c.c

index b517204829d20fc5e02f17f07e41dcb2457d95b1..940acd56356c917eed967f293988617e8968fbba 100644 (file)
@@ -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");
        }