Moved rtstat & rt_tables declarations in route.c instead of posix/net/route.h 8-\

Update the protocols and interfaces modules names prefix to reflect the real
disk hierarchy where they lives.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1809 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin 2002-11-01 02:58:20 +00:00
parent 7d31ea94fb
commit 03a92a2178
2 changed files with 5 additions and 2 deletions

View File

@ -42,8 +42,8 @@
#include <net_socket.h>
/* Defines we need */
#define NETWORK_INTERFACES "network/interface"
#define NETWORK_PROTOCOLS "network/protocol"
#define NETWORK_INTERFACES "network/interfaces"
#define NETWORK_PROTOCOLS "network/protocols"
#define PPP_DEVICES "ppp/devices"
/* Variables used in other core modules */

View File

@ -21,6 +21,9 @@ int rttrash = 0; /* routes in table that should have been freed but hevn't been
#define SA(p) ((struct sockaddr *)(p))
#define ROUNDUP(a) (a >0 ? (1 + (((a) - 1) | (sizeof(long) - 1))) : sizeof(long))
struct rtstat rtstat;
struct radix_node_head *rt_tables[AF_MAX+1];
struct radix_node_head **get_rt_tables(void)
{
return (struct radix_node_head**)rt_tables;