3 comments

[ 3.4 ms ] story [ 20.3 ms ] thread
I 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.
Cool, 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!

You can find the interface index by running the shell command:

ip link