I need to write a code which receives all the packets received on the network interface of my machine
i.e. my code will create a copy of all the packets and then analyze the packets and then will drop or forward the packet to the application to which it was headed to.
please suggest any tutorial links or any other information regarding this .
Thanks in advance!!