diff options
author | 2024-08-29 09:54:52 +0300 | |
---|---|---|
committer | 2024-08-31 17:44:51 +0100 | |
commit | 356d054a4967e6190ee558b8e839fad3e9db35ec (patch) | |
tree | da8b03096c4d9eef45a025db63d69679a10e2731 /lib/test_bpf.c | |
parent | ipv4: Unmask upper DSCP bits in ip_sock_rt_tos() (diff) | |
download | wireguard-linux-356d054a4967e6190ee558b8e839fad3e9db35ec.tar.xz wireguard-linux-356d054a4967e6190ee558b8e839fad3e9db35ec.zip |
ipv4: Unmask upper DSCP bits in get_rttos()
The function is used by a few socket types to retrieve the TOS value
with which to perform the FIB lookup for packets sent through the socket
(flowi4_tos). If a DS field was passed using the IP_TOS control message,
then it is used. Otherwise the one specified via the IP_TOS socket
option.
Unmask the upper DSCP bits so that in the future the 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>
Diffstat (limited to 'lib/test_bpf.c')
0 files changed, 0 insertions, 0 deletions