]> git.decadent.org.uk Git - odhcp6c.git/blobdiff - src/odhcp6c.c
Fix default sol max rt value in help text
[odhcp6c.git] / src / odhcp6c.c
index dbe2bdf04528997b0f015b39e66f9c79b0abb5dc..868e1c652b26df905f1a13b4b8cafd8547126d8b 100644 (file)
@@ -446,7 +446,7 @@ static int usage(void)
        "       -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"
@@ -592,8 +592,10 @@ bool odhcp6c_update_entry_safe(enum odhcp6c_state state, struct odhcp6c_entry *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;