Packet Capture Library
I want to port a VPN client from Windows to Linux. It consists of an arbitrary VPN protocol and a firewall. The VPN client uses a library named "WinpkFilter" from "ntkernels.com" which is not available in Linux. All that I need now is a neat library which can be replaced with "WinpkFilter". I found libpcab but it is just a packet sniffer. I worked with iptables and netfilter but it is unable to inject arbitrary packets (also i don't want to bind to an external application). I tried ndiswrapper but it is unable to load my driver in Linux. I reviewed the openvpn model (tap & tun) but it is not suitable for me. I tried raw sockets at the device driver, they are wonderful but I didn't find a way to drop unwanted packets! Please HHHEEELLLPPP me! Is there any packet sniffer and injector library with the ability of dropping unwanted packets in Linux (something like libnet, a kernel module, ...)?