mirror of
https://github.com/sigcn/pg.git
synced 2025-10-06 00:57:42 +08:00
28 lines
381 B
Go
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
|
|
}
|