2002-07-10 22:10:23 +00:00
|
|
|
/* net_module.h
|
|
|
|
* fundtions and staructures for all modules using the
|
|
|
|
* net_server
|
|
|
|
*/
|
|
|
|
|
2002-08-27 07:59:57 +00:00
|
|
|
#ifndef OBOS_NET_MODULE_H
|
|
|
|
#define OBOS_NET_MODULE_H
|
2002-07-10 22:10:23 +00:00
|
|
|
|
2002-08-27 07:59:57 +00:00
|
|
|
#include <kernel/OS.h>
|
|
|
|
#include <image.h>
|
2002-07-10 22:10:23 +00:00
|
|
|
|
2002-10-30 01:21:54 +00:00
|
|
|
#include "mbuf.h"
|
2002-08-27 07:59:57 +00:00
|
|
|
#include "net_misc.h"
|
|
|
|
#include "sys/socketvar.h"
|
|
|
|
#include "net/if.h"
|
|
|
|
#include "net/route.h"
|
|
|
|
|
2002-07-10 22:10:23 +00:00
|
|
|
#include <module.h>
|
|
|
|
|
2005-04-11 19:37:09 +00:00
|
|
|
#ifndef __HAIKU__
|
2004-01-15 00:03:07 +00:00
|
|
|
#define NETWORK_MODULES_ROOT "obos_network/"
|
2005-04-11 19:37:09 +00:00
|
|
|
#else
|
|
|
|
#define NETWORK_MODULES_ROOT "network/"
|
|
|
|
#endif
|
2004-01-12 23:28:41 +00:00
|
|
|
|
2002-07-10 22:10:23 +00:00
|
|
|
struct kernel_net_module_info {
|
|
|
|
module_info info;
|
|
|
|
int (*start)(void *);
|
|
|
|
int (*stop)(void);
|
2003-10-23 17:50:45 +00:00
|
|
|
status_t (*control)(uint32 op, void *data, size_t length);
|
2002-07-10 22:10:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct net_module {
|
|
|
|
struct net_module *next;
|
|
|
|
char *name;
|
|
|
|
struct kernel_net_module_info *ptr;
|
|
|
|
int status;
|
|
|
|
};
|
2002-10-30 01:21:54 +00:00
|
|
|
|
2002-08-27 07:59:57 +00:00
|
|
|
#endif /* OBOS_NET_MODULE_H */
|
2002-07-10 22:10:23 +00:00
|
|
|
|