mirror of
https://github.com/vishvananda/netlink
synced 2024-12-27 00:52:11 +00:00
9eab419334
Having fou.go build only for linux breaks builds for darwin: ``` $ go build main.go src/github.com/vishvananda/netlink/fou_unspecified.go:5:15: undefined: Fou src/github.com/vishvananda/netlink/fou_unspecified.go:9:15: undefined: Fou src/github.com/vishvananda/netlink/fou_unspecified.go:13:26: undefined: Fou ``` Instead, build fou.go for all platforms since it doesn't have platform-specific code: ``` $ go build main.go $ ./main not implemented ```
22 lines
436 B
Go
22 lines
436 B
Go
package netlink
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
var (
|
|
// ErrAttrHeaderTruncated is returned when a netlink attribute's header is
|
|
// truncated.
|
|
ErrAttrHeaderTruncated = errors.New("attribute header truncated")
|
|
// ErrAttrBodyTruncated is returned when a netlink attribute's body is
|
|
// truncated.
|
|
ErrAttrBodyTruncated = errors.New("attribute body truncated")
|
|
)
|
|
|
|
type Fou struct {
|
|
Family int
|
|
Port int
|
|
Protocol int
|
|
EncapType int
|
|
}
|