Commit 5c0ec482 authored by Patrik Flykt's avatar Patrik Flykt Committed by Slava Monich

network: Remove explicit gateway activation

Remove explicit gateway activation for IPv6 static addresses. The gateway
activation will take place in __connman_ipconfig_gateway_add(), which is
called immediately before.

Remove the now unused __connman_connection_gateway_activate() function.
parent 7aa4fc5b
......@@ -771,24 +771,6 @@ static void update_order(void)
}
}
void __connman_connection_gateway_activate(struct connman_service *service,
enum connman_ipconfig_type type)
{
struct gateway_data *data = NULL;
data = g_hash_table_lookup(gateway_hash, service);
if (!data)
return;
DBG("gateway %p/%p type %d", data->ipv4_gateway,
data->ipv6_gateway, type);
if (type == CONNMAN_IPCONFIG_TYPE_IPV4)
data->ipv4_gateway->active = true;
else if (type == CONNMAN_IPCONFIG_TYPE_IPV6)
data->ipv6_gateway->active = true;
}
static void add_host_route(int family, int index, const char *gateway,
enum connman_service_type service_type)
{
......
......@@ -506,8 +506,6 @@ void __connman_connection_gateway_remove(struct connman_service *service,
int __connman_connection_get_vpn_index(int phy_index);
bool __connman_connection_update_gateway(void);
void __connman_connection_gateway_activate(struct connman_service *service,
enum connman_ipconfig_type type);
int __connman_ntp_start(char *server);
void __connman_ntp_stop();
......
......@@ -291,9 +291,6 @@ static int manual_ipv6_set(struct connman_network *network,
if (err < 0)
return err;
__connman_connection_gateway_activate(service,
CONNMAN_IPCONFIG_TYPE_IPV6);
__connman_device_set_network(network->device, network);
connman_network_set_associating(network, false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment