[netfilter-cvslog] CVS update: netfilter-ha/ct_sync
Krisztian Kovacs
hidden@cvs.netfilter.org
Tue, 06 Jul 2004 18:47:42 +0200
Date: Tue Jul 6 18:47:42 2004
Author: hidden
Update of /cvsroot/netfilter-ha/ct_sync
In directory coruscant.gnumonks.org:/tmp/cvs-serv8927/ct_sync
Modified Files:
ct_sync_main.c ct_sync_proto.c ct_sync_proto.h cts_buff.h
Log Message:
Added timeout handling for messages. Now every buffer has a timestamp,
which is set to jiffies when the first message is written. The main loop
of the sender thread uses schedule_timeout() instead of schedule() and
wakes up every HZ jiffies to check if the current buffer is older than
CT_SYNC_MAX_MSG_AGE. If it is, it just forces allocation of a new buffer,
and advances the current pointer of the send ring, so that the next
iteration of the loop will send the packet.
A few comments were added at a couple of places.
Revisions:
ct_sync_main.c 1.27 => 1.28
http://cvs.netfilter.org/netfilter-ha/ct_sync/ct_sync_main.c?r1=1.27&r2=1.28
ct_sync_proto.c 1.25 => 1.26
http://cvs.netfilter.org/netfilter-ha/ct_sync/ct_sync_proto.c?r1=1.25&r2=1.26
ct_sync_proto.h 1.7 => 1.8
http://cvs.netfilter.org/netfilter-ha/ct_sync/ct_sync_proto.h?r1=1.7&r2=1.8
cts_buff.h 1.7 => 1.8
http://cvs.netfilter.org/netfilter-ha/ct_sync/cts_buff.h?r1=1.7&r2=1.8