2024-07-15 10:40:57 +02:00
|
|
|
//go:build android
|
2024-06-13 13:24:24 +02:00
|
|
|
|
|
|
|
package systemops
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net"
|
|
|
|
"net/netip"
|
|
|
|
"runtime"
|
|
|
|
|
|
|
|
log "github.com/sirupsen/logrus"
|
|
|
|
|
2024-06-17 09:47:17 +02:00
|
|
|
nbnet "github.com/netbirdio/netbird/util/net"
|
2024-06-13 13:24:24 +02:00
|
|
|
)
|
|
|
|
|
2024-06-17 09:47:17 +02:00
|
|
|
func (r *SysOps) SetupRouting([]net.IP) (nbnet.AddHookFunc, nbnet.RemoveHookFunc, error) {
|
2024-06-13 13:24:24 +02:00
|
|
|
return nil, nil, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *SysOps) CleanupRouting() 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 EnableIPForwarding() error {
|
|
|
|
log.Infof("Enable IP forwarding is not implemented on %s", runtime.GOOS)
|
|
|
|
return nil
|
|
|
|
}
|
2024-06-17 09:47:17 +02:00
|
|
|
|
|
|
|
func IsAddrRouted(netip.Addr, []netip.Prefix) (bool, netip.Prefix) {
|
|
|
|
return false, netip.Prefix{}
|
|
|
|
}
|