From 49604b425978fca1a0b197ff5d43889d33ffcb87 Mon Sep 17 00:00:00 2001 From: julian Date: Fri, 28 Apr 2000 17:09:00 +0000 Subject: 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 --- sys/dev/sr/if_sr.c | 7 ++++--- sys/dev/sr/if_sr_isa.c | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'sys/dev/sr') diff --git a/sys/dev/sr/if_sr.c b/sys/dev/sr/if_sr.c index 8d850fd..77e21eb 100644 --- a/sys/dev/sr/if_sr.c +++ b/sys/dev/sr/if_sr.c @@ -3157,8 +3157,8 @@ ngsr_newhook(node_p node, hook_p hook, const char *name) * Just respond to the generic TEXT_STATUS message */ static int -ngsr_rcvmsg(node_p node, - struct ng_mesg *msg, const char *retaddr, struct ng_mesg **resp) +ngsr_rcvmsg(node_p node, struct ng_mesg *msg, const char *retaddr, + struct ng_mesg **resp, hook_p lasthook) { struct sr_softc * sc; int error = 0; @@ -3228,7 +3228,8 @@ ngsr_rcvmsg(node_p node, * get data from another node and transmit it to the correct channel */ static int -ngsr_rcvdata(hook_p hook, struct mbuf *m, meta_p meta) +ngsr_rcvdata(hook_p hook, struct mbuf *m, meta_p meta, + struct mbuf **ret_m, meta_p *ret_meta) { int s; int error = 0; diff --git a/sys/dev/sr/if_sr_isa.c b/sys/dev/sr/if_sr_isa.c index 8d850fd..77e21eb 100644 --- a/sys/dev/sr/if_sr_isa.c +++ b/sys/dev/sr/if_sr_isa.c @@ -3157,8 +3157,8 @@ ngsr_newhook(node_p node, hook_p hook, const char *name) * Just respond to the generic TEXT_STATUS message */ static int -ngsr_rcvmsg(node_p node, - struct ng_mesg *msg, const char *retaddr, struct ng_mesg **resp) +ngsr_rcvmsg(node_p node, struct ng_mesg *msg, const char *retaddr, + struct ng_mesg **resp, hook_p lasthook) { struct sr_softc * sc; int error = 0; @@ -3228,7 +3228,8 @@ ngsr_rcvmsg(node_p node, * get data from another node and transmit it to the correct channel */ static int -ngsr_rcvdata(hook_p hook, struct mbuf *m, meta_p meta) +ngsr_rcvdata(hook_p hook, struct mbuf *m, meta_p meta, + struct mbuf **ret_m, meta_p *ret_meta) { int s; int error = 0; -- cgit v1.1