cvs commit: src/sbin/ifconfig ifconfig.c
Andrew Thompson
thompsa at freebsd.org
Mon Mar 12 18:33:21 UTC 2007
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
More information about the cvs-src
mailing list