Interface was hardcoded, (cut/paste from the testing openwrt machine)
[openwrt.git] / openwrt / package / ppp / patches / 208-no_exponential_timeout.patch
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
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
28 /* We're done. */
This page took 0.045712 seconds and 5 git commands to generate.