Hi

Patch for relayd that will enable quick removal of all host-related entries in the related relayd anchor if the host fails the SLA check.

Without this patch, the anchor cleanup wil not be called before the next SLA round (adding a minimum 10 sec delay on failover).

Tested on a dual gateway setup (using CARP on vlans with pfsync defer on) with 3 pool members in the relayd config.


Index: pfe.c
===================================================================
RCS file: /cvs/src/usr.sbin/relayd/pfe.c,v
retrieving revision 1.79.2.1
diff -u -p -r1.79.2.1 pfe.c
--- pfe.c       20 Sep 2015 11:20:16 -0000      1.79.2.1
+++ pfe.c       2 Oct 2015 09:32:46 -0000
@@ -152,6 +152,8 @@ pfe_dispatch_hce(int fd, struct privsep_
                        table->conf.flags |= F_CHANGED;
                        host->flags |= F_DEL;
                        host->flags &= ~(F_ADD);
+                       host->up = st.up;
+                       pfe_sync();
                }

                host->up = st.up;


--
bsv

Reply via email to