Fix mdoc(7) and grammar errors from previous commit.
Requested, submitted and reviewed by: ru
This commit is contained in:
parent
8babf197f9
commit
15c39fe287
@ -66,7 +66,7 @@ control message.
|
|||||||
.Sh HOOKS
|
.Sh HOOKS
|
||||||
This node type supports the following hooks:
|
This node type supports the following hooks:
|
||||||
.Pp
|
.Pp
|
||||||
.Bl -tag -width foobarbaz
|
.Bl -tag -width [unspecified]
|
||||||
.It Dv ethernet
|
.It Dv ethernet
|
||||||
The hook that should normally be connected to an Ethernet node.
|
The hook that should normally be connected to an Ethernet node.
|
||||||
.It Dv debug
|
.It Dv debug
|
||||||
@ -77,7 +77,7 @@ a PPP client agent, or a PPP server agent.
|
|||||||
.El
|
.El
|
||||||
.Sh CONTROL MESSAGES
|
.Sh CONTROL MESSAGES
|
||||||
This node type supports the generic control messages, plus the following:
|
This node type supports the generic control messages, plus the following:
|
||||||
.Bl -tag -width foo
|
.Bl -tag -width 3n
|
||||||
.It Dv NGM_PPPOE_GET_STATUS
|
.It Dv NGM_PPPOE_GET_STATUS
|
||||||
This command returns status information in a
|
This command returns status information in a
|
||||||
.Dv "struct ngpppoestat" :
|
.Dv "struct ngpppoestat" :
|
||||||
@ -133,6 +133,7 @@ received, the session negotiation will proceed.
|
|||||||
This command uses the
|
This command uses the
|
||||||
.Dv ngpppoe_init_data
|
.Dv ngpppoe_init_data
|
||||||
structure shown below.
|
structure shown below.
|
||||||
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
The three commands above use a common data structure:
|
The three commands above use a common data structure:
|
||||||
.Bd -literal -offset 4n
|
.Bd -literal -offset 4n
|
||||||
@ -142,6 +143,7 @@ struct ngpppoe_init_data {
|
|||||||
char data[0]; /* init data goes here */
|
char data[0]; /* init data goes here */
|
||||||
};
|
};
|
||||||
.Ed
|
.Ed
|
||||||
|
.Bl -tag -width 3n
|
||||||
.It Dv NGM_PPPOE_SUCCESS
|
.It Dv NGM_PPPOE_SUCCESS
|
||||||
This command is sent to the node that started this session with one of the
|
This command is sent to the node that started this session with one of the
|
||||||
above messages, and reports a state change.
|
above messages, and reports a state change.
|
||||||
@ -168,6 +170,7 @@ will be received at closure instead.
|
|||||||
.It Dv NGM_PPPOE_ACNAME
|
.It Dv NGM_PPPOE_ACNAME
|
||||||
This command is sent to the node that started this session with one of the
|
This command is sent to the node that started this session with one of the
|
||||||
above messages, and reports the Access Concentrator Name.
|
above messages, and reports the Access Concentrator Name.
|
||||||
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
The four commands above use a common data structure:
|
The four commands above use a common data structure:
|
||||||
.Bd -literal -offset 4n
|
.Bd -literal -offset 4n
|
||||||
@ -175,6 +178,7 @@ struct ngpppoe_sts {
|
|||||||
char hook[NG_HOOKSIZ]; /* hook associated with event session */
|
char hook[NG_HOOKSIZ]; /* hook associated with event session */
|
||||||
};
|
};
|
||||||
.Ed
|
.Ed
|
||||||
|
.Bl -tag -width 3n
|
||||||
.It Dv NGM_PPPOE_GETMODE
|
.It Dv NGM_PPPOE_GETMODE
|
||||||
The
|
The
|
||||||
.Nm
|
.Nm
|
||||||
@ -183,25 +187,24 @@ standard mode described in RFC 2516, and in a non-standard mode compatible
|
|||||||
with equipment from 3Com.
|
with equipment from 3Com.
|
||||||
When
|
When
|
||||||
.Nm
|
.Nm
|
||||||
is a client node, it initiates session using the configured mode.
|
is a client node, it initiates a session using the configured mode.
|
||||||
In server mode
|
In server mode
|
||||||
.Nm
|
.Nm
|
||||||
supports both modes simultaneously.
|
supports both modes simultaneously.
|
||||||
This message returns current configured mode as a char string.
|
This message returns the currently configured mode as a string.
|
||||||
.Tn ASCII
|
.Tn ASCII
|
||||||
form of this message is
|
form of this message is
|
||||||
.Qq pppoe_getmode .
|
.Qq Li pppoe_getmode .
|
||||||
.It Dv NGM_PPPOE_SETMODE
|
.It Dv NGM_PPPOE_SETMODE
|
||||||
Configure node to the specified mode.
|
Configure node to the specified mode.
|
||||||
The char string argument required.
|
The string argument is required.
|
||||||
.Tn ASCII
|
.Tn ASCII
|
||||||
form os this message is
|
form of this message is
|
||||||
.Qq pppoe_setmode .
|
.Qq Li pppoe_setmode .
|
||||||
For example this command will configure the node to initiate
|
For example, the following command will configure the node to initiate
|
||||||
the next session in proprietary 3Com mode:
|
the next session in the proprietary 3Com mode:
|
||||||
.Bd -literal -offset 4n
|
.Pp
|
||||||
ngctl msg fxp0:orphans pppoe_setmode "3Com"
|
.Dl ngctl msg fxp0:orphans pppoe_setmode "3Com"
|
||||||
.Ed
|
|
||||||
.El
|
.El
|
||||||
.Sh SHUTDOWN
|
.Sh SHUTDOWN
|
||||||
This node shuts down upon receipt of a
|
This node shuts down upon receipt of a
|
||||||
@ -217,7 +220,7 @@ is a deprecated way to set
|
|||||||
client mode.
|
client mode.
|
||||||
Consider using
|
Consider using
|
||||||
.Dv NGM_PPPOE_SETMODE
|
.Dv NGM_PPPOE_SETMODE
|
||||||
or option in your client software instead.
|
or an appropriate option in your client software instead.
|
||||||
.Sh EXAMPLES
|
.Sh EXAMPLES
|
||||||
The following code uses
|
The following code uses
|
||||||
.Dv libnetgraph
|
.Dv libnetgraph
|
||||||
|
Loading…
Reference in New Issue
Block a user