keepalive timer

Joakim Tjernlund joakim.tjernlund at transmode.se
Sat Nov 6 19:25:30 CET 2010


Ondrej Zajicek <santiago at crfreenet.org> wrote on 2010/11/06 19:24:22:
>
> On Sat, Nov 06, 2010 at 03:54:22PM +0100, Joakim Tjernlund wrote:
> > >
> > > Just came across
> > >
> > >     Keepalive timer:  -22205673/60
> > >
> > > Weird, isn't it?
> >
> > Does bird use gettimeofday() to drive its timers? If so it might
> > be a time jump that caused that.
>
> No, BIRD uses clock_gettime(CLOCK_MONOTONIC, ) if available, otherwise
> it uses time() (which isn't monotonic, but it is used in Linux 2.4.x
> (2.6.x has proper clock_gettime()) and there is a code around it that
> eliminates backward time jumps).

You can use ticks = times(NULL) instead of time()
I do that in Quagga which runs on our 2.4 boards.
You need to work around a bug though to make times()
reliable on Linux




More information about the Bird-users mailing list