From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo Neira Subject: Re: Unable to receive data Netlinks sockets Date: Thu, 25 Mar 2004 10:28:07 +0100 Sender: netfilter-devel-admin@lists.netfilter.org Message-ID: <4062A627.3070002@eurodev.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Return-path: To: Swaroop Ashish , netfilter-devel@lists.netfilter.org In-Reply-To: Errors-To: netfilter-devel-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: List-Id: netfilter-devel.vger.kernel.org Hi, Swaroop Ashish wrote: > 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 >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