mirror_frr/vrrpd
Quentin Young a90edf08e3 vrrpd: fix broken reads when reinitializing
When a VRRP router was shut down - either due to an administrative
event, or its interface getting deleted, or some other reason - it was
forgetting to cancel its read task. When it was started again, the read
task was still around, and so it wasn't getting scheduled again with the
new socket fd's. This caused our socket to queue ingress packets but
never read them, resulting in the restarted router always electing
itself to Master (since it wasn't listening to any other advertisements,
even though the kernel was delivering them).

The t_write cancellation call doesn't matter here, but I'm putting it in
there because it doesn't hurt and this way I won't forget about it if it
becomes necessary in the future.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2019-05-17 00:27:08 +00:00
..
.gitignore vrrpd: add .gitignore 2019-05-17 00:27:08 +00:00
Makefile vrrpd: initial commit 2019-05-17 00:27:08 +00:00
subdir.am vrrpd: add debugging knobs 2019-05-17 00:27:08 +00:00
vrrp_arp.c vrrpd: style cleanup 2019-05-17 00:27:08 +00:00
vrrp_arp.h vrrpd: fix headers 2019-05-17 00:27:08 +00:00
vrrp_debug.c vrrpd: add support for configuration writing 2019-05-17 00:27:08 +00:00
vrrp_debug.h vrrpd: add support for configuration writing 2019-05-17 00:27:08 +00:00
vrrp_main.c vrrpd: style cleanup 2019-05-17 00:27:08 +00:00
vrrp_memory.c vrrpd: use correct mtypes 2019-05-17 00:27:08 +00:00
vrrp_memory.h vrrpd: use correct mtypes 2019-05-17 00:27:08 +00:00
vrrp_ndisc.c vrrpd: style cleanup 2019-05-17 00:27:08 +00:00
vrrp_ndisc.h vrrpd: fix headers 2019-05-17 00:27:08 +00:00
vrrp_packet.c vrrpd: fix bad fmt specifiers in dgram validator 2019-05-17 00:27:08 +00:00
vrrp_packet.h vrrpd: specify version when parsing vrrp packet 2019-05-17 00:27:08 +00:00
vrrp_vty.c vrrpd: allow user to set priority = 255 2019-05-17 00:27:08 +00:00
vrrp_vty.h vrrpd: fix headers 2019-05-17 00:27:08 +00:00
vrrp_zebra.c vrrpd: don't update interface addrs on ifup 2019-05-17 00:27:08 +00:00
vrrp_zebra.h vrrpd: protodown macvlan in backup state 2019-05-17 00:27:08 +00:00
vrrp.c vrrpd: fix broken reads when reinitializing 2019-05-17 00:27:08 +00:00
vrrp.h vrrpd: delay sending adverts/garp/una for iface up 2019-05-17 00:27:08 +00:00