haiku/headers/private/net/net_module.h
Philippe Houdoin 40e492bc4c Some net headers fixes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1911 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-13 07:57:19 +00:00

43 lines
769 B
C

/* net_module.h
* fundtions and staructures for all modules using the
* net_server
*/
#ifndef OBOS_NET_MODULE_H
#define OBOS_NET_MODULE_H
#include <kernel/OS.h>
#include <image.h>
#include "mbuf.h"
#include "net_misc.h"
#include "sys/socketvar.h"
#include "net/if.h"
#include "net/route.h"
#include <module.h>
struct kernel_net_module_info {
module_info info;
int (*start)(void *);
int (*stop)(void);
};
struct net_module {
struct net_module *next;
char *name;
struct kernel_net_module_info *ptr;
int status;
};
//XXX already in posix/sys/protosw.h
//enum {
// NET_LAYER1 = 1, /* link layer */
// NET_LAYER2, /* network layer */
// NET_LAYER3, /* transport layer */
// NET_LAYER4 /* socket layer */
//};
#endif /* OBOS_NET_MODULE_H */