aboutsummaryrefslogtreecommitdiff
path: root/sys/netgraph/ng_device.c
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2004-07-20 11:19:46 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2004-07-20 11:19:46 +0000
commitb3e3ef9836f7918fd91253e8083a9a635334c750 (patch)
tree763ece91cc2889f8d6e867d714dc5fc4a385929e /sys/netgraph/ng_device.c
parent2f8e2ebbe20494761f183ae774bbe231694fabcb (diff)
downloadsrc-b3e3ef9836f7918fd91253e8083a9a635334c750.tar.gz
src-b3e3ef9836f7918fd91253e8083a9a635334c750.zip
Notes
Diffstat (limited to 'sys/netgraph/ng_device.c')
-rw-r--r--sys/netgraph/ng_device.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/sys/netgraph/ng_device.c b/sys/netgraph/ng_device.c
index d258b40ceca7..4b0618f5d0b9 100644
--- a/sys/netgraph/ng_device.c
+++ b/sys/netgraph/ng_device.c
@@ -31,20 +31,19 @@
*/
#include <sys/param.h>
-#include <sys/systm.h>
+#include <sys/conf.h>
+#include <sys/ioccom.h>
#include <sys/kernel.h>
-#include <sys/mbuf.h>
-#include <sys/uio.h>
-#include <sys/queue.h>
#include <sys/malloc.h>
-#include <sys/conf.h>
+#include <sys/mbuf.h>
#include <sys/poll.h>
-#include <sys/ioccom.h>
+#include <sys/queue.h>
+#include <sys/systm.h>
+#include <sys/uio.h>
#include <netgraph/ng_message.h>
#include <netgraph/netgraph.h>
-
-#include "ng_device.h"
+#include <netgraph/ng_device.h>
/* turn this on for verbose messages */
#define NGD_DEBUG
@@ -477,8 +476,7 @@ ngdioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flag, struct thread *td
datap = (struct ngd_param_s *)msg->data;
datap->p = addr;
- /* NG_SEND_MSG_HOOK(error, here, msg, hook, retaddr) */
- NG_SEND_MSG_HOOK(error, sc->node, msg, connection->active_hook, NULL);
+ NG_SEND_MSG_HOOK(error, sc->node, msg, connection->active_hook, 0);
if(error)
printf("%s(): NG_SEND_MSG_HOOK error: %d\n",__func__,error);