[1068] in linux-net channel archive
Quick fix for the reifconfig and the mod unload problem
daemon@ATHENA.MIT.EDU (Alan Cox)
Sun Sep 10 03:06:26 1995
Date: Thu, 7 Sep 1995 10:37:50 +0100
From: Alan Cox <alan@cymru.net>
To: linux-net@vger.rutgers.edu, torvalds@cs.helsinki.fi
--- net/core/dev.c.old5 Wed Sep 6 21:05:25 1995
+++ net/core/dev.c Wed Sep 6 21:05:25 1995
@@ -37,6 +37,7 @@
* Richard Kooijman : Timestamp fixes.
* Alan Cox : Wrong field in SIOCGIFDSTADDR
* Alan Cox : Device lock protection.
+ * Alan Cox : Fixed nasty side effect of device close changes.
*
* Cleaned up and recommented by Alan Cox 2nd April 1994. I hope to have
* the rest as well commented in the end.
@@ -1024,6 +1025,11 @@
if ((old_flags & IFF_UP) && ((dev->flags & IFF_UP) == 0))
{
+ /*
+ * Restore IFF_UP so dev_close knows to shut
+ * it down. FIXME: Tidy me up sometime.
+ */
+ dev->flags|=IFF_UP;
ret = dev_close(dev);
}
else