/*
- * Copyright (c) 2012-2015 Apple Inc. All rights reserved.
+ * Copyright (c) 2012-2019 Apple Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
- *
+ *
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file except in
* unlawful or unlicensed copies of an Apple operating system, or to
* circumvent, violate, or enable the circumvention or violation of, any
* terms of an Apple operating system software license agreement.
- *
+ *
* Please obtain a copy of the License at
* http://www.opensource.apple.com/apsl/ and read it before using this file.
- *
+ *
* The Original Code and all software distributed under the License are
* distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
* EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
* FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
* Please see the License for the specific language governing rights and
* limitations under the License.
- *
+ *
* @APPLE_OSREFERENCE_LICENSE_HEADER_END@
*/
#if !NETWORKING
-#define STUB(name) \
- int name(void); \
- int name(void) \
- { \
- panic("stub called in a config with no networking"); \
- return 0; \
+#define STUB(name) \
+ int name(void); \
+ int name(void) \
+ { \
+ panic("stub called in a config with no networking"); \
+ return (0); \
}
STUB(bpf_attach);
STUB(bpf_tap_in);
STUB(bpf_tap_out);
STUB(bpfattach);
+#if !SKYWALK
+STUB(bpf_tap_packet_in);
+STUB(bpf_tap_packet_out);
+#endif /* SKYWALK */
STUB(ctl_deregister);
STUB(ctl_enqueuedata);
STUB(ctl_enqueuembuf);
STUB(ifnet_add_multicast);
STUB(ifnet_addrlen);
STUB(ifnet_allocate);
+STUB(ifnet_allocate_internal);
STUB(ifnet_attach);
STUB(ifnet_attach_protocol);
STUB(ifnet_baudrate);
STUB(mbuf_del_drvaux);
STUB(mbuf_trailingspace);
STUB(mbuf_type);
+STUB(mbuf_get_flowid);
+STUB(mbuf_set_flowid);
+STUB(mbuf_get_timestamp);
+STUB(mbuf_set_timestamp);
+STUB(mbuf_get_tx_compl_data);
+STUB(mbuf_set_tx_compl_data);
+STUB(mbuf_get_status);
+STUB(mbuf_set_status);
+STUB(mbuf_get_timestamp_requested);
+STUB(mbuf_set_timestamp_requested);
+STUB(mbuf_register_tx_compl_callback);
+STUB(mbuf_unregister_tx_compl_callback);
+STUB(mbuf_get_keepalive_flag);
+STUB(mbuf_set_keepalive_flag);
STUB(net_init_add);
STUB(proto_inject);
STUB(proto_input);
STUB(ifnet_clone_detach);
STUB(ifnet_dequeue);
STUB(ifnet_dequeue_multi);
+STUB(ifnet_dequeue_multi_bytes);
STUB(ifnet_dequeue_service_class);
STUB(ifnet_dequeue_service_class_multi);
STUB(ifnet_enqueue);
STUB(ifnet_notice_master_elected);
STUB(ifnet_notice_node_absence);
STUB(ifnet_notice_node_presence);
+STUB(ifnet_notice_node_presence_v2);
STUB(ifnet_poll_params);
STUB(ifnet_purge);
STUB(ifnet_report_issues);
STUB(ifnet_set_rcvq_maxlen);
STUB(ifnet_set_sndq_maxlen);
STUB(ifnet_start);
-STUB(ifnet_transmit_burst_end);
-STUB(ifnet_transmit_burst_start);
STUB(ifnet_tx_compl_status);
+STUB(ifnet_tx_compl);
STUB(ifnet_flowid);
STUB(ifnet_enable_output);
STUB(ifnet_disable_output);
STUB(ifnet_get_keepalive_offload_frames);
STUB(ifnet_link_status_report);
-STUB(ifnet_set_packetpreamblelen);
-STUB(ifnet_packetpreamblelen);
-STUB(ifnet_maxpacketpreamblelen);
+STUB(ifnet_set_fastlane_capable);
+STUB(ifnet_get_fastlane_capable);
+STUB(ifnet_get_unsent_bytes);
+STUB(ifnet_get_buffer_status);
+STUB(ifnet_normalise_unsent_data);
+STUB(ifnet_set_low_power_mode);
+STUB(ifnet_notify_tcp_keepalive_offload_timeout);
+STUB(ifnet_interface_advisory_report);
STUB(in6_localaddr);
STUB(in_localaddr);
STUB(in6addr_local);
STUB(m_prepend_2);
STUB(m_pullup);
STUB(m_split);
-STUB(m_trailingspace);
STUB(mbuf_get_driver_scratch);
STUB(mbuf_get_unsent_data_bytes);
+STUB(mbuf_get_buffer_status);
+STUB(mbuf_pkt_new_flow);
+STUB(mbuf_last_pkt);
STUB(mbuf_get_priority);
STUB(mbuf_get_service_class);
STUB(mbuf_get_service_class_index);
STUB(net_del_domain_old);
STUB(net_del_proto);
STUB(net_del_proto_old);
+STUB(net_domain_contains_hostname);
STUB(pffinddomain);
STUB(pffinddomain_old);
STUB(pffindproto);
STUB(arp_lookup_ip);
STUB(ip_gre_register_input);
STUB(sock_iskernel);
+STUB(iflt_attach_internal);
+STUB(ipf_addv4_internal);
+STUB(ipf_addv6_internal);
+STUB(sflt_register_internal);
+STUB(sock_accept_internal);
+STUB(sock_socket_internal);
+STUB(vsock_add_transport);
+STUB(vsock_remove_transport);
+STUB(vsock_reset_transport);
+STUB(vsock_put_message);
#undef STUB
-/*
+/*
* Called from vm_pageout.c. Nothing to be done when there's no networking.
*/
-void m_drain(void);
-void m_drain(void)
+void mbuf_drain(boolean_t);
+void
+mbuf_drain(boolean_t)
{
- return;
+ return;
}
#endif /* !NETWORKING */