Some fixes from jmc@openbsd.

This commit is contained in:
wiz 2004-12-05 13:17:35 +00:00
parent d2773f76b5
commit 6db487450e

View File

@ -1,4 +1,4 @@
.\" $NetBSD: pppoe.4,v 1.26 2003/10/02 07:06:36 wiz Exp $
.\" $NetBSD: pppoe.4,v 1.27 2004/12/05 13:17:35 wiz Exp $
.\"
.\" Copyright (c) 2002 The NetBSD Foundation, Inc.
.\" All rights reserved.
@ -78,7 +78,8 @@ mode, selected by setting
.Em link1 ,
only establishes a connection when data is being sent to the interface.
.Pp
If the kernel is compiled with options PPPOE_SERVER,
If the kernel is compiled with options
.Dv PPPOE_SERVER ,
there are two modes of connection, controlled via the
.Em link0
switch.
@ -262,30 +263,26 @@ Under special circumstances
.Nm
driver can be told to kill all unknown
.Nm PPPoE
sessions received by the ethernet interface used for a configured
sessions received by the Ethernet interface used for a configured
.Nm
interface.
To do this, add
To do this, add the following to your kernel config file:
.Pp
.Nm options
.Ar PPPOE_TERM_UNKNOWN_SESSIONS
.Pp
to your kernel config file.
.Dl options PPPOE_TERM_UNKNOWN_SESSIONS
.Pp
Note that this will break all userland
.Nm PPPoE
implementations using the same ethernet interface!
implementations using the same Ethernet interface!
.Pp
This option is only useful if you have a static IP address assigned and
your ISP does not use LCP echo requests to monitor the link status.
After a crash or power failure the peer device still tries to send data to
the no longer active session on your computer, and might refuse to
reestablish a new connection, because there already is an open session.
On receipt of such packets the
On receipt of such packets, the
.Nm
driver with this option set will send a
.Nm PADT
packet (request to terminate the session).
driver with this option set will send a PADT packet (request to
terminate the session).
The peer will immediately disconnect
the orphaned session and allow a new one to be established.
.Sh SEE ALSO
@ -294,8 +291,8 @@ the orphaned session and allow a new one to be established.
.Rs
.%R RFC
.%N 2516
.%D February 1999
.%T "A Method for Transmitting PPP Over Ethernet (PPPoE)"
.%D February 1999
.Re
.Sh HISTORY
The