two/internal/netif/route_other.go
GnomeZworc 45a7f40f43
f-41: netif: stub RouteAdd en erreur hors Linux #41
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
2026-10-12 14:01:49 +02:00

16 lines
298 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 TableRoutesVia(_ int, _ string) ([]*net.IPNet, error) {
return nil, errors.New("route listing is only implemented on linux")
}