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.
This commit is contained in:
Robert Watson 2004-08-28 15:24:53 +00:00
parent d724a9d5ea
commit 98f6a62499
3 changed files with 10 additions and 0 deletions

View File

@ -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 */

View File

@ -110,6 +110,8 @@ int ipsec_debug = 1;
int ipsec_debug = 0;
#endif
NET_NEEDS_GIANT("ipsec");
struct ipsecstat ipsecstat;
int ip4_ah_cleartos = 1;
int ip4_ah_offsetmask = 0; /* maybe IP_DF? */

View File

@ -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);