Match up SYSCTL declaration style.
This commit is contained in:
parent
dd51858d31
commit
6489fe6553
@ -98,18 +98,18 @@ SYSCTL_INT(_net_inet_ip, IPCTL_DEFTTL, ttl, CTLFLAG_RW,
|
||||
|
||||
static int ip_keepfaith = 0;
|
||||
SYSCTL_INT(_net_inet_ip, IPCTL_KEEPFAITH, keepfaith, CTLFLAG_RW,
|
||||
&ip_keepfaith, 0,
|
||||
"Enable packet capture for FAITH IPv4->IPv6 translater daemon");
|
||||
&ip_keepfaith, 0,
|
||||
"Enable packet capture for FAITH IPv4->IPv6 translater daemon");
|
||||
|
||||
static int ip_sendsourcequench = 0;
|
||||
SYSCTL_INT(_net_inet_ip, OID_AUTO, sendsourcequench, CTLFLAG_RW,
|
||||
&ip_sendsourcequench, 0,
|
||||
"Enable the transmission of source quench packets");
|
||||
&ip_sendsourcequench, 0,
|
||||
"Enable the transmission of source quench packets");
|
||||
|
||||
int ip_do_randomid = 0;
|
||||
SYSCTL_INT(_net_inet_ip, OID_AUTO, random_id, CTLFLAG_RW,
|
||||
&ip_do_randomid, 0,
|
||||
"Assign random ip_id values");
|
||||
&ip_do_randomid, 0,
|
||||
"Assign random ip_id values");
|
||||
|
||||
/*
|
||||
* XXX - Setting ip_checkinterface mostly implements the receive side of
|
||||
@ -143,7 +143,8 @@ u_long in_ifaddrhmask; /* mask for hash table */
|
||||
SYSCTL_INT(_net_inet_ip, IPCTL_INTRQMAXLEN, intr_queue_maxlen, CTLFLAG_RW,
|
||||
&ipintrq.ifq_maxlen, 0, "Maximum size of the IP input queue");
|
||||
SYSCTL_INT(_net_inet_ip, IPCTL_INTRQDROPS, intr_queue_drops, CTLFLAG_RD,
|
||||
&ipintrq.ifq_drops, 0, "Number of packets dropped from the IP input queue");
|
||||
&ipintrq.ifq_drops, 0,
|
||||
"Number of packets dropped from the IP input queue");
|
||||
|
||||
struct ipstat ipstat;
|
||||
SYSCTL_STRUCT(_net_inet_ip, IPCTL_STATS, stats, CTLFLAG_RW,
|
||||
@ -172,13 +173,13 @@ static void ipq_zone_change(void *);
|
||||
|
||||
static int maxnipq; /* Administrative limit on # reass queues. */
|
||||
static int nipq = 0; /* Total # of reass queues */
|
||||
SYSCTL_INT(_net_inet_ip, OID_AUTO, fragpackets, CTLFLAG_RD, &nipq, 0,
|
||||
"Current number of IPv4 fragment reassembly queue entries");
|
||||
SYSCTL_INT(_net_inet_ip, OID_AUTO, fragpackets, CTLFLAG_RD,
|
||||
&nipq, 0, "Current number of IPv4 fragment reassembly queue entries");
|
||||
|
||||
static int maxfragsperpacket;
|
||||
SYSCTL_INT(_net_inet_ip, OID_AUTO, maxfragsperpacket, CTLFLAG_RW,
|
||||
&maxfragsperpacket, 0,
|
||||
"Maximum number of IPv4 fragments allowed per packet");
|
||||
&maxfragsperpacket, 0,
|
||||
"Maximum number of IPv4 fragments allowed per packet");
|
||||
|
||||
struct callout ipport_tick_callout;
|
||||
|
||||
@ -190,7 +191,7 @@ SYSCTL_INT(_net_inet_ip, IPCTL_DEFMTU, mtu, CTLFLAG_RW,
|
||||
#ifdef IPSTEALTH
|
||||
int ipstealth = 0;
|
||||
SYSCTL_INT(_net_inet_ip, OID_AUTO, stealth, CTLFLAG_RW,
|
||||
&ipstealth, 0, "");
|
||||
&ipstealth, 0, "IP stealth mode, no TTL decrementation on forwarding");
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
@ -111,7 +111,7 @@ SYSCTL_INT(_net_inet_tcp, OID_AUTO, log_in_vain, CTLFLAG_RW,
|
||||
|
||||
static int blackhole = 0;
|
||||
SYSCTL_INT(_net_inet_tcp, OID_AUTO, blackhole, CTLFLAG_RW,
|
||||
&blackhole, 0, "Do not send RST when dropping refused connections");
|
||||
&blackhole, 0, "Do not send RST when dropping refused connections");
|
||||
|
||||
int tcp_delack_enabled = 1;
|
||||
SYSCTL_INT(_net_inet_tcp, OID_AUTO, delayed_ack, CTLFLAG_RW,
|
||||
@ -136,42 +136,43 @@ SYSCTL_INT(_net_inet_tcp, OID_AUTO, rfc3390, CTLFLAG_RW,
|
||||
static int tcp_insecure_rst = 0;
|
||||
SYSCTL_INT(_net_inet_tcp, OID_AUTO, insecure_rst, CTLFLAG_RW,
|
||||
&tcp_insecure_rst, 0,
|
||||
"Follow the old (insecure) criteria for accepting RST packets.");
|
||||
"Follow the old (insecure) criteria for accepting RST packets");
|
||||
|
||||
SYSCTL_NODE(_net_inet_tcp, OID_AUTO, reass, CTLFLAG_RW, 0,
|
||||
"TCP Segment Reassembly Queue");
|
||||
"TCP Segment Reassembly Queue");
|
||||
|
||||
static int tcp_reass_maxseg = 0;
|
||||
SYSCTL_INT(_net_inet_tcp_reass, OID_AUTO, maxsegments, CTLFLAG_RDTUN,
|
||||
&tcp_reass_maxseg, 0,
|
||||
"Global maximum number of TCP Segments in Reassembly Queue");
|
||||
&tcp_reass_maxseg, 0,
|
||||
"Global maximum number of TCP Segments in Reassembly Queue");
|
||||
|
||||
int tcp_reass_qsize = 0;
|
||||
SYSCTL_INT(_net_inet_tcp_reass, OID_AUTO, cursegments, CTLFLAG_RD,
|
||||
&tcp_reass_qsize, 0,
|
||||
"Global number of TCP Segments currently in Reassembly Queue");
|
||||
&tcp_reass_qsize, 0,
|
||||
"Global number of TCP Segments currently in Reassembly Queue");
|
||||
|
||||
static int tcp_reass_maxqlen = 48;
|
||||
SYSCTL_INT(_net_inet_tcp_reass, OID_AUTO, maxqlen, CTLFLAG_RW,
|
||||
&tcp_reass_maxqlen, 0,
|
||||
"Maximum number of TCP Segments per individual Reassembly Queue");
|
||||
&tcp_reass_maxqlen, 0,
|
||||
"Maximum number of TCP Segments per individual Reassembly Queue");
|
||||
|
||||
static int tcp_reass_overflows = 0;
|
||||
SYSCTL_INT(_net_inet_tcp_reass, OID_AUTO, overflows, CTLFLAG_RD,
|
||||
&tcp_reass_overflows, 0,
|
||||
"Global number of TCP Segment Reassembly Queue Overflows");
|
||||
&tcp_reass_overflows, 0,
|
||||
"Global number of TCP Segment Reassembly Queue Overflows");
|
||||
|
||||
int tcp_do_autorcvbuf = 1;
|
||||
SYSCTL_INT(_net_inet_tcp, OID_AUTO, recvbuf_auto, CTLFLAG_RW,
|
||||
&tcp_do_autorcvbuf, 0, "Enable automatic receive buffer sizing");
|
||||
&tcp_do_autorcvbuf, 0, "Enable automatic receive buffer sizing");
|
||||
|
||||
int tcp_autorcvbuf_inc = 16*1024;
|
||||
SYSCTL_INT(_net_inet_tcp, OID_AUTO, recvbuf_inc, CTLFLAG_RW,
|
||||
&tcp_autorcvbuf_inc, 0, "Incrementor step size of automatic receive buffer");
|
||||
&tcp_autorcvbuf_inc, 0,
|
||||
"Incrementor step size of automatic receive buffer");
|
||||
|
||||
int tcp_autorcvbuf_max = 256*1024;
|
||||
SYSCTL_INT(_net_inet_tcp, OID_AUTO, recvbuf_max, CTLFLAG_RW,
|
||||
&tcp_autorcvbuf_max, 0, "Max size of automatic receive buffer");
|
||||
&tcp_autorcvbuf_max, 0, "Max size of automatic receive buffer");
|
||||
|
||||
struct inpcbhead tcb;
|
||||
#define tcb6 tcb /* for KAME src sync over BSD*'s */
|
||||
|
@ -111,7 +111,7 @@ SYSCTL_INT(_net_inet_tcp, OID_AUTO, log_in_vain, CTLFLAG_RW,
|
||||
|
||||
static int blackhole = 0;
|
||||
SYSCTL_INT(_net_inet_tcp, OID_AUTO, blackhole, CTLFLAG_RW,
|
||||
&blackhole, 0, "Do not send RST when dropping refused connections");
|
||||
&blackhole, 0, "Do not send RST when dropping refused connections");
|
||||
|
||||
int tcp_delack_enabled = 1;
|
||||
SYSCTL_INT(_net_inet_tcp, OID_AUTO, delayed_ack, CTLFLAG_RW,
|
||||
@ -136,42 +136,43 @@ SYSCTL_INT(_net_inet_tcp, OID_AUTO, rfc3390, CTLFLAG_RW,
|
||||
static int tcp_insecure_rst = 0;
|
||||
SYSCTL_INT(_net_inet_tcp, OID_AUTO, insecure_rst, CTLFLAG_RW,
|
||||
&tcp_insecure_rst, 0,
|
||||
"Follow the old (insecure) criteria for accepting RST packets.");
|
||||
"Follow the old (insecure) criteria for accepting RST packets");
|
||||
|
||||
SYSCTL_NODE(_net_inet_tcp, OID_AUTO, reass, CTLFLAG_RW, 0,
|
||||
"TCP Segment Reassembly Queue");
|
||||
"TCP Segment Reassembly Queue");
|
||||
|
||||
static int tcp_reass_maxseg = 0;
|
||||
SYSCTL_INT(_net_inet_tcp_reass, OID_AUTO, maxsegments, CTLFLAG_RDTUN,
|
||||
&tcp_reass_maxseg, 0,
|
||||
"Global maximum number of TCP Segments in Reassembly Queue");
|
||||
&tcp_reass_maxseg, 0,
|
||||
"Global maximum number of TCP Segments in Reassembly Queue");
|
||||
|
||||
int tcp_reass_qsize = 0;
|
||||
SYSCTL_INT(_net_inet_tcp_reass, OID_AUTO, cursegments, CTLFLAG_RD,
|
||||
&tcp_reass_qsize, 0,
|
||||
"Global number of TCP Segments currently in Reassembly Queue");
|
||||
&tcp_reass_qsize, 0,
|
||||
"Global number of TCP Segments currently in Reassembly Queue");
|
||||
|
||||
static int tcp_reass_maxqlen = 48;
|
||||
SYSCTL_INT(_net_inet_tcp_reass, OID_AUTO, maxqlen, CTLFLAG_RW,
|
||||
&tcp_reass_maxqlen, 0,
|
||||
"Maximum number of TCP Segments per individual Reassembly Queue");
|
||||
&tcp_reass_maxqlen, 0,
|
||||
"Maximum number of TCP Segments per individual Reassembly Queue");
|
||||
|
||||
static int tcp_reass_overflows = 0;
|
||||
SYSCTL_INT(_net_inet_tcp_reass, OID_AUTO, overflows, CTLFLAG_RD,
|
||||
&tcp_reass_overflows, 0,
|
||||
"Global number of TCP Segment Reassembly Queue Overflows");
|
||||
&tcp_reass_overflows, 0,
|
||||
"Global number of TCP Segment Reassembly Queue Overflows");
|
||||
|
||||
int tcp_do_autorcvbuf = 1;
|
||||
SYSCTL_INT(_net_inet_tcp, OID_AUTO, recvbuf_auto, CTLFLAG_RW,
|
||||
&tcp_do_autorcvbuf, 0, "Enable automatic receive buffer sizing");
|
||||
&tcp_do_autorcvbuf, 0, "Enable automatic receive buffer sizing");
|
||||
|
||||
int tcp_autorcvbuf_inc = 16*1024;
|
||||
SYSCTL_INT(_net_inet_tcp, OID_AUTO, recvbuf_inc, CTLFLAG_RW,
|
||||
&tcp_autorcvbuf_inc, 0, "Incrementor step size of automatic receive buffer");
|
||||
&tcp_autorcvbuf_inc, 0,
|
||||
"Incrementor step size of automatic receive buffer");
|
||||
|
||||
int tcp_autorcvbuf_max = 256*1024;
|
||||
SYSCTL_INT(_net_inet_tcp, OID_AUTO, recvbuf_max, CTLFLAG_RW,
|
||||
&tcp_autorcvbuf_max, 0, "Max size of automatic receive buffer");
|
||||
&tcp_autorcvbuf_max, 0, "Max size of automatic receive buffer");
|
||||
|
||||
struct inpcbhead tcb;
|
||||
#define tcb6 tcb /* for KAME src sync over BSD*'s */
|
||||
|
@ -151,17 +151,17 @@ extern struct uma_zone *sack_hole_zone;
|
||||
SYSCTL_NODE(_net_inet_tcp, OID_AUTO, sack, CTLFLAG_RW, 0, "TCP SACK");
|
||||
int tcp_do_sack = 1;
|
||||
SYSCTL_INT(_net_inet_tcp_sack, OID_AUTO, enable, CTLFLAG_RW,
|
||||
&tcp_do_sack, 0, "Enable/Disable TCP SACK support");
|
||||
&tcp_do_sack, 0, "Enable/Disable TCP SACK support");
|
||||
TUNABLE_INT("net.inet.tcp.sack.enable", &tcp_do_sack);
|
||||
|
||||
static int tcp_sack_maxholes = 128;
|
||||
SYSCTL_INT(_net_inet_tcp_sack, OID_AUTO, maxholes, CTLFLAG_RW,
|
||||
&tcp_sack_maxholes, 0,
|
||||
&tcp_sack_maxholes, 0,
|
||||
"Maximum number of TCP SACK holes allowed per connection");
|
||||
|
||||
static int tcp_sack_globalmaxholes = 65536;
|
||||
SYSCTL_INT(_net_inet_tcp_sack, OID_AUTO, globalmaxholes, CTLFLAG_RW,
|
||||
&tcp_sack_globalmaxholes, 0,
|
||||
&tcp_sack_globalmaxholes, 0,
|
||||
"Global maximum number of TCP SACK holes");
|
||||
|
||||
static int tcp_sack_globalholes = 0;
|
||||
|
@ -117,13 +117,13 @@
|
||||
|
||||
int tcp_mssdflt = TCP_MSS;
|
||||
SYSCTL_INT(_net_inet_tcp, TCPCTL_MSSDFLT, mssdflt, CTLFLAG_RW,
|
||||
&tcp_mssdflt , 0, "Default TCP Maximum Segment Size");
|
||||
&tcp_mssdflt, 0, "Default TCP Maximum Segment Size");
|
||||
|
||||
#ifdef INET6
|
||||
int tcp_v6mssdflt = TCP6_MSS;
|
||||
SYSCTL_INT(_net_inet_tcp, TCPCTL_V6MSSDFLT, v6mssdflt,
|
||||
CTLFLAG_RW, &tcp_v6mssdflt , 0,
|
||||
"Default TCP Maximum Segment Size for IPv6");
|
||||
CTLFLAG_RW, &tcp_v6mssdflt , 0,
|
||||
"Default TCP Maximum Segment Size for IPv6");
|
||||
#endif
|
||||
|
||||
/*
|
||||
@ -147,26 +147,28 @@ SYSCTL_INT(_net_inet_tcp, OID_AUTO, minmss, CTLFLAG_RW,
|
||||
*/
|
||||
int tcp_minmssoverload = TCP_MINMSSOVERLOAD;
|
||||
SYSCTL_INT(_net_inet_tcp, OID_AUTO, minmssoverload, CTLFLAG_RW,
|
||||
&tcp_minmssoverload , 0, "Number of TCP Segments per Second allowed to"
|
||||
"be under the MINMSS Size");
|
||||
&tcp_minmssoverload , 0,
|
||||
"Number of TCP Segments per Second allowed to be under the MINMSS Size");
|
||||
|
||||
int tcp_do_rfc1323 = 1;
|
||||
SYSCTL_INT(_net_inet_tcp, TCPCTL_DO_RFC1323, rfc1323, CTLFLAG_RW,
|
||||
&tcp_do_rfc1323 , 0, "Enable rfc1323 (high performance TCP) extensions");
|
||||
&tcp_do_rfc1323, 0, "Enable rfc1323 (high performance TCP) extensions");
|
||||
|
||||
static int tcp_tcbhashsize = 0;
|
||||
SYSCTL_INT(_net_inet_tcp, OID_AUTO, tcbhashsize, CTLFLAG_RDTUN,
|
||||
&tcp_tcbhashsize, 0, "Size of TCP control-block hashtable");
|
||||
&tcp_tcbhashsize, 0, "Size of TCP control-block hashtable");
|
||||
|
||||
static int do_tcpdrain = 1;
|
||||
SYSCTL_INT(_net_inet_tcp, OID_AUTO, do_tcpdrain, CTLFLAG_RW, &do_tcpdrain, 0,
|
||||
"Enable tcp_drain routine for extra help when low on mbufs");
|
||||
SYSCTL_INT(_net_inet_tcp, OID_AUTO, do_tcpdrain, CTLFLAG_RW,
|
||||
&do_tcpdrain, 0,
|
||||
"Enable tcp_drain routine for extra help when low on mbufs");
|
||||
|
||||
SYSCTL_INT(_net_inet_tcp, OID_AUTO, pcbcount, CTLFLAG_RD,
|
||||
&tcbinfo.ipi_count, 0, "Number of active PCBs");
|
||||
|
||||
static int icmp_may_rst = 1;
|
||||
SYSCTL_INT(_net_inet_tcp, OID_AUTO, icmp_may_rst, CTLFLAG_RW, &icmp_may_rst, 0,
|
||||
SYSCTL_INT(_net_inet_tcp, OID_AUTO, icmp_may_rst, CTLFLAG_RW,
|
||||
&icmp_may_rst, 0,
|
||||
"Certain ICMP unreachable messages may abort connections in SYN_SENT");
|
||||
|
||||
static int tcp_isn_reseed_interval = 0;
|
||||
@ -216,8 +218,8 @@ SYSCTL_PROC(_net_inet_tcp, OID_AUTO, maxtcptw, CTLTYPE_INT|CTLFLAG_RW,
|
||||
|
||||
static int nolocaltimewait = 0;
|
||||
SYSCTL_INT(_net_inet_tcp, OID_AUTO, nolocaltimewait, CTLFLAG_RW,
|
||||
&nolocaltimewait, 0, "Do not create compressed TCP TIME_WAIT entries"
|
||||
"for local connections");
|
||||
&nolocaltimewait, 0,
|
||||
"Do not create compressed TCP TIME_WAIT entries for local connections");
|
||||
|
||||
/*
|
||||
* TCP bandwidth limiting sysctls. Note that the default lower bound of
|
||||
|
@ -76,8 +76,8 @@ SYSCTL_PROC(_net_inet_tcp, TCPCTL_KEEPINTVL, keepintvl, CTLTYPE_INT|CTLFLAG_RW,
|
||||
&tcp_keepintvl, 0, sysctl_msec_to_ticks, "I", "");
|
||||
|
||||
int tcp_delacktime;
|
||||
SYSCTL_PROC(_net_inet_tcp, TCPCTL_DELACKTIME, delacktime,
|
||||
CTLTYPE_INT|CTLFLAG_RW, &tcp_delacktime, 0, sysctl_msec_to_ticks, "I",
|
||||
SYSCTL_PROC(_net_inet_tcp, TCPCTL_DELACKTIME, delacktime, CTLTYPE_INT|CTLFLAG_RW,
|
||||
&tcp_delacktime, 0, sysctl_msec_to_ticks, "I",
|
||||
"Time before a delayed ACK is sent");
|
||||
|
||||
int tcp_msl;
|
||||
@ -86,11 +86,13 @@ SYSCTL_PROC(_net_inet_tcp, OID_AUTO, msl, CTLTYPE_INT|CTLFLAG_RW,
|
||||
|
||||
int tcp_rexmit_min;
|
||||
SYSCTL_PROC(_net_inet_tcp, OID_AUTO, rexmit_min, CTLTYPE_INT|CTLFLAG_RW,
|
||||
&tcp_rexmit_min, 0, sysctl_msec_to_ticks, "I", "Minimum Retransmission Timeout");
|
||||
&tcp_rexmit_min, 0, sysctl_msec_to_ticks, "I",
|
||||
"Minimum Retransmission Timeout");
|
||||
|
||||
int tcp_rexmit_slop;
|
||||
SYSCTL_PROC(_net_inet_tcp, OID_AUTO, rexmit_slop, CTLTYPE_INT|CTLFLAG_RW,
|
||||
&tcp_rexmit_slop, 0, sysctl_msec_to_ticks, "I", "Retransmission Timer Slop");
|
||||
&tcp_rexmit_slop, 0, sysctl_msec_to_ticks, "I",
|
||||
"Retransmission Timer Slop");
|
||||
|
||||
static int always_keepalive = 1;
|
||||
SYSCTL_INT(_net_inet_tcp, OID_AUTO, always_keepalive, CTLFLAG_RW,
|
||||
@ -98,11 +100,12 @@ SYSCTL_INT(_net_inet_tcp, OID_AUTO, always_keepalive, CTLFLAG_RW,
|
||||
|
||||
int tcp_fast_finwait2_recycle = 0;
|
||||
SYSCTL_INT(_net_inet_tcp, OID_AUTO, fast_finwait2_recycle, CTLFLAG_RW,
|
||||
&tcp_fast_finwait2_recycle, 0, "Recycle closed FIN_WAIT_2 connections faster");
|
||||
&tcp_fast_finwait2_recycle, 0,
|
||||
"Recycle closed FIN_WAIT_2 connections faster");
|
||||
|
||||
int tcp_finwait2_timeout;
|
||||
SYSCTL_PROC(_net_inet_tcp, OID_AUTO, finwait2_timeout, CTLTYPE_INT|CTLFLAG_RW,
|
||||
&tcp_finwait2_timeout, 0, sysctl_msec_to_ticks, "I", "");
|
||||
&tcp_finwait2_timeout, 0, sysctl_msec_to_ticks, "I", "FIN-WAIT2 timeout");
|
||||
|
||||
|
||||
static int tcp_keepcnt = TCPTV_KEEPCNT;
|
||||
|
@ -117,13 +117,13 @@
|
||||
|
||||
int tcp_mssdflt = TCP_MSS;
|
||||
SYSCTL_INT(_net_inet_tcp, TCPCTL_MSSDFLT, mssdflt, CTLFLAG_RW,
|
||||
&tcp_mssdflt , 0, "Default TCP Maximum Segment Size");
|
||||
&tcp_mssdflt, 0, "Default TCP Maximum Segment Size");
|
||||
|
||||
#ifdef INET6
|
||||
int tcp_v6mssdflt = TCP6_MSS;
|
||||
SYSCTL_INT(_net_inet_tcp, TCPCTL_V6MSSDFLT, v6mssdflt,
|
||||
CTLFLAG_RW, &tcp_v6mssdflt , 0,
|
||||
"Default TCP Maximum Segment Size for IPv6");
|
||||
CTLFLAG_RW, &tcp_v6mssdflt , 0,
|
||||
"Default TCP Maximum Segment Size for IPv6");
|
||||
#endif
|
||||
|
||||
/*
|
||||
@ -147,26 +147,28 @@ SYSCTL_INT(_net_inet_tcp, OID_AUTO, minmss, CTLFLAG_RW,
|
||||
*/
|
||||
int tcp_minmssoverload = TCP_MINMSSOVERLOAD;
|
||||
SYSCTL_INT(_net_inet_tcp, OID_AUTO, minmssoverload, CTLFLAG_RW,
|
||||
&tcp_minmssoverload , 0, "Number of TCP Segments per Second allowed to"
|
||||
"be under the MINMSS Size");
|
||||
&tcp_minmssoverload , 0,
|
||||
"Number of TCP Segments per Second allowed to be under the MINMSS Size");
|
||||
|
||||
int tcp_do_rfc1323 = 1;
|
||||
SYSCTL_INT(_net_inet_tcp, TCPCTL_DO_RFC1323, rfc1323, CTLFLAG_RW,
|
||||
&tcp_do_rfc1323 , 0, "Enable rfc1323 (high performance TCP) extensions");
|
||||
&tcp_do_rfc1323, 0, "Enable rfc1323 (high performance TCP) extensions");
|
||||
|
||||
static int tcp_tcbhashsize = 0;
|
||||
SYSCTL_INT(_net_inet_tcp, OID_AUTO, tcbhashsize, CTLFLAG_RDTUN,
|
||||
&tcp_tcbhashsize, 0, "Size of TCP control-block hashtable");
|
||||
&tcp_tcbhashsize, 0, "Size of TCP control-block hashtable");
|
||||
|
||||
static int do_tcpdrain = 1;
|
||||
SYSCTL_INT(_net_inet_tcp, OID_AUTO, do_tcpdrain, CTLFLAG_RW, &do_tcpdrain, 0,
|
||||
"Enable tcp_drain routine for extra help when low on mbufs");
|
||||
SYSCTL_INT(_net_inet_tcp, OID_AUTO, do_tcpdrain, CTLFLAG_RW,
|
||||
&do_tcpdrain, 0,
|
||||
"Enable tcp_drain routine for extra help when low on mbufs");
|
||||
|
||||
SYSCTL_INT(_net_inet_tcp, OID_AUTO, pcbcount, CTLFLAG_RD,
|
||||
&tcbinfo.ipi_count, 0, "Number of active PCBs");
|
||||
|
||||
static int icmp_may_rst = 1;
|
||||
SYSCTL_INT(_net_inet_tcp, OID_AUTO, icmp_may_rst, CTLFLAG_RW, &icmp_may_rst, 0,
|
||||
SYSCTL_INT(_net_inet_tcp, OID_AUTO, icmp_may_rst, CTLFLAG_RW,
|
||||
&icmp_may_rst, 0,
|
||||
"Certain ICMP unreachable messages may abort connections in SYN_SENT");
|
||||
|
||||
static int tcp_isn_reseed_interval = 0;
|
||||
@ -216,8 +218,8 @@ SYSCTL_PROC(_net_inet_tcp, OID_AUTO, maxtcptw, CTLTYPE_INT|CTLFLAG_RW,
|
||||
|
||||
static int nolocaltimewait = 0;
|
||||
SYSCTL_INT(_net_inet_tcp, OID_AUTO, nolocaltimewait, CTLFLAG_RW,
|
||||
&nolocaltimewait, 0, "Do not create compressed TCP TIME_WAIT entries"
|
||||
"for local connections");
|
||||
&nolocaltimewait, 0,
|
||||
"Do not create compressed TCP TIME_WAIT entries for local connections");
|
||||
|
||||
/*
|
||||
* TCP bandwidth limiting sysctls. Note that the default lower bound of
|
||||
|
Loading…
Reference in New Issue
Block a user