]> www.infradead.org Git - users/willy/xarray.git/commit
ipv4: Unmask upper DSCP bits in ip_sock_rt_tos()
authorIdo Schimmel <idosch@nvidia.com>
Thu, 29 Aug 2024 06:54:51 +0000 (09:54 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 31 Aug 2024 16:44:51 +0000 (17:44 +0100)
commitff95cb5e521b60d046e6571ada697a0977b189c3
treeca5e5015e1eeb4dc307753e426100f804835e25f
parent4805646c42e51d2fbf142864d281473ad453ad5d
ipv4: Unmask upper DSCP bits in ip_sock_rt_tos()

The function is used to read the DS field that was stored in IPv4
sockets via the IP_TOS socket option so that it could be used to
initialize the flowi4_tos field before resolving an output route.

Unmask the upper DSCP bits so that in the future the output route lookup
could be performed according to the full DSCP value.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/route.h