2 * Copyright (c) 2012-2018 Apple Inc. All rights reserved.
4 * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
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.
15 * Please obtain a copy of the License at
16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
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.
26 * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
29 #include <kern/debug.h>
35 panic("stub called in a config with no networking"); \
46 STUB(ctl_enqueuedata
);
47 STUB(ctl_enqueuembuf
);
48 STUB(ctl_enqueuembuf_list
);
49 STUB(ctl_getenqueuespace
);
51 STUB(ether_add_proto
);
52 STUB(ether_check_multi
);
53 STUB(ether_del_proto
);
68 STUB(ifaddr_address_family
);
69 STUB(ifaddr_dstaddress
);
70 STUB(ifaddr_findbestforaddr
);
73 STUB(ifaddr_reference
);
75 STUB(ifaddr_withaddr
);
76 STUB(ifaddr_withdstaddr
);
78 STUB(ifaddr_withroute
);
81 STUB(ifmaddr_address
);
83 STUB(ifmaddr_lladdress
);
84 STUB(ifmaddr_reference
);
85 STUB(ifmaddr_release
);
86 STUB(ifnet_add_multicast
);
89 STUB(ifnet_allocate_internal
);
91 STUB(ifnet_attach_protocol
);
93 STUB(ifnet_capabilities_enabled
);
94 STUB(ifnet_capabilities_supported
);
96 STUB(ifnet_detach_protocol
);
100 STUB(ifnet_subfamily
);
101 STUB(ifnet_find_by_name
);
103 STUB(ifnet_free_address_list
);
104 STUB(ifnet_free_multicast_list
);
105 STUB(ifnet_get_address_list
);
106 STUB(ifnet_get_address_list_family
);
107 STUB(ifnet_get_link_mib_data
);
108 STUB(ifnet_get_link_mib_data_length
);
109 STUB(ifnet_get_multicast_list
);
110 STUB(ifnet_get_service_class_sndq_len
);
111 STUB(ifnet_get_tso_mtu
);
112 STUB(ifnet_get_wake_flags
);
116 STUB(ifnet_interface_family_find
);
118 STUB(ifnet_lastchange
);
119 STUB(ifnet_list_free
);
120 STUB(ifnet_list_get
);
122 STUB(ifnet_lladdr_copy_bytes
);
123 STUB(ifnet_llbroadcast_copy_bytes
);
129 STUB(ifnet_output_raw
);
130 STUB(ifnet_reference
);
132 STUB(ifnet_remove_multicast
);
133 STUB(ifnet_resolve_multicast
);
134 STUB(ifnet_set_addrlen
);
135 STUB(ifnet_set_baudrate
);
136 STUB(ifnet_set_capabilities_enabled
);
137 STUB(ifnet_set_capabilities_supported
);
138 STUB(ifnet_set_delegate
);
139 STUB(ifnet_set_eflags
);
140 STUB(ifnet_set_flags
);
141 STUB(ifnet_set_hdrlen
);
142 STUB(ifnet_set_link_mib_data
);
143 STUB(ifnet_set_lladdr
);
144 STUB(ifnet_set_metric
);
146 STUB(ifnet_set_offload
);
147 STUB(ifnet_set_promiscuous
);
148 STUB(ifnet_set_stat
);
149 STUB(ifnet_set_tso_mtu
);
150 STUB(ifnet_set_wake_flags
);
153 STUB(ifnet_stat_increment
);
154 STUB(ifnet_stat_increment_in
);
155 STUB(ifnet_stat_increment_out
);
156 STUB(ifnet_touch_lastchange
);
160 STUB(inet_arp_handle_input
);
161 STUB(inet_arp_init_ifaddr
);
162 STUB(inet_arp_lookup
);
165 STUB(ipf_inject_input
);
166 STUB(ipf_inject_output
);
169 STUB(kev_vendor_code_find
);
171 STUB(mbuf_adjustlen
);
173 STUB(mbuf_alloccluster
);
174 STUB(mbuf_allocpacket
);
175 STUB(mbuf_allocpacket_list
);
176 STUB(mbuf_attachcluster
);
177 STUB(mbuf_clear_csum_performed
);
178 STUB(mbuf_clear_csum_requested
);
179 STUB(mbuf_clear_vlan_tag
);
180 STUB(mbuf_concatenate
);
181 STUB(mbuf_copy_pkthdr
);
186 STUB(mbuf_data_to_physical
);
187 STUB(mbuf_datastart
);
191 STUB(mbuf_freecluster
);
193 STUB(mbuf_freem_list
);
195 STUB(mbuf_get_csum_performed
);
196 STUB(mbuf_get_csum_requested
);
197 STUB(mbuf_get_mhlen
);
198 STUB(mbuf_get_minclsize
);
200 STUB(mbuf_get_traffic_class
);
201 STUB(mbuf_get_tso_requested
);
202 STUB(mbuf_get_vlan_tag
);
203 STUB(mbuf_getcluster
);
205 STUB(mbuf_getpacket
);
206 STUB(mbuf_inbound_modified
);
207 STUB(mbuf_inet_cksum
);
208 STUB(mbuf_is_traffic_class_privileged
);
209 STUB(mbuf_leadingspace
);
213 STUB(mbuf_mclhasreference
);
216 STUB(mbuf_outbound_finalize
);
217 STUB(mbuf_pkthdr_adjustlen
);
218 STUB(mbuf_pkthdr_header
);
219 STUB(mbuf_pkthdr_len
);
220 STUB(mbuf_pkthdr_rcvif
);
221 STUB(mbuf_pkthdr_setheader
);
222 STUB(mbuf_pkthdr_setlen
);
223 STUB(mbuf_pkthdr_setrcvif
);
227 STUB(mbuf_set_csum_performed
);
228 STUB(mbuf_set_csum_requested
);
229 STUB(mbuf_set_traffic_class
);
230 STUB(mbuf_set_vlan_tag
);
233 STUB(mbuf_setflags_mask
);
236 STUB(mbuf_setnextpkt
);
240 STUB(mbuf_tag_allocate
);
243 STUB(mbuf_tag_id_find
);
244 STUB(mbuf_add_drvaux
);
245 STUB(mbuf_find_drvaux
);
246 STUB(mbuf_del_drvaux
);
247 STUB(mbuf_trailingspace
);
249 STUB(mbuf_get_flowid
);
250 STUB(mbuf_set_flowid
);
251 STUB(mbuf_get_timestamp
);
252 STUB(mbuf_set_timestamp
);
253 STUB(mbuf_get_tx_compl_data
);
254 STUB(mbuf_set_tx_compl_data
);
255 STUB(mbuf_get_status
);
256 STUB(mbuf_set_status
);
257 STUB(mbuf_get_timestamp_requested
);
258 STUB(mbuf_set_timestamp_requested
);
259 STUB(mbuf_register_tx_compl_callback
);
260 STUB(mbuf_unregister_tx_compl_callback
);
264 STUB(proto_register_plumber
);
265 STUB(proto_unregister_plumber
);
269 STUB(sflt_unregister
);
274 STUB(sock_connectwait
);
275 STUB(sock_getpeername
);
276 STUB(sock_getsockname
);
277 STUB(sock_getsockopt
);
279 STUB(sock_inject_data_in
);
280 STUB(sock_inject_data_out
);
282 STUB(sock_isconnected
);
283 STUB(sock_isnonblocking
);
285 STUB(sock_nointerrupt
);
287 STUB(sock_receivembuf
);
291 STUB(sock_setsockopt
);
294 STUB(sockopt_copyin
);
295 STUB(sockopt_copyout
);
296 STUB(sockopt_direction
);
299 STUB(sockopt_valsize
);
301 STUB(ctl_id_by_name
);
302 STUB(ctl_name_by_id
);
303 STUB(ifnet_allocate_extended
);
304 STUB(ifnet_bandwidths
);
305 STUB(ifnet_clone_attach
);
306 STUB(ifnet_clone_detach
);
308 STUB(ifnet_dequeue_multi
);
309 STUB(ifnet_dequeue_multi_bytes
);
310 STUB(ifnet_dequeue_service_class
);
311 STUB(ifnet_dequeue_service_class_multi
);
313 STUB(ifnet_get_delegate
);
314 STUB(ifnet_get_inuse_address_list
);
315 STUB(ifnet_get_local_ports
);
316 STUB(ifnet_get_local_ports_extended
);
317 STUB(ifnet_get_rcvq_maxlen
);
318 STUB(ifnet_get_sndq_len
);
319 STUB(ifnet_get_sndq_maxlen
);
320 STUB(ifnet_idle_flags
);
321 STUB(ifnet_inet6_defrouter_llreachinfo
);
322 STUB(ifnet_inet_defrouter_llreachinfo
);
323 STUB(ifnet_input_extended
);
324 STUB(ifnet_latencies
);
325 STUB(ifnet_link_quality
);
326 STUB(ifnet_notice_master_elected
);
327 STUB(ifnet_notice_node_absence
);
328 STUB(ifnet_notice_node_presence
);
329 STUB(ifnet_poll_params
);
331 STUB(ifnet_report_issues
);
332 STUB(ifnet_set_bandwidths
);
333 STUB(ifnet_set_idle_flags
);
334 STUB(ifnet_set_latencies
);
335 STUB(ifnet_set_link_quality
);
336 STUB(ifnet_set_output_sched_model
);
337 STUB(ifnet_set_poll_params
);
338 STUB(ifnet_set_rcvq_maxlen
);
339 STUB(ifnet_set_sndq_maxlen
);
341 STUB(ifnet_tx_compl_status
);
342 STUB(ifnet_tx_compl
);
344 STUB(ifnet_enable_output
);
345 STUB(ifnet_disable_output
);
346 STUB(ifnet_get_keepalive_offload_frames
);
347 STUB(ifnet_link_status_report
);
348 STUB(ifnet_set_fastlane_capable
);
349 STUB(ifnet_get_fastlane_capable
);
350 STUB(ifnet_get_unsent_bytes
);
351 STUB(ifnet_get_buffer_status
);
352 STUB(ifnet_normalise_unsent_data
);
357 STUB(inp_clear_INP_INADDR_ANY
);
368 STUB(m_trailingspace
);
369 STUB(mbuf_get_driver_scratch
);
370 STUB(mbuf_get_unsent_data_bytes
);
371 STUB(mbuf_get_buffer_status
);
372 STUB(mbuf_pkt_new_flow
);
374 STUB(mbuf_get_priority
);
375 STUB(mbuf_get_service_class
);
376 STUB(mbuf_get_service_class_index
);
377 STUB(mbuf_get_service_class_max_count
);
378 STUB(mbuf_get_traffic_class_index
);
379 STUB(mbuf_get_traffic_class_max_count
);
380 STUB(mbuf_is_service_class_privileged
);
381 STUB(mbuf_pkthdr_aux_flags
);
383 STUB(net_add_domain
);
384 STUB(net_add_domain_old
);
386 STUB(net_add_proto_old
);
387 STUB(net_del_domain
);
388 STUB(net_del_domain_old
);
390 STUB(net_del_proto_old
);
392 STUB(pffinddomain_old
);
394 STUB(pffindproto_old
);
395 STUB(pru_abort_notsupp
);
396 STUB(pru_accept_notsupp
);
397 STUB(pru_bind_notsupp
);
398 STUB(pru_connect2_notsupp
);
399 STUB(pru_connect_notsupp
);
400 STUB(pru_disconnect_notsupp
);
401 STUB(pru_listen_notsupp
);
402 STUB(pru_peeraddr_notsupp
);
403 STUB(pru_rcvd_notsupp
);
404 STUB(pru_rcvoob_notsupp
);
405 STUB(pru_send_notsupp
);
406 STUB(pru_send_list_notsupp
);
407 STUB(pru_sense_null
);
408 STUB(pru_shutdown_notsupp
);
409 STUB(pru_sockaddr_notsupp
);
410 STUB(pru_sopoll_notsupp
);
412 STUB(sbappendrecord
);
417 STUB(socantsendmore
);
418 STUB(sock_getlistener
);
419 STUB(sock_gettclassopt
);
422 STUB(sock_settclassopt
);
423 STUB(sock_catchevents
);
424 STUB(sock_setupcall
);
425 STUB(sock_setupcalls
);
430 STUB(soisconnecting
);
431 STUB(soisdisconnected
);
432 STUB(soisdisconnecting
);
438 STUB(soreceive_list
);
443 STUB(utun_ctl_disable_crypto_dtls
);
444 STUB(utun_ctl_register_dtls
);
445 STUB(utun_pkt_dtls_input
);
446 STUB(dlil_resolve_multi
);
447 STUB(inet_cksum_simple
);
448 STUB(arp_ip_handle_input
);
451 STUB(ip_gre_register_input
);
453 STUB(iflt_attach_internal
);
454 STUB(ipf_addv4_internal
);
455 STUB(ipf_addv6_internal
);
456 STUB(sflt_register_internal
);
457 STUB(sock_accept_internal
);
458 STUB(sock_socket_internal
);
462 * Called from vm_pageout.c. Nothing to be done when there's no networking.
470 #else /* NETWORKING */
473 #endif /* !NETWORKING */