ChangeSet 1.2009.16.4, 2005/03/14 21:26:23-08:00, [EMAIL PROTECTED]
[IPSEC]: Fix room calculation in icmp_send
I'm now cleaning up all users of dst_pmtu with the aim of replacing
dst_pmtu with dst_mtu. I'm going to start with the ones that actually
fix bugs.
This patch fixes the length calculation in icmp_send. As it is
we're overestimating the space available by including the space
that would be used up by IPsec encapsulation.
IPv6 doesn't have this problem since its calculation is based
on 1280 instead of the PMTU.
Signed-off-by: Herbert Xu <[EMAIL PROTECTED]>
Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
icmp.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -Nru a/net/ipv4/icmp.c b/net/ipv4/icmp.c
--- a/net/ipv4/icmp.c 2005-03-15 00:07:53 -08:00
+++ b/net/ipv4/icmp.c 2005-03-15 00:07:53 -08:00
@@ -560,7 +560,7 @@
/* RFC says return as much as we can without exceeding 576 bytes. */
- room = dst_pmtu(&rt->u.dst);
+ room = dst_mtu(&rt->u.dst);
if (room > 576)
room = 576;
room -= sizeof(struct iphdr) + icmp_param.replyopts.optlen;
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html