3 ms·
Show HN: Zero Copy Network lib for golang
- hacknat 10y agoI decided to build a robust zero copy network lib for linux. It includes packet injection as well as capture. I'm leaving it here for anyone that's interested in hacking around with it.
- andrew3726 10y agoCool, wanted to checkout go anyways. Your example doesn't seem to be running (zs2 -> zs), forgot to import nettypes? Oh well, got it to build (go newbie here!), but it just says "panic: no such device". So where does the ifindex = 15 come from? Nice small project, would love to tinker a bit with it!
- hacknat 10y agoYou can find the interface index by running the shell command: ip link