summaryrefslogtreecommitdiff
path: root/share/man
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-08-12 09:15:50 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-08-12 09:15:50 +0000
commitd777f06ca2bec6b53b08abfad110fd8aeb8ecde3 (patch)
treed3802be7bb913fe46b56e9c40ed4a7a93317d824 /share/man
parentd0e6d70108525c50cd3094bec0dd5767df57f68d (diff)
Update the IPv6 example to something that works...
...although this create a race condition pointed by sthen@ where the other side might try to negotiave IPv6 before it is enable. This is *another* fallback of the no IPv6 by default policy. Since setting an address implicitly brings the underlying interface UP. And pppoe(4) (which is special) starts singing as soon as it is UP even if no proto or parent device has been specified. Obviously this cannot work. Better have a working and racy example than a non-working one. Diff submitted by Delan Azabani, thanks! ok naddy@
Diffstat (limited to 'share/man')
-rw-r--r--share/man/man4/pppoe.48
1 files changed, 4 insertions, 4 deletions
diff --git a/share/man/man4/pppoe.4 b/share/man/man4/pppoe.4
index 29158d4516f..67ed6422186 100644
--- a/share/man/man4/pppoe.4
+++ b/share/man/man4/pppoe.4
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pppoe.4,v 1.28 2015/02/16 16:38:54 naddy Exp $
+.\" $OpenBSD: pppoe.4,v 1.29 2015/08/12 09:15:49 mpi Exp $
.\" $NetBSD: pppoe.4,v 1.26 2003/10/02 07:06:36 wiz Exp $
.\"
.\" Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: February 16 2015 $
+.Dd $Mdocdate: August 12 2015 $
.Dt PPPOE 4
.Os
.Sh NAME
@@ -96,13 +96,13 @@ This all is typically accomplished using an
file.
A typical file looks like this:
.Bd -literal -offset indent
-inet6 eui64
inet 0.0.0.0 255.255.255.255 NONE \e
pppoedev em0 authproto pap \e
authname 'testcaller' authkey 'donttell' up
dest 0.0.0.1
+inet6 eui64
!/sbin/route add default -ifp pppoe0 0.0.0.1
-!/sbin/route add default -ifp pppoe0 fe80::
+!/sbin/route add -inet6 default -ifp pppoe0 fe80::
.Ed
.Pp
The physical interface must also be marked