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

support centos6 #46

Closed qianxiansheng90 closed 5 years ago

qianxiansheng90 commented 5 years ago

something wrong. Centos6,Go 1.7

github.com/mdlayher/raw

github.com/mdlayher/raw/raw_linux.go:88:14: f.SyscallConn undefined (type os.File has no field or method SyscallConn) github.com/mdlayher/raw/raw_linux.go:292:12: s.f.SetDeadline undefined (type os.File has no field or method SetDeadline) github.com/mdlayher/raw/raw_linux.go:296:12: s.f.SetReadDeadline undefined (type os.File has no field or method SetReadDeadline) github.com/mdlayher/raw/raw_linux.go:300:12: s.f.SetWriteDeadline undefined (type os.File has no field or method SetWriteDeadline)

mdlayher commented 5 years ago

Please upgrade to Go 1.12.

https://github.com/mdlayher/raw/blob/master/README.md#stability