From: Steven Barth Date: Sun, 5 May 2013 14:11:25 +0000 (+0200) Subject: Readjust call-delay to be more backward-compatible X-Git-Tag: debian/1.1+git20160131-1~154 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=493b90de720d198a988460bee83340dafbbfa10d;p=odhcp6c.git Readjust call-delay to be more backward-compatible --- diff --git a/src/odhcp6c.c b/src/odhcp6c.c index 6ce9adf..274a97a 100644 --- a/src/odhcp6c.c +++ b/src/odhcp6c.c @@ -40,7 +40,7 @@ static uint8_t *state_data[_STATE_MAX] = {NULL}; static size_t state_len[_STATE_MAX] = {0}; static volatile int do_signal = 0; -static int urandom_fd = -1, allow_slaac_only = 15; +static int urandom_fd = -1, allow_slaac_only = 0; static bool bound = false, release = true; @@ -76,6 +76,9 @@ int main(_unused int argc, char* const argv[]) break; case 'P': + if (allow_slaac_only >= 0 && allow_slaac_only < 10) + allow_slaac_only = 10; + request_pd = strtoul(optarg, NULL, 10); if (request_pd == 0) request_pd = -1; @@ -306,7 +309,7 @@ static int usage(void) const char buf[] = "Usage: odhcp6c [options] \n" "\nFeature options:\n" - " -S