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:
parent
d95bbfadaf
commit
6a67e6bef0
@ -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 */
|
||||
|
@ -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? */
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user