aboutsummaryrefslogtreecommitdiff
path: root/sys/netgraph/ng_mppc.c
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>2000-12-12 18:52:14 +0000
committerJulian Elischer <julian@FreeBSD.org>2000-12-12 18:52:14 +0000
commit859a4d166c0fc97b248bf33c8745b7494934b0bf (patch)
tree94d99d9e64eac6a506d1bd96cdf3063bafa75119 /sys/netgraph/ng_mppc.c
parent1ec5afb81e2be950824646f8a516e80d1c6b931c (diff)
downloadsrc-859a4d166c0fc97b248bf33c8745b7494934b0bf.tar.gz
src-859a4d166c0fc97b248bf33c8745b7494934b0bf.zip
Reviewed by: Archie@freebsd.org
This clears out my outstanding netgraph changes. There is a netgraph change of design in the offing and this is to some extent a superset of soem of the new functionality and some of the old functionality that may be removed. This code works as before, but allows some new features that I want to work with and evaluate. It is the basis for a version of netgraph with integral locking for SMP use. This is running on my test machine with no new problems :-)
Notes
Notes: svn path=/head/; revision=69922
Diffstat (limited to 'sys/netgraph/ng_mppc.c')
-rw-r--r--sys/netgraph/ng_mppc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/netgraph/ng_mppc.c b/sys/netgraph/ng_mppc.c
index ddd48b7040bd..6c84cda4cec2 100644
--- a/sys/netgraph/ng_mppc.c
+++ b/sys/netgraph/ng_mppc.c
@@ -153,7 +153,6 @@ static struct ng_type ng_mppc_typestruct = {
NULL,
NULL,
ng_mppc_rcvdata,
- ng_mppc_rcvdata,
ng_mppc_disconnect,
NULL
};
@@ -347,7 +346,7 @@ done:
*/
static int
ng_mppc_rcvdata(hook_p hook, struct mbuf *m, meta_p meta,
- struct mbuf **ret_m, meta_p *ret_meta)
+ struct mbuf **ret_m, meta_p *ret_meta, struct ng_mesg **resp)
{
const node_p node = hook->node;
const priv_p priv = node->private;
@@ -385,7 +384,9 @@ ng_mppc_rcvdata(hook_p hook, struct mbuf *m, meta_p meta,
NGM_MPPC_RESETREQ, 0, M_NOWAIT);
if (msg == NULL)
return (error);
- ng_send_msg(node, msg, priv->ctrlpath, NULL);
+ /* XXX can we use a hook instead of ctrlpath? */
+ ng_send_msg(node, msg, priv->ctrlpath,
+ NULL, NULL, NULL);
}
return (error);
}