1 pppd: Don't use exponential timeout in discovery phase
3 This patch removes the exponential timeout increase between PADO or PADS
6 Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 --- a/pppd/plugins/rp-pppoe/discovery.c
9 +++ b/pppd/plugins/rp-pppoe/discovery.c
10 @@ -548,7 +548,9 @@ discovery(PPPoEConnection *conn)
11 conn->discoveryState = STATE_SENT_PADI;
12 waitForPADO(conn, timeout);
17 } while (conn->discoveryState == STATE_SENT_PADI);
19 timeout = conn->discoveryTimeout;
20 @@ -563,7 +565,9 @@ discovery(PPPoEConnection *conn)
22 conn->discoveryState = STATE_SENT_PADR;
23 waitForPADS(conn, timeout);
27 } while (conn->discoveryState == STATE_SENT_PADR);