diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-08-28 15:24:53 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-08-28 15:24:53 +0000 |
commit | 289252d030a4f6aa41afcc5c6354239cfdaac243 (patch) | |
tree | 1c8237e7bd7fd5f60b3c8ac20e9fd5a425d5f328 /sys/netipx | |
parent | fc8849df2ffdb8ac50b59b415847d50cf53186c1 (diff) | |
download | FreeBSD-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/netipx')
-rw-r--r-- | sys/netipx/ipx.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/netipx/ipx.c b/sys/netipx/ipx.c index af7ba49..840f802 100644 --- a/sys/netipx/ipx.c +++ b/sys/netipx/ipx.c @@ -38,6 +38,7 @@ __FBSDID("$FreeBSD$"); #include <sys/param.h> +#include <sys/kernel.h> #include <sys/systm.h> #include <sys/malloc.h> #include <sys/sockio.h> @@ -50,6 +51,11 @@ __FBSDID("$FreeBSD$"); #include <netipx/ipx_if.h> #include <netipx/ipx_var.h> +NET_NEEDS_GIANT("ipx"); + +/* + * XXXRW: Requires synchronization. + */ struct ipx_ifaddr *ipx_ifaddr; static void ipx_ifscrub(struct ifnet *ifp, struct ipx_ifaddr *ia); |