Mercurial > hg > dhcpcd
changeset 1905:6ce33af38ef4 draft
Send a RELEASE if the link is up
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Thu, 04 Apr 2013 23:30:14 +0000 |
| parents | 95b690395b34 |
| children | 895f1461a075 |
| files | dhcp6.c |
| diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/dhcp6.c Thu Apr 04 23:29:54 2013 +0000 +++ b/dhcp6.c Thu Apr 04 23:30:14 2013 +0000 @@ -1921,7 +1921,8 @@ 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);
