summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2006-08-09 09:56:58 +0000
committerglebius <glebius@FreeBSD.org>2006-08-09 09:56:58 +0000
commit95f39eebb51f2edc9b4d476a4b76f25de69090d2 (patch)
tree19a1d3cb340cd5f27c67143cbd40e332ad02dc91 /share
parentb539048d28637b71f82e1b7ed24d755124c5b517 (diff)
downloadFreeBSD-src-95f39eebb51f2edc9b4d476a4b76f25de69090d2.zip
FreeBSD-src-95f39eebb51f2edc9b4d476a4b76f25de69090d2.tar.gz
Fix ng_pppoe(4) after turning off "autosrc feature" on ng_ether(4).
- Store the Ethernet header in node softc. - Initialize header with dst addr and ethertype in node constructor method. - In node connect method send NGM_ETHER_GET_ENADDR message downwards. - If received reply from ng_ether(4) store the src addr in softc. - Add NGM_PPPOE_SETENDADDR message that allows user to override the address with whatever he/she wants.
Diffstat (limited to 'share')
-rw-r--r--share/man/man4/ng_pppoe.421
1 files changed, 19 insertions, 2 deletions
diff --git a/share/man/man4/ng_pppoe.4 b/share/man/man4/ng_pppoe.4
index d74532f..7cde40c 100644
--- a/share/man/man4/ng_pppoe.4
+++ b/share/man/man4/ng_pppoe.4
@@ -35,7 +35,7 @@
.\" $FreeBSD$
.\" $Whistle: ng_pppoe.8,v 1.1 1999/01/25 23:46:27 archie Exp $
.\"
-.Dd January 27, 2006
+.Dd August 9, 2006
.Dt NG_PPPOE 4
.Os
.Sh NAME
@@ -70,7 +70,14 @@ This node type supports the following hooks:
.Pp
.Bl -tag -width [unspecified]
.It Dv ethernet
-The hook that should normally be connected to an Ethernet node.
+The hook that should normally be connected to an
+.Xr ng_ether 4
+node.
+Once connected,
+.Nm
+will send a message down this hook to determine Ethernet address of
+the underlying node.
+Obtained address will be stored and then used for outgoing datagrams.
.It Dv debug
Presently no use.
.It Dv [unspecified]
@@ -227,6 +234,15 @@ the next session in the proprietary 3Com mode:
.Bd -literal -offset indent
ngctl msg fxp0:orphans pppoe_setmode '"3Com"'
.Ed
+.It Dv NGM_PPPOE_SETENADDR
+Set the node Ethernet address for outgoing datagrams.
+This message is important when node failed to obtain Ethernet address
+from peer on
+.Dv ethernet
+hook, or when user wants to override this address with another one.
+.Tn ASCII
+form of this message is
+.Qq Li setenaddr .
.El
.Sh SHUTDOWN
This node shuts down upon receipt of a
@@ -466,6 +482,7 @@ setup(char *ethername, char *service, char *sessname,
.Sh SEE ALSO
.Xr netgraph 3 ,
.Xr netgraph 4 ,
+.Xr ng_ether 4 ,
.Xr ng_ppp 4 ,
.Xr ng_socket 4 ,
.Xr ngctl 8 ,
OpenPOWER on IntegriCloud