2023-04-17 11:15:37 +02:00
|
|
|
package routemanager
|
|
|
|
|
|
|
|
import (
|
2024-04-08 18:56:52 +02:00
|
|
|
"net"
|
2023-04-17 11:15:37 +02:00
|
|
|
"net/netip"
|
2024-04-08 18:56:52 +02:00
|
|
|
"runtime"
|
|
|
|
|
|
|
|
log "github.com/sirupsen/logrus"
|
|
|
|
|
|
|
|
"github.com/netbirdio/netbird/client/internal/peer"
|
|
|
|
"github.com/netbirdio/netbird/iface"
|
2023-04-17 11:15:37 +02:00
|
|
|
)
|
|
|
|
|
2024-04-08 18:56:52 +02:00
|
|
|
func setupRouting([]net.IP, *iface.WGIface) (peer.BeforeAddPeerHookFunc, peer.AfterRemovePeerHookFunc, error) {
|
|
|
|
return nil, nil, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func cleanupRouting() error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func enableIPForwarding() error {
|
|
|
|
log.Infof("Enable IP forwarding is not implemented on %s", runtime.GOOS)
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2024-04-26 16:37:27 +02:00
|
|
|
func addVPNRoute(netip.Prefix, *net.Interface) error {
|
2023-04-17 11:15:37 +02:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2024-04-26 16:37:27 +02:00
|
|
|
func removeVPNRoute(netip.Prefix, *net.Interface) error {
|
2023-04-17 11:15:37 +02:00
|
|
|
return nil
|
|
|
|
}
|