diff options
author | Steven Barth <steven@midlink.org> | 2013-05-05 16:11:25 +0200 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2013-05-05 16:11:25 +0200 |
commit | 493b90de720d198a988460bee83340dafbbfa10d (patch) | |
tree | db0e280f21f1f4bf290d4e2272078a4aa6736765 /src/odhcp6c.c | |
parent | d09e94fff82440cedf04f2e0cfe1ede8a0ab0600 (diff) | |
download | odhcp6c-493b90de720d198a988460bee83340dafbbfa10d.tar.gz |
Readjust call-delay to be more backward-compatible
Diffstat (limited to 'src/odhcp6c.c')
-rw-r--r-- | src/odhcp6c.c | 7 |
1 files 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] <interface>\n" "\nFeature options:\n" - " -S <time> Wait at least <time> sec for a DHCP-server (15)\n" + " -S <time> Wait at least <time> sec for a DHCP-server (0)\n" " -N <mode> Mode for requesting addresses [try|force|none]\n" " -P <length> Request IPv6-Prefix (0 = auto)\n" " -c <clientid> Override client-ID (base-16 encoded)\n" |