comparison src/dhcpcd.c @ 5568:cebc093fd611 draft

Adjust prior to build routes and run script after aborting protocols for roaming
author Roy Marples <roy@marples.name>
date Sun, 27 Dec 2020 20:39:31 +0000
parents 4fe5c2a71254
children f32e37b1d371
comparison
equal deleted inserted replaced
5567:4fe5c2a71254 5568:cebc093fd611
698 static void 698 static void
699 dhcpcd_nocarrier_roaming(struct interface *ifp) 699 dhcpcd_nocarrier_roaming(struct interface *ifp)
700 { 700 {
701 701
702 loginfox("%s: carrier lost - roaming", ifp->name); 702 loginfox("%s: carrier lost - roaming", ifp->name);
703 script_runreason(ifp, "NOCARRIER_ROAMING");
704 703
705 #ifdef ARP 704 #ifdef ARP
706 arp_drop(ifp); 705 arp_drop(ifp);
707 #endif 706 #endif
708 #ifdef INET 707 #ifdef INET
709 dhcp_abort(ifp); 708 dhcp_abort(ifp);
710 #endif 709 #endif
711 #ifdef DHCP6 710 #ifdef DHCP6
712 dhcp6_abort(ifp); 711 dhcp6_abort(ifp);
713 #endif 712 #endif
713
714 rt_build(ifp->ctx, AF_UNSPEC);
715 script_runreason(ifp, "NOCARRIER_ROAMING");
714 } 716 }
715 717
716 void 718 void
717 dhcpcd_handlecarrier(struct interface *ifp, int carrier, unsigned int flags) 719 dhcpcd_handlecarrier(struct interface *ifp, int carrier, unsigned int flags)
718 { 720 {