udp_tunables.c revision 7256a34efe9df75b638b9e812912ef7c5c68e208
/*
* 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
*/
/*
* Copyright 2013 Nexenta Systems, Inc. All rights reserved.
*/
/* Copyright (c) 1990 Mentat Inc. */
#include <inet/udp_impl.h>
/*
* ever happen to be (largest < smallest).
*/
/* ARGSUSED */
static int
{
unsigned long new_value;
int err;
return (err);
/* mod_uint32_value() + pinfo guarantees we're in UDP port range. */
return (ERANGE);
return (0);
}
/* ARGSUSED */
static int
{
unsigned long new_value;
int err;
return (err);
/* mod_uint32_value() + pinfo guarantees we're in UDP port range. */
return (ERANGE);
return (0);
}
/*
*
* Note: All those tunables which do not start with "_" are Committed and
* therefore are public. See PSARC 2010/080.
*/
/* tunable - 0 */
{ "_wroff_extra", MOD_PROTO_UDP,
{0, 256, 32}, {32} },
{ "_ipv4_ttl", MOD_PROTO_UDP,
{1, 255, 255}, {255} },
{ "_ipv6_hoplimit", MOD_PROTO_UDP,
{ "smallest_nonpriv_port", MOD_PROTO_UDP,
{1024, (32 * 1024), 1024}, {1024} },
{ "_do_checksum", MOD_PROTO_UDP,
{ "smallest_anon_port", MOD_PROTO_UDP,
{ "largest_anon_port", MOD_PROTO_UDP,
{ "send_maxbuf", MOD_PROTO_UDP,
{UDP_XMIT_HIWATER} },
{ "_xmit_lowat", MOD_PROTO_UDP,
{UDP_XMIT_LOWATER} },
{ "recv_maxbuf", MOD_PROTO_UDP,
{UDP_RECV_HIWATER} },
/* tunable - 10 */
{ "_max_buf", MOD_PROTO_UDP,
{65536, (1<<30), 2*1024*1024}, {2*1024*1024} },
{ "_pmtu_discovery", MOD_PROTO_UDP,
{ "_sendto_ignerr", MOD_PROTO_UDP,
{ "extra_priv_ports", MOD_PROTO_UDP,
{1, ULP_MAX_PORT, 0}, {0} },
};