patch-2.4.25 linux-2.4.25/net/core/dev.c

Next file: linux-2.4.25/net/core/ethtool.c
Previous file: linux-2.4.25/net/bluetooth/hci_sock.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/net/core/dev.c linux-2.4.25/net/core/dev.c
@@ -1501,8 +1501,8 @@
 #endif /* CONFIG_NET_DIVERT */
 			
 #if defined(CONFIG_BRIDGE) || defined(CONFIG_BRIDGE_MODULE)
-	if (skb->dev->br_port != NULL &&
-	    br_handle_frame_hook != NULL) {
+	if (skb->dev->br_port != NULL && br_handle_frame_hook != NULL &&
+	    skb->pkt_type != PACKET_LOOPBACK) {
 		return handle_bridge(skb, pt_prev);
 	}
 #endif

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