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