summaryrefslogtreecommitdiffstats
path: root/dhcpcd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-05-09 08:22:38 +0000
committerRoy Marples <roy@marples.name>2016-05-09 08:22:38 +0000
commit6bbedd2c411e7cc8dded57d8a4a4d8e7c4fc4296 (patch)
tree7b1c3f15524754aa4f3b481407f31232aad04e65 /dhcpcd.c
parentde1c4762e497c4c764a1812a1ecb49c8837008e1 (diff)
downloaddhcpcd-6bbedd2c411e7cc8dded57d8a4a4d8e7c4fc4296.tar.xz
Preserve lo0 routes if the global default is to persist.
Diffstat (limited to 'dhcpcd.c')
-rw-r--r--dhcpcd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dhcpcd.c b/dhcpcd.c
index 68b80537..bccc2496 100644
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -1172,6 +1172,7 @@ stop_all_interfaces(struct dhcpcd_ctx *ctx, unsigned long long opts)
{
struct interface *ifp;
+ ctx->options |= DHCPCD_EXITING;
/* Drop the last interface first */
TAILQ_FOREACH_REVERSE(ifp, ctx->ifaces, if_head, next) {
if (ifp->options) {