diff options
author | Guillaume Nault <gnault@redhat.com> | 2022-01-10 14:43:06 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-01-11 20:36:08 -0800 |
commit | 23e7b1bfed61e301853b5e35472820d919498278 (patch) | |
tree | 549b4fea8308a48d1b0030edc194f9b2f3cf12cc /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 274c224062ff9545d8df2a6e4764a5fd660d792e (diff) |
xfrm: Don't accidentally set RTO_ONLINK in decode_session4()
Similar to commit 94e2238969e8 ("xfrm4: strip ECN bits from tos field"),
clear the ECN bits from iph->tos when setting ->flowi4_tos.
This ensures that the last bit of ->flowi4_tos is cleared, so
ip_route_output_key_hash() isn't going to restrict the scope of the
route lookup.
Use ~INET_ECN_MASK instead of IPTOS_RT_MASK, because we have no reason
to clear the high order bits.
Found by code inspection, compile tested only.
Fixes: 4da3089f2b58 ("[IPSEC]: Use TOS when doing tunnel lookups")
Signed-off-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions