summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_pppoe.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1999-11-01 10:00:40 +0000
committerjulian <julian@FreeBSD.org>1999-11-01 10:00:40 +0000
commit3127cac2f7f22981915fe2bcd980775447b99fba (patch)
treee51cd4a7d79e5013c4c1c3ac7c3d0f44842f89b6 /sys/netgraph/ng_pppoe.c
parent244fe162cc15cf5fc410c04d9cea91e1b8dbbf3c (diff)
downloadFreeBSD-src-3127cac2f7f22981915fe2bcd980775447b99fba.zip
FreeBSD-src-3127cac2f7f22981915fe2bcd980775447b99fba.tar.gz
Add typedefs for node methods
Suggested by phk.
Diffstat (limited to 'sys/netgraph/ng_pppoe.c')
-rw-r--r--sys/netgraph/ng_pppoe.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/sys/netgraph/ng_pppoe.c b/sys/netgraph/ng_pppoe.c
index 9d580e5b..22d5f70 100644
--- a/sys/netgraph/ng_pppoe.c
+++ b/sys/netgraph/ng_pppoe.c
@@ -37,7 +37,7 @@
* Author: Julian Elischer <julian@whistle.com>
*
* $FreeBSD$
- * $Whistle: ng_pppoe.c,v 1.7 1999/10/16 10:16:43 julian Exp $
+ * $Whistle: ng_pppoe.c,v 1.10 1999/11/01 09:24:52 julian Exp $
*/
#if 0
#define AAA printf("pppoe: %s\n", __FUNCTION__ );
@@ -65,14 +65,13 @@
* sample node. These methods define the netgraph 'type'.
*/
-static int ng_pppoe_constructor(node_p *node);
-static int ng_pppoe_rcvmsg(node_p node, struct ng_mesg *msg,
- const char *retaddr, struct ng_mesg **resp);
-static int ng_pppoe_rmnode(node_p node);
-static int ng_pppoe_newhook(node_p node, hook_p hook, const char *name);
-static int ng_pppoe_connect(hook_p hook);
-static int ng_pppoe_rcvdata(hook_p hook, struct mbuf *m, meta_p meta);
-static int ng_pppoe_disconnect(hook_p hook);
+static ng_constructor_t ng_pppoe_constructor;
+static ng_rcvmsg_t ng_pppoe_rcvmsg;
+static ng_shutdown_t ng_pppoe_rmnode;
+static ng_newhook_t ng_pppoe_newhook;
+static ng_connect_t ng_pppoe_connect;
+static ng_rcvdata_t ng_pppoe_rcvdata;
+static ng_disconnect_t ng_pppoe_disconnect;
/* Netgraph node type descriptor */
static struct ng_type typestruct = {
OpenPOWER on IntegriCloud