208-no_exponential_timeout.patch 901 B

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