Skip to content

Commit 1c6f50b

Browse files
idoschkuba-moo
authored andcommitted
ipv4: icmp: Pass full DS field to ip_route_input()
Align the ICMP code to other callers of ip_route_input() and pass the full DS field. In the future this will allow us to perform a route lookup 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 b1251a6 commit 1c6f50b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv4/icmp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ static struct rtable *icmp_route_lookup(struct net *net,
545545
orefdst = skb_in->_skb_refdst; /* save old refdst */
546546
skb_dst_set(skb_in, NULL);
547547
err = ip_route_input(skb_in, fl4_dec.daddr, fl4_dec.saddr,
548-
RT_TOS(tos), rt2->dst.dev);
548+
tos, rt2->dst.dev);
549549

550550
dst_release(&rt2->dst);
551551
rt2 = skb_rtable(skb_in);

0 commit comments

Comments
 (0)