mdlayher / raw

Package raw enables reading and writing data at the device driver level for a network interface. MIT Licensed.
MIT License
425 stars 71 forks source link

Build failing on Windows #25

Closed d2g closed 6 years ago

d2g commented 6 years ago

Hi,

Just a head up that the repo currently doesn't build on windows (I expect any that use raw_others.go). Error below.

go get github.com/mdlayher/raw

github.com/mdlayher/raw

C:\go\src\github.com\mdlayher\raw\raw.go:115: too many arguments in call to listenPacket have (net.Interface, uint16, Config) want (*net.Interface, uint16) C:\go\src\github.com\mdlayher\raw\timeval.go:17: cannot use int64(timeout / time.Second) (type int64) as type int32 in field value C:\go\src\github.com\mdlayher\raw\timeval.go:18: cannot use int64(timeout % time.Second / time.Microsecond) (type int64) as type int32 in field value

Hope that's of some help.

mdlayher commented 6 years ago

Thanks for the report, fixed in https://github.com/mdlayher/raw/commit/d49579e77ad7a5760451ccca3bbbf88fdba2d193.

I'm sure you've seen this, but even if it does compile, this code is unimplemented on Windows as of now anyway. See #3 .