[Click] Timers

Beyers Cronje bcronje at gmail.com
Thu Dec 8 08:39:16 EST 2005


Martin,

Why not add a timer to your neighbor sctructure, so each neighbor will have
their own timer?

Beyers

On 12/8/05, Martin Hoffmann <hoffmann at sra.uni-hannover.de> wrote:
>
> Hello,
>
> I am working on Multicast elements and have a question regarding timers.
>
> PIM-SM (RFC2362) specifies a Neighbor-Timer (a neighbor is another PIM
> capable router). A Neighbor-Timer for each neighbor is used to time out
> the neighbor state.
>
> Is there a way to initialize Click timers dynamically? At startup the
> router does not know how many neighbors there will be.
>
> I thought about using gettimeofday() and storing a time value in the
> vector containing the neighbors. A timer that has been initialized at
> router startup could periodically check the vector if some timers
> expired and take out appropriate actions.
>
> I'm not sure if this is a nice way to solve my problem. Any other ideas
> are highly appreciated.
>
> Regards,
> Martin
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>


More information about the click mailing list