Define a NETWORK_MODULES_ROOT to easy change the stack modules root folder name,

to help avoiding conflict with BONE one for example...
Update each network module name to use this prefix.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6035 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin
2004-01-12 23:28:41 +00:00
parent 8f505c3de4
commit ff3cf53035
6 changed files with 12 additions and 5 deletions
+1 -1
View File
@@ -161,6 +161,6 @@ struct core_module_info {
int (*socket_shutdown) (struct socket *so, int how);
};
#define NET_CORE_MODULE_NAME "network/core/v1"
#define NET_CORE_MODULE_NAME NETWORK_MODULES_ROOT "core/v1"
#endif /* OBOS_CORE_MODULE_H */
+2 -1
View File
@@ -8,7 +8,8 @@
#include "net_module.h"
#include <KernelExport.h>
#define NET_ETHERNET_MODULE_NAME "network/interfaces/ethernet"
#define NET_ETHERNET_MODULE_NAME NETWORK_MODULES_ROOT "interfaces/ethernet"
typedef void (*ethernet_receiver_func)(struct mbuf *buf);
+2 -1
View File
@@ -7,7 +7,8 @@
#include "net_module.h"
#include <KernelExport.h>
#define NET_ICMP_MODULE_NAME "network/protocols/icmp"
#define NET_ICMP_MODULE_NAME NETWORK_MODULES_ROOT "protocols/icmp"
struct icmp_module_info {
struct kernel_net_module_info info;
+2 -1
View File
@@ -8,7 +8,8 @@
#include "net_module.h"
#include <KernelExport.h>
#define NET_IPV4_MODULE_NAME "network/protocols/ipv4"
#define NET_IPV4_MODULE_NAME NETWORK_MODULES_ROOT "protocols/ipv4"
struct ipv4_module_info {
struct kernel_net_module_info info;
+2
View File
@@ -17,6 +17,8 @@
#include <module.h>
#define NETWORK_MODULES_ROOT "obos_network/"
struct kernel_net_module_info {
module_info info;
int (*start)(void *);
+3 -1
View File
@@ -7,7 +7,9 @@
#include "net_module.h"
#include <KernelExport.h>
#define NET_RAW_MODULE_NAME "network/protocols/raw"
#define NET_RAW_MODULE_NAME NETWORK_MODULES_ROOT "protocols/raw"
struct raw_module_info {
struct kernel_net_module_info info;