base-files: remove an old network tunable tweak which is messing up network stack...
[openwrt-10.03/.git] / package / ppp / patches / 205-no_exponential_timeout.patch
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  
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 @@ discovery(PPPoEConnection *conn)
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  
27      /* We're done. */