]>
Commit | Line | Data |
---|---|---|
fe8ab488 A |
1 | /* |
2 | * Copyright (c) 2012-2014 Apple Inc. All rights reserved. | |
3 | * | |
4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ | |
5 | * | |
6 | * This file contains Original Code and/or Modifications of Original Code | |
7 | * as defined in and that are subject to the Apple Public Source License | |
8 | * Version 2.0 (the 'License'). You may not use this file except in | |
9 | * compliance with the License. The rights granted to you under the License | |
10 | * may not be used to create, or enable the creation or redistribution of, | |
11 | * unlawful or unlicensed copies of an Apple operating system, or to | |
12 | * circumvent, violate, or enable the circumvention or violation of, any | |
13 | * terms of an Apple operating system software license agreement. | |
14 | * | |
15 | * Please obtain a copy of the License at | |
16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. | |
17 | * | |
18 | * The Original Code and all software distributed under the License are | |
19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, | |
21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. | |
23 | * Please see the License for the specific language governing rights and | |
24 | * limitations under the License. | |
25 | * | |
26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ | |
27 | */ | |
28 | ||
39236c6e A |
29 | #include <kern/debug.h> |
30 | ||
31 | #if !NETWORKING | |
32 | ||
fe8ab488 A |
33 | #define STUB(name) \ |
34 | int name(void); \ | |
35 | int name(void) \ | |
36 | { \ | |
37 | panic("stub called in a config with no networking"); \ | |
38 | return 0; \ | |
39 | } | |
40 | ||
41 | STUB(bpf_attach); | |
42 | STUB(bpf_tap_in); | |
43 | STUB(bpf_tap_out); | |
44 | STUB(bpfattach); | |
45 | STUB(ctl_deregister); | |
46 | STUB(ctl_enqueuedata); | |
47 | STUB(ctl_enqueuembuf); | |
48 | STUB(ctl_enqueuembuf_list); | |
49 | STUB(ctl_getenqueuespace); | |
50 | STUB(ctl_register); | |
51 | STUB(ether_add_proto); | |
52 | STUB(ether_check_multi); | |
53 | STUB(ether_del_proto); | |
54 | STUB(ether_demux); | |
55 | STUB(ether_frameout); | |
56 | STUB(ether_ioctl); | |
57 | STUB(fifo_advlock); | |
58 | STUB(fifo_close); | |
59 | STUB(fifo_inactive); | |
60 | STUB(fifo_ioctl); | |
61 | STUB(fifo_lookup); | |
62 | STUB(fifo_open); | |
63 | STUB(fifo_pathconf); | |
64 | STUB(fifo_read); | |
65 | STUB(fifo_select); | |
66 | STUB(fifo_write); | |
67 | STUB(ifaddr_address); | |
68 | STUB(ifaddr_address_family); | |
69 | STUB(ifaddr_dstaddress); | |
70 | STUB(ifaddr_findbestforaddr); | |
71 | STUB(ifaddr_ifnet); | |
72 | STUB(ifaddr_netmask); | |
73 | STUB(ifaddr_reference); | |
74 | STUB(ifaddr_release); | |
75 | STUB(ifaddr_withaddr); | |
76 | STUB(ifaddr_withdstaddr); | |
77 | STUB(ifaddr_withnet); | |
78 | STUB(ifaddr_withroute); | |
79 | STUB(iflt_attach); | |
80 | STUB(iflt_detach); | |
81 | STUB(ifmaddr_address); | |
82 | STUB(ifmaddr_ifnet); | |
83 | STUB(ifmaddr_lladdress); | |
84 | STUB(ifmaddr_reference); | |
85 | STUB(ifmaddr_release); | |
86 | STUB(ifnet_add_multicast); | |
87 | STUB(ifnet_addrlen); | |
88 | STUB(ifnet_allocate); | |
89 | STUB(ifnet_attach); | |
90 | STUB(ifnet_attach_protocol); | |
91 | STUB(ifnet_baudrate); | |
92 | STUB(ifnet_capabilities_enabled); | |
93 | STUB(ifnet_capabilities_supported); | |
94 | STUB(ifnet_detach); | |
95 | STUB(ifnet_detach_protocol); | |
96 | STUB(ifnet_eflags); | |
97 | STUB(ifnet_event); | |
98 | STUB(ifnet_family); | |
99 | STUB(ifnet_subfamily); | |
100 | STUB(ifnet_find_by_name); | |
101 | STUB(ifnet_flags); | |
102 | STUB(ifnet_free_address_list); | |
103 | STUB(ifnet_free_multicast_list); | |
104 | STUB(ifnet_get_address_list); | |
105 | STUB(ifnet_get_address_list_family); | |
106 | STUB(ifnet_get_link_mib_data); | |
107 | STUB(ifnet_get_link_mib_data_length); | |
108 | STUB(ifnet_get_multicast_list); | |
109 | STUB(ifnet_get_service_class_sndq_len); | |
110 | STUB(ifnet_get_tso_mtu); | |
111 | STUB(ifnet_get_wake_flags); | |
112 | STUB(ifnet_hdrlen); | |
113 | STUB(ifnet_index); | |
114 | STUB(ifnet_input); | |
115 | STUB(ifnet_interface_family_find); | |
116 | STUB(ifnet_ioctl); | |
117 | STUB(ifnet_lastchange); | |
118 | STUB(ifnet_list_free); | |
119 | STUB(ifnet_list_get); | |
120 | STUB(ifnet_lladdr); | |
121 | STUB(ifnet_lladdr_copy_bytes); | |
122 | STUB(ifnet_llbroadcast_copy_bytes); | |
123 | STUB(ifnet_metric); | |
124 | STUB(ifnet_mtu); | |
125 | STUB(ifnet_name); | |
126 | STUB(ifnet_offload); | |
127 | STUB(ifnet_output); | |
128 | STUB(ifnet_output_raw); | |
129 | STUB(ifnet_reference); | |
130 | STUB(ifnet_release); | |
131 | STUB(ifnet_remove_multicast); | |
132 | STUB(ifnet_resolve_multicast); | |
133 | STUB(ifnet_set_addrlen); | |
134 | STUB(ifnet_set_baudrate); | |
135 | STUB(ifnet_set_capabilities_enabled); | |
136 | STUB(ifnet_set_capabilities_supported); | |
137 | STUB(ifnet_set_delegate); | |
138 | STUB(ifnet_set_eflags); | |
139 | STUB(ifnet_set_flags); | |
140 | STUB(ifnet_set_hdrlen); | |
141 | STUB(ifnet_set_link_mib_data); | |
142 | STUB(ifnet_set_lladdr); | |
143 | STUB(ifnet_set_metric); | |
144 | STUB(ifnet_set_mtu); | |
145 | STUB(ifnet_set_offload); | |
146 | STUB(ifnet_set_promiscuous); | |
147 | STUB(ifnet_set_stat); | |
148 | STUB(ifnet_set_tso_mtu); | |
149 | STUB(ifnet_set_wake_flags); | |
150 | STUB(ifnet_softc); | |
151 | STUB(ifnet_stat); | |
152 | STUB(ifnet_stat_increment); | |
153 | STUB(ifnet_stat_increment_in); | |
154 | STUB(ifnet_stat_increment_out); | |
155 | STUB(ifnet_touch_lastchange); | |
156 | STUB(ifnet_type); | |
157 | STUB(ifnet_unit); | |
158 | STUB(in_cksum); | |
159 | STUB(inet_arp_handle_input); | |
160 | STUB(inet_arp_init_ifaddr); | |
161 | STUB(inet_arp_lookup); | |
162 | STUB(ipf_addv4); | |
163 | STUB(ipf_addv6); | |
164 | STUB(ipf_inject_input); | |
165 | STUB(ipf_inject_output); | |
166 | STUB(ipf_remove); | |
167 | STUB(kev_msg_post); | |
168 | STUB(kev_vendor_code_find); | |
169 | STUB(mbuf_adj); | |
170 | STUB(mbuf_adjustlen); | |
171 | STUB(mbuf_align_32); | |
172 | STUB(mbuf_alloccluster); | |
173 | STUB(mbuf_allocpacket); | |
174 | STUB(mbuf_allocpacket_list); | |
175 | STUB(mbuf_attachcluster); | |
176 | STUB(mbuf_clear_csum_performed); | |
177 | STUB(mbuf_clear_csum_requested); | |
178 | STUB(mbuf_clear_vlan_tag); | |
179 | STUB(mbuf_concatenate); | |
180 | STUB(mbuf_copy_pkthdr); | |
181 | STUB(mbuf_copyback); | |
182 | STUB(mbuf_copydata); | |
183 | STUB(mbuf_copym); | |
184 | STUB(mbuf_data); | |
185 | STUB(mbuf_data_to_physical); | |
186 | STUB(mbuf_datastart); | |
187 | STUB(mbuf_dup); | |
188 | STUB(mbuf_flags); | |
189 | STUB(mbuf_free); | |
190 | STUB(mbuf_freecluster); | |
191 | STUB(mbuf_freem); | |
192 | STUB(mbuf_freem_list); | |
193 | STUB(mbuf_get); | |
194 | STUB(mbuf_get_csum_performed); | |
195 | STUB(mbuf_get_csum_requested); | |
196 | STUB(mbuf_get_mhlen); | |
197 | STUB(mbuf_get_minclsize); | |
198 | STUB(mbuf_get_mlen); | |
199 | STUB(mbuf_get_traffic_class); | |
200 | STUB(mbuf_get_tso_requested); | |
201 | STUB(mbuf_get_vlan_tag); | |
202 | STUB(mbuf_getcluster); | |
203 | STUB(mbuf_gethdr); | |
204 | STUB(mbuf_getpacket); | |
205 | STUB(mbuf_inbound_modified); | |
206 | STUB(mbuf_inet_cksum); | |
207 | STUB(mbuf_is_traffic_class_privileged); | |
208 | STUB(mbuf_leadingspace); | |
209 | STUB(mbuf_len); | |
210 | STUB(mbuf_maxlen); | |
211 | STUB(mbuf_mclget); | |
212 | STUB(mbuf_mclhasreference); | |
213 | STUB(mbuf_next); | |
214 | STUB(mbuf_nextpkt); | |
215 | STUB(mbuf_outbound_finalize); | |
216 | STUB(mbuf_pkthdr_adjustlen); | |
217 | STUB(mbuf_pkthdr_header); | |
218 | STUB(mbuf_pkthdr_len); | |
219 | STUB(mbuf_pkthdr_rcvif); | |
220 | STUB(mbuf_pkthdr_setheader); | |
221 | STUB(mbuf_pkthdr_setlen); | |
222 | STUB(mbuf_pkthdr_setrcvif); | |
223 | STUB(mbuf_prepend); | |
224 | STUB(mbuf_pulldown); | |
225 | STUB(mbuf_pullup); | |
226 | STUB(mbuf_set_csum_performed); | |
227 | STUB(mbuf_set_csum_requested); | |
228 | STUB(mbuf_set_traffic_class); | |
229 | STUB(mbuf_set_vlan_tag); | |
230 | STUB(mbuf_setdata); | |
231 | STUB(mbuf_setflags); | |
232 | STUB(mbuf_setflags_mask); | |
233 | STUB(mbuf_setlen); | |
234 | STUB(mbuf_setnext); | |
235 | STUB(mbuf_setnextpkt); | |
236 | STUB(mbuf_settype); | |
237 | STUB(mbuf_split); | |
238 | STUB(mbuf_stats); | |
239 | STUB(mbuf_tag_allocate); | |
240 | STUB(mbuf_tag_find); | |
241 | STUB(mbuf_tag_free); | |
242 | STUB(mbuf_tag_id_find); | |
243 | STUB(mbuf_add_drvaux); | |
244 | STUB(mbuf_find_drvaux); | |
245 | STUB(mbuf_del_drvaux); | |
246 | STUB(mbuf_trailingspace); | |
247 | STUB(mbuf_type); | |
248 | STUB(net_init_add); | |
249 | STUB(proto_inject); | |
250 | STUB(proto_input); | |
251 | STUB(proto_register_plumber); | |
252 | STUB(proto_unregister_plumber); | |
253 | STUB(sflt_attach); | |
254 | STUB(sflt_detach); | |
255 | STUB(sflt_register); | |
256 | STUB(sflt_unregister); | |
257 | STUB(sock_accept); | |
258 | STUB(sock_bind); | |
259 | STUB(sock_close); | |
260 | STUB(sock_connect); | |
261 | STUB(sock_connectwait); | |
262 | STUB(sock_getpeername); | |
263 | STUB(sock_getsockname); | |
264 | STUB(sock_getsockopt); | |
265 | STUB(sock_gettype); | |
266 | STUB(sock_inject_data_in); | |
267 | STUB(sock_inject_data_out); | |
268 | STUB(sock_ioctl); | |
269 | STUB(sock_isconnected); | |
270 | STUB(sock_isnonblocking); | |
271 | STUB(sock_listen); | |
272 | STUB(sock_nointerrupt); | |
273 | STUB(sock_receive); | |
274 | STUB(sock_receivembuf); | |
275 | STUB(sock_send); | |
276 | STUB(sock_sendmbuf); | |
277 | STUB(sock_setpriv); | |
278 | STUB(sock_setsockopt); | |
279 | STUB(sock_shutdown); | |
280 | STUB(sock_socket); | |
281 | STUB(sockopt_copyin); | |
282 | STUB(sockopt_copyout); | |
283 | STUB(sockopt_direction); | |
284 | STUB(sockopt_level); | |
285 | STUB(sockopt_name); | |
286 | STUB(sockopt_valsize); | |
287 | STUB(kev_post_msg); | |
288 | STUB(ctl_id_by_name); | |
289 | STUB(ctl_name_by_id); | |
290 | STUB(ifnet_allocate_extended); | |
291 | STUB(ifnet_bandwidths); | |
292 | STUB(ifnet_clone_attach); | |
293 | STUB(ifnet_clone_detach); | |
294 | STUB(ifnet_dequeue); | |
295 | STUB(ifnet_dequeue_multi); | |
296 | STUB(ifnet_dequeue_service_class); | |
297 | STUB(ifnet_dequeue_service_class_multi); | |
298 | STUB(ifnet_enqueue); | |
299 | STUB(ifnet_get_delegate); | |
300 | STUB(ifnet_get_inuse_address_list); | |
301 | STUB(ifnet_get_local_ports); | |
302 | STUB(ifnet_get_local_ports_extended); | |
303 | STUB(ifnet_get_rcvq_maxlen); | |
304 | STUB(ifnet_get_sndq_len); | |
305 | STUB(ifnet_get_sndq_maxlen); | |
306 | STUB(ifnet_idle_flags); | |
307 | STUB(ifnet_inet6_defrouter_llreachinfo); | |
308 | STUB(ifnet_inet_defrouter_llreachinfo); | |
309 | STUB(ifnet_input_extended); | |
310 | STUB(ifnet_latencies); | |
311 | STUB(ifnet_link_quality); | |
312 | STUB(ifnet_notice_master_elected); | |
313 | STUB(ifnet_notice_node_absence); | |
314 | STUB(ifnet_notice_node_presence); | |
315 | STUB(ifnet_poll_params); | |
316 | STUB(ifnet_purge); | |
317 | STUB(ifnet_report_issues); | |
318 | STUB(ifnet_set_bandwidths); | |
319 | STUB(ifnet_set_idle_flags); | |
320 | STUB(ifnet_set_latencies); | |
321 | STUB(ifnet_set_link_quality); | |
322 | STUB(ifnet_set_output_sched_model); | |
323 | STUB(ifnet_set_poll_params); | |
324 | STUB(ifnet_set_rcvq_maxlen); | |
325 | STUB(ifnet_set_sndq_maxlen); | |
326 | STUB(ifnet_start); | |
327 | STUB(ifnet_transmit_burst_end); | |
328 | STUB(ifnet_transmit_burst_start); | |
329 | STUB(ifnet_tx_compl_status); | |
330 | STUB(ifnet_flowid); | |
331 | STUB(ifnet_enable_output); | |
332 | STUB(ifnet_disable_output); | |
333 | STUB(ifnet_get_ipsec_offload_frames); | |
334 | STUB(in6_localaddr); | |
335 | STUB(in_localaddr); | |
336 | STUB(in6addr_local); | |
337 | STUB(inaddr_local); | |
338 | STUB(inp_clear_INP_INADDR_ANY); | |
339 | STUB(ip_gre_output); | |
340 | STUB(m_cat); | |
341 | STUB(m_free); | |
342 | STUB(m_freem); | |
343 | STUB(m_get); | |
344 | STUB(m_gethdr); | |
345 | STUB(m_mtod); | |
346 | STUB(m_prepend_2); | |
347 | STUB(m_pullup); | |
348 | STUB(m_split); | |
349 | STUB(m_trailingspace); | |
350 | STUB(mbuf_get_driver_scratch); | |
351 | STUB(mbuf_get_priority); | |
352 | STUB(mbuf_get_service_class); | |
353 | STUB(mbuf_get_service_class_index); | |
354 | STUB(mbuf_get_service_class_max_count); | |
355 | STUB(mbuf_get_traffic_class_index); | |
356 | STUB(mbuf_get_traffic_class_max_count); | |
357 | STUB(mbuf_is_service_class_privileged); | |
358 | STUB(mbuf_pkthdr_aux_flags); | |
359 | STUB(mcl_to_paddr); | |
360 | STUB(net_add_domain); | |
361 | STUB(net_add_domain_old); | |
362 | STUB(net_add_proto); | |
363 | STUB(net_add_proto_old); | |
364 | STUB(net_del_domain); | |
365 | STUB(net_del_domain_old); | |
366 | STUB(net_del_proto); | |
367 | STUB(net_del_proto_old); | |
368 | STUB(pffinddomain); | |
369 | STUB(pffinddomain_old); | |
370 | STUB(pffindproto); | |
371 | STUB(pffindproto_old); | |
372 | STUB(pru_abort_notsupp); | |
373 | STUB(pru_accept_notsupp); | |
374 | STUB(pru_bind_notsupp); | |
375 | STUB(pru_connect2_notsupp); | |
376 | STUB(pru_connect_notsupp); | |
377 | STUB(pru_disconnect_notsupp); | |
378 | STUB(pru_listen_notsupp); | |
379 | STUB(pru_peeraddr_notsupp); | |
380 | STUB(pru_rcvd_notsupp); | |
381 | STUB(pru_rcvoob_notsupp); | |
382 | STUB(pru_send_notsupp); | |
383 | STUB(pru_send_list_notsupp); | |
384 | STUB(pru_sense_null); | |
385 | STUB(pru_shutdown_notsupp); | |
386 | STUB(pru_sockaddr_notsupp); | |
387 | STUB(pru_sopoll_notsupp); | |
388 | STUB(sbappendaddr); | |
389 | STUB(sbappendrecord); | |
390 | STUB(sbflush); | |
391 | STUB(sbspace); | |
392 | STUB(soabort); | |
393 | STUB(socantrcvmore); | |
394 | STUB(socantsendmore); | |
395 | STUB(sock_getlistener); | |
396 | STUB(sock_gettclassopt); | |
397 | STUB(sock_release); | |
398 | STUB(sock_retain); | |
399 | STUB(sock_settclassopt); | |
400 | STUB(sock_catchevents); | |
401 | STUB(sock_setupcall); | |
402 | STUB(sock_setupcalls); | |
403 | STUB(sodisconnect); | |
404 | STUB(sofree); | |
405 | STUB(sofreelastref); | |
406 | STUB(soisconnected); | |
407 | STUB(soisconnecting); | |
408 | STUB(soisdisconnected); | |
409 | STUB(soisdisconnecting); | |
410 | STUB(sonewconn); | |
411 | STUB(sooptcopyin); | |
412 | STUB(sooptcopyout); | |
413 | STUB(sopoll); | |
414 | STUB(soreceive); | |
415 | STUB(soreceive_list); | |
416 | STUB(soreserve); | |
417 | STUB(sorwakeup); | |
418 | STUB(sosend); | |
419 | STUB(sosend_list); | |
420 | STUB(utun_ctl_disable_crypto_dtls); | |
421 | STUB(utun_ctl_register_dtls); | |
422 | STUB(utun_pkt_dtls_input); | |
423 | STUB(dlil_resolve_multi); | |
424 | STUB(inet_cksum_simple); | |
425 | STUB(arp_ip_handle_input); | |
426 | STUB(arp_ifinit); | |
427 | STUB(arp_lookup_ip); | |
428 | STUB(ip_gre_register_input); | |
429 | STUB(sock_iskernel); | |
430 | #undef STUB | |
431 | ||
432 | /* | |
433 | * Called from vm_pageout.c. Nothing to be done when there's no networking. | |
434 | */ | |
435 | void m_drain(void); | |
436 | void m_drain(void) | |
39236c6e | 437 | { |
fe8ab488 | 438 | return; |
39236c6e A |
439 | } |
440 | ||
fe8ab488 | 441 | #endif /* !NETWORKING */ |