summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-12-27 20:39:31 +0000
committerRoy Marples <roy@marples.name>2020-12-27 20:39:31 +0000
commit28171af184ef71bc298dc8c4ba9b30d69ebe2e2b (patch)
treebfc592ad015332091ef597762c6a2e390599ee8d
parent217132b10a4841777c7296b1e5bca65b67b825be (diff)
downloaddhcpcd-28171af184ef71bc298dc8c4ba9b30d69ebe2e2b.tar.xz
Adjust prior to build routes and run script after aborting protocols for roaming
-rw-r--r--src/dhcpcd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dhcpcd.c b/src/dhcpcd.c
index 8762576c..42882c2c 100644
--- a/src/dhcpcd.c
+++ b/src/dhcpcd.c
@@ -700,7 +700,6 @@ dhcpcd_nocarrier_roaming(struct interface *ifp)
{
loginfox("%s: carrier lost - roaming", ifp->name);
- script_runreason(ifp, "NOCARRIER_ROAMING");
#ifdef ARP
arp_drop(ifp);
@@ -711,6 +710,9 @@ dhcpcd_nocarrier_roaming(struct interface *ifp)
#ifdef DHCP6
dhcp6_abort(ifp);
#endif
+
+ rt_build(ifp->ctx, AF_UNSPEC);
+ script_runreason(ifp, "NOCARRIER_ROAMING");
}
void