Attached patch adds PPPTIMEOUT option. For modem and pptp links it sets
lcp-echo-interval to $PPPTIMEOUT/3 and lcp-echo-failure to 3. For pppoe links
it also adds -T $PPPTIMEOUT*4/3 to PTYOPTION.
from pppoe(8):
-T timeout
The -T option causes pppoe to exit if no session
traffic is detected for timeout seconds. I recom&#173;
mend that you use this option as an extra safety
measure, but if you do, you should make sure that
PPP generates enough traffic so the timeout will
normally not be triggered. The best way to do this
is to use the lcp-echo-interval option to pppd.
You should set the PPPoE timeout to be about four
times the LCP echo interval.
Not sure if this really needed...