2002-07-11 02:10:23 +04:00
|
|
|
/* ipv4_module.h
|
|
|
|
* definitions for ipv4 protocol
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef IPV4_MODULE_H
|
|
|
|
#define IPV4_MODULE_H
|
|
|
|
|
2002-08-27 11:59:57 +04:00
|
|
|
#include "net_module.h"
|
2002-07-11 02:10:23 +04:00
|
|
|
|
2002-10-30 04:21:54 +03:00
|
|
|
#ifdef _KERNEL_MODE
|
2002-08-27 11:59:57 +04:00
|
|
|
#include <KernelExport.h>
|
2002-07-11 02:10:23 +04:00
|
|
|
#define IPV4_MODULE_PATH "network/protocol/ipv4"
|
2002-10-30 04:21:54 +03:00
|
|
|
#else /* _KERNEL_MODE */
|
2002-08-27 11:59:57 +04:00
|
|
|
#define IPV4_MODULE_PATH "modules/protocol/ipv4"
|
2002-10-30 04:21:54 +03:00
|
|
|
#endif /* _KERNEL_MODE */
|
2002-07-11 02:10:23 +04:00
|
|
|
|
|
|
|
struct ipv4_module_info {
|
|
|
|
struct kernel_net_module_info info;
|
2002-10-30 04:21:54 +03:00
|
|
|
#ifndef _KERNEL_MODE
|
2002-08-27 11:59:57 +04:00
|
|
|
void (*set_core)(struct core_module_info *);
|
|
|
|
#endif
|
|
|
|
|
2002-07-11 02:10:23 +04:00
|
|
|
int (*output)(struct mbuf *,
|
|
|
|
struct mbuf *,
|
|
|
|
struct route *,
|
|
|
|
int, void *);
|
2002-08-27 11:59:57 +04:00
|
|
|
uint16 (*ip_id)(void);
|
2002-07-11 02:10:23 +04:00
|
|
|
int (*ctloutput)(int,
|
|
|
|
struct socket *,
|
|
|
|
int, int,
|
|
|
|
struct mbuf **);
|
|
|
|
struct mbuf *(*ip_srcroute)(void);
|
|
|
|
void (*ip_stripoptions)(struct mbuf *,
|
|
|
|
struct mbuf *);
|
|
|
|
struct mbuf *(*srcroute)(void);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* IPV4_MODULE_H */
|