top | item 9921995

Libtins – A multiplatform C++ network packet sniffing and crafting library

33 points| ingve | 10 years ago |libtins.github.io | reply

7 comments

order
[+] VinzO|10 years ago|reply
Anyone knows what are the differences or advantages compared to pcap?
[+] pea-tear|10 years ago|reply
This library uses libpcap to capture packets/read them from a pcap file. When you sniff using libpcap you just get a pointer to the packet and the packet size, you then have to parse the packet appropriately to do something useful with it.

What libtins adds is the ability to parse and assemble packets easily. Parsing is automatic, so you won't need to be checking protocol fields to determine how to parse it: it will all be handled by the library.