Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Dec 1999 10:08:39 -0700
From:      Wes Peters <wes@softweyr.com>
To:        Brian Somers <brian@Awfulhak.org>
Cc:        Warner Losh <imp@village.org>, freebsd-arch@freebsd.org, brian@hak.lan.Awfulhak.org
Subject:   Re: The if_detach problem
Message-ID:  <3857CB17.116DAF99@softweyr.com>
References:  <199912142145.VAA34161@hak.lan.Awfulhak.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Brian Somers wrote:
> 
> >
> > if_detach doesn't, at least not completely.
> >
> > That's a problem when you want to remove interfaces.  One problem is
> > that the routing system caches ifaddr and other things.  There is a
> > mechanism in place that could be used to clean things up.
> >
> > In the protosw there is a ctlinput routine which accepts various
> > commands.  One way to deal with this is to send a new command when ifa
> > goes away.  Right now when we do if_down we send a PRC_IFDOWN.  Maybe
> > we need to invent a new PRC_, say PRC_IFDETACH.  Then we wouldn't need
> > the kludges in if_detach.  The ctlinput routines could then, in the
> > appropriate places, scrub the references to the interface that just
> > went away.
> >
> > I'd like to go down this path, any comments?
> 
> Not comments, but my thoughts....
> 
> Is there a lot to be gained by removing interfaces ?

Think PC Card/CardBus here, Brian.  The interface truly is gone.

-- 
            "Where am I, and what am I doing in this handbasket?"

Wes Peters                                                         Softweyr LLC
wes@softweyr.com                                           http://softweyr.com/




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3857CB17.116DAF99>