Herbert Xu wrote:
> [IPSEC] Use TOS when doing tunnel lookups
> 
> We should use the TOS because it's one of the routing keys.  It also
> means that we update the correct routing cache entry when PMTU occurs.
> 
> Signed-off-by: Herbert Xu <[EMAIL PROTECTED]>
> 
> Cheers,
> 
> 
> ------------------------------------------------------------------------
> 
> diff --git a/net/ipv4/xfrm4_policy.c b/net/ipv4/xfrm4_policy.c
> --- a/net/ipv4/xfrm4_policy.c
> +++ b/net/ipv4/xfrm4_policy.c
> @@ -61,7 +61,8 @@ __xfrm4_bundle_create(struct xfrm_policy
>               .nl_u = {
>                       .ip4_u = {
>                               .saddr = local,
> -                             .daddr = remote
> +                             .daddr = remote,
> +                             .tos = fl->fl4_tos
>                       }
>               }
>       };

I think you also need to add tos to the keys used in __xfrm4_find_bundle
to avoid using a cached bundle with an incorrect tos value.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to