ChangeSet 1.2229.1.8, 2005/03/18 10:36:23-08:00, [EMAIL PROTECTED]

        [IPV4]: Fix MTU check in ipmr_queue_xmit
        
        Somehow I missed four files with dst_pmtu usages in them.  I'm going
        to split them along the sames lines I did before: bug fixes and then
        the trivial changes.
        
        Here is a patch that replaces dst_pmtu with dst_pmtu in ipmr.c
        since this is straight IPIP tunneling equivalent to what we have
        in ipip.c.
        
        As it is we may send ICMP packets when IPsec is present which is
        exactly what the comment says that we shouldn't do.
         
        Signed-off-by: Herbert Xu <[EMAIL PROTECTED]>
        Signed-off-by: David S. Miller <[EMAIL PROTECTED]>



 ipmr.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


diff -Nru a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c
--- a/net/ipv4/ipmr.c   2005-03-18 14:09:50 -08:00
+++ b/net/ipv4/ipmr.c   2005-03-18 14:09:50 -08:00
@@ -1171,7 +1171,7 @@
 
        dev = rt->u.dst.dev;
 
-       if (skb->len+encap > dst_pmtu(&rt->u.dst) && (ntohs(iph->frag_off) & 
IP_DF)) {
+       if (skb->len+encap > dst_mtu(&rt->u.dst) && (ntohs(iph->frag_off) & 
IP_DF)) {
                /* Do not fragment multicasts. Alas, IPv4 does not
                   allow to send ICMP, so that packets will disappear
                   to blackhole.
-
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

Reply via email to