Re: 7.1.0 vs 6.11.5 routes after ipv4ll conflict.
Roy Marples
Fri Mar 01 17:25:49 2019
Hi Chuck
On 28/02/2019 19:52, Chuck Forbish wrote:
Roy,
I decided to collect output of four commands before and after the conflict.
These are the commands:
dhcpcd --version
ip route
ifconfig
route
When 7.1.0 fails, "ip route" reports nothing. The "route" command at
least shows header information.
Attached are the results.
-Chuck
The attached patch should solve this.
Let me know and I'll commit it ASAP
Thanks
Roy
diff --git a/src/ipv4ll.c b/src/ipv4ll.c
index 4d59fff2..51cd4f5b 100644
--- a/src/ipv4ll.c
+++ b/src/ipv4ll.c
@@ -305,6 +305,8 @@ ipv4ll_conflicted(struct arp_state *astate, const struct arp_msg *amsg)
ipv4_deladdr(state->addr, 1);
state->down = 1;
state->addr = NULL;
+ if_initrt(ifp->ctx, AF_INET);
+ rt_build(ifp->ctx, AF_INET);
script_runreason(ifp, "IPV4LL");
}
Archive administrator: postmaster@marples.name