mirror of
https://github.com/LiBwrt-op/ipq50xx.git
synced 2025-12-17 07:22:56 +00:00
ChangeLog: https://github.com/ppp-project/ppp/blob/ppp-2.5.1/ChangeLog Suppressed patches: 010-use_target_for_configure.patch [1] 510-pptp_compile_fix.patch [2] 520-u_int_bsd_fix.patch [3] Upstreamed patches: 330-retain_foreign_default_routes.patch [4] 521-remove_unused_openssl_dep.patch [5] [1]e48a9b5de4[2] Merged into "500-add-pptp-plugin.patch" [3]797cdae57c[4]9856f47063[5]59342ab622Signed-off-by: Shiji Yang <yangshiji66@qq.com> Link: https://github.com/openwrt/openwrt/pull/16605 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
30 lines
788 B
Diff
30 lines
788 B
Diff
pppd: Don't use exponential timeout in discovery phase
|
|
|
|
This patch removes the exponential timeout increase between PADO or PADS
|
|
discovery attempts.
|
|
|
|
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
|
|
--- a/pppd/plugins/pppoe/discovery.c
|
|
+++ b/pppd/plugins/pppoe/discovery.c
|
|
@@ -689,7 +689,9 @@ discovery1(PPPoEConnection *conn, int wa
|
|
conn->discoveryState = STATE_SENT_PADI;
|
|
waitForPADO(conn, timeout, waitWholeTimeoutForPADO);
|
|
|
|
+#if 0
|
|
timeout *= 2;
|
|
+#endif
|
|
} while (conn->discoveryState == STATE_SENT_PADI);
|
|
}
|
|
|
|
@@ -719,7 +721,9 @@ discovery2(PPPoEConnection *conn)
|
|
sendPADR(conn);
|
|
conn->discoveryState = STATE_SENT_PADR;
|
|
waitForPADS(conn, timeout);
|
|
+#if 0
|
|
timeout *= 2;
|
|
+#endif
|
|
} while (conn->discoveryState == STATE_SENT_PADR);
|
|
|
|
if (!conn->seenMaxPayload) {
|