[quagga-dev 3865] Re: Question about date & time changing in QUAGGA .

Vincent Jardin Vincent.Jardin at 6wind.com
Mon Dec 5 11:55:05 GMT 2005


Yes, you are right. The logic of gettimeofday(), which is used into 
lib/thread.c, needs to be changed.
See the functions timeval_xxx .

Sorry,
  Vincent

Yossi Boaron wrote:

>
> Hi
>
> The thread timer scheduler in QUAGGA is implemented using absolute 
> time and not relative time (thread.c).
>
> I think that changing system date (clock) can damaged(even stop) 
> QUAGGA functionality.
>
> Assume the following scenario :
>
> 1. Current date&time is : 12:53:12      Dec 05 2005
>
> 2. I'm adding two timers for QUAGGA scheduler
>
>         A. run function F1 after 60 seconds (12:54:12 Dec 05 2005).
>
>         B. run function F2 after 120 seconds(12:55:12 Dec 05 2005).
>
> 3. I'm changing date&time to : 12:53:12         Dec 05 2004
>
>
> functions F1,F2 will be called by QUAGGA scheduler only 
> .................. one year from now.
>
> Am I missing something ? Is there any option to change date & time 
> without affecting QUAGGA?
>
> Thanks
>
> Yossi
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Quagga-dev mailing list
>Quagga-dev at lists.quagga.net
>http://lists.quagga.net/mailman/listinfo/quagga-dev
>  
>




More information about the Quagga-dev mailing list