📄 module_main.h
字号:
#ifndef MODULE_H#define MODULE_H#include <linux/kernel.h>#include <linux/module.h>#include <linux/netfilter_ipv4.h>#include <linux/ctype.h>#include <linux/ip.h>#include <linux/timer.h>#include <linux/proc_fs.h>#include <linux/netdevice.h>#include <linux/net.h>#include <linux/in_route.h>#include <linux/net.h>#include <linux/skbuff.h>// time in secs after which an entry in the route cache is considered// old and can be deleted just to keep the size of the route_cache under //control#define EXPIRE_TIME 30 // unit is seconds/* called when a packet is received at the netfilter hook */unsigned int input_handler( unsigned int hooknum, struct sk_buff **skb, const struct net_device *in, const struct net_device *out, int (*okfn)(struct sk_buff *));/* outputting the cache to /proc */int read_route_cache_proc(char *buffer, char **buffer_location, off_t offset, int buffer_length,int *eof,void *data);#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -