-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Pete Whiting a écrit : > I am trying to build/test libnetfilter_queue for a user-space app > running on openwrt. Compile failed in the utils subdirectory until I > modified Makefile.in to include libnfnetlink.so: > > > I verified that xt_NFQUEUE is installed: > root@Kamikaze_RC2:~# lsmod | grep QUEUE > xt_NFQUEUE 672 0 > x_tables 8976 16 > xt_NFQUEUE,ipt_ULOG,xt_string,xt_layer7,ipt_ipp2p,ipt_MASQUERADE,iptable_nat,xt_state,ipt_REJECT,xt_TCPMSS,ipt_LOG,xt_multiport,xt_mac,xt_limit,ip_tables,xt_tcpudp It seems the nfnetlink_queue module is missing. It should not be on that list because of your grep but it could be a good explanation (your strace seems to confirm this). If this is not the case, please apply the joined patch and let us know. By the way, please tell us your kernel version. It seems this problem is specific to some version. BR, - -- Eric Leblond <eric@xxxxxx> INL: http://www.inl.fr/ NuFW: http://www.nufw.org/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJhYecnxA7CdMWjzIRAqX7AJsEM3sXmWRZG64PrQQog+FYuxnQQQCfVsfC IQeVwqHXrG1GSnxkEli3o+s= =Pk8w -----END PGP SIGNATURE-----
diff --git a/utils/nfqnl_test.c b/utils/nfqnl_test.c index 7cf27f0..b4ace5b 100644 --- a/utils/nfqnl_test.c +++ b/utils/nfqnl_test.c @@ -72,8 +72,7 @@ int main(int argc, char **argv) printf("unbinding existing nf_queue handler for AF_INET (if any)\n"); if (nfq_unbind_pf(h, AF_INET) < 0) { - fprintf(stderr, "error during nfq_unbind_pf()\n"); - exit(1); + fprintf(stderr, "error during nfq_unbind_pf() but continuing\n"); } printf("binding nfnetlink_queue as nf_queue handler for AF_INET\n");