]> git.saurik.com Git - apple/xnu.git/blame - bsd/kern/sysctl_init.c
xnu-517.3.7.tar.gz
[apple/xnu.git] / bsd / kern / sysctl_init.c
CommitLineData
1c79356b
A
1/*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
43866e37 6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
1c79356b 7 *
43866e37
A
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * file.
14 *
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
1c79356b
A
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
43866e37
A
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
1c79356b
A
22 *
23 * @APPLE_LICENSE_HEADER_END@
24 */
25
26#include <sys/param.h>
27#include <sys/buf.h>
28#include <sys/kernel.h>
29#include <sys/sysctl.h>
30
31extern struct sysctl_oid sysctl__debug_bpf_bufsize;
9bccf70c 32extern struct sysctl_oid sysctl__debug_bpf_maxbufsize;
1c79356b
A
33
34#if TUN
35extern struct sysctl_oid sysctl__debug_if_tun_debug;
36#endif
37
38#if COMPAT_43
39#ifndef NeXT
40extern struct sysctl_oid sysctl__debug_ttydebug;
41#endif
42#endif
43
43866e37
A
44extern struct sysctl_oid sysctl__hw_machine;
45extern struct sysctl_oid sysctl__hw_model;
46extern struct sysctl_oid sysctl__hw_ncpu;
47extern struct sysctl_oid sysctl__hw_activecpu;
48extern struct sysctl_oid sysctl__hw_byteorder;
49extern struct sysctl_oid sysctl__hw_cputype;
50extern struct sysctl_oid sysctl__hw_cpusubtype;
51extern struct sysctl_oid sysctl__hw_physmem;
52extern struct sysctl_oid sysctl__hw_usermem;
53extern struct sysctl_oid sysctl__hw_pagesize;
54extern struct sysctl_oid sysctl__hw_epoch;
55extern struct sysctl_oid sysctl__hw_vectorunit;
56extern struct sysctl_oid sysctl__hw_busfrequency;
57extern struct sysctl_oid sysctl__hw_busfrequency_min;
58extern struct sysctl_oid sysctl__hw_busfrequency_max;
59extern struct sysctl_oid sysctl__hw_cpufrequency;
60extern struct sysctl_oid sysctl__hw_cpufrequency_min;
61extern struct sysctl_oid sysctl__hw_cpufrequency_max;
62extern struct sysctl_oid sysctl__hw_cachelinesize;
63extern struct sysctl_oid sysctl__hw_l1icachesize;
64extern struct sysctl_oid sysctl__hw_l1dcachesize;
65extern struct sysctl_oid sysctl__hw_l2settings;
66extern struct sysctl_oid sysctl__hw_l2cachesize;
67extern struct sysctl_oid sysctl__hw_l3settings;
68extern struct sysctl_oid sysctl__hw_l3cachesize;
69extern struct sysctl_oid sysctl__hw_tbfrequency;
70extern struct sysctl_oid sysctl__hw_memsize;
71
72extern struct sysctl_oid sysctl__hw_optional;
73extern struct sysctl_oid sysctl__hw_optional_floatingpoint;
74
75extern struct sysctl_oid sysctl__hw_pagesize_compat;
76extern struct sysctl_oid sysctl__hw_busfrequency_compat;
77extern struct sysctl_oid sysctl__hw_cpufrequency_compat;
78extern struct sysctl_oid sysctl__hw_cachelinesize_compat;
79extern struct sysctl_oid sysctl__hw_l1icachesize_compat;
80extern struct sysctl_oid sysctl__hw_l1dcachesize_compat;
81extern struct sysctl_oid sysctl__hw_l2cachesize_compat;
82extern struct sysctl_oid sysctl__hw_l3cachesize_compat;
83extern struct sysctl_oid sysctl__hw_tbfrequency_compat;
84
9bccf70c
A
85extern struct sysctl_oid sysctl__kern_sysv_shmmax;
86extern struct sysctl_oid sysctl__kern_sysv_shmmin;
87extern struct sysctl_oid sysctl__kern_sysv_shmmni;
88extern struct sysctl_oid sysctl__kern_sysv_shmseg;
89extern struct sysctl_oid sysctl__kern_sysv_shmall;
90
55e303ae
A
91extern struct sysctl_oid sysctl__kern_sysv_semmni;
92extern struct sysctl_oid sysctl__kern_sysv_semmns;
93extern struct sysctl_oid sysctl__kern_sysv_semmnu;
94extern struct sysctl_oid sysctl__kern_sysv_semmsl;
95extern struct sysctl_oid sysctl__kern_sysv_semume;
96
1c79356b
A
97extern struct sysctl_oid sysctl__kern_dummy;
98extern struct sysctl_oid sysctl__kern_ipc_maxsockbuf;
99extern struct sysctl_oid sysctl__kern_ipc_nmbclusters;
100extern struct sysctl_oid sysctl__kern_ipc_sockbuf_waste_factor;
101extern struct sysctl_oid sysctl__kern_ipc_somaxconn;
102extern struct sysctl_oid sysctl__kern_ipc_sosendminchain;
55e303ae 103extern struct sysctl_oid sysctl__kern_ipc_sorecvmincopy;
1c79356b
A
104extern struct sysctl_oid sysctl__kern_ipc_maxsockets;
105extern struct sysctl_oid sysctl__net_inet_icmp_icmplim;
106extern struct sysctl_oid sysctl__net_inet_icmp_maskrepl;
55e303ae 107extern struct sysctl_oid sysctl__net_inet_icmp_timestamp;
1c79356b 108extern struct sysctl_oid sysctl__net_inet_icmp_bmcastecho;
9bccf70c
A
109extern struct sysctl_oid sysctl__net_inet_icmp_log_redirect;
110extern struct sysctl_oid sysctl__net_inet_icmp_drop_redirect;
1c79356b
A
111extern struct sysctl_oid sysctl__net_inet_ip_accept_sourceroute;
112
113#if IPCTL_DEFMTU
114extern struct sysctl_oid sysctl__net_inet_ip_mtu;
115#endif
116
117extern struct sysctl_oid sysctl__net_inet_ip_ttl;
118extern struct sysctl_oid sysctl__net_inet_ip_fastforwarding;
119extern struct sysctl_oid sysctl__net_inet_ip_forwarding;
120extern struct sysctl_oid sysctl__net_inet_ip_intr_queue_drops;
121extern struct sysctl_oid sysctl__net_inet_ip_intr_queue_maxlen;
122extern struct sysctl_oid sysctl__net_inet_ip_rtexpire;
123extern struct sysctl_oid sysctl__net_inet_ip_rtmaxcache;
124extern struct sysctl_oid sysctl__net_inet_ip_rtminexpire;
125extern struct sysctl_oid sysctl__net_inet_ip_redirect;
126extern struct sysctl_oid sysctl__net_inet_ip_sourceroute;
127extern struct sysctl_oid sysctl__net_inet_ip_subnets_are_local;
128extern struct sysctl_oid sysctl__net_inet_ip_keepfaith;
9bccf70c
A
129extern struct sysctl_oid sysctl__net_inet_ip_maxfragpackets;
130extern struct sysctl_oid sysctl__net_inet_ip_check_interface;
131extern struct sysctl_oid sysctl__net_inet_ip_check_route_selfref;
55e303ae 132extern struct sysctl_oid sysctl__net_inet_ip_use_route_genid;
1c79356b
A
133#if NGIF > 0
134extern struct sysctl_oid sysctl__net_inet_ip_gifttl;
135#endif
136
137#if DUMMYNET
138extern struct sysctl_oid sysctl__net_inet_ip_dummynet_calls;
139extern struct sysctl_oid sysctl__net_inet_ip_dummynet_debug;
140extern struct sysctl_oid sysctl__net_inet_ip_dummynet_idle;
141extern struct sysctl_oid sysctl__net_inet_ip_dummynet;
142#endif
143
144#if IPFIREWALL && !IPFIREWALL_KEXT
145extern struct sysctl_oid sysctl__net_inet_ip_fw_debug;
146extern struct sysctl_oid sysctl__net_inet_ip_fw_verbose;
147extern struct sysctl_oid sysctl__net_inet_ip_fw_verbose_limit;
148extern struct sysctl_oid sysctl__net_inet_ip_fw_one_pass;
149extern struct sysctl_oid sysctl__net_inet_ip_fw;
150#endif
151
9bccf70c
A
152extern struct sysctl_oid sysctl__net_inet_ip_linklocal;
153extern struct sysctl_oid sysctl__net_inet_ip_linklocal_stat;
154extern struct sysctl_oid sysctl__net_inet_ip_linklocal_in;
155extern struct sysctl_oid sysctl__net_inet_ip_linklocal_in_allowbadttl;
156
1c79356b
A
157extern struct sysctl_oid sysctl__net_inet_raw_maxdgram;
158extern struct sysctl_oid sysctl__net_inet_raw_recvspace;
159extern struct sysctl_oid sysctl__net_inet_tcp_always_keepalive;
160extern struct sysctl_oid sysctl__net_inet_tcp_delayed_ack;
161extern struct sysctl_oid sysctl__net_inet_tcp_log_in_vain;
162extern struct sysctl_oid sysctl__net_inet_tcp_pcbcount;
163extern struct sysctl_oid sysctl__net_inet_tcp_rfc1323;
164extern struct sysctl_oid sysctl__net_inet_tcp_rfc1644;
165extern struct sysctl_oid sysctl__net_inet_tcp_keepidle;
166extern struct sysctl_oid sysctl__net_inet_tcp_keepinit;
167extern struct sysctl_oid sysctl__net_inet_tcp_keepintvl;
168extern struct sysctl_oid sysctl__net_inet_tcp_mssdflt;
169extern struct sysctl_oid sysctl__net_inet_tcp_recvspace;
1c79356b 170extern struct sysctl_oid sysctl__net_inet_tcp_sendspace;
d12e1678 171extern struct sysctl_oid sysctl__net_inet_tcp_slowlink_wsize;
9bccf70c
A
172extern struct sysctl_oid sysctl__net_inet_tcp_blackhole;
173extern struct sysctl_oid sysctl__net_inet_tcp_tcp_lq_overflow;
174extern struct sysctl_oid sysctl__net_inet_tcp_path_mtu_discovery;
175extern struct sysctl_oid sysctl__net_inet_tcp_slowstart_flightsize;
176extern struct sysctl_oid sysctl__net_inet_tcp_local_slowstart_flightsize;
177extern struct sysctl_oid sysctl__net_inet_tcp_newreno;
178extern struct sysctl_oid sysctl__net_inet_tcp_tcbhashsize;
179extern struct sysctl_oid sysctl__net_inet_tcp_do_tcpdrain;
180extern struct sysctl_oid sysctl__net_inet_tcp_icmp_may_rst;
181extern struct sysctl_oid sysctl__net_inet_tcp_strict_rfc1948;
182extern struct sysctl_oid sysctl__net_inet_tcp_delacktime;
183extern struct sysctl_oid sysctl__net_inet_tcp_isn_reseed_interval;
184extern struct sysctl_oid sysctl__net_inet_tcp_msl;
185#if TCP_DROP_SYNFIN
186extern struct sysctl_oid sysctl__net_inet_tcp_drop_synfin;
187#endif
188#if TCPDEBUG
189extern struct sysctl_oid sysctl__net_inet_tcp_tcpconsdebug;
190#endif
55e303ae 191extern struct sysctl_oid sysctl__net_inet_tcp_sockthreshold;
1c79356b
A
192extern struct sysctl_oid sysctl__net_inet_udp_log_in_vain;
193extern struct sysctl_oid sysctl__net_inet_udp_checksum;
194extern struct sysctl_oid sysctl__net_inet_udp_maxdgram;
195extern struct sysctl_oid sysctl__net_inet_udp_recvspace;
9bccf70c 196extern struct sysctl_oid sysctl__net_inet_udp_blackhole;
1c79356b
A
197
198#if NETAT
199extern struct sysctl_oid sysctl__net_appletalk_debug;
200extern struct sysctl_oid sysctl__net_appletalk_routermix;
201extern struct sysctl_oid sysctl__net_appletalk_ddpstats;
202#endif /* NETAT */
203
204#if BRIDGE
205extern struct sysctl_oid sysctl__net_link_ether_bdgfwc;
206extern struct sysctl_oid sysctl__net_link_ether_bdgfwt;
207extern struct sysctl_oid sysctl__net_link_ether_bdginc;
208extern struct sysctl_oid sysctl__net_link_ether_bdgint;
209extern struct sysctl_oid sysctl__net_link_ether_bridge_ipfw;
210extern struct sysctl_oid sysctl__net_link_ethe_bdgstats;
211#endif
212
213extern struct sysctl_oid sysctl__net_link_ether_inet_host_down_time;
214extern struct sysctl_oid sysctl__net_link_ether_inet_max_age;
215extern struct sysctl_oid sysctl__net_link_ether_inet_maxtries;
216extern struct sysctl_oid sysctl__net_link_ether_inet_proxyall;
217extern struct sysctl_oid sysctl__net_link_ether_inet_prune_intvl;
218extern struct sysctl_oid sysctl__net_link_ether_inet_useloopback;
9bccf70c 219extern struct sysctl_oid sysctl__net_link_ether_inet_log_arp_wrong_iface;
0b4e3aa0
A
220extern struct sysctl_oid sysctl__net_link_ether_inet_apple_hwcksum_tx;
221extern struct sysctl_oid sysctl__net_link_ether_inet_apple_hwcksum_rx;
1c79356b
A
222
223#if NETMIBS
224extern struct sysctl_oid sysctl__net_link_generic_system_ifcount;
225extern struct sysctl_oid sysctl__net_link_generic;
226extern struct sysctl_oid sysctl__net_link_generic_ifdata;
227extern struct sysctl_oid sysctl__net_link_generic_system;
228#endif
229
230#if VLAN
231extern struct sysctl_oid sysctl__net_link_vlan_link_proto;
232extern struct sysctl_oid sysctl__net_link_vlan;
233extern struct sysctl_oid sysctl__net_link_vlan_link;
234#endif
235
236extern struct sysctl_oid sysctl__net_local_inflight;
237extern struct sysctl_oid sysctl__net_local_dgram_maxdgram;
238extern struct sysctl_oid sysctl__net_local_dgram_recvspace;
239extern struct sysctl_oid sysctl__net_local_stream_recvspace;
240extern struct sysctl_oid sysctl__net_local_stream_sendspace;
241
242#if 0
243extern struct sysctl_oid sysctl__vfs_nfs_nfs_privport;
244extern struct sysctl_oid sysctl__vfs_nfs_async;
245extern struct sysctl_oid sysctl__vfs_nfs_debug;
246extern struct sysctl_oid sysctl__vfs_nfs_defect;
247extern struct sysctl_oid sysctl__vfs_nfs_diskless_valid;
248extern struct sysctl_oid sysctl__vfs_nfs_gatherdelay;
249extern struct sysctl_oid sysctl__vfs_nfs_gatherdelay_v3;
250extern struct sysctl_oid sysctl__vfs_nfs;
251extern struct sysctl_oid sysctl__vfs_nfs_diskless_rootaddr;
252extern struct sysctl_oid sysctl__vfs_nfs_diskless_swapaddr;
253extern struct sysctl_oid sysctl__vfs_nfs_diskless_rootpath;
254extern struct sysctl_oid sysctl__vfs_nfs_diskless_swappath;
255extern struct sysctl_oid sysctl__vfs_nfs_nfsstats;
256#endif
55e303ae
A
257extern struct sysctl_oid sysctl__vfs_generic_nfs_client_initialdowndelay;
258extern struct sysctl_oid sysctl__vfs_generic_nfs_client_nextdowndelay;
259extern struct sysctl_oid sysctl__vfs_generic_nfs_client;
260extern struct sysctl_oid sysctl__vfs_generic_nfs;
261
262extern struct sysctl_oid sysctl__vfs_generic;
263extern struct sysctl_oid sysctl__vfs_generic_vfsidlist;
264extern struct sysctl_oid sysctl__vfs_generic_ctlbyfsid;
265extern struct sysctl_oid sysctl__vfs_generic_noremotehang;
1c79356b
A
266
267extern struct sysctl_oid sysctl__kern_ipc;
9bccf70c
A
268extern struct sysctl_oid sysctl__kern_sysv;
269
1c79356b
A
270extern struct sysctl_oid sysctl__net_inet;
271
272#if NETAT
273extern struct sysctl_oid sysctl__net_appletalk;
274#endif /* NETAT */
275
276extern struct sysctl_oid sysctl__net_link;
277extern struct sysctl_oid sysctl__net_local;
278extern struct sysctl_oid sysctl__net_routetable;
279
280#if IPDIVERT
281extern struct sysctl_oid sysctl__net_inet_div;
282#endif
283
284extern struct sysctl_oid sysctl__net_inet_icmp;
285extern struct sysctl_oid sysctl__net_inet_igmp;
286extern struct sysctl_oid sysctl__net_inet_ip;
287extern struct sysctl_oid sysctl__net_inet_raw;
288extern struct sysctl_oid sysctl__net_inet_tcp;
289extern struct sysctl_oid sysctl__net_inet_udp;
290extern struct sysctl_oid sysctl__net_inet_ip_portrange;
291
292extern struct sysctl_oid sysctl__net_link_ether;
293extern struct sysctl_oid sysctl__net_link_ether_inet;
294
295extern struct sysctl_oid sysctl__net_local_dgram;
296extern struct sysctl_oid sysctl__net_local_stream;
297extern struct sysctl_oid sysctl__sysctl_name;
298extern struct sysctl_oid sysctl__sysctl_next;
299extern struct sysctl_oid sysctl__sysctl_oidfmt;
300extern struct sysctl_oid sysctl__net_inet_ip_portrange_first;
301extern struct sysctl_oid sysctl__net_inet_ip_portrange_hifirst;
302extern struct sysctl_oid sysctl__net_inet_ip_portrange_hilast;
303extern struct sysctl_oid sysctl__net_inet_ip_portrange_last;
304extern struct sysctl_oid sysctl__net_inet_ip_portrange_lowfirst;
305extern struct sysctl_oid sysctl__net_inet_ip_portrange_lowlast;
306extern struct sysctl_oid sysctl__net_inet_raw_pcblist;
307extern struct sysctl_oid sysctl__net_inet_tcp_pcblist;
308extern struct sysctl_oid sysctl__net_inet_udp_pcblist;
309extern struct sysctl_oid sysctl__net_link_ether_bridge;
310extern struct sysctl_oid sysctl__net_local_dgram_pcblist;
311extern struct sysctl_oid sysctl__net_local_stream_pcblist;
312extern struct sysctl_oid sysctl__sysctl_debug;
313extern struct sysctl_oid sysctl__sysctl_name2oid;
314extern struct sysctl_oid sysctl__net_inet_icmp_stats;
315extern struct sysctl_oid sysctl__net_inet_igmp_stats;
316extern struct sysctl_oid sysctl__net_inet_ip_stats;
317extern struct sysctl_oid sysctl__net_inet_tcp_stats;
318extern struct sysctl_oid sysctl__net_inet_udp_stats;
319extern struct sysctl_oid sysctl__kern;
320extern struct sysctl_oid sysctl__hw;
55e303ae 321extern struct sysctl_oid sysctl__machdep;
1c79356b
A
322extern struct sysctl_oid sysctl__net;
323extern struct sysctl_oid sysctl__debug;
324extern struct sysctl_oid sysctl__vfs;
325extern struct sysctl_oid sysctl__sysctl;
326
327#if INET6
9bccf70c 328extern struct sysctl_oid sysctl__net_inet_tcp_v6mssdflt;
1c79356b
A
329extern struct sysctl_oid sysctl__net_inet6;
330extern struct sysctl_oid sysctl__net_inet6_ip6;
9bccf70c 331extern struct sysctl_oid sysctl__net_inet6_ip6_stats;
1c79356b
A
332extern struct sysctl_oid sysctl__net_inet6_icmp6;
333extern struct sysctl_oid sysctl__net_inet6_ip6_forwarding;
334extern struct sysctl_oid sysctl__net_inet6_ip6_redirect;
335extern struct sysctl_oid sysctl__net_inet6_ip6_hlim;
336extern struct sysctl_oid sysctl__net_inet6_ip6_maxfragpackets;
337extern struct sysctl_oid sysctl__net_inet6_ip6_accept_rtadv;
338extern struct sysctl_oid sysctl__net_inet6_ip6_keepfaith;
339extern struct sysctl_oid sysctl__net_inet6_ip6_log_interval;
340extern struct sysctl_oid sysctl__net_inet6_ip6_hdrnestlimit;
341extern struct sysctl_oid sysctl__net_inet6_ip6_dad_count;
342extern struct sysctl_oid sysctl__net_inet6_ip6_auto_flowlabel;
343extern struct sysctl_oid sysctl__net_inet6_ip6_defmcasthlim;
344extern struct sysctl_oid sysctl__net_inet6_ip6_gifhlim;
345extern struct sysctl_oid sysctl__net_inet6_ip6_kame_version;
346extern struct sysctl_oid sysctl__net_inet6_ip6_use_deprecated;
347extern struct sysctl_oid sysctl__net_inet6_ip6_rr_prune;
9bccf70c
A
348extern struct sysctl_oid sysctl__net_inet6_ip6_use_tempaddr;
349extern struct sysctl_oid sysctl__net_inet6_ip6_v6only;
350extern struct sysctl_oid sysctl__net_inet6_ip6_auto_linklocal;
351extern struct sysctl_oid sysctl__net_inet6_ip6_rip6stats;
352extern struct sysctl_oid sysctl__net_inet6_ip6_rtexpire;
353extern struct sysctl_oid sysctl__net_inet6_ip6_rtminexpire;
354extern struct sysctl_oid sysctl__net_inet6_ip6_rtmaxcache;
355extern struct sysctl_oid sysctl__net_inet6_ip6_temppltime;
356extern struct sysctl_oid sysctl__net_inet6_ip6_tempvltime;
1c79356b
A
357#if IPV6FIREWALL
358extern struct sysctl_oid sysctl__net_inet6_ip6_fw;
359extern struct sysctl_oid sysctl__net_inet6_ip6_fw_debug;
360extern struct sysctl_oid sysctl__net_inet6_ip6_fw_verbose;
361extern struct sysctl_oid sysctl__net_inet6_ip6_fw_verbose_limit;
362#endif
363extern struct sysctl_oid sysctl__net_inet6_icmp6_rediraccept;
364extern struct sysctl_oid sysctl__net_inet6_icmp6_redirtimeout;
9bccf70c
A
365extern struct sysctl_oid sysctl__net_inet6_icmp6_stats;
366extern struct sysctl_oid sysctl__net_inet6_icmp6_nodeinfo;
367extern struct sysctl_oid sysctl__net_inet6_icmp6_errppslimit;
368extern struct sysctl_oid sysctl__net_inet6_icmp6_nd6_maxnudhint;
369extern struct sysctl_oid sysctl__net_inet6_icmp6_nd6_debug;
1c79356b
A
370extern struct sysctl_oid sysctl__net_inet6_icmp6_nd6_prune;
371extern struct sysctl_oid sysctl__net_inet6_icmp6_nd6_delay;
372extern struct sysctl_oid sysctl__net_inet6_icmp6_nd6_umaxtries;
373extern struct sysctl_oid sysctl__net_inet6_icmp6_nd6_mmaxtries;
374extern struct sysctl_oid sysctl__net_inet6_icmp6_nd6_useloopback;
375extern struct sysctl_oid sysctl__net_inet6_icmp6_nodeinfo;
376#if IPSEC
377extern struct sysctl_oid sysctl__net_inet6_ipsec6;
9bccf70c 378extern struct sysctl_oid sysctl__net_inet6_ipsec6_stats;
1c79356b
A
379extern struct sysctl_oid sysctl__net_inet6_ipsec6_def_policy;
380extern struct sysctl_oid sysctl__net_inet6_ipsec6_esp_trans_deflev;
381extern struct sysctl_oid sysctl__net_inet6_ipsec6_esp_net_deflev;
382extern struct sysctl_oid sysctl__net_inet6_ipsec6_ah_trans_deflev;
383extern struct sysctl_oid sysctl__net_inet6_ipsec6_ah_net_deflev;
1c79356b
A
384extern struct sysctl_oid sysctl__net_inet6_ipsec6_ecn;
385extern struct sysctl_oid sysctl__net_inet6_ipsec6_debug;
9bccf70c 386extern struct sysctl_oid sysctl__net_inet6_ipsec6_esp_randpad;
1c79356b
A
387#endif
388#endif
389#if IPSEC
390extern struct sysctl_oid sysctl__net_inet_ipsec;
55e303ae 391extern struct sysctl_oid sysctl__net_inet_ipsec_esp_port;
9bccf70c 392extern struct sysctl_oid sysctl__net_inet_ipsec_bypass;
1c79356b 393extern struct sysctl_oid sysctl__net_inet_ipsec_def_policy;
9bccf70c 394extern struct sysctl_oid sysctl__net_inet_ipsec_esp_randpad;
1c79356b
A
395extern struct sysctl_oid sysctl__net_inet_ipsec_esp_trans_deflev;
396extern struct sysctl_oid sysctl__net_inet_ipsec_esp_net_deflev;
397extern struct sysctl_oid sysctl__net_inet_ipsec_ah_trans_deflev;
398extern struct sysctl_oid sysctl__net_inet_ipsec_ah_net_deflev;
1c79356b
A
399extern struct sysctl_oid sysctl__net_inet_ipsec_ah_cleartos;
400extern struct sysctl_oid sysctl__net_inet_ipsec_ah_offsetmask;
401extern struct sysctl_oid sysctl__net_inet_ipsec_dfbit;
402extern struct sysctl_oid sysctl__net_inet_ipsec_ecn;
403extern struct sysctl_oid sysctl__net_inet_ipsec_debug;
9bccf70c 404extern struct sysctl_oid sysctl__net_inet_ipsec_stats;
1c79356b
A
405extern struct sysctl_oid sysctl__net_key;
406extern struct sysctl_oid sysctl__net_key_debug;
55e303ae 407extern struct sysctl_oid sysctl__net_key_prefered_oldsa;
1c79356b
A
408extern struct sysctl_oid sysctl__net_key_spi_trycnt;
409extern struct sysctl_oid sysctl__net_key_spi_minval;
410extern struct sysctl_oid sysctl__net_key_spi_maxval;
411extern struct sysctl_oid sysctl__net_key_int_random;
412extern struct sysctl_oid sysctl__net_key_larval_lifetime;
413extern struct sysctl_oid sysctl__net_key_blockacq_count;
414extern struct sysctl_oid sysctl__net_key_blockacq_lifetime;
9bccf70c 415extern struct sysctl_oid sysctl__net_key_esp_keymin;
55e303ae 416extern struct sysctl_oid sysctl__net_key_esp_auth;
9bccf70c 417extern struct sysctl_oid sysctl__net_key_ah_keymin;
55e303ae 418extern struct sysctl_oid sysctl__net_key_natt_keepalive_interval;
1c79356b
A
419#endif
420
421
422struct sysctl_oid *newsysctl_list[] =
423{
424 &sysctl__kern,
425 &sysctl__hw,
55e303ae 426 &sysctl__machdep,
1c79356b
A
427 &sysctl__net,
428 &sysctl__debug,
429 &sysctl__vfs,
430 &sysctl__sysctl,
9bccf70c
A
431 &sysctl__debug_bpf_bufsize,
432 &sysctl__debug_bpf_maxbufsize
1c79356b
A
433#if TUN
434 ,&sysctl__debug_if_tun_debug
435#endif
436
437#if COMPAT_43
438#ifndef NeXT
439 ,&sysctl__debug_ttydebug
440#endif
441#endif
442
9bccf70c
A
443 ,&sysctl__kern_sysv_shmmax
444 ,&sysctl__kern_sysv_shmmin
445 ,&sysctl__kern_sysv_shmmni
446 ,&sysctl__kern_sysv_shmseg
447 ,&sysctl__kern_sysv_shmall
55e303ae
A
448 ,&sysctl__kern_sysv_semmni
449 ,&sysctl__kern_sysv_semmns
450 ,&sysctl__kern_sysv_semmnu
451 ,&sysctl__kern_sysv_semmsl
452 ,&sysctl__kern_sysv_semume
1c79356b
A
453 ,&sysctl__kern_dummy
454 ,&sysctl__kern_ipc_maxsockbuf
455 ,&sysctl__kern_ipc_nmbclusters
456 ,&sysctl__kern_ipc_sockbuf_waste_factor
457 ,&sysctl__kern_ipc_somaxconn
458 ,&sysctl__kern_ipc_sosendminchain
55e303ae 459 ,&sysctl__kern_ipc_sorecvmincopy
1c79356b 460 ,&sysctl__kern_ipc_maxsockets
43866e37
A
461
462 ,&sysctl__hw_machine
463 ,&sysctl__hw_model
464 ,&sysctl__hw_ncpu
465 ,&sysctl__hw_activecpu
466 ,&sysctl__hw_byteorder
467 ,&sysctl__hw_cputype
468 ,&sysctl__hw_cpusubtype
469 ,&sysctl__hw_physmem
470 ,&sysctl__hw_usermem
471 ,&sysctl__hw_pagesize
472 ,&sysctl__hw_epoch
473 ,&sysctl__hw_vectorunit
474 ,&sysctl__hw_busfrequency
475 ,&sysctl__hw_busfrequency_min
476 ,&sysctl__hw_busfrequency_max
477 ,&sysctl__hw_cpufrequency
478 ,&sysctl__hw_cpufrequency_min
479 ,&sysctl__hw_cpufrequency_max
480 ,&sysctl__hw_cachelinesize
481 ,&sysctl__hw_l1icachesize
482 ,&sysctl__hw_l1dcachesize
483 ,&sysctl__hw_l2settings
484 ,&sysctl__hw_l2cachesize
485 ,&sysctl__hw_l3settings
486 ,&sysctl__hw_l3cachesize
487 ,&sysctl__hw_tbfrequency
488 ,&sysctl__hw_memsize
489 ,&sysctl__hw_optional
490 ,&sysctl__hw_optional_floatingpoint
491
492 ,&sysctl__hw_pagesize_compat
493 ,&sysctl__hw_busfrequency_compat
494 ,&sysctl__hw_cpufrequency_compat
495 ,&sysctl__hw_cachelinesize_compat
496 ,&sysctl__hw_l1icachesize_compat
497 ,&sysctl__hw_l1dcachesize_compat
498 ,&sysctl__hw_l2cachesize_compat
499 ,&sysctl__hw_l3cachesize_compat
500 ,&sysctl__hw_tbfrequency_compat
501
1c79356b
A
502 ,&sysctl__net_inet_icmp_icmplim
503 ,&sysctl__net_inet_icmp_maskrepl
55e303ae 504 ,&sysctl__net_inet_icmp_timestamp
1c79356b 505 ,&sysctl__net_inet_icmp_bmcastecho
9bccf70c
A
506 ,&sysctl__net_inet_icmp_drop_redirect
507 ,&sysctl__net_inet_icmp_log_redirect
1c79356b
A
508 ,&sysctl__net_inet_ip_accept_sourceroute
509#if IPCTL_DEFMTU
510 ,&sysctl__net_inet_ip_mtu
511#endif
512 ,&sysctl__net_inet_ip_ttl
513 ,&sysctl__net_inet_ip_fastforwarding
514 ,&sysctl__net_inet_ip_forwarding
515 ,&sysctl__net_inet_ip_intr_queue_drops
516 ,&sysctl__net_inet_ip_intr_queue_maxlen
517 ,&sysctl__net_inet_ip_rtexpire
518 ,&sysctl__net_inet_ip_rtmaxcache
519 ,&sysctl__net_inet_ip_rtminexpire
520 ,&sysctl__net_inet_ip_redirect
521 ,&sysctl__net_inet_ip_sourceroute
522 ,&sysctl__net_inet_ip_subnets_are_local
523 ,&sysctl__net_inet_ip_keepfaith
9bccf70c
A
524 ,&sysctl__net_inet_ip_maxfragpackets
525 ,&sysctl__net_inet_ip_check_interface
526 ,&sysctl__net_inet_ip_check_route_selfref
55e303ae 527 ,&sysctl__net_inet_ip_use_route_genid
1c79356b
A
528#if NGIF > 0
529 ,&sysctl__net_inet_ip_gifttl
530#endif
531#if DUMMYNET
532 ,&sysctl__net_inet_ip_dummynet_calls
533 ,&sysctl__net_inet_ip_dummynet_debug
534 ,&sysctl__net_inet_ip_dummynet_idle
535 ,&sysctl__net_inet_ip_dummynet
536#endif
537
538#if IPFIREWALL && !IPFIREWALL_KEXT
539 ,&sysctl__net_inet_ip_fw_debug
540 ,&sysctl__net_inet_ip_fw_verbose
541 ,&sysctl__net_inet_ip_fw_verbose_limit
542 ,&sysctl__net_inet_ip_fw_one_pass
543 ,&sysctl__net_inet_ip_fw
544#endif
9bccf70c
A
545 ,&sysctl__net_inet_ip_linklocal
546 ,&sysctl__net_inet_ip_linklocal_stat
547 ,&sysctl__net_inet_ip_linklocal_in
548 ,&sysctl__net_inet_ip_linklocal_in_allowbadttl
1c79356b
A
549 ,&sysctl__net_inet_raw_maxdgram
550 ,&sysctl__net_inet_raw_recvspace
551 ,&sysctl__net_inet_tcp_always_keepalive
552 ,&sysctl__net_inet_tcp_delayed_ack
553 ,&sysctl__net_inet_tcp_log_in_vain
554 ,&sysctl__net_inet_tcp_pcbcount
555 ,&sysctl__net_inet_tcp_rfc1323
556 ,&sysctl__net_inet_tcp_rfc1644
557 ,&sysctl__net_inet_tcp_keepidle
558 ,&sysctl__net_inet_tcp_keepinit
559 ,&sysctl__net_inet_tcp_keepintvl
560 ,&sysctl__net_inet_tcp_mssdflt
561 ,&sysctl__net_inet_tcp_recvspace
1c79356b 562 ,&sysctl__net_inet_tcp_sendspace
d12e1678 563 ,&sysctl__net_inet_tcp_slowlink_wsize
9bccf70c
A
564 ,&sysctl__net_inet_tcp_blackhole
565 ,&sysctl__net_inet_tcp_tcp_lq_overflow
566 ,&sysctl__net_inet_tcp_path_mtu_discovery
567 ,&sysctl__net_inet_tcp_slowstart_flightsize
568 ,&sysctl__net_inet_tcp_local_slowstart_flightsize
569 ,&sysctl__net_inet_tcp_newreno
570 ,&sysctl__net_inet_tcp_tcbhashsize
571 ,&sysctl__net_inet_tcp_do_tcpdrain
572 ,&sysctl__net_inet_tcp_icmp_may_rst
573 ,&sysctl__net_inet_tcp_strict_rfc1948
574 ,&sysctl__net_inet_tcp_delacktime
575 ,&sysctl__net_inet_tcp_isn_reseed_interval
576 ,&sysctl__net_inet_tcp_msl
577#if TCP_DROP_SYNFIN
578 ,&sysctl__net_inet_tcp_drop_synfin
579#endif
580#if TCPDEBUG
581 ,&sysctl__net_inet_tcp_tcpconsdebug
582#endif
55e303ae 583 ,&sysctl__net_inet_tcp_sockthreshold
1c79356b
A
584 ,&sysctl__net_inet_udp_log_in_vain
585 ,&sysctl__net_inet_udp_checksum
586 ,&sysctl__net_inet_udp_maxdgram
587 ,&sysctl__net_inet_udp_recvspace
9bccf70c 588 ,&sysctl__net_inet_udp_blackhole
1c79356b
A
589
590#if NETAT
591 ,&sysctl__net_appletalk_debug
592 ,&sysctl__net_appletalk_routermix
593 ,&sysctl__net_appletalk_ddpstats
594#endif /* NETAT */
595
596#if BRIDGE
597 ,&sysctl__net_link_ether_bdgfwc
598 ,&sysctl__net_link_ether_bdgfwt
599 ,&sysctl__net_link_ether_bdginc
600 ,&sysctl__net_link_ether_bdgint
601 ,&sysctl__net_link_ether_bridge_ipfw
602 ,&sysctl__net_link_ethe_bdgstats
603 ,&sysctl__net_link_ether_bridge
604#endif
605
606 ,&sysctl__net_link_ether_inet_host_down_time
607 ,&sysctl__net_link_ether_inet_max_age
608 ,&sysctl__net_link_ether_inet_maxtries
609 ,&sysctl__net_link_ether_inet_proxyall
610 ,&sysctl__net_link_ether_inet_prune_intvl
611 ,&sysctl__net_link_ether_inet_useloopback
9bccf70c 612 ,&sysctl__net_link_ether_inet_log_arp_wrong_iface
0b4e3aa0
A
613 ,&sysctl__net_link_ether_inet_apple_hwcksum_tx
614 ,&sysctl__net_link_ether_inet_apple_hwcksum_rx
1c79356b
A
615#if NETMIBS
616 ,&sysctl__net_link_generic_system_ifcount
617 ,&sysctl__net_link_generic
618 ,&sysctl__net_link_generic_ifdata
619 ,&sysctl__net_link_generic_system
620#endif
621
622#if VLAN
623 ,&sysctl__net_link_vlan_link_proto
624 ,&sysctl__net_link_vlan
625 ,&sysctl__net_link_vlan_link
626#endif
627
628 ,&sysctl__net_local_inflight
629 ,&sysctl__net_local_dgram_maxdgram
630 ,&sysctl__net_local_dgram_recvspace
631 ,&sysctl__net_local_stream_recvspace
632 ,&sysctl__net_local_stream_sendspace
633#if 0
634 ,&sysctl__vfs_nfs_nfs_privport
635 ,&sysctl__vfs_nfs_async
636 ,&sysctl__vfs_nfs_debug
637 ,&sysctl__vfs_nfs_defect
638 ,&sysctl__vfs_nfs_diskless_valid
639 ,&sysctl__vfs_nfs_gatherdelay
640 ,&sysctl__vfs_nfs_gatherdelay_v3
641 ,&sysctl__vfs_nfs
642 ,&sysctl__vfs_nfs_diskless_rootaddr
643 ,&sysctl__vfs_nfs_diskless_swapaddr
644 ,&sysctl__vfs_nfs_diskless_rootpath
645 ,&sysctl__vfs_nfs_diskless_swappath
646 ,&sysctl__vfs_nfs_nfsstats
647#endif
55e303ae
A
648 ,&sysctl__vfs_generic
649 ,&sysctl__vfs_generic_vfsidlist
650 ,&sysctl__vfs_generic_ctlbyfsid
651 ,&sysctl__vfs_generic_noremotehang
652 ,&sysctl__vfs_generic_nfs
653 ,&sysctl__vfs_generic_nfs_client
654 ,&sysctl__vfs_generic_nfs_client_initialdowndelay
655 ,&sysctl__vfs_generic_nfs_client_nextdowndelay
1c79356b 656 ,&sysctl__kern_ipc
9bccf70c 657 ,&sysctl__kern_sysv
1c79356b
A
658 ,&sysctl__net_inet
659#if NETAT
660 ,&sysctl__net_appletalk
661#endif /* NETAT */
662 ,&sysctl__net_link
663 ,&sysctl__net_local
664 ,&sysctl__net_routetable
665#if IPDIVERT
666 ,&sysctl__net_inet_div
667#endif
668 ,&sysctl__net_inet_icmp
669 ,&sysctl__net_inet_igmp
670 ,&sysctl__net_inet_ip
671 ,&sysctl__net_inet_raw
672 ,&sysctl__net_inet_tcp
673 ,&sysctl__net_inet_udp
674 ,&sysctl__net_inet_ip_portrange
675 ,&sysctl__net_link_ether
676 ,&sysctl__net_link_ether_inet
677 ,&sysctl__net_local_dgram
678 ,&sysctl__net_local_stream
679 ,&sysctl__sysctl_name
680 ,&sysctl__sysctl_next
681 ,&sysctl__sysctl_oidfmt
682 ,&sysctl__net_inet_ip_portrange_first
683 ,&sysctl__net_inet_ip_portrange_hifirst
684 ,&sysctl__net_inet_ip_portrange_hilast
685 ,&sysctl__net_inet_ip_portrange_last
686 ,&sysctl__net_inet_ip_portrange_lowfirst
687 ,&sysctl__net_inet_ip_portrange_lowlast
688 ,&sysctl__net_inet_raw_pcblist
689 ,&sysctl__net_inet_tcp_pcblist
690 ,&sysctl__net_inet_udp_pcblist
691 ,&sysctl__net_local_dgram_pcblist
692 ,&sysctl__net_local_stream_pcblist
693 ,&sysctl__sysctl_debug
694 ,&sysctl__sysctl_name2oid
695 ,&sysctl__net_inet_icmp_stats
696 ,&sysctl__net_inet_igmp_stats
697 ,&sysctl__net_inet_ip_stats
698 ,&sysctl__net_inet_tcp_stats
699 ,&sysctl__net_inet_udp_stats
700#if INET6
701 ,&sysctl__net_inet6
702 ,&sysctl__net_inet6_ip6
703 ,&sysctl__net_inet6_icmp6
9bccf70c 704 ,&sysctl__net_inet6_ip6_stats
1c79356b
A
705 ,&sysctl__net_inet6_ip6_forwarding
706 ,&sysctl__net_inet6_ip6_redirect
707 ,&sysctl__net_inet6_ip6_hlim
708 ,&sysctl__net_inet6_ip6_maxfragpackets
709 ,&sysctl__net_inet6_ip6_accept_rtadv
710 ,&sysctl__net_inet6_ip6_keepfaith
711 ,&sysctl__net_inet6_ip6_log_interval
712 ,&sysctl__net_inet6_ip6_hdrnestlimit
713 ,&sysctl__net_inet6_ip6_dad_count
714 ,&sysctl__net_inet6_ip6_auto_flowlabel
715 ,&sysctl__net_inet6_ip6_defmcasthlim
716 ,&sysctl__net_inet6_ip6_gifhlim
717 ,&sysctl__net_inet6_ip6_kame_version
718 ,&sysctl__net_inet6_ip6_use_deprecated
719 ,&sysctl__net_inet6_ip6_rr_prune
9bccf70c
A
720 ,&sysctl__net_inet6_ip6_use_tempaddr
721 ,&sysctl__net_inet6_ip6_v6only
722 ,&sysctl__net_inet6_ip6_auto_linklocal
723 ,&sysctl__net_inet6_ip6_rip6stats
724 ,&sysctl__net_inet6_ip6_rtexpire
725 ,&sysctl__net_inet6_ip6_rtminexpire
726 ,&sysctl__net_inet6_ip6_rtmaxcache
727 ,&sysctl__net_inet6_ip6_temppltime
728 ,&sysctl__net_inet6_ip6_tempvltime
1c79356b
A
729 ,&sysctl__net_inet6_icmp6_rediraccept
730 ,&sysctl__net_inet6_icmp6_redirtimeout
1c79356b
A
731 ,&sysctl__net_inet6_icmp6_nd6_prune
732 ,&sysctl__net_inet6_icmp6_nd6_delay
733 ,&sysctl__net_inet6_icmp6_nd6_umaxtries
734 ,&sysctl__net_inet6_icmp6_nd6_mmaxtries
735 ,&sysctl__net_inet6_icmp6_nd6_useloopback
736 ,&sysctl__net_inet6_icmp6_nodeinfo
9bccf70c
A
737 ,&sysctl__net_inet6_icmp6_stats
738 ,&sysctl__net_inet6_icmp6_errppslimit
739 ,&sysctl__net_inet6_icmp6_nd6_maxnudhint
740 ,&sysctl__net_inet6_icmp6_nd6_debug
741 ,&sysctl__net_inet_tcp_v6mssdflt
1c79356b
A
742#if IPV6FIREWALL
743 ,&sysctl__net_inet6_ip6_fw
744 ,&sysctl__net_inet6_ip6_fw_debug
745 ,&sysctl__net_inet6_ip6_fw_verbose
746 ,&sysctl__net_inet6_ip6_fw_verbose_limit
747#endif
748#if IPSEC
9bccf70c
A
749 ,&sysctl__net_inet6_ipsec6
750 ,&sysctl__net_inet6_ipsec6_stats
1c79356b
A
751 ,&sysctl__net_inet6_ipsec6_def_policy
752 ,&sysctl__net_inet6_ipsec6_esp_trans_deflev
753 ,&sysctl__net_inet6_ipsec6_esp_net_deflev
754 ,&sysctl__net_inet6_ipsec6_ah_trans_deflev
755 ,&sysctl__net_inet6_ipsec6_ah_net_deflev
1c79356b
A
756 ,&sysctl__net_inet6_ipsec6_ecn
757 ,&sysctl__net_inet6_ipsec6_debug
9bccf70c 758 ,&sysctl__net_inet6_ipsec6_esp_randpad
1c79356b
A
759#endif
760#endif
761#if IPSEC
762 ,&sysctl__net_key
763 ,&sysctl__net_key_debug
55e303ae 764 ,&sysctl__net_key_prefered_oldsa
1c79356b
A
765 ,&sysctl__net_key_spi_trycnt
766 ,&sysctl__net_key_spi_minval
767 ,&sysctl__net_key_spi_maxval
768 ,&sysctl__net_key_int_random
769 ,&sysctl__net_key_larval_lifetime
770 ,&sysctl__net_key_blockacq_count
771 ,&sysctl__net_key_blockacq_lifetime
9bccf70c 772 ,&sysctl__net_key_esp_keymin
55e303ae 773 ,&sysctl__net_key_esp_auth
9bccf70c 774 ,&sysctl__net_key_ah_keymin
55e303ae 775 ,&sysctl__net_key_natt_keepalive_interval
1c79356b 776 ,&sysctl__net_inet_ipsec
9bccf70c 777 ,&sysctl__net_inet_ipsec_stats
1c79356b
A
778 ,&sysctl__net_inet_ipsec_def_policy
779 ,&sysctl__net_inet_ipsec_esp_trans_deflev
780 ,&sysctl__net_inet_ipsec_esp_net_deflev
781 ,&sysctl__net_inet_ipsec_ah_trans_deflev
782 ,&sysctl__net_inet_ipsec_ah_net_deflev
1c79356b
A
783 ,&sysctl__net_inet_ipsec_ah_cleartos
784 ,&sysctl__net_inet_ipsec_ah_offsetmask
785 ,&sysctl__net_inet_ipsec_dfbit
786 ,&sysctl__net_inet_ipsec_ecn
787 ,&sysctl__net_inet_ipsec_debug
9bccf70c
A
788 ,&sysctl__net_inet_ipsec_esp_randpad
789 ,&sysctl__net_inet_ipsec_bypass
55e303ae 790 ,&sysctl__net_inet_ipsec_esp_port
1c79356b
A
791#endif
792 ,(struct sysctl_oid *) 0
793};
794