/*
- * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2000-2007 Apple Inc. All rights reserved.
*
- * @APPLE_LICENSE_HEADER_START@
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
- * The contents of this file constitute Original Code as defined in and
- * are subject to the Apple Public Source License Version 1.1 (the
- * "License"). You may not use this file except in compliance with the
- * License. Please obtain a copy of the License at
- * http://www.apple.com/publicsource and read it before using this file.
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
*
- * This Original Code and all software distributed under the License are
- * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
* EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
* INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
- * License for the specific language governing rights and limitations
- * under the License.
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
*
- * @APPLE_LICENSE_HEADER_END@
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+/*
+ * NOTICE: This file was modified by SPARTA, Inc. in 2005 to introduce
+ * support for mandatory and extensible security protections. This notice
+ * is included in support of clause 2.2 (b) of the Apple Public License,
+ * Version 2.0.
*/
-
-#include <sys/param.h>
-#include <sys/buf.h>
-#include <sys/kernel.h>
-#include <sys/sysctl.h>
-
-extern struct sysctl_oid sysctl__debug_bpf_bufsize;
-extern struct sysctl_oid sysctl__debug_bpf_maxbufsize;
-
-#if TUN
-extern struct sysctl_oid sysctl__debug_if_tun_debug;
-#endif
-
-#if COMPAT_43
-#ifndef NeXT
-extern struct sysctl_oid sysctl__debug_ttydebug;
-#endif
-#endif
-
-extern struct sysctl_oid sysctl__hw_machine;
-extern struct sysctl_oid sysctl__hw_model;
-extern struct sysctl_oid sysctl__hw_ncpu;
-extern struct sysctl_oid sysctl__hw_activecpu;
-extern struct sysctl_oid sysctl__hw_byteorder;
-extern struct sysctl_oid sysctl__hw_cputype;
-extern struct sysctl_oid sysctl__hw_cpusubtype;
-extern struct sysctl_oid sysctl__hw_physmem;
-extern struct sysctl_oid sysctl__hw_usermem;
-extern struct sysctl_oid sysctl__hw_pagesize;
-extern struct sysctl_oid sysctl__hw_epoch;
-extern struct sysctl_oid sysctl__hw_vectorunit;
-extern struct sysctl_oid sysctl__hw_busfrequency;
-extern struct sysctl_oid sysctl__hw_busfrequency_min;
-extern struct sysctl_oid sysctl__hw_busfrequency_max;
-extern struct sysctl_oid sysctl__hw_cpufrequency;
-extern struct sysctl_oid sysctl__hw_cpufrequency_min;
-extern struct sysctl_oid sysctl__hw_cpufrequency_max;
-extern struct sysctl_oid sysctl__hw_cachelinesize;
-extern struct sysctl_oid sysctl__hw_l1icachesize;
-extern struct sysctl_oid sysctl__hw_l1dcachesize;
-extern struct sysctl_oid sysctl__hw_l2settings;
-extern struct sysctl_oid sysctl__hw_l2cachesize;
-extern struct sysctl_oid sysctl__hw_l3settings;
-extern struct sysctl_oid sysctl__hw_l3cachesize;
-extern struct sysctl_oid sysctl__hw_tbfrequency;
-extern struct sysctl_oid sysctl__hw_memsize;
-
-extern struct sysctl_oid sysctl__hw_optional;
-extern struct sysctl_oid sysctl__hw_optional_floatingpoint;
-
-extern struct sysctl_oid sysctl__hw_pagesize_compat;
-extern struct sysctl_oid sysctl__hw_busfrequency_compat;
-extern struct sysctl_oid sysctl__hw_cpufrequency_compat;
-extern struct sysctl_oid sysctl__hw_cachelinesize_compat;
-extern struct sysctl_oid sysctl__hw_l1icachesize_compat;
-extern struct sysctl_oid sysctl__hw_l1dcachesize_compat;
-extern struct sysctl_oid sysctl__hw_l2cachesize_compat;
-extern struct sysctl_oid sysctl__hw_l3cachesize_compat;
-extern struct sysctl_oid sysctl__hw_tbfrequency_compat;
-
-extern struct sysctl_oid sysctl__kern_sysv_shmmax;
-extern struct sysctl_oid sysctl__kern_sysv_shmmin;
-extern struct sysctl_oid sysctl__kern_sysv_shmmni;
-extern struct sysctl_oid sysctl__kern_sysv_shmseg;
-extern struct sysctl_oid sysctl__kern_sysv_shmall;
-
-extern struct sysctl_oid sysctl__kern_sysv_semmni;
-extern struct sysctl_oid sysctl__kern_sysv_semmns;
-extern struct sysctl_oid sysctl__kern_sysv_semmnu;
-extern struct sysctl_oid sysctl__kern_sysv_semmsl;
-extern struct sysctl_oid sysctl__kern_sysv_semume;
-
-extern struct sysctl_oid sysctl__kern_dummy;
-extern struct sysctl_oid sysctl__kern_ipc_maxsockbuf;
-extern struct sysctl_oid sysctl__kern_ipc_nmbclusters;
-extern struct sysctl_oid sysctl__kern_ipc_sockbuf_waste_factor;
-extern struct sysctl_oid sysctl__kern_ipc_somaxconn;
-extern struct sysctl_oid sysctl__kern_ipc_sosendminchain;
-extern struct sysctl_oid sysctl__kern_ipc_sorecvmincopy;
-extern struct sysctl_oid sysctl__kern_ipc_maxsockets;
-extern struct sysctl_oid sysctl__kern_sugid_scripts;
-extern struct sysctl_oid sysctl__net_inet_icmp_icmplim;
-extern struct sysctl_oid sysctl__net_inet_icmp_maskrepl;
-extern struct sysctl_oid sysctl__net_inet_icmp_timestamp;
-extern struct sysctl_oid sysctl__net_inet_icmp_bmcastecho;
-extern struct sysctl_oid sysctl__net_inet_icmp_log_redirect;
-extern struct sysctl_oid sysctl__net_inet_icmp_drop_redirect;
-extern struct sysctl_oid sysctl__net_inet_ip_accept_sourceroute;
-
-#if IPCTL_DEFMTU
-extern struct sysctl_oid sysctl__net_inet_ip_mtu;
-#endif
-
-extern struct sysctl_oid sysctl__net_inet_ip_ttl;
-extern struct sysctl_oid sysctl__net_inet_ip_fastforwarding;
-extern struct sysctl_oid sysctl__net_inet_ip_forwarding;
-extern struct sysctl_oid sysctl__net_inet_ip_intr_queue_drops;
-extern struct sysctl_oid sysctl__net_inet_ip_intr_queue_maxlen;
-extern struct sysctl_oid sysctl__net_inet_ip_rtexpire;
-extern struct sysctl_oid sysctl__net_inet_ip_rtmaxcache;
-extern struct sysctl_oid sysctl__net_inet_ip_rtminexpire;
-extern struct sysctl_oid sysctl__net_inet_ip_redirect;
-extern struct sysctl_oid sysctl__net_inet_ip_sourceroute;
-extern struct sysctl_oid sysctl__net_inet_ip_subnets_are_local;
-extern struct sysctl_oid sysctl__net_inet_ip_keepfaith;
-extern struct sysctl_oid sysctl__net_inet_ip_maxfragpackets;
-extern struct sysctl_oid sysctl__net_inet_ip_maxfragsperpacket;
-extern struct sysctl_oid sysctl__net_inet_ip_check_interface;
-extern struct sysctl_oid sysctl__net_inet_ip_check_route_selfref;
-extern struct sysctl_oid sysctl__net_inet_ip_use_route_genid;
-#if NGIF > 0
-extern struct sysctl_oid sysctl__net_inet_ip_gifttl;
-#endif
-
-#if DUMMYNET
-extern struct sysctl_oid sysctl__net_inet_ip_dummynet_calls;
-extern struct sysctl_oid sysctl__net_inet_ip_dummynet_debug;
-extern struct sysctl_oid sysctl__net_inet_ip_dummynet_idle;
-extern struct sysctl_oid sysctl__net_inet_ip_dummynet;
-#endif
-
-#if IPFIREWALL && !IPFIREWALL_KEXT
-extern struct sysctl_oid sysctl__net_inet_ip_fw_debug;
-extern struct sysctl_oid sysctl__net_inet_ip_fw_verbose;
-extern struct sysctl_oid sysctl__net_inet_ip_fw_verbose_limit;
-extern struct sysctl_oid sysctl__net_inet_ip_fw_one_pass;
-extern struct sysctl_oid sysctl__net_inet_ip_fw;
-#endif
-
-extern struct sysctl_oid sysctl__net_inet_ip_linklocal;
-extern struct sysctl_oid sysctl__net_inet_ip_linklocal_stat;
-extern struct sysctl_oid sysctl__net_inet_ip_linklocal_in;
-extern struct sysctl_oid sysctl__net_inet_ip_linklocal_in_allowbadttl;
-
-extern struct sysctl_oid sysctl__net_inet_raw_maxdgram;
-extern struct sysctl_oid sysctl__net_inet_raw_recvspace;
-extern struct sysctl_oid sysctl__net_inet_tcp_always_keepalive;
-extern struct sysctl_oid sysctl__net_inet_tcp_delayed_ack;
-extern struct sysctl_oid sysctl__net_inet_tcp_log_in_vain;
-extern struct sysctl_oid sysctl__net_inet_tcp_pcbcount;
-extern struct sysctl_oid sysctl__net_inet_tcp_rfc1323;
-extern struct sysctl_oid sysctl__net_inet_tcp_rfc1644;
-extern struct sysctl_oid sysctl__net_inet_tcp_keepidle;
-extern struct sysctl_oid sysctl__net_inet_tcp_keepinit;
-extern struct sysctl_oid sysctl__net_inet_tcp_keepintvl;
-extern struct sysctl_oid sysctl__net_inet_tcp_mssdflt;
-extern struct sysctl_oid sysctl__net_inet_tcp_minmss;
-extern struct sysctl_oid sysctl__net_inet_tcp_recvspace;
-extern struct sysctl_oid sysctl__net_inet_tcp_sendspace;
-extern struct sysctl_oid sysctl__net_inet_tcp_slowlink_wsize;
-extern struct sysctl_oid sysctl__net_inet_tcp_blackhole;
-extern struct sysctl_oid sysctl__net_inet_tcp_tcp_lq_overflow;
-extern struct sysctl_oid sysctl__net_inet_tcp_path_mtu_discovery;
-extern struct sysctl_oid sysctl__net_inet_tcp_slowstart_flightsize;
-extern struct sysctl_oid sysctl__net_inet_tcp_local_slowstart_flightsize;
-extern struct sysctl_oid sysctl__net_inet_tcp_newreno;
-extern struct sysctl_oid sysctl__net_inet_tcp_tcbhashsize;
-extern struct sysctl_oid sysctl__net_inet_tcp_do_tcpdrain;
-extern struct sysctl_oid sysctl__net_inet_tcp_icmp_may_rst;
-extern struct sysctl_oid sysctl__net_inet_tcp_strict_rfc1948;
-extern struct sysctl_oid sysctl__net_inet_tcp_delacktime;
-extern struct sysctl_oid sysctl__net_inet_tcp_isn_reseed_interval;
-extern struct sysctl_oid sysctl__net_inet_tcp_msl;
-#if TCP_DROP_SYNFIN
-extern struct sysctl_oid sysctl__net_inet_tcp_drop_synfin;
-#endif
-#if TCPDEBUG
-extern struct sysctl_oid sysctl__net_inet_tcp_tcpconsdebug;
-#endif
-extern struct sysctl_oid sysctl__net_inet_tcp_sockthreshold;
-extern struct sysctl_oid sysctl__net_inet_tcp_reass_maxsegments;
-extern struct sysctl_oid sysctl__net_inet_tcp_reass_cursegments;
-extern struct sysctl_oid sysctl__net_inet_tcp_reass_overflows;
-extern struct sysctl_oid sysctl__net_inet_tcp_reass;
-
-extern struct sysctl_oid sysctl__net_inet_udp_log_in_vain;
-extern struct sysctl_oid sysctl__net_inet_udp_checksum;
-extern struct sysctl_oid sysctl__net_inet_udp_maxdgram;
-extern struct sysctl_oid sysctl__net_inet_udp_recvspace;
-extern struct sysctl_oid sysctl__net_inet_udp_blackhole;
-
-#if NETAT
-extern struct sysctl_oid sysctl__net_appletalk_debug;
-extern struct sysctl_oid sysctl__net_appletalk_routermix;
-extern struct sysctl_oid sysctl__net_appletalk_ddpstats;
-#endif /* NETAT */
-
-#if BRIDGE
-extern struct sysctl_oid sysctl__net_link_ether_bdgfwc;
-extern struct sysctl_oid sysctl__net_link_ether_bdgfwt;
-extern struct sysctl_oid sysctl__net_link_ether_bdginc;
-extern struct sysctl_oid sysctl__net_link_ether_bdgint;
-extern struct sysctl_oid sysctl__net_link_ether_bridge_ipfw;
-extern struct sysctl_oid sysctl__net_link_ethe_bdgstats;
-#endif
-
-extern struct sysctl_oid sysctl__net_link_ether_inet_host_down_time;
-extern struct sysctl_oid sysctl__net_link_ether_inet_max_age;
-extern struct sysctl_oid sysctl__net_link_ether_inet_maxtries;
-extern struct sysctl_oid sysctl__net_link_ether_inet_proxyall;
-extern struct sysctl_oid sysctl__net_link_ether_inet_prune_intvl;
-extern struct sysctl_oid sysctl__net_link_ether_inet_useloopback;
-extern struct sysctl_oid sysctl__net_link_ether_inet_log_arp_wrong_iface;
-extern struct sysctl_oid sysctl__net_link_ether_inet_apple_hwcksum_tx;
-extern struct sysctl_oid sysctl__net_link_ether_inet_apple_hwcksum_rx;
-
-#if NETMIBS
-extern struct sysctl_oid sysctl__net_link_generic_system_ifcount;
-extern struct sysctl_oid sysctl__net_link_generic;
-extern struct sysctl_oid sysctl__net_link_generic_ifdata;
-extern struct sysctl_oid sysctl__net_link_generic_system;
-#endif
-
-#if VLAN
-extern struct sysctl_oid sysctl__net_link_vlan_link_proto;
-extern struct sysctl_oid sysctl__net_link_vlan;
-extern struct sysctl_oid sysctl__net_link_vlan_link;
-#endif
-
-extern struct sysctl_oid sysctl__net_local_inflight;
-extern struct sysctl_oid sysctl__net_local_dgram_maxdgram;
-extern struct sysctl_oid sysctl__net_local_dgram_recvspace;
-extern struct sysctl_oid sysctl__net_local_stream_recvspace;
-extern struct sysctl_oid sysctl__net_local_stream_sendspace;
-
-#if 0
-extern struct sysctl_oid sysctl__vfs_nfs_nfs_privport;
-extern struct sysctl_oid sysctl__vfs_nfs_async;
-extern struct sysctl_oid sysctl__vfs_nfs_debug;
-extern struct sysctl_oid sysctl__vfs_nfs_defect;
-extern struct sysctl_oid sysctl__vfs_nfs_diskless_valid;
-extern struct sysctl_oid sysctl__vfs_nfs_gatherdelay;
-extern struct sysctl_oid sysctl__vfs_nfs_gatherdelay_v3;
-extern struct sysctl_oid sysctl__vfs_nfs;
-extern struct sysctl_oid sysctl__vfs_nfs_diskless_rootaddr;
-extern struct sysctl_oid sysctl__vfs_nfs_diskless_swapaddr;
-extern struct sysctl_oid sysctl__vfs_nfs_diskless_rootpath;
-extern struct sysctl_oid sysctl__vfs_nfs_diskless_swappath;
-extern struct sysctl_oid sysctl__vfs_nfs_nfsstats;
-#endif
-extern struct sysctl_oid sysctl__vfs_generic_nfs_client_initialdowndelay;
-extern struct sysctl_oid sysctl__vfs_generic_nfs_client_nextdowndelay;
-extern struct sysctl_oid sysctl__vfs_generic_nfs_client;
-extern struct sysctl_oid sysctl__vfs_generic_nfs;
-
-extern struct sysctl_oid sysctl__vfs_generic;
-extern struct sysctl_oid sysctl__vfs_generic_vfsidlist;
-extern struct sysctl_oid sysctl__vfs_generic_ctlbyfsid;
-extern struct sysctl_oid sysctl__vfs_generic_noremotehang;
-
-extern struct sysctl_oid sysctl__kern_ipc;
-extern struct sysctl_oid sysctl__kern_sysv;
-
-extern struct sysctl_oid sysctl__net_inet;
-
-#if NETAT
-extern struct sysctl_oid sysctl__net_appletalk;
-#endif /* NETAT */
-
-extern struct sysctl_oid sysctl__net_link;
-extern struct sysctl_oid sysctl__net_local;
-extern struct sysctl_oid sysctl__net_routetable;
-
-#if IPDIVERT
-extern struct sysctl_oid sysctl__net_inet_div;
-#endif
-
-extern struct sysctl_oid sysctl__net_inet_icmp;
-extern struct sysctl_oid sysctl__net_inet_igmp;
-extern struct sysctl_oid sysctl__net_inet_ip;
-extern struct sysctl_oid sysctl__net_inet_raw;
-extern struct sysctl_oid sysctl__net_inet_tcp;
-extern struct sysctl_oid sysctl__net_inet_udp;
-extern struct sysctl_oid sysctl__net_inet_ip_portrange;
-
-extern struct sysctl_oid sysctl__net_link_ether;
-extern struct sysctl_oid sysctl__net_link_ether_inet;
-
-extern struct sysctl_oid sysctl__net_local_dgram;
-extern struct sysctl_oid sysctl__net_local_stream;
-extern struct sysctl_oid sysctl__sysctl_name;
-extern struct sysctl_oid sysctl__sysctl_next;
-extern struct sysctl_oid sysctl__sysctl_oidfmt;
-extern struct sysctl_oid sysctl__net_inet_ip_portrange_first;
-extern struct sysctl_oid sysctl__net_inet_ip_portrange_hifirst;
-extern struct sysctl_oid sysctl__net_inet_ip_portrange_hilast;
-extern struct sysctl_oid sysctl__net_inet_ip_portrange_last;
-extern struct sysctl_oid sysctl__net_inet_ip_portrange_lowfirst;
-extern struct sysctl_oid sysctl__net_inet_ip_portrange_lowlast;
-extern struct sysctl_oid sysctl__net_inet_raw_pcblist;
-extern struct sysctl_oid sysctl__net_inet_tcp_pcblist;
-extern struct sysctl_oid sysctl__net_inet_udp_pcblist;
-extern struct sysctl_oid sysctl__net_link_ether_bridge;
-extern struct sysctl_oid sysctl__net_local_dgram_pcblist;
-extern struct sysctl_oid sysctl__net_local_stream_pcblist;
-extern struct sysctl_oid sysctl__sysctl_debug;
-extern struct sysctl_oid sysctl__sysctl_name2oid;
-extern struct sysctl_oid sysctl__net_inet_icmp_stats;
-extern struct sysctl_oid sysctl__net_inet_igmp_stats;
-extern struct sysctl_oid sysctl__net_inet_ip_stats;
-extern struct sysctl_oid sysctl__net_inet_tcp_stats;
-extern struct sysctl_oid sysctl__net_inet_udp_stats;
-extern struct sysctl_oid sysctl__kern;
-extern struct sysctl_oid sysctl__hw;
-extern struct sysctl_oid sysctl__machdep;
-extern struct sysctl_oid sysctl__net;
-extern struct sysctl_oid sysctl__debug;
-extern struct sysctl_oid sysctl__vfs;
-extern struct sysctl_oid sysctl__sysctl;
-
-#if INET6
-extern struct sysctl_oid sysctl__net_inet_tcp_v6mssdflt;
-extern struct sysctl_oid sysctl__net_inet6;
-extern struct sysctl_oid sysctl__net_inet6_ip6;
-extern struct sysctl_oid sysctl__net_inet6_ip6_stats;
-extern struct sysctl_oid sysctl__net_inet6_icmp6;
-extern struct sysctl_oid sysctl__net_inet6_ip6_forwarding;
-extern struct sysctl_oid sysctl__net_inet6_ip6_redirect;
-extern struct sysctl_oid sysctl__net_inet6_ip6_hlim;
-extern struct sysctl_oid sysctl__net_inet6_ip6_maxfragpackets;
-extern struct sysctl_oid sysctl__net_inet6_ip6_accept_rtadv;
-extern struct sysctl_oid sysctl__net_inet6_ip6_keepfaith;
-extern struct sysctl_oid sysctl__net_inet6_ip6_log_interval;
-extern struct sysctl_oid sysctl__net_inet6_ip6_hdrnestlimit;
-extern struct sysctl_oid sysctl__net_inet6_ip6_dad_count;
-extern struct sysctl_oid sysctl__net_inet6_ip6_auto_flowlabel;
-extern struct sysctl_oid sysctl__net_inet6_ip6_defmcasthlim;
-extern struct sysctl_oid sysctl__net_inet6_ip6_gifhlim;
-extern struct sysctl_oid sysctl__net_inet6_ip6_kame_version;
-extern struct sysctl_oid sysctl__net_inet6_ip6_use_deprecated;
-extern struct sysctl_oid sysctl__net_inet6_ip6_rr_prune;
-extern struct sysctl_oid sysctl__net_inet6_ip6_use_tempaddr;
-extern struct sysctl_oid sysctl__net_inet6_ip6_v6only;
-extern struct sysctl_oid sysctl__net_inet6_ip6_auto_linklocal;
-extern struct sysctl_oid sysctl__net_inet6_ip6_rip6stats;
-extern struct sysctl_oid sysctl__net_inet6_ip6_rtexpire;
-extern struct sysctl_oid sysctl__net_inet6_ip6_rtminexpire;
-extern struct sysctl_oid sysctl__net_inet6_ip6_rtmaxcache;
-extern struct sysctl_oid sysctl__net_inet6_ip6_temppltime;
-extern struct sysctl_oid sysctl__net_inet6_ip6_tempvltime;
-#if IPV6FIREWALL
-extern struct sysctl_oid sysctl__net_inet6_ip6_fw;
-extern struct sysctl_oid sysctl__net_inet6_ip6_fw_debug;
-extern struct sysctl_oid sysctl__net_inet6_ip6_fw_verbose;
-extern struct sysctl_oid sysctl__net_inet6_ip6_fw_verbose_limit;
-#endif
-extern struct sysctl_oid sysctl__net_inet6_icmp6_rediraccept;
-extern struct sysctl_oid sysctl__net_inet6_icmp6_redirtimeout;
-extern struct sysctl_oid sysctl__net_inet6_icmp6_stats;
-extern struct sysctl_oid sysctl__net_inet6_icmp6_nodeinfo;
-extern struct sysctl_oid sysctl__net_inet6_icmp6_errppslimit;
-extern struct sysctl_oid sysctl__net_inet6_icmp6_nd6_maxnudhint;
-extern struct sysctl_oid sysctl__net_inet6_icmp6_nd6_debug;
-extern struct sysctl_oid sysctl__net_inet6_icmp6_nd6_prune;
-extern struct sysctl_oid sysctl__net_inet6_icmp6_nd6_delay;
-extern struct sysctl_oid sysctl__net_inet6_icmp6_nd6_umaxtries;
-extern struct sysctl_oid sysctl__net_inet6_icmp6_nd6_mmaxtries;
-extern struct sysctl_oid sysctl__net_inet6_icmp6_nd6_useloopback;
-extern struct sysctl_oid sysctl__net_inet6_icmp6_nodeinfo;
-#if IPSEC
-extern struct sysctl_oid sysctl__net_inet6_ipsec6;
-extern struct sysctl_oid sysctl__net_inet6_ipsec6_stats;
-extern struct sysctl_oid sysctl__net_inet6_ipsec6_def_policy;
-extern struct sysctl_oid sysctl__net_inet6_ipsec6_esp_trans_deflev;
-extern struct sysctl_oid sysctl__net_inet6_ipsec6_esp_net_deflev;
-extern struct sysctl_oid sysctl__net_inet6_ipsec6_ah_trans_deflev;
-extern struct sysctl_oid sysctl__net_inet6_ipsec6_ah_net_deflev;
-extern struct sysctl_oid sysctl__net_inet6_ipsec6_ecn;
-extern struct sysctl_oid sysctl__net_inet6_ipsec6_debug;
-extern struct sysctl_oid sysctl__net_inet6_ipsec6_esp_randpad;
-#endif
-#endif
-#if IPSEC
-extern struct sysctl_oid sysctl__net_inet_ipsec;
-extern struct sysctl_oid sysctl__net_inet_ipsec_esp_port;
-extern struct sysctl_oid sysctl__net_inet_ipsec_bypass;
-extern struct sysctl_oid sysctl__net_inet_ipsec_def_policy;
-extern struct sysctl_oid sysctl__net_inet_ipsec_esp_randpad;
-extern struct sysctl_oid sysctl__net_inet_ipsec_esp_trans_deflev;
-extern struct sysctl_oid sysctl__net_inet_ipsec_esp_net_deflev;
-extern struct sysctl_oid sysctl__net_inet_ipsec_ah_trans_deflev;
-extern struct sysctl_oid sysctl__net_inet_ipsec_ah_net_deflev;
-extern struct sysctl_oid sysctl__net_inet_ipsec_ah_cleartos;
-extern struct sysctl_oid sysctl__net_inet_ipsec_ah_offsetmask;
-extern struct sysctl_oid sysctl__net_inet_ipsec_dfbit;
-extern struct sysctl_oid sysctl__net_inet_ipsec_ecn;
-extern struct sysctl_oid sysctl__net_inet_ipsec_debug;
-extern struct sysctl_oid sysctl__net_inet_ipsec_stats;
-extern struct sysctl_oid sysctl__net_key;
-extern struct sysctl_oid sysctl__net_key_debug;
-extern struct sysctl_oid sysctl__net_key_prefered_oldsa;
-extern struct sysctl_oid sysctl__net_key_spi_trycnt;
-extern struct sysctl_oid sysctl__net_key_spi_minval;
-extern struct sysctl_oid sysctl__net_key_spi_maxval;
-extern struct sysctl_oid sysctl__net_key_int_random;
-extern struct sysctl_oid sysctl__net_key_larval_lifetime;
-extern struct sysctl_oid sysctl__net_key_blockacq_count;
-extern struct sysctl_oid sysctl__net_key_blockacq_lifetime;
-extern struct sysctl_oid sysctl__net_key_esp_keymin;
-extern struct sysctl_oid sysctl__net_key_esp_auth;
-extern struct sysctl_oid sysctl__net_key_ah_keymin;
-extern struct sysctl_oid sysctl__net_key_natt_keepalive_interval;
-#endif
-
-
-struct sysctl_oid *newsysctl_list[] =
-{
- &sysctl__kern,
- &sysctl__hw,
- &sysctl__machdep,
- &sysctl__net,
- &sysctl__debug,
- &sysctl__vfs,
- &sysctl__sysctl,
- &sysctl__debug_bpf_bufsize,
- &sysctl__debug_bpf_maxbufsize
-#if TUN
- ,&sysctl__debug_if_tun_debug
-#endif
-
-#if COMPAT_43
-#ifndef NeXT
- ,&sysctl__debug_ttydebug
-#endif
-#endif
-
- ,&sysctl__kern_sysv_shmmax
- ,&sysctl__kern_sysv_shmmin
- ,&sysctl__kern_sysv_shmmni
- ,&sysctl__kern_sysv_shmseg
- ,&sysctl__kern_sysv_shmall
- ,&sysctl__kern_sysv_semmni
- ,&sysctl__kern_sysv_semmns
- ,&sysctl__kern_sysv_semmnu
- ,&sysctl__kern_sysv_semmsl
- ,&sysctl__kern_sysv_semume
- ,&sysctl__kern_dummy
- ,&sysctl__kern_ipc_maxsockbuf
- ,&sysctl__kern_ipc_nmbclusters
- ,&sysctl__kern_ipc_sockbuf_waste_factor
- ,&sysctl__kern_ipc_somaxconn
- ,&sysctl__kern_ipc_sosendminchain
- ,&sysctl__kern_ipc_sorecvmincopy
- ,&sysctl__kern_ipc_maxsockets
- ,&sysctl__kern_sugid_scripts
-
- ,&sysctl__hw_machine
- ,&sysctl__hw_model
- ,&sysctl__hw_ncpu
- ,&sysctl__hw_activecpu
- ,&sysctl__hw_byteorder
- ,&sysctl__hw_cputype
- ,&sysctl__hw_cpusubtype
- ,&sysctl__hw_physmem
- ,&sysctl__hw_usermem
- ,&sysctl__hw_pagesize
- ,&sysctl__hw_epoch
- ,&sysctl__hw_vectorunit
- ,&sysctl__hw_busfrequency
- ,&sysctl__hw_busfrequency_min
- ,&sysctl__hw_busfrequency_max
- ,&sysctl__hw_cpufrequency
- ,&sysctl__hw_cpufrequency_min
- ,&sysctl__hw_cpufrequency_max
- ,&sysctl__hw_cachelinesize
- ,&sysctl__hw_l1icachesize
- ,&sysctl__hw_l1dcachesize
- ,&sysctl__hw_l2settings
- ,&sysctl__hw_l2cachesize
- ,&sysctl__hw_l3settings
- ,&sysctl__hw_l3cachesize
- ,&sysctl__hw_tbfrequency
- ,&sysctl__hw_memsize
- ,&sysctl__hw_optional
- ,&sysctl__hw_optional_floatingpoint
-
- ,&sysctl__hw_pagesize_compat
- ,&sysctl__hw_busfrequency_compat
- ,&sysctl__hw_cpufrequency_compat
- ,&sysctl__hw_cachelinesize_compat
- ,&sysctl__hw_l1icachesize_compat
- ,&sysctl__hw_l1dcachesize_compat
- ,&sysctl__hw_l2cachesize_compat
- ,&sysctl__hw_l3cachesize_compat
- ,&sysctl__hw_tbfrequency_compat
-
- ,&sysctl__net_inet_icmp_icmplim
- ,&sysctl__net_inet_icmp_maskrepl
- ,&sysctl__net_inet_icmp_timestamp
- ,&sysctl__net_inet_icmp_bmcastecho
- ,&sysctl__net_inet_icmp_drop_redirect
- ,&sysctl__net_inet_icmp_log_redirect
- ,&sysctl__net_inet_ip_accept_sourceroute
-#if IPCTL_DEFMTU
- ,&sysctl__net_inet_ip_mtu
-#endif
- ,&sysctl__net_inet_ip_ttl
- ,&sysctl__net_inet_ip_fastforwarding
- ,&sysctl__net_inet_ip_forwarding
- ,&sysctl__net_inet_ip_intr_queue_drops
- ,&sysctl__net_inet_ip_intr_queue_maxlen
- ,&sysctl__net_inet_ip_rtexpire
- ,&sysctl__net_inet_ip_rtmaxcache
- ,&sysctl__net_inet_ip_rtminexpire
- ,&sysctl__net_inet_ip_redirect
- ,&sysctl__net_inet_ip_sourceroute
- ,&sysctl__net_inet_ip_subnets_are_local
- ,&sysctl__net_inet_ip_keepfaith
- ,&sysctl__net_inet_ip_maxfragpackets
- ,&sysctl__net_inet_ip_maxfragsperpacket
- ,&sysctl__net_inet_ip_check_interface
- ,&sysctl__net_inet_ip_check_route_selfref
- ,&sysctl__net_inet_ip_use_route_genid
-#if NGIF > 0
- ,&sysctl__net_inet_ip_gifttl
-#endif
-#if DUMMYNET
- ,&sysctl__net_inet_ip_dummynet_calls
- ,&sysctl__net_inet_ip_dummynet_debug
- ,&sysctl__net_inet_ip_dummynet_idle
- ,&sysctl__net_inet_ip_dummynet
-#endif
-
-#if IPFIREWALL && !IPFIREWALL_KEXT
- ,&sysctl__net_inet_ip_fw_debug
- ,&sysctl__net_inet_ip_fw_verbose
- ,&sysctl__net_inet_ip_fw_verbose_limit
- ,&sysctl__net_inet_ip_fw_one_pass
- ,&sysctl__net_inet_ip_fw
-#endif
- ,&sysctl__net_inet_ip_linklocal
- ,&sysctl__net_inet_ip_linklocal_stat
- ,&sysctl__net_inet_ip_linklocal_in
- ,&sysctl__net_inet_ip_linklocal_in_allowbadttl
- ,&sysctl__net_inet_raw_maxdgram
- ,&sysctl__net_inet_raw_recvspace
- ,&sysctl__net_inet_tcp_always_keepalive
- ,&sysctl__net_inet_tcp_delayed_ack
- ,&sysctl__net_inet_tcp_log_in_vain
- ,&sysctl__net_inet_tcp_pcbcount
- ,&sysctl__net_inet_tcp_rfc1323
- ,&sysctl__net_inet_tcp_rfc1644
- ,&sysctl__net_inet_tcp_keepidle
- ,&sysctl__net_inet_tcp_keepinit
- ,&sysctl__net_inet_tcp_keepintvl
- ,&sysctl__net_inet_tcp_mssdflt
- ,&sysctl__net_inet_tcp_minmss
- ,&sysctl__net_inet_tcp_recvspace
- ,&sysctl__net_inet_tcp_sendspace
- ,&sysctl__net_inet_tcp_slowlink_wsize
- ,&sysctl__net_inet_tcp_blackhole
- ,&sysctl__net_inet_tcp_tcp_lq_overflow
- ,&sysctl__net_inet_tcp_path_mtu_discovery
- ,&sysctl__net_inet_tcp_slowstart_flightsize
- ,&sysctl__net_inet_tcp_local_slowstart_flightsize
- ,&sysctl__net_inet_tcp_newreno
- ,&sysctl__net_inet_tcp_tcbhashsize
- ,&sysctl__net_inet_tcp_do_tcpdrain
- ,&sysctl__net_inet_tcp_icmp_may_rst
- ,&sysctl__net_inet_tcp_strict_rfc1948
- ,&sysctl__net_inet_tcp_delacktime
- ,&sysctl__net_inet_tcp_isn_reseed_interval
- ,&sysctl__net_inet_tcp_msl
-#if TCP_DROP_SYNFIN
- ,&sysctl__net_inet_tcp_drop_synfin
-#endif
-#if TCPDEBUG
- ,&sysctl__net_inet_tcp_tcpconsdebug
-#endif
- ,&sysctl__net_inet_tcp_sockthreshold
- ,&sysctl__net_inet_tcp_reass_maxsegments
- ,&sysctl__net_inet_tcp_reass_cursegments
- ,&sysctl__net_inet_tcp_reass_overflows
- ,&sysctl__net_inet_tcp_reass
-
- ,&sysctl__net_inet_udp_log_in_vain
- ,&sysctl__net_inet_udp_checksum
- ,&sysctl__net_inet_udp_maxdgram
- ,&sysctl__net_inet_udp_recvspace
- ,&sysctl__net_inet_udp_blackhole
-
-#if NETAT
- ,&sysctl__net_appletalk_debug
- ,&sysctl__net_appletalk_routermix
- ,&sysctl__net_appletalk_ddpstats
-#endif /* NETAT */
-
-#if BRIDGE
- ,&sysctl__net_link_ether_bdgfwc
- ,&sysctl__net_link_ether_bdgfwt
- ,&sysctl__net_link_ether_bdginc
- ,&sysctl__net_link_ether_bdgint
- ,&sysctl__net_link_ether_bridge_ipfw
- ,&sysctl__net_link_ethe_bdgstats
- ,&sysctl__net_link_ether_bridge
-#endif
-
- ,&sysctl__net_link_ether_inet_host_down_time
- ,&sysctl__net_link_ether_inet_max_age
- ,&sysctl__net_link_ether_inet_maxtries
- ,&sysctl__net_link_ether_inet_proxyall
- ,&sysctl__net_link_ether_inet_prune_intvl
- ,&sysctl__net_link_ether_inet_useloopback
- ,&sysctl__net_link_ether_inet_log_arp_wrong_iface
- ,&sysctl__net_link_ether_inet_apple_hwcksum_tx
- ,&sysctl__net_link_ether_inet_apple_hwcksum_rx
-#if NETMIBS
- ,&sysctl__net_link_generic_system_ifcount
- ,&sysctl__net_link_generic
- ,&sysctl__net_link_generic_ifdata
- ,&sysctl__net_link_generic_system
-#endif
-
-#if 0
-#if VLAN
- ,&sysctl__net_link_vlan_link_proto
- ,&sysctl__net_link_vlan
- ,&sysctl__net_link_vlan_link
-#endif
-#endif 0
-
- ,&sysctl__net_local_inflight
- ,&sysctl__net_local_dgram_maxdgram
- ,&sysctl__net_local_dgram_recvspace
- ,&sysctl__net_local_stream_recvspace
- ,&sysctl__net_local_stream_sendspace
-#if 0
- ,&sysctl__vfs_nfs_nfs_privport
- ,&sysctl__vfs_nfs_async
- ,&sysctl__vfs_nfs_debug
- ,&sysctl__vfs_nfs_defect
- ,&sysctl__vfs_nfs_diskless_valid
- ,&sysctl__vfs_nfs_gatherdelay
- ,&sysctl__vfs_nfs_gatherdelay_v3
- ,&sysctl__vfs_nfs
- ,&sysctl__vfs_nfs_diskless_rootaddr
- ,&sysctl__vfs_nfs_diskless_swapaddr
- ,&sysctl__vfs_nfs_diskless_rootpath
- ,&sysctl__vfs_nfs_diskless_swappath
- ,&sysctl__vfs_nfs_nfsstats
-#endif
- ,&sysctl__vfs_generic
- ,&sysctl__vfs_generic_vfsidlist
- ,&sysctl__vfs_generic_ctlbyfsid
- ,&sysctl__vfs_generic_noremotehang
- ,&sysctl__vfs_generic_nfs
- ,&sysctl__vfs_generic_nfs_client
- ,&sysctl__vfs_generic_nfs_client_initialdowndelay
- ,&sysctl__vfs_generic_nfs_client_nextdowndelay
- ,&sysctl__kern_ipc
- ,&sysctl__kern_sysv
- ,&sysctl__net_inet
-#if NETAT
- ,&sysctl__net_appletalk
-#endif /* NETAT */
- ,&sysctl__net_link
- ,&sysctl__net_local
- ,&sysctl__net_routetable
-#if IPDIVERT
- ,&sysctl__net_inet_div
-#endif
- ,&sysctl__net_inet_icmp
- ,&sysctl__net_inet_igmp
- ,&sysctl__net_inet_ip
- ,&sysctl__net_inet_raw
- ,&sysctl__net_inet_tcp
- ,&sysctl__net_inet_udp
- ,&sysctl__net_inet_ip_portrange
- ,&sysctl__net_link_ether
- ,&sysctl__net_link_ether_inet
- ,&sysctl__net_local_dgram
- ,&sysctl__net_local_stream
- ,&sysctl__sysctl_name
- ,&sysctl__sysctl_next
- ,&sysctl__sysctl_oidfmt
- ,&sysctl__net_inet_ip_portrange_first
- ,&sysctl__net_inet_ip_portrange_hifirst
- ,&sysctl__net_inet_ip_portrange_hilast
- ,&sysctl__net_inet_ip_portrange_last
- ,&sysctl__net_inet_ip_portrange_lowfirst
- ,&sysctl__net_inet_ip_portrange_lowlast
- ,&sysctl__net_inet_raw_pcblist
- ,&sysctl__net_inet_tcp_pcblist
- ,&sysctl__net_inet_udp_pcblist
- ,&sysctl__net_local_dgram_pcblist
- ,&sysctl__net_local_stream_pcblist
- ,&sysctl__sysctl_debug
- ,&sysctl__sysctl_name2oid
- ,&sysctl__net_inet_icmp_stats
- ,&sysctl__net_inet_igmp_stats
- ,&sysctl__net_inet_ip_stats
- ,&sysctl__net_inet_tcp_stats
- ,&sysctl__net_inet_udp_stats
-#if INET6
- ,&sysctl__net_inet6
- ,&sysctl__net_inet6_ip6
- ,&sysctl__net_inet6_icmp6
- ,&sysctl__net_inet6_ip6_stats
- ,&sysctl__net_inet6_ip6_forwarding
- ,&sysctl__net_inet6_ip6_redirect
- ,&sysctl__net_inet6_ip6_hlim
- ,&sysctl__net_inet6_ip6_maxfragpackets
- ,&sysctl__net_inet6_ip6_accept_rtadv
- ,&sysctl__net_inet6_ip6_keepfaith
- ,&sysctl__net_inet6_ip6_log_interval
- ,&sysctl__net_inet6_ip6_hdrnestlimit
- ,&sysctl__net_inet6_ip6_dad_count
- ,&sysctl__net_inet6_ip6_auto_flowlabel
- ,&sysctl__net_inet6_ip6_defmcasthlim
- ,&sysctl__net_inet6_ip6_gifhlim
- ,&sysctl__net_inet6_ip6_kame_version
- ,&sysctl__net_inet6_ip6_use_deprecated
- ,&sysctl__net_inet6_ip6_rr_prune
- ,&sysctl__net_inet6_ip6_use_tempaddr
- ,&sysctl__net_inet6_ip6_v6only
- ,&sysctl__net_inet6_ip6_auto_linklocal
- ,&sysctl__net_inet6_ip6_rip6stats
- ,&sysctl__net_inet6_ip6_rtexpire
- ,&sysctl__net_inet6_ip6_rtminexpire
- ,&sysctl__net_inet6_ip6_rtmaxcache
- ,&sysctl__net_inet6_ip6_temppltime
- ,&sysctl__net_inet6_ip6_tempvltime
- ,&sysctl__net_inet6_icmp6_rediraccept
- ,&sysctl__net_inet6_icmp6_redirtimeout
- ,&sysctl__net_inet6_icmp6_nd6_prune
- ,&sysctl__net_inet6_icmp6_nd6_delay
- ,&sysctl__net_inet6_icmp6_nd6_umaxtries
- ,&sysctl__net_inet6_icmp6_nd6_mmaxtries
- ,&sysctl__net_inet6_icmp6_nd6_useloopback
- ,&sysctl__net_inet6_icmp6_nodeinfo
- ,&sysctl__net_inet6_icmp6_stats
- ,&sysctl__net_inet6_icmp6_errppslimit
- ,&sysctl__net_inet6_icmp6_nd6_maxnudhint
- ,&sysctl__net_inet6_icmp6_nd6_debug
- ,&sysctl__net_inet_tcp_v6mssdflt
-#if IPV6FIREWALL
- ,&sysctl__net_inet6_ip6_fw
- ,&sysctl__net_inet6_ip6_fw_debug
- ,&sysctl__net_inet6_ip6_fw_verbose
- ,&sysctl__net_inet6_ip6_fw_verbose_limit
-#endif
-#if IPSEC
- ,&sysctl__net_inet6_ipsec6
- ,&sysctl__net_inet6_ipsec6_stats
- ,&sysctl__net_inet6_ipsec6_def_policy
- ,&sysctl__net_inet6_ipsec6_esp_trans_deflev
- ,&sysctl__net_inet6_ipsec6_esp_net_deflev
- ,&sysctl__net_inet6_ipsec6_ah_trans_deflev
- ,&sysctl__net_inet6_ipsec6_ah_net_deflev
- ,&sysctl__net_inet6_ipsec6_ecn
- ,&sysctl__net_inet6_ipsec6_debug
- ,&sysctl__net_inet6_ipsec6_esp_randpad
-#endif
-#endif
-#if IPSEC
- ,&sysctl__net_key
- ,&sysctl__net_key_debug
- ,&sysctl__net_key_prefered_oldsa
- ,&sysctl__net_key_spi_trycnt
- ,&sysctl__net_key_spi_minval
- ,&sysctl__net_key_spi_maxval
- ,&sysctl__net_key_int_random
- ,&sysctl__net_key_larval_lifetime
- ,&sysctl__net_key_blockacq_count
- ,&sysctl__net_key_blockacq_lifetime
- ,&sysctl__net_key_esp_keymin
- ,&sysctl__net_key_esp_auth
- ,&sysctl__net_key_ah_keymin
- ,&sysctl__net_key_natt_keepalive_interval
- ,&sysctl__net_inet_ipsec
- ,&sysctl__net_inet_ipsec_stats
- ,&sysctl__net_inet_ipsec_def_policy
- ,&sysctl__net_inet_ipsec_esp_trans_deflev
- ,&sysctl__net_inet_ipsec_esp_net_deflev
- ,&sysctl__net_inet_ipsec_ah_trans_deflev
- ,&sysctl__net_inet_ipsec_ah_net_deflev
- ,&sysctl__net_inet_ipsec_ah_cleartos
- ,&sysctl__net_inet_ipsec_ah_offsetmask
- ,&sysctl__net_inet_ipsec_dfbit
- ,&sysctl__net_inet_ipsec_ecn
- ,&sysctl__net_inet_ipsec_debug
- ,&sysctl__net_inet_ipsec_esp_randpad
- ,&sysctl__net_inet_ipsec_bypass
- ,&sysctl__net_inet_ipsec_esp_port
-#endif
- ,(struct sysctl_oid *) 0
-};
-