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