I am using raw Ethernet sockets to capture the packets from receive queue.
Socket call I am using is :
Code:
socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
After capturing, I will do some calculations and depending on the result either I wish to drop or push back to kernel stack.
Could someone help me telling how to send the packet back to kernel for normal processing ?