Re: relayd and "src track"

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <misc@...>
Cc: Tautvydas Bruzas <vitiho@...>, Per-Olov Sjöholm <pos@...>
Date: Friday, May 16, 2008 - 8:12 am

Hi,

actually it is enough to clear the tree of source tracking nodes right
after syncing tables, so the sticky-address is stored again.
Unfortunately there is one disadvantage, all sources will be flushed, so
some connections can be assigned to different hosts.
But I think it's better then leaving it unattended.

the appropriate diff is below and should work with all versions of
relayd and hoststated with a little change referring to vars naming:

Index: usr.sbin/relayd/pfe_filter.c
===================================================================
RCS file: /cvs/src/usr.sbin/relayd/pfe_filter.c,v
retrieving revision 1.26
diff -u -r1.26 pfe_filter.c
--- usr.sbin/relayd/pfe_filter.c 7 May 2008 01:49:29 -0000 1.26
+++ usr.sbin/relayd/pfe_filter.c 16 May 2008 13:09:06 -0000
@@ -225,6 +225,10 @@
if (ioctl(env->sc_pf->dev, DIOCRSETADDRS, &io) == -1)
fatal("sync_table: cannot set address list");

+ if (rdr->conf.flags & F_STICKY)
+ if (ioctl(env->sc_pf->dev, DIOCCLRSRCNODES, 0) == -1)
+ fatal("sync_table: cannot clear the tree of
source tracking nodes");
+
free(addlist);

log_debug("sync_table: table %s: %d added, %d deleted, %d changed",

best regards
MichaE Koc

Per-Olov SjC6holm pisze:

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
relayd and "src track", Per-Olov , (Thu Apr 17, 8:22 am)
Re: relayd and "src track", Michał Koc, (Fri May 16, 8:12 am)
Re: relayd and "src track", Pierre-Yves Ritschard, (Fri May 16, 10:47 am)
Re: relayd and "src track", Michał Koc, (Sat May 17, 8:57 am)
Re: relayd and "src track", Michał Koc, (Sat May 17, 8:34 am)