patch-pppd_plugins_rp-pppoe_discovery_c 848 B

123456789101112131415161718192021222324252627
  1. --- ppp-2.4.4.orig/pppd/plugins/rp-pppoe/discovery.c 2005-03-22 11:22:32.000000000 +0100
  2. +++ ppp-2.4.4/pppd/plugins/rp-pppoe/discovery.c 2009-06-05 19:12:00.000000000 +0200
  3. @@ -607,12 +607,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. @@ -635,7 +637,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. */