ci: run linter on all supported platforms (#3816)

* only define packetInfo.ifIndex on platforms where it's actually used

* fix comment and stylecheck for IP_DONTFRAGMENT on Windows

* fix build flags on test file

* ci: run golangci-lint on multiple platforms
This commit is contained in:
Marten Seemann
2023-06-03 09:47:05 +03:00
committed by GitHub
parent f661cd1796
commit 56432a8b79
7 changed files with 60 additions and 10 deletions

View File

@@ -264,6 +264,11 @@ func (c *oobConn) capabilities() connCapabilities {
return c.cap
}
type packetInfo struct {
addr net.IP
ifIndex uint32
}
func (info *packetInfo) OOB() []byte {
if info == nil {
return nil