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 #include <net_stack.h> 18 19 20 #define NET_STARTER_MODULE_NAME "network/stack/starter/v1" 21 22 extern net_stack_module_info gNetStackModule; 23 extern net_buffer_module_info gNetBufferModule; 24 extern net_socket_module_info gNetSocketModule; 25 extern net_datalink_module_info gNetDatalinkModule; 26 extern net_datalink_protocol_module_info gDatalinkInterfaceProtocolModule; 27 28 // stack.cpp 29 status_t register_domain_datalink_protocols(int family, int type, ...); 30 status_t register_domain_protocols(int family, int type, int protocol, ...); 31 status_t get_domain_protocols(net_socket *socket); 32 status_t put_domain_protocols(net_socket *socket); 33 status_t get_domain_datalink_protocols(net_interface *interface); 34 status_t put_domain_datalink_protocols(net_interface *interface); 35 36 // net_buffer.cpp 37 status_t init_net_buffers(); 38 status_t uninit_net_buffers(); 39 40 #endif // STACK_PRIVATE_H 41