[Openswan Users] MTU/DF problem with 2.6

Beschorner Daniel Daniel.Beschorner at facton.com
Tue Feb 14 15:01:12 CET 2006


>OK, perhaps you can use the mtu lock option in ip route.

Thank you Andy, I found a more general solution for the moment.

Since 2.6.13 there seems to be a XFRM_STATE_NOPMTUDISC flag for this case.
In net/ipv4/xfrm4_state.c I simply commented out the "if" line.


static int xfrm4_init_flags(struct xfrm_state *x)
{
        /*if (ipv4_config.no_pmtu_disc)*/
                x->props.flags |= XFRM_STATE_NOPMTUDISC;
        return 0;
}

So only the tunnels are affected, normal pmtud works.

Daniel


More information about the Users mailing list