3 ms·
If you have to deal with raw sockets, I highly recommend libtins: https://github.com/mfontanini/libtins https://github.com/mfontanini/libtins Makes it very easy
by FigBug 9y ago
If you have to deal with raw sockets, I highly recommend libtins: https://github.com/mfontanini/libtins https://github.com/mfontanini/libtins Makes it very easy to support multiple platforms.
I recently had do support for a Digidesign Pro Control (https://medias.audiofanzine.com/images/normal/digidesign-pro-control-22275.jpg https://medias.audiofanzine.com/images/normal/digidesign-pro...) that used it's own ethernet protocol. Libtins made it very easy and I didn't need to write my own driver or anything like that.
- FraKtus 9y ago"libtins depends on libpcap and OpenSSL, although the latter is not necessary if some features of the library are disabled." Would you know something lighter to play with RAW sockets?
- provost 9y agoAs mentioned.. Libtin’s OpenSSL dependency can be avoided if you can do without WPA2 support. Not sure about libpcap though
- bb88 9y agoI've used libpcap in the past, and it's been rather nice. https://www.tcpdump.org/pcap.html https://www.tcpdump.org/pcap.html It abstracts all the hard work, gives you a handle that you can poll on, and then handles giving you a stream of packets to process.