summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_tty.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-08-28 15:24:53 +0000
committerrwatson <rwatson@FreeBSD.org>2004-08-28 15:24:53 +0000
commit289252d030a4f6aa41afcc5c6354239cfdaac243 (patch)
tree1c8237e7bd7fd5f60b3c8ac20e9fd5a425d5f328 /sys/netgraph/ng_tty.c
parentfc8849df2ffdb8ac50b59b415847d50cf53186c1 (diff)
downloadFreeBSD-src-289252d030a4f6aa41afcc5c6354239cfdaac243.zip
FreeBSD-src-289252d030a4f6aa41afcc5c6354239cfdaac243.tar.gz
Mark Netgraph TTY, KAME IPSEC, and IPX/SPX as requiring Giant for correct
operation using NET_NEEDS_GIANT(). This will result in a boot-time restoration of Giant-enabled network operation, or run-time warning on dynamic load (applicable only to the Netgraph component). Additional components will likely need to be marked with this in the future.
Diffstat (limited to 'sys/netgraph/ng_tty.c')
-rw-r--r--sys/netgraph/ng_tty.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netgraph/ng_tty.c b/sys/netgraph/ng_tty.c
index bd341da..9ae20a0 100644
--- a/sys/netgraph/ng_tty.c
+++ b/sys/netgraph/ng_tty.c
@@ -75,6 +75,8 @@
#include <netgraph/netgraph.h>
#include <netgraph/ng_tty.h>
+NET_NEEDS_GIANT("ng_tty");
+
/* Misc defs */
#define MAX_MBUFQ 3 /* Max number of queued mbufs */
#define NGT_HIWATER 400 /* High water mark on output */
OpenPOWER on IntegriCloud