patch-2.3.47 linux/net/core/rtnetlink.c

Next file: linux/net/core/skbuff.c
Previous file: linux/net/core/profile.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.46/linux/net/core/rtnetlink.c linux/net/core/rtnetlink.c
@@ -171,7 +171,7 @@
 	r->ifi_flags = dev->flags;
 	r->ifi_change = change;
 
-	if (test_bit(LINK_STATE_DOWN, &dev->state))
+	if (! netif_running(dev))
 		r->ifi_flags &= ~IFF_RUNNING;
 	else
 		r->ifi_flags |= IFF_RUNNING;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)