205-no_exponential_timeout.patch 755 B

123456789101112131415161718192021222324252627
  1. --- a/pppd/plugins/rp-pppoe/discovery.c
  2. +++ b/pppd/plugins/rp-pppoe/discovery.c
  3. @@ -593,12 +593,14 @@ discovery(PPPoEConnection *conn)
  4. conn->discoveryState = STATE_SENT_PADI;
  5. waitForPADO(conn, timeout);
  6. +#if 0
  7. /* If we're just probing for access concentrators, don't do
  8. exponential backoff. This reduces the time for an unsuccessful
  9. probe to 15 seconds. */
  10. if (!conn->printACNames) {
  11. timeout *= 2;
  12. }
  13. +#endif
  14. if (conn->printACNames && conn->numPADOs) {
  15. break;
  16. }
  17. @@ -621,7 +623,9 @@ discovery(PPPoEConnection *conn)
  18. sendPADR(conn);
  19. conn->discoveryState = STATE_SENT_PADR;
  20. waitForPADS(conn, timeout);
  21. +#if 0
  22. timeout *= 2;
  23. +#endif
  24. } while (conn->discoveryState == STATE_SENT_PADR);
  25. /* We're done. */