]> git.saurik.com Git - apple/xnu.git/blame - bsd/net/skywalk_stubs.c
xnu-7195.81.3.tar.gz
[apple/xnu.git] / bsd / net / skywalk_stubs.c
CommitLineData
0a7de745 1/*
f427ee49 2 * Copyright (c) 2015-2020 Apple Inc. All rights reserved.
0a7de745
A
3 *
4 * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
5 *
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.
14 *
15 * Please obtain a copy of the License at
16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
17 *
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.
25 *
26 * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
27 */
28
29#include <kern/debug.h>
30
31#if !SKYWALK
32
33#define STUB(_name) \
34__attribute__((noreturn)) \
35int _name(void); \
36int \
37_name(void) \
38{ \
39 panic("stub called in a config with no SKYWALK"); \
40 /* NOTREACHED */ \
41 __builtin_unreachable(); \
42}
43
f427ee49 44STUB(kern_buflet_get_data_address);
0a7de745
A
45STUB(kern_buflet_get_data_offset);
46STUB(kern_buflet_get_data_length);
f427ee49 47STUB(kern_buflet_get_data_limit);
0a7de745 48STUB(kern_buflet_get_object_address);
f427ee49 49STUB(kern_buflet_get_object_limit);
0a7de745 50STUB(kern_buflet_get_object_segment);
f427ee49 51STUB(kern_buflet_set_data_address);
0a7de745
A
52STUB(kern_buflet_set_data_offset);
53STUB(kern_buflet_set_data_length);
f427ee49 54STUB(kern_buflet_set_data_limit);
0a7de745
A
55STUB(kern_channel_advance_slot);
56STUB(kern_channel_available_slot_count);
57STUB(kern_channel_get_context);
58STUB(kern_channel_get_next_slot);
59STUB(kern_channel_notify);
60STUB(kern_channel_reclaim);
61STUB(kern_channel_ring_get_container);
62STUB(kern_channel_ring_get_context);
63STUB(kern_channel_slot_get_context);
64STUB(kern_channel_slot_attach_packet);
65STUB(kern_channel_slot_detach_packet);
66STUB(kern_channel_slot_get_packet);
67STUB(kern_channel_increment_ring_stats);
68STUB(kern_channel_increment_ring_net_stats);
69STUB(kern_channel_tx_refill);
70STUB(kern_channel_get_service_class);
71STUB(kern_copy_and_inet_checksum);
72STUB(kern_inet_checksum);
73STUB(kern_nexus_attr_create);
74STUB(kern_nexus_attr_clone);
75STUB(kern_nexus_attr_destroy);
76STUB(kern_nexus_attr_set);
77STUB(kern_nexus_attr_get);
78STUB(kern_nexus_controller_create);
79STUB(kern_nexus_controller_destroy);
80STUB(kern_nexus_controller_alloc_provider_instance);
81STUB(kern_nexus_controller_alloc_net_provider_instance);
82STUB(kern_nexus_controller_bind_provider_instance);
83STUB(kern_nexus_controller_deregister_provider);
84STUB(kern_nexus_controller_free_provider_instance);
85STUB(kern_nexus_controller_read_provider_attr);
86STUB(kern_nexus_controller_register_provider);
87STUB(kern_nexus_controller_unbind_provider_instance);
88STUB(kern_nexus_deregister_domain_provider);
cb323159 89STUB(kern_nexus_get_default_domain_provider);
0a7de745
A
90STUB(kern_nexus_get_context);
91STUB(kern_nexus_get_pbufpool);
92STUB(kern_nexus_register_domain_provider);
93STUB(kern_packet_clear_flow_uuid);
f427ee49
A
94STUB(kern_packet_clone);
95STUB(kern_packet_clone_nosleep);
0a7de745
A
96STUB(kern_packet_get_euuid);
97STUB(kern_packet_finalize);
98STUB(kern_packet_get_buflet_count);
99STUB(kern_packet_get_data_length);
100STUB(kern_packet_get_flow_uuid);
101STUB(kern_packet_get_inet_checksum);
cb323159 102STUB(kern_packet_get_headroom);
0a7de745
A
103STUB(kern_packet_get_link_broadcast);
104STUB(kern_packet_get_link_ethfcs);
105STUB(kern_packet_get_link_header_offset);
cb323159 106STUB(kern_packet_get_link_header_length);
0a7de745
A
107STUB(kern_packet_get_link_multicast);
108STUB(kern_packet_get_network_header_offset);
109STUB(kern_packet_get_next_buflet);
110STUB(kern_packet_get_object_index);
111STUB(kern_packet_get_policy_id);
112STUB(kern_packet_get_service_class);
113STUB(kern_packet_get_service_class_index);
f427ee49 114STUB(kern_packet_is_high_priority);
0a7de745
A
115STUB(kern_packet_get_traffic_class);
116STUB(kern_packet_get_timestamp);
117STUB(kern_packet_get_transport_header_offset);
118STUB(kern_packet_get_transport_new_flow);
119STUB(kern_packet_get_transport_retransmit);
120STUB(kern_packet_get_transport_last_packet);
121STUB(kern_packet_get_transport_traffic_background)
122STUB(kern_packet_get_transport_traffic_realtime)
123STUB(kern_packet_set_flow_uuid);
124STUB(kern_packet_set_inet_checksum);
cb323159 125STUB(kern_packet_set_headroom);
0a7de745
A
126STUB(kern_packet_set_link_broadcast);
127STUB(kern_packet_set_link_header_offset);
cb323159 128STUB(kern_packet_set_link_header_length);
0a7de745
A
129STUB(kern_packet_set_link_multicast);
130STUB(kern_packet_set_link_ethfcs);
131STUB(kern_packet_set_network_header_offset);
132STUB(kern_packet_set_policy_id);
133STUB(kern_packet_set_service_class);
134STUB(kern_packet_set_timestamp);
135STUB(kern_packet_set_traffic_class);
136STUB(kern_packet_set_transport_header_offset);
137STUB(kern_packet_get_timestamp_requested);
138STUB(kern_packet_get_tx_completion_status);
139STUB(kern_packet_set_tx_completion_status);
140STUB(kern_packet_tx_completion);
cb323159
A
141STUB(kern_packet_set_group_start);
142STUB(kern_packet_get_group_start);
143STUB(kern_packet_set_group_end);
144STUB(kern_packet_get_group_end);
145STUB(kern_packet_set_expire_time);
146STUB(kern_packet_get_expire_time);
147STUB(kern_packet_set_token);
148STUB(kern_packet_get_token);
149STUB(kern_packet_get_packetid);
150STUB(kern_packet_set_vlan_tag);
151STUB(kern_packet_get_vlan_tag);
152STUB(kern_packet_get_vlan_id);
153STUB(kern_packet_get_vlan_priority);
f427ee49
A
154STUB(kern_packet_add_buflet);
155STUB(kern_packet_append);
156STUB(kern_packet_get_next);
157STUB(kern_packet_set_chain_counts);
158STUB(kern_packet_get_chain_counts);
0a7de745
A
159STUB(kern_pbufpool_alloc);
160STUB(kern_pbufpool_alloc_batch);
cb323159 161STUB(kern_pbufpool_alloc_batch_callback);
0a7de745
A
162STUB(kern_pbufpool_alloc_nosleep);
163STUB(kern_pbufpool_alloc_batch_nosleep);
cb323159 164STUB(kern_pbufpool_alloc_batch_nosleep_callback);
0a7de745
A
165STUB(kern_pbufpool_create);
166STUB(kern_pbufpool_destroy);
167STUB(kern_pbufpool_free);
168STUB(kern_pbufpool_free_batch);
f427ee49 169STUB(kern_pbufpool_free_chain);
0a7de745
A
170STUB(kern_pbufpool_get_context);
171STUB(kern_pbufpool_get_memory_info);
cb323159
A
172STUB(kern_pbufpool_alloc_buffer);
173STUB(kern_pbufpool_alloc_buffer_nosleep);
174STUB(kern_pbufpool_free_buffer);
f427ee49
A
175STUB(kern_pbufpool_alloc_buflet);
176STUB(kern_pbufpool_alloc_buflet_nosleep);
0a7de745 177STUB(kern_segment_get_index);
f427ee49
A
178#if NETWORKING
179STUB(bpf_tap_packet_in);
180STUB(bpf_tap_packet_out);
181#endif
0a7de745
A
182#undef STUB
183#endif /* !SKYWALK */