I started a project that needs using network level packets such as IP/ICMP/UDP/TCP packets.
There is two main approach to handle it: Raw sockets and Winpcap/libpcap.
I know pcap installs a driver on OS and allows programmer to capture and send packets. On the other hand there is raw sockets which have some limitations in Windows 7 or above.
The project needs sending some IP/ICMP/UDP/TCP packets to a router and analyzes the responses, such as IP-Identifier
, TTL
, ... . Also I want it works in Linux and Windows.
Can you list a comparison about these two approach?