File: family_others.go

package info (click to toggle)
golang-github-mdlayher-genetlink 1.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 180 kB
  • sloc: makefile: 2
file content (24 lines) | stat: -rw-r--r-- 556 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//go:build !linux
// +build !linux

package genetlink

import (
	"fmt"
	"runtime"
)

// errUnimplemented is returned by all functions on platforms that
// cannot make use of generic netlink.
var 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
}