[ovs-dev] [PATCH 2/3] tunneling: Add fine-grained control of Don't Fragment bit.

Jesse Gross jesse at nicira.com
Fri Apr 29 00:05:29 UTC 2011


On Wed, Apr 27, 2011 at 2:59 PM, Andrew Evans <aevans at nicira.com> wrote:
> @@ -756,7 +755,8 @@ static bool check_mtu(struct sk_buff *skb,
>        if (skb->protocol == htons(ETH_P_IP)) {
>                struct iphdr *iph = ip_hdr(skb);
>
> -               frag_off |= iph->frag_off & htons(IP_DF);
> +               if (df_inherit)
> +                       frag_off = iph->frag_off & htons(IP_DF);

I think you need to something similar for IPv6 as well.



More information about the dev mailing list