Files
pg/netlink/link_default.go
2024-07-12 21:40:47 +08:00

28 lines
381 B
Go

//go:build !linux && !windows && !darwin
package netlink
import (
"errors"
"net"
)
func SetupLink(string, string) error {
// noop
return nil
}
func AddRoute(string, *net.IPNet, net.IP) error {
// noop
return nil
}
func DelRoute(string, *net.IPNet, net.IP) error {
// noop
return nil
}
func LinkByIndex(index int) (*Link, error) {
return nil, errors.ErrUnsupported
}