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