X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=src%2Fodhcp6c.c;h=c4ce7d77155a8d1532efe24a263ae5678fa81f52;hb=415cfbe06f7b9ee604237f69d475fe0d1953986e;hp=1e8e2bc9a4023da3381578b7d56f304d959bf858;hpb=6bc0cfdb63197040a0f40e4323b3e3c48f3ed6cb;p=odhcp6c.git diff --git a/src/odhcp6c.c b/src/odhcp6c.c index 1e8e2bc..c4ce7d7 100644 --- a/src/odhcp6c.c +++ b/src/odhcp6c.c @@ -62,7 +62,7 @@ int main(_unused int argc, char* const argv[]) char *optpos; uint16_t opttype; enum odhcp6c_ia_mode ia_na_mode = IA_MODE_TRY; - enum odhcp6c_ia_mode ia_pd_mode = IA_MODE_TRY; + enum odhcp6c_ia_mode ia_pd_mode = IA_MODE_NONE; int ia_pd_iaid_index = 0; static struct in6_addr ifid = IN6ADDR_ANY_INIT; int sol_timeout = DHCPV6_SOL_MAX_RT; @@ -104,6 +104,9 @@ int main(_unused int argc, char* const argv[]) break; case 'P': + if (ia_pd_mode == IA_MODE_NONE) + ia_pd_mode = IA_MODE_TRY; + if (allow_slaac_only >= 0 && allow_slaac_only < 10) allow_slaac_only = 10; @@ -436,7 +439,7 @@ static int usage(void) " -k Don't send a RELEASE when stopping\n" " -t Maximum timeout for DHCPv6-SOLICIT (120)\n" "\nInvocation options:\n" - " -p Set pidfile (/var/run/6relayd.pid)\n" + " -p Set pidfile (/var/run/odhcp6c.pid)\n" " -d Daemonize\n" " -e Write logmessages to stderr\n" //" -v Increase logging verbosity\n"