mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-21 08:09:55 +00:00
52 lines
1.0 KiB
Go
52 lines
1.0 KiB
Go
//go:build android
|
|
|
|
package systemops
|
|
|
|
import (
|
|
"net"
|
|
"net/netip"
|
|
"runtime"
|
|
|
|
log "github.com/sirupsen/logrus"
|
|
|
|
"github.com/netbirdio/netbird/client/internal/statemanager"
|
|
)
|
|
|
|
func (r *SysOps) SetupRouting([]net.IP, *statemanager.Manager, bool) error {
|
|
return nil
|
|
}
|
|
|
|
func (r *SysOps) CleanupRouting(*statemanager.Manager, bool) error {
|
|
return nil
|
|
}
|
|
|
|
func (r *SysOps) AddVPNRoute(netip.Prefix, *net.Interface) error {
|
|
return nil
|
|
}
|
|
|
|
func (r *SysOps) RemoveVPNRoute(netip.Prefix, *net.Interface) error {
|
|
return nil
|
|
}
|
|
|
|
func (r *SysOps) removeFromRouteTable(netip.Prefix, Nexthop) error {
|
|
return nil
|
|
}
|
|
|
|
func EnableV4IPForwarding() error {
|
|
log.Infof("Enable IPv4 forwarding is not implemented on %s", runtime.GOOS)
|
|
return nil
|
|
}
|
|
|
|
func EnableV6IPForwarding(string) (map[string]int, error) {
|
|
log.Infof("Enable IPv6 forwarding is not implemented on %s", runtime.GOOS)
|
|
return nil, nil
|
|
}
|
|
|
|
func DisableV6IPForwarding(map[string]int) error {
|
|
return nil
|
|
}
|
|
|
|
func IsAddrRouted(netip.Addr, []netip.Prefix) (bool, netip.Prefix) {
|
|
return false, netip.Prefix{}
|
|
}
|