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:
@@ -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 */
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
|
||||
#include <module.h>
|
||||
|
||||
#define NETWORK_MODULES_ROOT "obos_network/"
|
||||
|
||||
struct kernel_net_module_info {
|
||||
module_info info;
|
||||
int (*start)(void *);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user