]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ipv4: icmp: Unmask upper DSCP bits in icmp_route_lookup()
authorIdo Schimmel <idosch@nvidia.com>
Thu, 29 Aug 2024 06:54:50 +0000 (09:54 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 31 Aug 2024 16:44:51 +0000 (17:44 +0100)
commit4805646c42e51d2fbf142864d281473ad453ad5d
treea93bb76252682bbcaa2bdf7465b86e4702ebe41c
parenta63cef46adcbedd4f4ea7401773a310edca53131
ipv4: icmp: Unmask upper DSCP bits in icmp_route_lookup()

The function is called to resolve a route for an ICMP message that is
sent in response to a situation. Based on the type of the generated ICMP
message, the function is either passed the DS field of the packet that
generated the ICMP message or a DS field that is derived from it.

Unmask the upper DSCP bits before resolving and output route via
ip_route_output_key_hash() 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>
net/ipv4/icmp.c