/*
- * Copyright (c) 2012-2018 Apple Inc. All rights reserved.
+ * Copyright (c) 2012-2019 Apple Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
#include <kern/debug.h>
-#define STUB(name) \
- int name(void); \
- int name(void) \
- { \
- panic("stub called in a config with no networking"); \
- return (0); \
- }
-
#if !NETWORKING
+#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(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_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_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(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);
/*
* 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;
}
-#else /* NETWORKING */
-
-
#endif /* !NETWORKING */