sit: replace 68 with micro IPV4_MIN_MTU
authorzhang kai <zhangkaiheb@126.com>
Wed, 2 Jun 2021 01:50:39 +0000 (09:50 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Jun 2021 20:28:05 +0000 (13:28 -0700)
Use meaningfull micro IPV4_MIN_MTU

Signed-off-by: zhang kai <zhangkaiheb@126.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/sit.c

index aa98294..71b57bd 100644 (file)
@@ -970,7 +970,7 @@ static netdev_tx_t ipip6_tunnel_xmit(struct sk_buff *skb,
        if (df) {
                mtu = dst_mtu(&rt->dst) - t_hlen;
 
-               if (mtu < 68) {
+               if (mtu < IPV4_MIN_MTU) {
                        dev->stats.collisions++;
                        ip_rt_put(rt);
                        goto tx_error;