Hacker News new | past | comments | ask | show | jobs | submit login

If you want to avoid libpnet or libpcap, you can use socket and recv directly.

Here's a quick example demonstrating socket & recv capturing all packets on all interfaces.

https://gist.github.com/fkautz/0104084fd79cee5608d8e3fc6e729...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: