• Herbert Xu's avatar
    [IPSEC]: Set TTL from route. · 6bdde52c
    Herbert Xu authored
    Here is the promised patch that sets the TTL from the route parameter.
    I decided against adding an option to inherit the TTL like IPIP/GRE
    as I think that it doesn't really make sense with IPsec.  But it
    can be easily added later if someone needs it.
    
    This isn't completely right when nested tunnels are involved.  The
    TTL for intervening tunnels should be set from the routes to the
    intervening nodes.  But fixing that involves using information that
    isn't currently in the bundle.  I'll revisit this once the MTU stuff
    is fixed since that'll also involving adding the intervening routes
    to the bundle.
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    Signed-off-by: default avatarDavid S. Miller <davem@redhat.com>
    6bdde52c
xfrm6_output.c 3.4 KB