From 15a23fd99be64e7f22b97d0321cf1f6c954f5626 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Wed, 10 May 2023 17:29:33 +0000 Subject: 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. --- sys/man/8/ppp | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/sys/man/8/ppp b/sys/man/8/ppp index 66ebb7bfd..1bd8b58d2 100644 --- a/sys/man/8/ppp +++ b/sys/man/8/ppp @@ -34,7 +34,7 @@ ppp, pppoe, pptp, pptpd \- point-to-point protocol .PP .B ip/pppoe [ -.B -PdcC +.B -PdcCr ] [ .B -A @@ -218,6 +218,21 @@ and pass 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 .I srvname -- cgit v1.2.3