Hello Johan and thanks for your great report!
On 27/04/15(Mon) 11:54, Johan Huldtgren wrote:
> >If you try 1.250 and 1.253 and tell me if you can reproduce the problem
> >that would be really helpful. In case you see something weird, Could
> >you include the routing table "netstat -rnf inet" in your report? If
> >you can also play with tcpdump on the various pseudo-interfaces and see
> >if something is wrong that would be great.
>
> i'm not sure what is going on, it seems likely that the problem lies
> in my setup or something I've done, I'll explain the behavior I'm
> seeing and hopefully you can use it to rule out that the error lies
> in ip_carp.c at least.
I doubt the problem lies in your setup, I found the master->active
problem, diff below should correct that, can you tell me if it helps?
Index: netinet/ip_carp.c
===================================================================
RCS file: /cvs/src/sys/netinet/ip_carp.c,v
retrieving revision 1.253
diff -u -p -r1.253 ip_carp.c
--- netinet/ip_carp.c 22 Apr 2015 06:44:17 -0000 1.253
+++ netinet/ip_carp.c 28 Apr 2015 09:31:07 -0000
@@ -750,6 +750,7 @@ carp_clone_create(ifc, unit)
if_attach(ifp);
ether_ifattach(ifp);
ifp->if_type = IFT_CARP;
+ ifp->if_sadl->sdl_type = IFT_CARP;
ifp->if_output = carp_output;
/* Hook carp_addr_updated to cope with address and route changes. */