From 493b90de720d198a988460bee83340dafbbfa10d Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sun, 5 May 2013 16:11:25 +0200 Subject: [PATCH] Readjust call-delay to be more backward-compatible --- src/odhcp6c.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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