patch-1.3.22 linux/drivers/net/net_init.c

Next file: linux/drivers/net/ppp.c
Previous file: linux/drivers/net/eql.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.21/linux/drivers/net/net_init.c linux/drivers/net/net_init.c
@@ -350,6 +350,15 @@
 			break;
 		}
 	}
+	/* You can i.e use a interfaces in a route though it is not up.
+	   We call close_dev (which is changed: it will down a device even if
+	   dev->flags==0 (but it will not call dev->stop if IFF_UP
+	   is not set).
+	   This will call notifier_call_chain(&netdev_chain, NETDEV_DOWN, dev),
+	   dev_mc_discard(dev), ....
+	*/
+	dev_close(dev);
+
 	restore_flags(flags);
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this