two/internal/netif/route_other.go

20 lines
414 B
Go

//go:build !linux
package netif
import (
"errors"
"net"
)
func RouteAdd(_ string, _ *net.IPNet) error {
return errors.New("not supported on this platform")
}
func RouteAddFrom(_ string, _ *net.IPNet, _ net.IP) error {
return errors.New("not supported on this platform")
}
func TableRoutesVia(_ int, _ string) ([]*net.IPNet, error) {
return nil, errors.New("route listing is only implemented on linux")
}