On Mon, Jul 24, 2017 at 02:22:33PM +0200, Martin Pieuchot wrote: > On 21/07/17(Fri) 12:13, Remi Locherer wrote: > > [...] > > Somebody suggested in a private mail to use /32 masks for carp interfaces. > > This fix/workaround helps indeed! > > Good to know! However from my developer's chair there's still a bug. > Nothing should happen to a route attached to vio1 when you modify > something on carp1. > > Could you repeat the "route monitor" steps with a kernel containing the > diff below?
here you go: gw1# route monitor got message of size 192 on Mon Jul 24 19:32:43 2017 RTM_DELETE: Delete Route: len 192, priority 3, table 0, ifidx 3, pid: 0, seq 0, errno 0 flags:<HOST,DONE,CLONED,CACHED> fmask: use: 0 mtu: 0 expire: 0 locks: inits: sockaddrs: <DST,GATEWAY,IFP,IFA> 10.0.20.10 08:00:27:6b:9a:c1 08:00:27:7e:f3:d5 10.0.20.2 got message of size 192 on Mon Jul 24 19:32:43 2017 RTM_DELETE: Delete Route: len 192, priority 19, table 0, ifidx 7, pid: 0, seq 0, errno 0 flags:<DONE,CLONING,CONNECTED> fmask: use: 0 mtu: 0 expire: 0 locks: inits: sockaddrs: <DST,GATEWAY,NETMASK,IFP,IFA> 10.0.20.0 10.0.20.1 255.255.255.0 00:00:5e:00:01:17 10.0.20.1 got message of size 176 on Mon Jul 24 19:32:43 2017 RTM_DELETE: Delete Route: len 176, priority 1, table 0, ifidx 7, pid: 0, seq 0, errno 0 flags:<HOST,DONE,BROADCAST> fmask: use: 0 mtu: 0 expire: 0 locks: inits: sockaddrs: <DST,GATEWAY,IFP,IFA> 10.0.20.255 10.0.20.1 00:00:5e:00:01:17 10.0.20.1 got message of size 192 on Mon Jul 24 19:32:43 2017 RTM_DELETE: Delete Route: len 192, priority 1, table 0, ifidx 7, pid: 0, seq 0, errno 0 flags:<HOST,DONE,LOCAL> fmask: use: 0 mtu: 0 expire: 0 locks: inits: sockaddrs: <DST,GATEWAY,IFP,IFA> 10.0.20.1 00:00:5e:00:01:17 00:00:5e:00:01:17 10.0.20.1 got message of size 96 on Mon Jul 24 19:32:43 2017 RTM_DELADDR: address being removed from iface: len 96, metric 0, flags: sockaddrs: <NETMASK,IFP,IFA,BRD> 255.255.255.0 00:00:5e:00:01:17 10.0.20.1 10.0.20.255 got message of size 168 on Mon Jul 24 19:32:43 2017 RTM_IFINFO: iface status change: len 168, if# 7, name: carp2, link: invalid, mtu: 1500, flags:<BROADCAST,SIMPLEX,MULTICAST> got message of size 104 on Mon Jul 24 19:32:43 2017 RTM_NEWADDR: address being added to iface: len 104, metric 0, flags: sockaddrs: <NETMASK,IFP,IFA,BRD> 255.255.255.0 00:00:5e:00:01:17 10.0.20.1 default got message of size 192 on Mon Jul 24 19:32:43 2017 RTM_ADD: Add Route: len 192, priority 1, table 0, ifidx 7, pid: 0, seq 0, errno 0 flags:<UP,HOST,DONE,LLINFO,LOCAL> fmask: use: 0 mtu: 0 expire: 0 locks: inits: sockaddrs: <DST,GATEWAY,IFP,IFA> 10.0.20.1 00:00:5e:00:01:17 00:00:5e:00:01:17 10.0.20.1 got message of size 192 on Mon Jul 24 19:32:43 2017 RTM_ADD: Add Route: len 192, priority 147, table 0, ifidx 7, pid: 0, seq 0, errno 0 flags:<DONE,CLONING,CONNECTED> fmask: use: 0 mtu: 0 expire: 0 locks: inits: sockaddrs: <DST,GATEWAY,NETMASK,IFP,IFA> 10.0.20.0 10.0.20.1 255.255.255.0 00:00:5e:00:01:17 10.0.20.1 got message of size 176 on Mon Jul 24 19:32:43 2017 RTM_ADD: Add Route: len 176, priority 129, table 0, ifidx 7, pid: 0, seq 0, errno 0 flags:<HOST,DONE,BROADCAST> fmask: use: 0 mtu: 0 expire: 0 locks: inits: sockaddrs: <DST,GATEWAY,IFP,IFA> 10.0.20.255 10.0.20.1 00:00:5e:00:01:17 10.0.20.1 got message of size 168 on Mon Jul 24 19:32:43 2017 RTM_IFINFO: iface status change: len 168, if# 7, name: carp2, link: backup, mtu: 1500, flags:<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> got message of size 168 on Mon Jul 24 19:32:46 2017 RTM_IFINFO: iface status change: len 168, if# 7, name: carp2, link: master, mtu: 1500, flags:<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST>