]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - net/ipv6/ip6_output.c
udp: avoid ufo handling on IP payload compression packets
[mirror_ubuntu-zesty-kernel.git] / net / ipv6 / ip6_output.c
index 6e05d5caa35a9fbc93ef2b17d53fe42737bc4874..5b5f3e8d32d19d2386358b6f36b1df08dade5cb7 100644 (file)
@@ -1389,7 +1389,7 @@ emsgsize:
        if ((((length + fragheaderlen) > mtu) ||
             (skb && skb_is_gso(skb))) &&
            (sk->sk_protocol == IPPROTO_UDP) &&
-           (rt->dst.dev->features & NETIF_F_UFO) && !rt->dst.header_len &&
+           (rt->dst.dev->features & NETIF_F_UFO) && !dst_xfrm(&rt->dst) &&
            (sk->sk_type == SOCK_DGRAM) && !udp_get_no_check6_tx(sk)) {
                err = ip6_ufo_append_data(sk, queue, getfrag, from, length,
                                          hh_len, fragheaderlen, exthdrlen,