208-no_exponential_timeout.patch 867 B

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