patch-2.2.2 linux/net/ipv4/icmp.c
Next file: linux/net/ipv4/ip_masq_mfw.c
Previous file: linux/net/ipv4/fib_semantics.c
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
Thu Feb 18 19:15:41 1999
- Orig file:
v2.2.1/linux/net/ipv4/icmp.c
- Orig date:
Thu Jan 7 15:11:41 1999
diff -u --recursive --new-file v2.2.1/linux/net/ipv4/icmp.c linux/net/ipv4/icmp.c
@@ -402,6 +402,10 @@
if (type == ICMP_DEST_UNREACH && code == ICMP_FRAG_NEEDED)
return 1;
+ /* No rate limit on loopback */
+ if (dst->dev && (dst->dev->flags&IFF_LOOPBACK))
+ return 1;
+
return xrlim_allow(dst, *(icmp_pointers[type].timeout));
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)