]> 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 24bc5426fd2f18590cdf4ccb8a38f080410dd9c2..169575c242b1885ce4efcfa28c6c6dddc9f95d11 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012-2018 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);
@@ -351,6 +354,8 @@ 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);
@@ -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);
@@ -462,7 +468,8 @@ STUB(sock_socket_internal);
  * Called from vm_pageout.c. Nothing to be done when there's no networking.
  */
 void mbuf_drain(boolean_t);
-void mbuf_drain(boolean_t)
+void
+mbuf_drain(boolean_t)
 {
        return;
 }