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