[PATCH] tunneling icmp patch

Friedrich Lobenstock (fl@fl.priv.at)
Thu, 06 May 1999 10:34:23 +0200


It might just be cosmetic but I think if we configure a ip-in-ip
tunnel all icmp packages traversing the tunnel should reach the
tunnel endpoint with "one hop" and not get rejected by a host inbetween
the tunnelendpoints just because ttl reached 0.

MfG / Regards
Friedrich

diff -urN linux-2.2.7.orig/net/ipv4/ipip.c linux-2.2.7.new/net/ipv4/ipip.c
--- linux-2.2.7.orig/net/ipv4/ipip.c Thu Mar 25 18:23:34 1999
+++ linux-2.2.7.new/net/ipv4/ipip.c Thu May 6 10:18:21 1999
@@ -593,8 +593,11 @@
iph->daddr = rt->rt_dst;
iph->saddr = rt->rt_src;

- if ((iph->ttl = tiph->ttl) == 0)
- iph->ttl = old_iph->ttl;
+// if ((iph->ttl = tiph->ttl) == 0)
+// iph->ttl = old_iph->ttl;
+ /* fl@fl.priv.at 1999-05-05 */
+ /* hopefully high enough to reach the end of the tunnel */
+ iph->ttl = IPDEFTTL;

iph->tot_len = htons(skb->len);
iph->id = htons(ip_id_count++);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/