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-08-27 11:59:57 +04:00
|
|
|
#include <KernelExport.h>
|
2002-11-13 00:03:25 +03:00
|
|
|
#define NET_IPV4_MODULE_NAME "network/protocols/ipv4"
|
2002-07-11 02:10:23 +04:00
|
|
|
|
|
|
|
struct ipv4_module_info {
|
|
|
|
struct kernel_net_module_info info;
|
2002-08-27 11:59:57 +04:00
|
|
|
|
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 */
|