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
- Lines: 15
- Date:
Sat Apr 11 17:18:16 1998
- Orig file:
v2.1.95/linux/net/netrom/nr_route.c
- Orig date:
Mon Jul 7 08:20:00 1997
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, [email protected]
TCL-scripts by Sam Shen, [email protected]