Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CC [M] ipt_NETFLOW.o ipt_NETFLOW.c: In function ‘netflow_conntrack_event’: ipt_NETFLOW.c:4622:31: error: ‘struct nf_ct_event_notifier’ has no member named ‘fcn’ 4622 | ret = notifier->fcn(events, item); | ^~ ipt_NETFLOW.c: At top level: ipt_NETFLOW.c:4687:10: error: ‘struct nf_ct_event_notifier’ has no member named ‘fcn’ 4687 | .fcn = netflow_conntrack_event | ^~~ ipt_NETFLOW.c:4687:16: error: initialization of ‘int (*)(unsigned int, const struct nf_ct_event *)’ from incompatible pointer type ‘int (*)(const unsigned int, struct nf_ct_event *)’ [-Werror=incompatible-pointer-types] 4687 | .fcn = netflow_conntrack_event | ^~~~~~~~~~~~~~~~~~~~~~~ ipt_NETFLOW.c:4687:16: note: (near initialization for ‘ctnl_notifier.ct_event’) ipt_NETFLOW.c: In function ‘unset_notifier_cb’: ipt_NETFLOW.c:5455:25: error: too many arguments to function ‘nf_conntrack_unregister_notifier’ 5455 | nf_conntrack_unregister_notifier(NET_ARG &ctnl_notifier); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/net/netfilter/nf_conntrack_core.h:18, from ipt_NETFLOW.c:68: ./include/net/netfilter/nf_conntrack_ecache.h:88:6: note: declared here 88 | void nf_conntrack_unregister_notifier(struct net *net); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Reported-by: https://github.com/rcmcronny Fixes: #186
6a55739
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is problematic! Please have a look!