mirror of
https://github.com/CHN-beta/xmurp-ua.git
synced 2026-01-11 01:09:25 +08:00
fix build issue for kernel 3.14
This commit is contained in:
2
Makefile
2
Makefile
@@ -10,7 +10,7 @@ define KernelPackage/xmurp-ua
|
||||
SUBMENU:=Other modules
|
||||
TITLE:=xmurp-ua
|
||||
FILES:=$(PKG_BUILD_DIR)/xmurp-ua.ko
|
||||
# AUTOLOAD:=$(call AutoLoad, 99, rkp-ua)
|
||||
# AUTOLOAD:=$(call AutoLoad, 99, xmurp-ua)
|
||||
KCONFIG:=
|
||||
endef
|
||||
|
||||
|
||||
@@ -3,7 +3,11 @@
|
||||
static struct nf_hook_ops nfho[3]; // 需要在 INPUT、OUTPUT、FORWARD 各挂一个
|
||||
static struct rkpManager* rkpm;
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,2,0)
|
||||
unsigned int hook_funcion(void *priv, struct sk_buff *skb, const struct nf_hook_state *state)
|
||||
#else
|
||||
unsigned int hook_funcion(const struct nf_hook_ops *ops, struct sk_buff *skb, const struct net_device *in, const struct net_device *out, int (*okfn)(struct sk_buff *))
|
||||
#endif
|
||||
{
|
||||
unsigned rtn;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user