Closed JoseIgnacioTamayo closed 6 years ago
Which version of Go are you using? Do you have all dependencies up to date?
Hi @corny I am using go 1.9.7 on a windows machine. All depencies are ok.
I just changed p, err := listenPacket(ifi, proto, *cfg)
to p, err := listenPacket(ifi, proto, cfg)
in raw.go:136, it worked.
Could it be that there is a difference between the different implementations of listenPacket()
:
/raw_others.go
has func listenPacket(ifi *net.Interface, proto uint16, cfg *Config)
while the other files have func listenPacket(ifi *net.Interface, proto uint16, _ Config)
Thanks for your attention.
I would have preferred to make a Pull Request, but such a minor change might not be worth it.
Fixed in master. This code won't run on Windows at the moment but it should always compile.
While getting the library:
go get github.com/mdlayher/raw