Reading packets in user space queued by iptables for Colibri imx6

Has anyone any idea on how to read packets from user space which are queued by setting rule in iptables with target as QUEUE in Colibri imx6 ?

I want to use QUEUE as target in iptables rule and later read the packet in user space through API library like netfilter queue. However, I am not able to find libnetfilter_queue header files and library. iptables is present and I am able to set rule for target like QUEUE. How to fetch these queued packets from user space ?

My systems details are as follows.
Colibri iMX6DL 512MB
Colibri Evaluation Board V3.2
Linux Kernel v4.9.220 - Angstrom distribution
BSP v2.8

Hi @jaydeep,

Here we need more details to understand issue. Are you not able to compile application with libnetfilter_queue?
Have you compiled SDK with the library included ?
At the moment we do not have any sample code for same that said, this is not specific to Colibri and rather general Linux specific question.

Best Regards
Ritesh Kumar

Hi @ritesh.tx,

Thanks for the reply.

I am able to compile and generate exe using libnetfilter queue. However, upon execution of exe, response is as similar to the one, which we get for non root user. I checked output of non-root user on development PC and root user on Colibri board.