summaryrefslogtreecommitdiffstats
path: root/sys/dev/sr
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/dev/sr
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/dev/sr')
-rw-r--r--sys/dev/sr/if_sr.c7
-rw-r--r--sys/dev/sr/if_sr_isa.c7
2 files changed, 8 insertions, 6 deletions
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;
OpenPOWER on IntegriCloud