vendor: bump github.com/mdlayher/wifi and dependencies (#1045)
Signed-off-by: Matt Layher <mdlayher@gmail.com>
This commit is contained in:
parent
60c827231a
commit
d84873727f
10 changed files with 608 additions and 182 deletions
49
vendor/github.com/mdlayher/netlink/conn_others.go
generated
vendored
49
vendor/github.com/mdlayher/netlink/conn_others.go
generated
vendored
|
|
@ -5,14 +5,12 @@ package netlink
|
|||
import (
|
||||
"fmt"
|
||||
"runtime"
|
||||
|
||||
"golang.org/x/net/bpf"
|
||||
)
|
||||
|
||||
var (
|
||||
// errUnimplemented is returned by all functions on platforms that
|
||||
// cannot make use of netlink sockets.
|
||||
errUnimplemented = fmt.Errorf("netlink sockets not implemented on %s/%s",
|
||||
errUnimplemented = fmt.Errorf("netlink: not implemented on %s/%s",
|
||||
runtime.GOOS, runtime.GOARCH)
|
||||
)
|
||||
|
||||
|
|
@ -21,42 +19,13 @@ var _ Socket = &conn{}
|
|||
// A conn is the no-op implementation of a netlink sockets connection.
|
||||
type conn struct{}
|
||||
|
||||
// dial is the entry point for Dial. dial always returns an error.
|
||||
func dial(family int, config *Config) (*conn, uint32, error) {
|
||||
return nil, 0, errUnimplemented
|
||||
}
|
||||
// All cross-platform functions and Socket methods are unimplemented outside
|
||||
// of Linux.
|
||||
|
||||
// Send always returns an error.
|
||||
func (c *conn) Send(m Message) error {
|
||||
return errUnimplemented
|
||||
}
|
||||
func dial(_ int, _ *Config) (*conn, uint32, error) { return nil, 0, errUnimplemented }
|
||||
func newError(_ int) error { return errUnimplemented }
|
||||
|
||||
// Receive always returns an error.
|
||||
func (c *conn) Receive() ([]Message, error) {
|
||||
return nil, errUnimplemented
|
||||
}
|
||||
|
||||
// Close always returns an error.
|
||||
func (c *conn) Close() error {
|
||||
return errUnimplemented
|
||||
}
|
||||
|
||||
// JoinGroup always returns an error.
|
||||
func (c *conn) JoinGroup(group uint32) error {
|
||||
return errUnimplemented
|
||||
}
|
||||
|
||||
// LeaveGroup always returns an error.
|
||||
func (c *conn) LeaveGroup(group uint32) error {
|
||||
return errUnimplemented
|
||||
}
|
||||
|
||||
// SetBPF always returns an error.
|
||||
func (c *conn) SetBPF(filter []bpf.RawInstruction) error {
|
||||
return errUnimplemented
|
||||
}
|
||||
|
||||
// newError always returns an error.
|
||||
func newError(errno int) error {
|
||||
return errUnimplemented
|
||||
}
|
||||
func (c *conn) Send(_ Message) error { return errUnimplemented }
|
||||
func (c *conn) SendMessages(_ []Message) error { return errUnimplemented }
|
||||
func (c *conn) Receive() ([]Message, error) { return nil, errUnimplemented }
|
||||
func (c *conn) Close() error { return errUnimplemented }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue