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: --- original-libnetfilter_queue-0.0.16/utils/Makefile.in 2008-06-27 04:07:44.000000000 -0600 +++ libnetfilter_queue-0.0.16/utils/Makefile.in 2009-01-31 18:29:03.000000000 -0700 @@ -48,7 +48,7 @@ nfqnl_test_OBJECTS = $(am_nfqnl_test_OBJ nfqnl_test_DEPENDENCIES = ../src/libnetfilter_queue.la nfqnl_test_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(nfqnl_test_LDFLAGS) $(LDFLAGS) -o $@ + $(nfqnl_test_LDFLAGS) $(LDFLAGS) -o $@ libnfnetlink.so DEFAULT_INCLUDES = -I.@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles I'm sure there is a better way to do this. Once built and installed I tried running nfqnl_test as root: root@Kamikaze_RC2:~# ./nfqnl_test opening library handle unbinding existing nf_queue handler for AF_INET (if any) nfnl_talk: sendmsg(netlink) Connection refused error during nfq_unbind_pf() 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 strace shows the following: socket(PF_NETLINK, SOCK_RAW, 12) = 3 getsockname(3, {sa_family=AF_NETLINK, pid=0, groups=00000000}, [12]) = 0 time(NULL) = 1232458046 bind(3, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0 getsockname(3, {sa_family=AF_NETLINK, pid=1065, groups=00000000}, [12]) = 0 bind(3, {sa_family=AF_NETLINK, pid=1065, groups=00000000}, 12) = 0 write(1, "unbinding existing nf_queue hand"..., 57) = 57 sendmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\34\0\0\0\2\3\5\0@\321uI\0\0\0\0\0\0\0\0\10\0\1\0\4\10\0\2", 28}], msg_controllen=0, msg_flags=0}, 0) = -1 ECONNREFUSED (Connection refused) write(2, "nfnl_talk", 9nfnl_talk) = 9 write(2, ": sendmsg(netlink) ", 19: sendmsg(netlink) ) = 19 write(2, "Connection refused", 18Connection refused) = 18 write(2, "\n", 1 ) = 1 kernel version is 2.6.25.17 thanks for any suggestions. pete -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html