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