Skip to content

Commit b1251a6

Browse files
idoschkuba-moo
authored andcommitted
ipv4: Unmask upper DSCP bits in RTM_GETROUTE input route lookup
Unmask the upper DSCP bits when looking up an input route via the RTM_GETROUTE netlink message so that in the future the lookup could be performed according to the full DSCP value. No functional changes intended since the upper DSCP bits are masked when comparing against the TOS selectors in FIB rules and routes. Signed-off-by: Ido Schimmel <[email protected]> Reviewed-by: Guillaume Nault <[email protected]> Acked-by: Florian Westphal <[email protected]> Reviewed-by: David Ahern <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent df9131c commit b1251a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv4/route.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3286,7 +3286,7 @@ static int inet_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh,
32863286
skb->dev = dev;
32873287
skb->mark = mark;
32883288
err = ip_route_input_rcu(skb, dst, src,
3289-
rtm->rtm_tos & IPTOS_RT_MASK, dev,
3289+
rtm->rtm_tos & INET_DSCP_MASK, dev,
32903290
&res);
32913291

32923292
rt = skb_rtable(skb);

0 commit comments

Comments
 (0)