|
本帖最后由 hzdrro 于 2018-5-13 16:11 编辑
和shortcut-fe冲突
- CC [M] net/netfilter/xt_FULLCONENAT.o
- net/netfilter/xt_FULLCONENAT.c: In function 'xt_in':
- net/netfilter/xt_FULLCONENAT.c:39:13: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
- return par->in;
- ~~~^~~~
- net/netfilter/xt_FULLCONENAT.c: In function 'xt_out':
- net/netfilter/xt_FULLCONENAT.c:43:13: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
- return par->out;
- ~~~^~~~~
- net/netfilter/xt_FULLCONENAT.c: In function 'fullconenat_tg_check':
- net/netfilter/xt_FULLCONENAT.c:617:22: error: invalid use of undefined type 'struct nf_ct_event_notifier'
- ct_event_notifier.fcn = ct_event_cb;
- ^
- net/netfilter/xt_FULLCONENAT.c:619:50: error: passing argument 2 of 'nf_conntrack_register_notifier' from incompatible pointer type [-Werror=incompatible-pointer-types]
- if (nf_conntrack_register_notifier(par->net, &ct_event_notifier) == 0) {
- ^
- In file included from ./include/net/netfilter/nf_conntrack_core.h:18:0,
- from net/netfilter/xt_FULLCONENAT.c:25:
- ./include/net/netfilter/nf_conntrack_ecache.h:74:12: note: expected 'struct notifier_block *' but argument is of type 'struct nf_ct_event_notifier *'
- extern int nf_conntrack_register_notifier(struct net *net, struct notifier_block *nb);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- net/netfilter/xt_FULLCONENAT.c: In function 'fullconenat_tg_destroy':
- net/netfilter/xt_FULLCONENAT.c:643:50: error: passing argument 2 of 'nf_conntrack_unregister_notifier' from incompatible pointer type [-Werror=incompatible-pointer-types]
- nf_conntrack_unregister_notifier(par->net, &ct_event_notifier);
- ^
- In file included from ./include/net/netfilter/nf_conntrack_core.h:18:0,
- from net/netfilter/xt_FULLCONENAT.c:25:
- ./include/net/netfilter/nf_conntrack_ecache.h:75:12: note: expected 'struct notifier_block *' but argument is of type 'struct nf_ct_event_notifier *'
- extern int nf_conntrack_unregister_notifier(struct net *net, struct notifier_block *nb);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- net/netfilter/xt_FULLCONENAT.c: At top level:
- net/netfilter/xt_FULLCONENAT.c:81:29: error: storage size of 'ct_event_notifier' isn't known
- struct nf_ct_event_notifier ct_event_notifier;
- ^~~~~~~~~~~~~~~~~
- cc1: some warnings being treated as errors
- scripts/Makefile.build:299: recipe for target 'net/netfilter/xt_FULLCONENAT.o' failed
复制代码 |
|