git: 9front

Download patch

ref: 11055d614b62f3d8684612b33d0e5e23c84f0525
parent: aafde93236dd979ba9a8fb23933840d37e05e80a
author: cinap_lenrek <cinap_lenrek@felloff.net>
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
--