sctp_tunables.c revision 8887b57dc579de11464fc6c74163d2595ce073af
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
/* Max size IP datagram is 64k - 1 */
sizeof (sctp_hdr_t)))
sizeof (sctp_hdr_t)))
/* Max of the above */
#define SCTP_MSS_MAX SCTP_MSS_MAX_IPV4
/*
* returns the current list of listener limit configuration.
*/
/* ARGSUSED */
static int
{
int err = 0;
return (0);
else
/* Buffer overflow, stop copying information */
break;
}
}
return (err);
}
/*
* add a new listener limit configuration.
*/
/* ARGSUSED */
static int
{
long lport;
long ratio;
char *colon;
if (flags & MOD_PROP_DEFAULT)
return (ENOTSUP);
return (EINVAL);
}
return (EINVAL);
/* There is an existing entry, so update its ratio value. */
return (0);
}
}
NULL) {
return (ENOMEM);
}
return (0);
}
/*
* remove a listener limit configuration.
*/
/* ARGSUSED */
static int
{
long lport;
if (flags & MOD_PROP_DEFAULT)
return (ENOTSUP);
return (EINVAL);
}
return (0);
}
}
return (ESRCH);
}
/*
*
* Note: All those tunables which do not start with "_" are Committed and
* therefore are public. See PSARC 2010/080.
*/
{ "_max_init_retr", MOD_PROTO_SCTP,
{0, 128, 8}, {8} },
{ "_pa_max_retr", MOD_PROTO_SCTP,
{1, 128, 10}, {10} },
{ "_pp_max_retr", MOD_PROTO_SCTP,
{1, 128, 5}, {5} },
{ "_cwnd_max", MOD_PROTO_SCTP,
{128, (1<<30), 1024*1024}, {1024*1024} },
{ "smallest_nonpriv_port", MOD_PROTO_SCTP,
{1024, (32*1024), 1024}, {1024} },
{ "_ipv4_ttl", MOD_PROTO_SCTP,
{1, 255, 64}, {64} },
{ "_heartbeat_interval", MOD_PROTO_SCTP,
{ "_initial_mtu", MOD_PROTO_SCTP,
{68, 65535, 1500}, {1500} },
{ "_mtu_probe_interval", MOD_PROTO_SCTP,
{ "_new_secret_interval", MOD_PROTO_SCTP,
/* tunable - 10 */
{ "_deferred_ack_interval", MOD_PROTO_SCTP,
{ "_snd_lowat_fraction", MOD_PROTO_SCTP,
{0, 16, 0}, {0} },
{ "_ignore_path_mtu", MOD_PROTO_SCTP,
{ "_initial_ssthresh", MOD_PROTO_SCTP,
{ "smallest_anon_port", MOD_PROTO_SCTP,
{ "largest_anon_port", MOD_PROTO_SCTP,
{ "send_maxbuf", MOD_PROTO_SCTP,
{SCTP_XMIT_HIWATER} },
{ "_xmit_lowat", MOD_PROTO_SCTP,
{SCTP_XMIT_LOWATER} },
{ "recv_maxbuf", MOD_PROTO_SCTP,
{SCTP_RECV_HIWATER} },
{ "_max_buf", MOD_PROTO_SCTP,
{8192, (1<<30), 1024*1024}, {1024*1024} },
/* tunable - 20 */
{ "_rtt_updates", MOD_PROTO_SCTP,
{0, 65536, 20}, {20} },
{ "_ipv6_hoplimit", MOD_PROTO_SCTP,
{ "_rto_min", MOD_PROTO_SCTP,
{ "_rto_max", MOD_PROTO_SCTP,
{ "_rto_initial", MOD_PROTO_SCTP,
{ "_cookie_life", MOD_PROTO_SCTP,
{ "_max_in_streams", MOD_PROTO_SCTP,
{ "_initial_out_streams", MOD_PROTO_SCTP,
{ "_shutack_wait_bound", MOD_PROTO_SCTP,
{ "_maxburst", MOD_PROTO_SCTP,
{2, 8, 4}, {4} },
/* tunable - 30 */
{ "_addip_enabled", MOD_PROTO_SCTP,
{ "_recv_hiwat_minmss", MOD_PROTO_SCTP,
{1, 65536, 4}, {4} },
{ "_slow_start_initial", MOD_PROTO_SCTP,
{1, 16, 4}, {4} },
{ "_slow_start_after_idle", MOD_PROTO_SCTP,
{1, 16384, 4}, {4} },
{ "_prsctp_enabled", MOD_PROTO_SCTP,
{ "_fast_rxt_thresh", MOD_PROTO_SCTP,
{1, 10000, 3}, {3} },
{ "_deferred_acks_max", MOD_PROTO_SCTP,
{ 1, 16, 2}, {2} },
/*
* for link layer header. It has to be a multiple of 8.
*/
{ "_wroff_xtra", MOD_PROTO_SCTP,
{0, 256, 32}, {32} },
{ "extra_priv_ports", MOD_PROTO_SCTP,
{1, ULP_MAX_PORT, 0}, {0} },
{ "_listener_limit_conf", MOD_PROTO_SCTP,
NULL, sctp_listener_conf_get, {0}, {0} },
{ "_listener_limit_conf_add", MOD_PROTO_SCTP,
sctp_listener_conf_add, NULL, {0}, {0} },
{ "_listener_limit_conf_del", MOD_PROTO_SCTP,
sctp_listener_conf_del, NULL, {0}, {0} },
};