Commit 373c15c2 authored by Miaohe Lin's avatar Miaohe Lin Committed by David S. Miller
Browse files

net: Use helper macro RT_TOS() in __icmp_send()



Use helper macro RT_TOS() to get tos in __icmp_send().

Signed-off-by: default avatarMiaohe Lin <linmiaohe@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 75511449
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -690,7 +690,7 @@ void __icmp_send(struct sk_buff *skb_in, int type, int code, __be32 info,
		rcu_read_unlock();
	}

	tos = icmp_pointers[type].error ? ((iph->tos & IPTOS_TOS_MASK) |
	tos = icmp_pointers[type].error ? (RT_TOS(iph->tos) |
					   IPTOS_PREC_INTERNETCONTROL) :
					   iph->tos;
	mark = IP4_REPLY_MARK(net, skb_in->mark);