Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Mar 2007 07:20:49 +1300
From:      Andrew Thompson <thompsa@freebsd.org>
To:        Yar Tikhiy <yar@FreeBSD.org>
Cc:        cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sbin/ifconfig ifconfig.c
Message-ID:  <20070312182049.GB80764@heff.fud.org.nz>
In-Reply-To: <200703121308.l2CD8urI098047@repoman.freebsd.org>
References:  <200703121308.l2CD8urI098047@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Mar 12, 2007 at 01:08:56PM +0000, Yar Tikhiy wrote:
> yar         2007-03-12 13:08:56 UTC
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sbin/ifconfig        ifconfig.c 
>   Log:
>   Attempt to load the kernel module only if we are going to create a
>   new interface.  In other cases loading the module is unwanted and
>   can lead to ill side effects.  One such effect found is as follows:
>   "kldunload if_foo" tells the module to kill all its interfaces,
>   which results in messages sent to devd; the module unloads.  Then
>   devd starts processing the messages, which ends up in a etc script
>   running ifconfig fooX, which reloads the module.
   
Great catch! I had been wondering why it had been necessary to unload
networking modules twice lately.


Andrew



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070312182049.GB80764>