You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
545 B
26 lines
545 B
//+build !linux
|
|
|
|
package genetlink
|
|
|
|
import (
|
|
"fmt"
|
|
"runtime"
|
|
)
|
|
|
|
var (
|
|
// errUnimplemented is returned by all functions on platforms that
|
|
// cannot make use of generic netlink.
|
|
errUnimplemented = fmt.Errorf("generic netlink not implemented on %s/%s",
|
|
runtime.GOOS, runtime.GOARCH)
|
|
)
|
|
|
|
// getFamily always returns an error.
|
|
func (c *Conn) getFamily(name string) (Family, error) {
|
|
return Family{}, errUnimplemented
|
|
}
|
|
|
|
// listFamilies always returns an error.
|
|
func (c *Conn) listFamilies() ([]Family, error) {
|
|
return nil, errUnimplemented
|
|
}
|