[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZqOgqJWJ9cATghR/@debian>
Date: Fri, 26 Jul 2024 15:12:08 +0200
From: Guillaume Nault <gnault@...hat.com>
To: Ido Schimmel <idosch@...dia.com>
Cc: netdev@...r.kernel.org, netfilter-devel@...r.kernel.org,
davem@...emloft.net, kuba@...nel.org, pabeni@...hat.com,
edumazet@...gle.com, dsahern@...nel.org, pablo@...filter.org,
kadlec@...filter.org, fw@...len.de
Subject: Re: [RFC PATCH net-next 1/3] ipv4: Mask upper DSCP bits and ECN bits
in NETLINK_FIB_LOOKUP family
On Thu, Jul 25, 2024 at 04:17:27PM +0300, Ido Schimmel wrote:
> The NETLINK_FIB_LOOKUP netlink family can be used to perform a FIB
> lookup according to user provided parameters and communicate the result
> back to user space.
>
> However, unlike other users of the FIB lookup API, the upper DSCP bits
> and the ECN bits of the DS field are not masked, which can result in the
> wrong result being returned.
>
> Solve this by masking the upper DSCP bits and the ECN bits using
> IPTOS_RT_MASK.
Reviewed-by: Guillaume Nault <gnault@...hat.com>
Powered by blists - more mailing lists