mzweilin / napt66

Automatically exported from code.google.com/p/napt66
38 stars 12 forks source link

关于编译NAPT66模块的问题 #19

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
我用的是tp-link 841n 
v7的路由,用的是最新的trunk版的固件,2.6.37.6版的内核,照��
�程修改编译了以后insmod napt66_bcm63xx.ko 时提示 Invalid module 
format
下载了napt66-0.2.tar.gz直接在ubuntu里用make编译提示

yxrlz@yxrlz-virtual-machine:~/napt66$ make
make -C /lib/modules/2.6.38-8-generic/build M=/home/yxrlz/napt66 modules
make[1]: 正在进入目录 `/usr/src/linux-headers-2.6.38-8-generic'
  CC [M]  /home/yxrlz/napt66/napt66_main.o
  CC [M]  /home/yxrlz/napt66/napt66_conntrack.o
/home/yxrlz/napt66/napt66_conntrack.c: In function ‘get_ip6_by_name’:
/home/yxrlz/napt66/napt66_conntrack.c:265:11: error: incompatible types when 
assigning to type ‘struct inet6_ifaddr *’ from type ‘struct list_head’
/home/yxrlz/napt66/napt66_conntrack.c:272:21: error: ‘struct inet6_ifaddr’ 
has no member named ‘if_next’
make[2]: *** [/home/yxrlz/napt66/napt66_conntrack.o] 错误 1
make[1]: *** [_module_/home/yxrlz/napt66] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-2.6.38-8-generic'
make: *** [all] 错误 2

请问该如何解决.

Original issue reported on code.google.com by wzx...@gmail.com on 25 May 2011 at 7:38

GoogleCodeExporter commented 9 years ago
Obviously, some data structures have been changed in the kernel of later 
version. I will encourage you to fix it and summit a patch to the community.

Original comment by Mzwei...@gmail.com on 25 May 2011 at 3:24

GoogleCodeExporter commented 9 years ago
我刚才编译napt66模块的时候,也是错误,跟你的编译错误一��
�。不知道怎样解决。

Original comment by happysun...@gmail.com on 23 Jun 2011 at 12:26

GoogleCodeExporter commented 9 years ago
This issue may help.
http://code.google.com/p/napt66/issues/detail?id=23

Original comment by Mzwei...@gmail.com on 23 Jun 2011 at 1:09