Open GoogleCodeExporter opened 9 years ago
While compiling opendpi-netfilter-wrapper there are 2 warnings.
One of them about using nf_ct_is_untracked
/usr/src/pkg/opendpi/opendpi-netfilter-wrapper-1.1/wrapper/src/main.c: In
function 'opendpi_mt':
/usr/src/pkg/opendpi/opendpi-netfilter-wrapper-1.1/wrapper/src/main.c:478:
warning: passing argument 1 of 'nf_ct_is_untracked' from incompatible pointer
type
/usr/src/pkg/opendpi/opendpi-netfilter-wrapper-1.1/wrapper/src/main.c: At top
level:
/usr/src/pkg/opendpi/opendpi-netfilter-wrapper-1.1/wrapper/src/main.c:642:
warning: initialization from incompatible pointer type
Original comment by alex2g...@gmail.com
on 28 Jan 2011 at 7:31
The argument's type of function argument has to be const struct nf_conn *,
but const struct sk_buff * is used
linux-2.6.37/include/net/netfilter/nf_conntrack.h:static inline int
nf_ct_is_untracked(const struct nf_conn *ct)
Original comment by alex2g...@gmail.com
on 28 Jan 2011 at 7:34
The function nf_ct_is_untracked was changed since 2.6.36
I've made patch to compile for kernel 2.6.36 and later.
Patch is attached.
Original comment by alex2g...@gmail.com
on 28 Jan 2011 at 8:43
Attachments:
Original issue reported on code.google.com by
alex2g...@gmail.com
on 27 Jan 2011 at 10:29