projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65557bb
)
network: Do not start IPv6 autoconfiguration if already pending
author
Jukka Rissanen
<jukka.rissanen@linux.intel.com>
Wed, 18 Jan 2012 13:25:01 +0000
(15:25 +0200)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Fri, 20 Jan 2012 00:35:24 +0000
(
01:35
+0100)
src/network.c
patch
|
blob
|
history
diff --git
a/src/network.c
b/src/network.c
index 82c7cd0f965e9d4a4a3c085d61b3830229e9c366..96dd9cccdeaba99fecf4a20d71b18811da5098a8 100644
(file)
--- 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);