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

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

diff -u --recursive --new-file v2.3.48/linux/net/core/rtnetlink.c linux/net/core/rtnetlink.c
@@ -171,7 +171,7 @@
 	r->ifi_flags = dev->flags;
 	r->ifi_change = change;
 
-	if (! netif_running(dev))
+	if (!netif_running(dev) || !netif_carrier_ok(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)