]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Reduce the buggy PPP wait to 1 second.
authorRoy Marples <roy@marples.name>
Wed, 19 Jun 2013 09:41:30 +0000 (09:41 +0000)
committerRoy Marples <roy@marples.name>
Wed, 19 Jun 2013 09:41:30 +0000 (09:41 +0000)
dhcp6.c

diff --git a/dhcp6.c b/dhcp6.c
index d7ba778952d245e7f043334f1d1f940d391c2e1a..89780fe7106933aa44a539f27903a762c23592c0 100644 (file)
--- a/dhcp6.c
+++ b/dhcp6.c
@@ -747,9 +747,9 @@ dhcp6_sendmessage(struct interface *ifp, void (*callback)(void *))
                        /* Some buggy PPP servers close the link too early
                         * after sending an invalid status in their reply
                         * which means this host won't see it.
-                        * 2 seconds grace seems to be the sweet spot. */
+                        * 1 second grace seems to be the sweet spot. */
                        if (ifp->flags & IFF_POINTOPOINT)
-                               state->RT.tv_sec = 2;
+                               state->RT.tv_sec = 1;
                        else
                                state->RT.tv_sec = 0;
                        state->RT.tv_usec = arc4random() %