X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=src%2Fodhcp6c.c;h=940acd56356c917eed967f293988617e8968fbba;hb=60f9b7b84d13f0dd33064b8f4692d989a76a33e7;hp=9126986ca7a2ed4b53ca5dc107e9ad7772ddd865;hpb=0b77e6065dc833da19ddff6e04e4f09c805c6883;p=odhcp6c.git diff --git a/src/odhcp6c.c b/src/odhcp6c.c index 9126986..940acd5 100644 --- a/src/odhcp6c.c +++ b/src/odhcp6c.c @@ -148,8 +148,10 @@ int main(_unused int argc, char* const argv[]) // Configure interface to accept RA if (reset) { - sysctl_interface(ifname, "disable_ipv6", "1"); 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"); } @@ -328,7 +330,6 @@ static uint8_t* odhcp6c_resize_state(enum odhcp6c_state state, ssize_t len) if (len == 0) return state_data[state] + state_len[state]; - syslog(LOG_WARNING, "state_reisze: %i %i %i", (int)state, (int)state_len[state], (int)len); uint8_t *n = realloc(state_data[state], state_len[state] + len); if (n || state_len[state] + len == 0) { state_data[state] = n;