summaryrefslogtreecommitdiff
path: root/src/connection.c
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2012-03-14 17:28:52 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-03-19 13:08:41 +0200
commitecefd0ab5b5d00db39ac999c18173c31164a448c (patch)
treea17627e0ad10711dee2d49f786100d44524fe428 /src/connection.c
parent601b74f0a26927c28627401f1ad46a790a2da330 (diff)
downloadconnman-ecefd0ab5b5d00db39ac999c18173c31164a448c.tar.gz
connman-ecefd0ab5b5d00db39ac999c18173c31164a448c.tar.bz2
connman-ecefd0ab5b5d00db39ac999c18173c31164a448c.zip
service: Allow removing only certain type nameservers
When nameserver are removed by __connman_connection_gateway_remove() then remove only certain type nameserver (IPv4 or IPv6). This is needed so that we do not loose IPv4 routes if only IPv6 nameservers are to be removed. This is needed when there are multiple connected services.
Diffstat (limited to 'src/connection.c')
-rw-r--r--src/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/connection.c b/src/connection.c
index fde8f799..545b59f4 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -728,7 +728,7 @@ void __connman_connection_gateway_remove(struct connman_service *service,
else
do_ipv4 = do_ipv6 = TRUE;
- __connman_service_nameserver_del_routes(service);
+ __connman_service_nameserver_del_routes(service, type);
data = g_hash_table_lookup(gateway_hash, service);
if (data == NULL)