pidfile = pidbuf;
}
- int fd = open(pidfile, O_WRONLY | O_CREAT);
+ int fd = open(pidfile, O_WRONLY | O_CREAT, 0644);
if (fd >= 0) {
char buf[8];
int len = snprintf(buf, sizeof(buf), "%i\n", getpid());
" -N <mode> Mode for requesting addresses [try|force|none]\n"
" -P <length> Request IPv6-Prefix (0 = auto)\n"
" -F Force IPv6-Prefix\n"
- " -V <hex-string> Set vendor-class option. string length must be a multiple of 2\n"
+ " -V <class> Set vendor-class option (base-16 encoded)\n"
#ifdef EXT_BFD_PING
" -B <interval> Enable BFD ping check\n"
#endif
" -a Don't send Accept Reconfigure option\n"
" -f Don't send Client FQDN option\n"
" -k Don't send a RELEASE when stopping\n"
- " -t <seconds> Maximum timeout for DHCPv6-SOLICIT (120)\n"
+ " -t <seconds> Maximum timeout for DHCPv6-SOLICIT (3600)\n"
"\nInvocation options:\n"
" -p <pidfile> Set pidfile (/var/run/odhcp6c.pid)\n"
" -d Daemonize\n"
if (new->valid > 0) {
if (x) {
- if (new->valid >= x->valid && new->valid - x->valid < 60 &&
+ if (new->valid >= x->valid && new->valid != UINT32_MAX &&
+ new->valid - x->valid < 60 &&
new->preferred >= x->preferred &&
+ new->preferred != UINT32_MAX &&
new->preferred - x->preferred < 60 &&
x->class == new->class)
return false;