Open enihcam opened 3 years ago
Also fails to build on my system, haven't had time to find out why.
Exactly the same output as enihcam in my buildconsole
make netfilter-full-cone-nat in ubuntu 22.04TLS
make -C /lib/modules/5.15.0-30-generic/build M=/root/fullcone/netfilter-full-cone-nat modules
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-30-generic'
CC [M] /root/fullcone/netfilter-full-cone-nat/xt_FULLCONENAT.o
/root/fullcone/netfilter-full-cone-nat/xt_FULLCONENAT.c: In function ‘fullconenat_tg_check’:
/root/fullcone/netfilter-full-cone-nat/xt_FULLCONENAT.c:648:22: error: ‘struct nf_ct_event_notifier’ has no member named ‘fcn’
648 | ct_event_notifier.fcn = ct_event_cb;
| ^
/root/fullcone/netfilter-full-cone-nat/xt_FULLCONENAT.c:651:9: error: void value not ignored as it ought to be
651 | if (nf_conntrack_register_notifier(par->net, &ct_event_notifier) == 0) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/fullcone/netfilter-full-cone-nat/xt_FULLCONENAT.c: In function ‘fullconenat_tg_destroy’:
/root/fullcone/netfilter-full-cone-nat/xt_FULLCONENAT.c:675:7: error: too many arguments to function ‘nf_conntrack_unregister_notifier’
675 | nf_conntrack_unregister_notifier(par->net, &ct_event_notifier);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/net/netfilter/nf_conntrack_core.h:18,
from /root/fullcone/netfilter-full-cone-nat/xt_FULLCONENAT.c:28:
./include/net/netfilter/nf_conntrack_ecache.h:88:6: note: declared here
88 | void nf_conntrack_unregister_notifier(struct net *net);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:285: /root/fullcone/netfilter-full-cone-nat/xt_FULLCONENAT.o] Error 1
make[1]: *** [Makefile:1875: /root/fullcone/netfilter-full-cone-nat] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-30-generic'
make: *** [Makefile:5: all] Error 2
same here~
Anyone?