Skip to contentSkip to conversation

Unable to receive data Netlinks sockets

DISCUSSION Swaroop Ashish 1 participant 1 message Mar 25, 2004 netfilter

lore
Share & tools
lore
#0 lore raw

Thanks Pablo,

I have already used libipq successfully, but I want to play around with Netlink sockets now. I have a problem in recieving packets through Netlink sockets. Any help on that will be really great :-)

Thanks
Ashish

Quoted 1 line
Quoted 1 line
Quoted 1 line

Pablo Neira <[email protected]> 3/25/2004 2:58:07 PM >>>

Hi,

Quoted 3 lines · Swaroop Ashish

I want to write a test program to
receive all the packets recieved on the system via this test program using Netlinks sockets. Can anyone please tell me what is wrong in

the

Quoted 4 lines

following program and what configuration/rules should be added to Iptables to do the same.

if you want to play around with ip_queue, the module which let you send

packets from kernel space to user space and vice-versa, you *should* use
libipq instead of using raw netlink sockets, please have a look at libipq available in iptables source code.

regards,
Pablo