From 01f1e8e974a35cfb52da0d691c8273c44b6d8e25 Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Wed, 18 Jan 2012 15:25:01 +0200 Subject: [PATCH] network: Do not start IPv6 autoconfiguration if already pending --- src/network.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/network.c b/src/network.c index 82c7cd0..96dd9cc 100644 --- a/src/network.c +++ b/src/network.c @@ -1126,6 +1126,16 @@ static void autoconf_ipv6_set(struct connman_network *network) DBG("network %p", network); + if (network->router_solicit_count > 0) { + /* + * The autoconfiguration is already pending and we have sent + * router solicitation messages and are now waiting answers. + * There is no need to continue any further. + */ + DBG("autoconfiguration already started"); + return; + } + __connman_device_set_network(network->device, network); connman_device_set_disconnected(network->device, FALSE); -- 2.7.4