projects
/
profile
/
ivi
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
935279a
)
network: Verify we are connected before starting DHCPv6
author
Jukka Rissanen
<jukka.rissanen@linux.intel.com>
Wed, 18 Jan 2012 13:24:58 +0000
(15:24 +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
bd4573b
..
7d120d4
100644
(file)
--- a/
src/network.c
+++ b/
src/network.c
@@
-1096,6
+1096,15
@@
static void check_dhcpv6(struct nd_router_advert *reply,
network->router_solicit_count = 0;
+ /*
+ * If we were disconnected while waiting router advertisement,
+ * we just quit and do not start DHCPv6
+ */
+ if (network->connected == FALSE) {
+ connman_network_unref(network);
+ return;
+ }
+
prefixes = __connman_inet_ipv6_get_prefixes(reply, length);
/*