how do you get this worked ,I can't compile it
D:\GOPATH\src\github.com\dimalinux\spoofsourceip\udpspoof\udp.go:20:2: duplicate method LayerType D:\GOPATH\src\github.com\dimalinux\spoofsourceip\udpspoof\udp.go:58:5: ambiguous selector ip.LayerType
Thanks for the feedback! I didn't version the dependencies and it looks like the APIs for github.com/google/gopacket have changed. I'll update the code this week to use the latest version of gopacket and lock in the versions so this doesn't happen again.
Hi @18959263172, let me know if the changes work for you. I've tested the changes on Linux and MacOS.
Hi @dimalinux just fyi, the code works! :)