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
- Lines: 16
- Date:
Fri Sep 1 09:10:48 1995
- Orig file:
v1.3.21/linux/drivers/net/net_init.c
- Orig date:
Mon Aug 28 14:52:20 1995
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, [email protected]
TCL-scripts by Sam Shen, [email protected]
with Sam's (original) version of this