xfrm4: strip ECN bits from tos field
Subsystems (3)
PATCH 1/1 xfrm4: strip ECN bits from tos field
otherwise ECT(1) bit will get interpreted as RTO_ONLINK and routing will fail with XfrmOutBundleGenError.
Signed-off-by Ulrich Weber <[email protected]>
--- net/ipv4/xfrm4_policy.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
net/ipv4/xfrm4_policy.c +1 -1
@@ -61,7 +61,7 @@ static int xfrm4_get_saddr(struct net *net,static int xfrm4_get_tos (struct flowi *fl) { -return fl->fl4_tos; +return IPTOS_RT_MASK & fl->fl4_tos;/* Strip ECN bits */ } static int xfrm4_init_path(struct xfrm_dst *path, struct dst_entry *dst,
Signature · 1 line
1.7.0.4
From: Ulrich Weber <[email protected]>
Date: Wed, 22 Sep 2010 18:45:11 +0200
Quoted 4 lines
otherwise ECT(1) bit will get interpreted as
RTO_ONLINKand routing will fail with XfrmOutBundleGenError.Signed-off-by Ulrich Weber <[email protected]>
Applied, thanks a lot.