summaryrefslogtreecommitdiff
path: root/plugins/openvpn.c
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2011-01-26 17:03:12 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2011-01-26 17:03:12 +0100
commit91b1c84ffa2c1053737402e8ea94ca5bcc2db2f9 (patch)
tree4f115bd68908504db63a1351217738252b96da35 /plugins/openvpn.c
parenta089c11d2e4cd8149a179f605c19c4fde5a55756 (diff)
downloadconnman-91b1c84ffa2c1053737402e8ea94ca5bcc2db2f9.tar.gz
connman-91b1c84ffa2c1053737402e8ea94ca5bcc2db2f9.tar.bz2
connman-91b1c84ffa2c1053737402e8ea94ca5bcc2db2f9.zip
provider: Implement IPv6 route setting
Diffstat (limited to 'plugins/openvpn.c')
-rw-r--r--plugins/openvpn.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/openvpn.c b/plugins/openvpn.c
index 24aa0bc7..410cfbd7 100644
--- a/plugins/openvpn.c
+++ b/plugins/openvpn.c
@@ -43,6 +43,7 @@
static DBusConnection *connection;
struct ov_route {
+ int family;
char *host;
char *netmask;
char *gateway;
@@ -64,8 +65,8 @@ static void ov_provider_append_routes(gpointer key, gpointer value,
struct ov_route *route = value;
struct connman_provider *provider = user_data;
- connman_provider_append_route(provider, route->host, route->netmask,
- route->gateway);
+ connman_provider_append_route(provider, route->family, route->host,
+ route->netmask, route->gateway);
}
static struct ov_route *ov_route_lookup(const char *key, const char *prefix_key,
@@ -95,6 +96,8 @@ static struct ov_route *ov_route_lookup(const char *key, const char *prefix_key,
return NULL;
}
+ route->family = AF_INET;
+
g_hash_table_replace(routes, GINT_TO_POINTER(idx),
route);
}