ref: 15a23fd99be64e7f22b97d0321cf1f6c954f5626
parent: 7742661aebb96a26f1cb34a68bcf631065913806
author: cinap_lenrek <[email protected]>
date: Wed May 10 13:29:33 EDT 2023
ip/pppoe: Handle termination request, add retry-forever (-r) option This implements a retry strategy (similar to ip/ipconfig -r), continuing to attempt to connect forever. Also handle termination request from the server.
--- a/sys/man/8/ppp
+++ b/sys/man/8/ppp
@@ -34,7 +34,7 @@
.PP
.B ip/pppoe
[
-.B -PdcC
+.B -PdcCr
]
[
.B -A
@@ -217,6 +217,21 @@
.B -d
to
.I ppp
+.TP
+.B r
+by default,
+.I pppoe
+exits after trying PPPoE discovery for 16 seconds
+with no answer or when
+.I ppp
+terminates the session.
+This option directs
+.I pppoe
+instead to fork a background process that keeps
+trying forever, and also re-establishes the session
+when
+.I ppp
+terminates.
.TP
.B S
insist on a service named