Deleted Added
full compact
ng_pppoe.4 (117011) ng_pppoe.4 (122758)
1.\" Copyright (c) 1996-1999 Whistle Communications, Inc.
2.\" All rights reserved.
3.\"
4.\" Subject to the following obligations and disclaimer of warranty, use and
5.\" redistribution of this software, in source or object code forms, with or
6.\" without modifications are expressly permitted by Whistle Communications;
7.\" provided, however, that:
8.\" 1. Any and all reproductions of the source or object code must include the

--- 18 unchanged lines hidden (view full) ---

27.\" SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY
28.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30.\" THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
31.\" OF SUCH DAMAGE.
32.\"
33.\" Author: Archie Cobbs <archie@FreeBSD.org>
34.\"
1.\" Copyright (c) 1996-1999 Whistle Communications, Inc.
2.\" All rights reserved.
3.\"
4.\" Subject to the following obligations and disclaimer of warranty, use and
5.\" redistribution of this software, in source or object code forms, with or
6.\" without modifications are expressly permitted by Whistle Communications;
7.\" provided, however, that:
8.\" 1. Any and all reproductions of the source or object code must include the

--- 18 unchanged lines hidden (view full) ---

27.\" SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY
28.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30.\" THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
31.\" OF SUCH DAMAGE.
32.\"
33.\" Author: Archie Cobbs <archie@FreeBSD.org>
34.\"
35.\" $FreeBSD: head/share/man/man4/ng_pppoe.4 117011 2003-06-28 23:53:39Z ru $
35.\" $FreeBSD: head/share/man/man4/ng_pppoe.4 122758 2003-11-15 15:26:35Z harti $
36.\" $Whistle: ng_pppoe.8,v 1.1 1999/01/25 23:46:27 archie Exp $
37.\"
38.Dd October 28, 1999
39.Dt NG_PPPOE 4
40.Os
41.Sh NAME
42.Nm ng_pppoe
43.Nd RFC 2516 PPPOE protocol netgraph node type

--- 86 unchanged lines hidden (view full) ---

130received, the session negotiation will proceed.
131This command uses the
132.Dv ngpppoe_init_data
133structure shown below.
134.Pp
135The three commands above use a common data structure:
136.Bd -literal -offset 4n
137struct ngpppoe_init_data {
36.\" $Whistle: ng_pppoe.8,v 1.1 1999/01/25 23:46:27 archie Exp $
37.\"
38.Dd October 28, 1999
39.Dt NG_PPPOE 4
40.Os
41.Sh NAME
42.Nm ng_pppoe
43.Nd RFC 2516 PPPOE protocol netgraph node type

--- 86 unchanged lines hidden (view full) ---

130received, the session negotiation will proceed.
131This command uses the
132.Dv ngpppoe_init_data
133structure shown below.
134.Pp
135The three commands above use a common data structure:
136.Bd -literal -offset 4n
137struct ngpppoe_init_data {
138 char hook[NG_HOOKLEN + 1]; /* hook to monitor on */
138 char hook[NG_HOOKSIZ]; /* hook to monitor on */
139 u_int16_t data_len; /* service name length */
140 char data[0]; /* init data goes here */
141};
142.Ed
143.It Dv NGM_PPPOE_SUCCESS
144This command is sent to the node that started this session with one of the
145above messages, and reports a state change.
146This message reports successful Session negotiation.

--- 19 unchanged lines hidden (view full) ---

166.It Dv NGM_PPPOE_ACNAME
167This command is sent to the node that started this session with one of the
168above messages, and reports the Access Concentrator Name.
169.El
170.Pp
171The four commands above use a common data structure:
172.Bd -literal -offset 4n
173struct ngpppoe_sts {
139 u_int16_t data_len; /* service name length */
140 char data[0]; /* init data goes here */
141};
142.Ed
143.It Dv NGM_PPPOE_SUCCESS
144This command is sent to the node that started this session with one of the
145above messages, and reports a state change.
146This message reports successful Session negotiation.

--- 19 unchanged lines hidden (view full) ---

166.It Dv NGM_PPPOE_ACNAME
167This command is sent to the node that started this session with one of the
168above messages, and reports the Access Concentrator Name.
169.El
170.Pp
171The four commands above use a common data structure:
172.Bd -literal -offset 4n
173struct ngpppoe_sts {
174 char hook[NG_HOOKLEN + 1]; /* hook associated with event session */
174 char hook[NG_HOOKSIZ]; /* hook associated with event session */
175};
176.Ed
177.Sh SHUTDOWN
178This node shuts down upon receipt of a
179.Dv NGM_SHUTDOWN
180control message, when all session have been disconnected or when the
181.Dv ethernet
182hook is disconnected.

--- 69 unchanged lines hidden (view full) ---

252 struct nodeinfo *peer;
253 /****message to connect pppoe session*****/
254 struct {
255 struct ngpppoe_init_data idata;
256 char service[100];
257 } message;
258 /********tracking our little graph ********/
259 char path[100];
175};
176.Ed
177.Sh SHUTDOWN
178This node shuts down upon receipt of a
179.Dv NGM_SHUTDOWN
180control message, when all session have been disconnected or when the
181.Dv ethernet
182hook is disconnected.

--- 69 unchanged lines hidden (view full) ---

252 struct nodeinfo *peer;
253 /****message to connect pppoe session*****/
254 struct {
255 struct ngpppoe_init_data idata;
256 char service[100];
257 } message;
258 /********tracking our little graph ********/
259 char path[100];
260 char source_ID[NG_NODELEN + 1];
260 char source_ID[NG_NODESIZ];
261 char pppoe_node_name[100];
262 int k;
263
264 /*
265 * Create the data and control sockets
266 */
267 if (NgMkSockNode(NULL, cfd, dfd) < 0) {
268 return (errno);

--- 168 unchanged lines hidden ---
261 char pppoe_node_name[100];
262 int k;
263
264 /*
265 * Create the data and control sockets
266 */
267 if (NgMkSockNode(NULL, cfd, dfd) < 0) {
268 return (errno);

--- 168 unchanged lines hidden ---