Networking Forums

Networking Forums > Computer Networking > Linux Networking > connection refused trying to bind AF_INET to AF_NETLINK/NETFILTER socket

Reply
Thread Tools Display Modes

connection refused trying to bind AF_INET to AF_NETLINK/NETFILTER socket

 
 
ssussman@starentnetworks.com
Guest
Posts: n/a

 
      05-14-2007, 06:52 PM
Hi All,

I am trying to use the NETFILTER libraries to read from iptable
queues. I am running linux 2.6.15 and have super-user priv's. But when
I try to run the sample program from netfilter it complains that the
connection was refused during the unbind, bind, and create_queue
routines. The socket that is created in the libnfnetlink code is:

socket(AF_NETLINK,SOCK_RAW,NETLINK_NETFILTER);

I verified that the socket gets created correctly but then I get:

opening library handle
Socket: 3
binding nfnetlink_queue as nf_queue handler for AF_INET
sendmsg on socket: 3
111
nfnl_talk: sendmsg(netlink) Connection refused
error during nfq_bind_pf()

anyone see this before?

thanks,

Scott

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
user mode permission denied to bind to socket hieswarmcaquest Linux Networking 0 05-03-2011 04:35 PM
Binding an IPv6 address to an AF_INET socket? Roy Smith Linux Networking 5 05-13-2007 10:03 PM
detecting tcp/udp socket bind in kernel module hari_kannan@hotmail.com Linux Networking 0 03-21-2007 05:34 PM
exim4 socket bind() failed as single installed MTA Olaf Petzold Linux Networking 4 09-03-2006 09:44 AM
Cannot bind name to socket! : Address already in use Ravi Linux Networking 1 12-01-2003 04:52 PM



1 2 3 4 5 6 7 8 9 10 11