summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_sample.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2000-04-28 17:09:00 +0000
committerjulian <julian@FreeBSD.org>2000-04-28 17:09:00 +0000
commit49604b425978fca1a0b197ff5d43889d33ffcb87 (patch)
tree8bf49b48085e9c6254a57fde4c123f5e58889f72 /sys/netgraph/ng_sample.c
parent5869eff8901701f3215b4a78477cc57e21f16416 (diff)
downloadFreeBSD-src-49604b425978fca1a0b197ff5d43889d33ffcb87.zip
FreeBSD-src-49604b425978fca1a0b197ff5d43889d33ffcb87.tar.gz
Two simple changes to the kernel internal API for netgraph modules,
to support future work in flow-control and 'packet reject/replace' processing modes. reviewed by: phk, archie
Diffstat (limited to 'sys/netgraph/ng_sample.c')
-rw-r--r--sys/netgraph/ng_sample.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/netgraph/ng_sample.c b/sys/netgraph/ng_sample.c
index 5269954..9b03060 100644
--- a/sys/netgraph/ng_sample.c
+++ b/sys/netgraph/ng_sample.c
@@ -257,8 +257,8 @@ ng_xxx_newhook(node_p node, hook_p hook, const char *name)
* (so that old userland programs could continue to work).
*/
static int
-ng_xxx_rcvmsg(node_p node,
- struct ng_mesg *msg, const char *retaddr, struct ng_mesg **rptr)
+ng_xxx_rcvmsg(node_p node, struct ng_mesg *msg, const char *retaddr,
+ struct ng_mesg **rptr, hook_p lasthook)
{
const xxx_p xxxp = node->private;
struct ng_mesg *resp = NULL;
@@ -321,7 +321,8 @@ ng_xxx_rcvmsg(node_p node,
* at the netgraph NETISR time. (at which time it will be entered using ng_xxx_rcvdataq().
*/
static int
-ng_xxx_rcvdata(hook_p hook, struct mbuf *m, meta_p meta)
+ng_xxx_rcvdata(hook_p hook, struct mbuf *m, meta_p meta,
+ struct mbuf **ret_m, meta_p *ret_meta)
{
int dlci = -2;
@@ -343,7 +344,8 @@ ng_xxx_rcvdata(hook_p hook, struct mbuf *m, meta_p meta)
* Always accept the data. This version of rcvdata is called from the dequeueing routine.
*/
static int
-ng_xxx_rcvdataq(hook_p hook, struct mbuf *m, meta_p meta)
+ng_xxx_rcvdataq(hook_p hook, struct mbuf *m, meta_p meta,
+ struct mbuf **ret_m, meta_p *ret_meta)
{
const xxx_p xxxp = hook->node->private;
int chan = -2;
OpenPOWER on IntegriCloud