Rename MBUF_FRAG_TEST to MBUF_STRESS_TEST as it will be extended
to include more than just frag tests.
This commit is contained in:
parent
66d6259121
commit
53dcc544a8
@ -568,12 +568,11 @@ options IPSTEALTH #support for stealth forwarding
|
||||
options PFIL_HOOKS
|
||||
options TCPDEBUG
|
||||
|
||||
# MBUF_FRAG_TEST option allows you to tell the IP stack to
|
||||
# fragment all outgoing packets into mbuf fragments of size
|
||||
# net.inet.ip.mbuf_frag_size (bytes). It is used for testing
|
||||
# if network drivers can properly handle long chains of mbufs.
|
||||
# The sysctl is '0' (no fragmentation) by default.
|
||||
options MBUF_FRAG_TEST
|
||||
# The MBUF_STRESS_TEST option enables options which create
|
||||
# various random failures / extreme cases related to mbuf
|
||||
# functions. See the mbuf(9) manpage for a list of available
|
||||
# test cases.
|
||||
options MBUF_STRESS_TEST
|
||||
|
||||
# RANDOM_IP_ID causes the ID field in IP packets to be randomized
|
||||
# instead of incremented by 1 with each packet generated. This
|
||||
|
@ -362,7 +362,7 @@ SLIP_IFF_OPTS opt_slip.h
|
||||
TCPDEBUG
|
||||
TCP_DROP_SYNFIN opt_tcp_input.h
|
||||
XBONEHACK
|
||||
MBUF_FRAG_TEST opt_mbuf_frag_test.h
|
||||
MBUF_STRESS_TEST opt_mbuf_stress_test.h
|
||||
|
||||
# Netgraph(4). Use option NETGRAPH to enable the base netgraph code.
|
||||
# Each netgraph node type can be either be compiled into the kernel
|
||||
|
@ -42,7 +42,7 @@
|
||||
#include "opt_mac.h"
|
||||
#include "opt_pfil_hooks.h"
|
||||
#include "opt_random_ip_id.h"
|
||||
#include "opt_mbuf_frag_test.h"
|
||||
#include "opt_mbuf_stress_test.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -96,7 +96,7 @@ static MALLOC_DEFINE(M_IPMOPTS, "ip_moptions", "internet multicast options");
|
||||
|
||||
u_short ip_id;
|
||||
|
||||
#ifdef MBUF_FRAG_TEST
|
||||
#ifdef MBUF_STRESS_TEST
|
||||
int mbuf_frag_size = 0;
|
||||
SYSCTL_INT(_net_inet_ip, OID_AUTO, mbuf_frag_size, CTLFLAG_RW,
|
||||
&mbuf_frag_size, 0, "Fragment outgoing mbufs to this size");
|
||||
@ -1020,7 +1020,7 @@ pass:
|
||||
ipsec_delaux(m);
|
||||
#endif
|
||||
|
||||
#ifdef MBUF_FRAG_TEST
|
||||
#ifdef MBUF_STRESS_TEST
|
||||
if (mbuf_frag_size && m->m_pkthdr.len > mbuf_frag_size) {
|
||||
struct mbuf *m1, *m2;
|
||||
int length, tmp;
|
||||
|
Loading…
x
Reference in New Issue
Block a user