patch-2.1.96 linux/net/netrom/nr_route.c

Next file: linux/net/netrom/nr_subr.c
Previous file: linux/net/netrom/nr_loopback.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.95/linux/net/netrom/nr_route.c linux/net/netrom/nr_route.c
@@ -697,8 +697,12 @@
 		nr_add_node(nr_src, "", &ax25->dest_addr, ax25->digipeat,
 			    ax25->ax25_dev->dev, 0, sysctl_netrom_obsolescence_count_initialiser);
 
-	if ((dev = nr_dev_get(nr_dest)) != NULL)	/* Its for me */
-		return nr_rx_frame(skb, dev);
+	if ((dev = nr_dev_get(nr_dest)) != NULL) {	/* Its for me */
+		if (ax25 == NULL)			/* Its from me */
+			return nr_loopback_queue(skb);
+		else
+			return nr_rx_frame(skb, dev);
+	}
 
 	if (!sysctl_netrom_routing_control && ax25 != NULL)
 		return 0;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov