View | Details | Raw Unified | Return to bug 150917 | Differences between
and this patch

Collapse All | Expand All

(-)src/sys/netinet/ip_icmp.c (-4 / +4 lines)
Lines 106-120 Link Here
106
106
107
static VNET_DEFINE(int, icmplim) = 200;
107
static VNET_DEFINE(int, icmplim) = 200;
108
#define	V_icmplim			VNET(icmplim)
108
#define	V_icmplim			VNET(icmplim)
109
SYSCTL_VNET_INT(_net_inet_icmp, ICMPCTL_ICMPLIM, icmplim, CTLFLAG_RW,
109
SYSCTL_VNET_UINT(_net_inet_icmp, ICMPCTL_ICMPLIM, icmplim, CTLFLAG_RW,
110
	&VNET_NAME(icmplim), 0,
110
	&VNET_NAME(icmplim), 0,
111
	"Maximum number of ICMP responses per second");
111
	"Maximum number of ICMP or TCP RST responses per second");
112
112
113
static VNET_DEFINE(int, icmplim_output) = 1;
113
static VNET_DEFINE(int, icmplim_output) = 1;
114
#define	V_icmplim_output		VNET(icmplim_output)
114
#define	V_icmplim_output		VNET(icmplim_output)
115
SYSCTL_VNET_INT(_net_inet_icmp, OID_AUTO, icmplim_output, CTLFLAG_RW,
115
SYSCTL_VNET_UINT(_net_inet_icmp, OID_AUTO, icmplim_output, CTLFLAG_RW,
116
	&VNET_NAME(icmplim_output), 0,
116
	&VNET_NAME(icmplim_output), 0,
117
	"Enable rate limiting of ICMP responses");
117
	"Enable logging of enforced limit on ICMP or TCP RST responses");
118
118
119
static VNET_DEFINE(char, reply_src[IFNAMSIZ]);
119
static VNET_DEFINE(char, reply_src[IFNAMSIZ]);
120
#define	V_reply_src			VNET(reply_src)
120
#define	V_reply_src			VNET(reply_src)

Return to bug 150917