[Click] Cleanup notification
Beyers Cronje
bcronje at gmail.com
Thu Feb 24 10:24:20 EST 2005
Hi Eddie,
Excellent, DriverManager will do the trick!
My bad, I havent spotted DriverManager element before, there are a lot
of elements to get to know :)
Kind regards
Beyers
On Wed, 23 Feb 2005 20:13:52 -0800, Eddie Kohler <kohler at cs.ucla.edu> wrote:
> Hi Beyers,
>
> How is the router being shut down? If it's being shut down by
> "/click/stop" or similar, then you can use DriverManager like so:
>
> DriverManager(wait_stop /* wait for write to /click/stop */,
> write vrrp.send_shutdown /* call write handler */,
> wait 0.5s /* wait for packet to make its way through router
> */,
> stop)
>
> But this would not work for writing directly to /click/config.
>
> Would this be good enough? I'm not sure about a separate "pre-cleanup"
> stage, because how would one tell when it had completed? If
> pre-cleanup went on forever, what would you do? Etc.
>
> Eddie
>
>
> On Feb 23, 2005, at 6:48 PM, Beyers Cronje wrote:
>
> > Hi,
> >
> > Is there a cleanup stage an element can hook into just before standard
> > cleanup, but while packet processing is still running ?
> >
> > My intent is to let an element, ie a VRRP element send a
> > shutdown/disconnet packet to its peers just before the router shuts
> > down. My current attempt at using standard cleanup(CleanupStage) to do
> > this fails, I presume once the router fires cleanup stage packet
> > processing has already stopped?
> >
> > Can this be done ? Or should I rely on keepalive packets with timeouts
> > ?
> >
> > Regards
> >
> > Beyers
> > _______________________________________________
> > click mailing list
> > click at amsterdam.lcs.mit.edu
> > https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>
>
More information about the click
mailing list