205-no_exponential_timeout.patch 796 B

1234567891011121314151617181920212223242526272829
  1. pppd: Don't use exponential timeout in discovery phase
  2. This patch removes the exponential timeout increase between PADO or PADS
  3. discovery attempts.
  4. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
  5. --- a/pppd/plugins/rp-pppoe/discovery.c
  6. +++ b/pppd/plugins/rp-pppoe/discovery.c
  7. @@ -644,7 +644,9 @@ discovery(PPPoEConnection *conn)
  8. conn->discoveryState = STATE_SENT_PADI;
  9. waitForPADO(conn, timeout);
  10. +#if 0
  11. timeout *= 2;
  12. +#endif
  13. } while (conn->discoveryState == STATE_SENT_PADI);
  14. timeout = conn->discoveryTimeout;
  15. @@ -659,7 +661,9 @@ discovery(PPPoEConnection *conn)
  16. sendPADR(conn);
  17. conn->discoveryState = STATE_SENT_PADR;
  18. waitForPADS(conn, timeout);
  19. +#if 0
  20. timeout *= 2;
  21. +#endif
  22. } while (conn->discoveryState == STATE_SENT_PADR);
  23. if (!conn->seenMaxPayload) {