gre: Fix MTU calculation for bound GRE tunnels
[pandora-kernel.git] / net / ipv4 / ip_gre.c
index cb4a0f4..82c11dd 100644 (file)
@@ -951,7 +951,7 @@ static int ipgre_tunnel_bind_dev(struct net_device *dev)
                        addend += 4;
        }
        dev->needed_headroom = addend + hlen;
                        addend += 4;
        }
        dev->needed_headroom = addend + hlen;
-       mtu -= dev->hard_header_len - addend;
+       mtu -= dev->hard_header_len + addend;
 
        if (mtu < 68)
                mtu = 68;
 
        if (mtu < 68)
                mtu = 68;