xref: /haiku/src/add-ons/kernel/network/stack/stack_private.h (revision f23596149e0d173463f70629581aa10cc305d32e)
1 /*
2  * Copyright 2006, Haiku, Inc. All Rights Reserved.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Axel Dörfler, axeld@pinc-software.de
7  */
8 #ifndef STACK_PRIVATE_H
9 #define STACK_PRIVATE_H
10 
11 
12 #include <net_buffer.h>
13 #include <net_datalink.h>
14 #include <net_datalink_protocol.h>
15 #include <net_protocol.h>
16 #include <net_socket.h>
17 
18 
19 #define NET_STARTER_MODULE_NAME "network/stack/starter/v1"
20 
21 extern net_buffer_module_info gNetBufferModule;
22 extern net_socket_module_info gNetSocketModule;
23 extern net_datalink_module_info gNetDatalinkModule;
24 extern net_datalink_protocol_module_info gDatalinkInterfaceProtocolModule;
25 
26 // stack.cpp
27 status_t register_domain_datalink_protocols(int family, int type, ...);
28 status_t register_domain_protocols(int family, int type, int protocol, ...);
29 status_t get_domain_protocols(net_socket *socket);
30 status_t put_domain_protocols(net_socket *socket);
31 status_t get_domain_datalink_protocols(net_interface *interface);
32 status_t put_domain_datalink_protocols(net_interface *interface);
33 
34 #endif	// STACK_PRIVATE_H
35