summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortomty89 <tom.ty89@gmail.com>2016-05-20 18:28:30 +0800
committertomty89 <tom.ty89@gmail.com>2016-05-20 18:28:30 +0800
commit59bc1530b8a06621bf29109984898daa3f8cc6ce (patch)
tree859cb307b729bac2adc31c67640bd595f323d1a9
parent9243aa45fa0cfcd399aa7db1abd1e64e9ac515e3 (diff)
[networkd-dhcp6] do not call sd_dhcp6_client_start() from dhcp6_request_address()
Starting the DHCP client doesn't seem like dhcp6_request_address()'s responsibility anyway. Whenever it's called, sd_dhcp6_client_start() is unconditionally called outside of it as well. See ndisc_router_handler() and ndisc_handler() in networkd-ndisc.c.
-rw-r--r--src/network/networkd-dhcp6.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/network/networkd-dhcp6.c b/src/network/networkd-dhcp6.c
index 6085b28f86..37e13e639e 100644
--- a/src/network/networkd-dhcp6.c
+++ b/src/network/networkd-dhcp6.c
@@ -194,12 +194,6 @@ int dhcp6_request_address(Link *link) {
if (r < 0)
return r;
- if (running) {
- r = sd_dhcp6_client_start(link->dhcp6_client);
- if (r < 0)
- return r;
- }
-
return 0;
}