From: Roy Marples Date: Thu, 4 Apr 2013 23:30:14 +0000 (+0000) Subject: Send a RELEASE if the link is up X-Git-Tag: v5.99.6~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49b40fe70229267651160174628116694d89d307;p=thirdparty%2Fdhcpcd.git Send a RELEASE if the link is up --- diff --git a/dhcp6.c b/dhcp6.c index aabd53de..f59a80e1 100644 --- a/dhcp6.c +++ b/dhcp6.c @@ -1921,7 +1921,8 @@ dhcp6_freedrop(struct interface *ifp, int drop, const char *reason) state = D6_STATE(ifp); if (state) { if (ifp->options->options & DHCPCD_RELEASE) { - dhcp6_startrelease(ifp); + if (ifp->carrier != LINK_DOWN) + dhcp6_startrelease(ifp); unlink(state->leasefile); } dhcp6_freedrop_addrs(ifp, drop);