/*
* 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 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* This file is for NCA compatability, specifically it provides ndd
* support for existing NCA ndd ...
*/
extern boolean_t nl7c_logd_enabled;
extern nca_fio_t *nl7c_logd_fio;
extern clock_t nl7c_uri_ttl;
extern boolean_t nl7c_use_kmem;
extern uint64_t nl7c_file_prefetch;
extern uint64_t nl7c_uri_max;
extern uint64_t nl7c_uri_bytes;
extern void nl7c_mi_report_addr(mblk_t *);
/*
* min, max, and value are int64_t's, addr is the optional address of an
* to access. Note, if min == max then only get is allowed, i.e. RO.
*/
/* BEGIN CSTYLED */
/*min max value name */
{ 0, 1, 1, "nca_log_cycle"},
{ 0, 1, 0, "no_caching"},
{ 0, PARAML_MAX, 0, "nca_log_size"},
{ 0, 1, 1, "nca_inq_nointr"},
{ 0, 1, 1, "nca_use_hwcksum"},
{ 0, PARAM_MAX, 0, "nca_segmap_min_size"},
};
/*
*/
{ 0, 0, 0, "ip_forwarding"},
{ 0, 0, 0, "ip_respond_to_address_mask_broadcast"},
{ 0, 0, 0, "ip_respond_to_echo_broadcast"},
{ 0, 0, 0, "ip_respond_to_timestamp"},
{ 0, 0, 0, "ip_respond_to_timestamp_broadcast"},
{ 0, 0, 0, "ip_send_redirects"},
{ 0, 0, 0, "ip_forward_directed_broadcasts"},
{ 0, 0, 0, "ip_debug"},
{ 0, 0, 0, "ip_mrtdebug"},
{ 0, 0, 0, "ip_ire_cleanup_interval" },
{ 0, 0, 0, "ip_ire_flush_interval" },
{ 0, 0, 0, "ip_ire_redirect_interval" },
{ 0, 0, 0, "ip_def_ttl" },
{ 0, 0, 0, "ip_forward_src_routed"},
{ 0, 0, 0, "ip_wroff_extra" },
{ 0, 0, 0, "ip_ire_pathmtu_interval" },
{ 0, 0, 0, "ip_icmp_return_data_bytes" },
{ 0, 0, 0, "ip_send_source_quench" },
{ 0, 0, 0, "ip_path_mtu_discovery" },
{ 0, 0, 0, "ip_ignore_delete_time" },
{ 0, 0, 0, "ip_ignore_redirect" },
{ 0, 0, 0, "ip_output_queue" },
{ 0, 0, 0, "ip_broadcast_ttl" },
{ 0, 0, 0, "ip_icmp_err_interval" },
{ 0, 0, 0, "ip_reass_queue_bytes" },
{ 0, 0, 0, "ip_strict_dst_multihoming" },
{ 0, 0, 0, "ip_addrs_per_if"},
};
/*
*/
{ 0, 0, 0, "tcp_time_wait_interval"},
{ 0, 0, 0, "tcp_conn_req_max_q" },
{ 0, 0, 0, "tcp_conn_req_max_q0" },
{ 0, 0, 0, "tcp_conn_req_min" },
{ 0, 0, 0, "tcp_conn_grace_period" },
{ 0, 0, 0, "tcp_cwnd_max" },
{ 0, 0, 0, "tcp_debug" },
{ 0, 0, 0, "tcp_smallest_nonpriv_port"},
{ 0, 0, 0, "tcp_ip_abort_cinterval"},
{ 0, 0, 0, "tcp_ip_abort_linterval"},
{ 0, 0, 0, "tcp_ip_abort_interval"},
{ 0, 0, 0, "tcp_ip_notify_cinterval"},
{ 0, 0, 0, "tcp_ip_notify_interval"},
{ 0, 0, 0, "tcp_ip_ttl"},
{ 0, 0, 0, "tcp_keepalive_interval"},
{ 0, 0, 0, "tcp_maxpsz_multiplier" },
{ 0, 0, 0, "tcp_mss_def"},
{ 0, 0, 0, "tcp_mss_max"},
{ 0, 0, 0, "tcp_mss_min"},
{ 0, 0, 0, "tcp_naglim_def"},
{ 0, 0, 0, "tcp_rexmit_interval_initial"},
{ 0, 0, 0, "tcp_rexmit_interval_max"},
{ 0, 0, 0, "tcp_rexmit_interval_min"},
{ 0, 0, 0, "tcp_wroff_xtra" },
{ 0, 0, 0, "tcp_deferred_ack_interval" },
{ 0, 0, 0, "tcp_snd_lowat_fraction" },
{ 0, 0, 0, "tcp_sth_rcv_hiwat" },
{ 0, 0, 0, "tcp_sth_rcv_lowat" },
{ 0, 0, 0, "tcp_dupack_fast_retransmit" },
{ 0, 0, 0, "tcp_ignore_path_mtu" },
{ 0, 0, 0, "tcp_rcv_push_wait" },
{ 0, 0, 0, "tcp_smallest_anon_port"},
{ 0, 0, 0, "tcp_largest_anon_port"},
{ 0, 0, 0, "tcp_xmit_hiwat"},
{ 0, 0, 0, "tcp_xmit_lowat"},
{ 0, 0, 0, "tcp_recv_hiwat"},
{ 0, 0, 0, "tcp_recv_hiwat_minmss"},
{ 0, 0, 0, "tcp_fin_wait_2_flush_interval"},
{ 0, 0, 0, "tcp_max_buf"},
{ 0, 0, 0, "tcp_strong_iss"},
{ 0, 0, 0, "tcp_rtt_updates"},
{ 0, 0, 0, "tcp_wscale_always"},
{ 0, 0, 0, "tcp_tstamp_always"},
{ 0, 0, 0, "tcp_tstamp_if_wscale"},
{ 0, 0, 0, "tcp_rexmit_interval_extra"},
{ 0, 0, 0, "tcp_deferred_acks_max"},
{ 0, 0, 0, "tcp_slow_start_after_idle"},
{ 0, 0, 0, "tcp_slow_start_initial"},
{ 0, 0, 0, "tcp_sack_permitted"},
#ifdef DEBUG
{ 0, 0, 0, "tcp_drop_oob"},
#endif
};
/*
* Obsolete nca variables, just warn.
*/
{ 0, 0, 0, "nca_ipport_table_bucket"},
{ 0, 0, 0, "nca_ipport_table_size"},
{ 0, 0, 0, "nca_ipport_table_expand"},
{ 0, 0, 0, "nca_ipport_table_shrink"},
{ 0, 0, 0, "nca_ip_virtual_hosting"},
{ 0, 0, 0, "httpd_door_address"},
{ 0, 0, 0, "httpd_door_path"},
{ 0, 0, 0, "httpd_downdoor_path"},
{ 0, 0, 0, "nca_ppmax"},
{ 0, 0, 0, "nca_vpmax"},
{ 0, 0, 0, "nca_use_segmap"},
{ 0, 0, 0, "nca_availrmem"},
{ 0, 0, 0, "nca_maxkmem"},
{ 0, 0, 0, "nca_log_file"},
{ 0, 0, 0, "conn_status"},
{ 0, 0, 0, "conn_status_all"},
{ 0, 0, 0, "nca_conn_req_max_q"},
{ 0, 0, 0, "nca_conn_req_max_q0"},
{ 0, 0, 0, "cache_clear"},
{ 0, 0, 0, "nca_node_hash"},
{ 0, 0, 0, "node_status"},
#ifdef DEBUG
{ 0, 0, 0, "nca_debug_counter"},
#endif
};
/* END CSTYLED */
static int
/*ARGSUSED*/
{
return (0);
}
static int
/*ARGSUSED*/
{
return (EINVAL);
return (0);
}
static int
/*ARGSUSED*/
{
return (0);
}
static int
/*ARGSUSED*/
{
long new_value;
new_value > 1) {
return (EINVAL);
}
if (nca_fio_cnt(nl7c_logd_fio) == 0)
return (EINVAL);
return (0);
}
static int
/*ARGSUSED*/
{
return (0);
}
static int
/*ARGSUSED*/
{
return (0);
}
static int
/*ARGSUSED*/
{
return (0);
}
static int
/*ARGSUSED*/
{
return (0);
}
static int
/*ARGSUSED*/
{
return (0);
}
static int
/*ARGSUSED*/
{
return (EINVAL);
}
return (0);
}
static int
/*ARGSUSED*/
{
return (0);
}
static int
/*ARGSUSED*/
{
return (0);
}
static int
/*ARGSUSED*/
{
return (0);
}
static int
/*ARGSUSED*/
{
return (0);
}
static boolean_t
{
goto error;
}
}
}
goto error;
}
goto error;
}
goto error;
}
goto error;
}
goto error;
}
return (B_FALSE);
}
goto error;
}
}
}
goto error;
}
}
}
goto error;
}
}
}
return (B_TRUE);
return (B_FALSE);
}
void
nl7c_nca_init(void)
{
if (! nca_g_nd) {
}
}