changeset 2479:021191466e81 draft

Run NOCARRIER before dropping protocols.
author Roy Marples <roy@marples.name>
date Wed, 07 May 2014 09:22:26 +0000
parents 698b04b93c15
children 800509a3b25b
files dhcpcd.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dhcpcd.c	Tue May 06 18:15:52 2014 +0000
+++ b/dhcpcd.c	Wed May 07 09:22:26 2014 +0000
@@ -502,6 +502,7 @@
 			if (ifp->carrier == LINK_UP)
 				syslog(LOG_INFO, "%s: carrier lost", ifp->name);
 			ifp->carrier = LINK_DOWN;
+			script_runreason(ifp, "NOCARRIER");
 			dhcp6_drop(ifp, "EXPIRE6");
 			ipv6nd_drop(ifp);
 			/* Don't blindly delete our knowledge of LL addresses.
@@ -510,7 +511,6 @@
 			 * do nothing. */
 			ipv6_free_ll_callbacks(ifp);
 			dhcp_drop(ifp, "EXPIRE");
-			script_runreason(ifp, "NOCARRIER");
 		}
 	} else if (carrier == LINK_UP && ifp->flags & IFF_UP) {
 		if (ifp->carrier != LINK_UP) {