]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/net/net_stubs.c
xnu-6153.41.3.tar.gz
[apple/xnu.git] / bsd / net / net_stubs.c
index 137682285d1097e37a492f0cd9a399ee15ea941c..169575c242b1885ce4efcfa28c6c6dddc9f95d11 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012-2016 Apple Inc. All rights reserved.
+ * Copyright (c) 2012-2019 Apple Inc. All rights reserved.
  *
  * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  *
 
 #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);
@@ -258,6 +258,8 @@ 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);
@@ -326,6 +328,7 @@ STUB(ifnet_link_quality);
 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);
@@ -350,6 +353,9 @@ 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);
@@ -365,7 +371,6 @@ STUB(m_mtod);
 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);
@@ -388,6 +393,7 @@ STUB(net_del_domain);
 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);
@@ -461,8 +467,9 @@ STUB(sock_socket_internal);
 /*
  * 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;
 }