|
|
|
@ -4,14 +4,12 @@ namespace llarp::apple {
|
|
|
|
|
|
|
|
|
|
void RouteManager::AddDefaultRouteViaInterface(std::string)
|
|
|
|
|
{
|
|
|
|
|
LogWarn("AddDefaultRouteViaInterface with cbctx=", (bool) callback_context, ", adr=", (bool) route_callbacks.add_default_route);
|
|
|
|
|
if (callback_context and route_callbacks.add_default_route)
|
|
|
|
|
route_callbacks.add_default_route(callback_context);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void RouteManager::DelDefaultRouteViaInterface(std::string)
|
|
|
|
|
{
|
|
|
|
|
LogWarn("DelDefaultRouteViaInterface with cbctx=", (bool) callback_context, ", ddr=", (bool) route_callbacks.del_default_route);
|
|
|
|
|
if (callback_context and route_callbacks.del_default_route)
|
|
|
|
|
route_callbacks.del_default_route(callback_context);
|
|
|
|
|
}
|
|
|
|
@ -19,9 +17,6 @@ void RouteManager::DelDefaultRouteViaInterface(std::string)
|
|
|
|
|
void
|
|
|
|
|
RouteManager::AddRouteViaInterface(vpn::NetworkInterface&, IPRange range)
|
|
|
|
|
{
|
|
|
|
|
LogWarn("AddRoute with cbctx=", (bool) callback_context, ", a4r=", (bool) route_callbacks.add_ipv4_route,
|
|
|
|
|
"a6r", (bool) route_callbacks.add_ipv6_route);
|
|
|
|
|
|
|
|
|
|
if (callback_context)
|
|
|
|
|
{
|
|
|
|
|
if (range.IsV4()) {
|
|
|
|
@ -40,9 +35,6 @@ RouteManager::AddRouteViaInterface(vpn::NetworkInterface&, IPRange range)
|
|
|
|
|
void
|
|
|
|
|
RouteManager::DelRouteViaInterface(vpn::NetworkInterface&, IPRange range)
|
|
|
|
|
{
|
|
|
|
|
LogWarn("DelRoute with cbctx=", (bool) callback_context, ", a4r=", (bool) route_callbacks.del_ipv4_route,
|
|
|
|
|
"a6r", (bool) route_callbacks.del_ipv6_route);
|
|
|
|
|
|
|
|
|
|
if (callback_context)
|
|
|
|
|
{
|
|
|
|
|
if (range.IsV4()) {
|
|
|
|
|