Re: Default route and laptop suspend

[email protected] (Christian Weisgerber) Sun, 22 May 2005 01:32:59 +0000 (UTC)
Newsgroups gmane.os.openbsd.ipv6
Message-ID <[email protected]>
Christian Weisgerber <[email protected]> wrote:

> You have a station that uses IPv6 autoconfiguration to obtain its
> address and the default route.  Now you temporarily stop that
> station, e.g. it's a laptop and you put it into suspend mode.  When
> you reawaken it some time later, the default route is gone and you
> either have to explicitly call rtsol(8) or wait some minutes for
> the next regular router advertisement to fly by.

I figured it out on the plane.  The advertised routes all come with
a limited lifetime.  That's standard behavior I wasn't aware of,
so it's normal that they expire (and that timer is apparently
different from the one displayed by netstat -rv).

rtsold(8) doesn't have an event notification interface, it just
polls the interface status.  And since we handle sending router
solicitations in userland, there's no place to insert
powerhook_establish(9).  However, apmd(8) receives various power
transition events and provides the userland interface, so adding a
rtsol(8) call to /etc/apm/resume should take care of the problem.

-- 
Christian "naddy" Weisgerber                          [email protected]