Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 94e22389 authored by Ulrich Weber's avatar Ulrich Weber Committed by David S. Miller
Browse files

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: default avatarUlrich Weber <uweber@astaro.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3f5a2a71
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,