patch-2.2.4 linux/net/ipv6/icmp.c
Next file: linux/net/ipv6/ip6_fib.c
Previous file: linux/net/ipv6/addrconf.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Sun Mar 21 07:22:00 1999
- Orig file:
v2.2.3/linux/net/ipv6/icmp.c
- Orig date:
Mon Oct 5 13:13:49 1998
diff -u --recursive --new-file v2.2.3/linux/net/ipv6/icmp.c linux/net/ipv6/icmp.c
@@ -5,7 +5,7 @@
* Authors:
* Pedro Roque <roque@di.fc.ul.pt>
*
- * $Id: icmp.c,v 1.20 1998/10/03 09:38:31 davem Exp $
+ * $Id: icmp.c,v 1.21 1999/03/21 05:22:51 davem Exp $
*
* Based on net/ipv4/icmp.c
*
@@ -200,9 +200,11 @@
* this lookup should be more aggressive (not longer than timeout).
*/
dst = ip6_route_output(sk, fl);
- if (dst->error)
+ if (dst->error) {
ipv6_statistics.Ip6OutNoRoutes++;
- else {
+ } else if (dst->dev && (dst->dev->flags&IFF_LOOPBACK)) {
+ res = 1;
+ } else {
struct rt6_info *rt = (struct rt6_info *)dst;
int tmo = sysctl_icmpv6_time;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)