diff options
author | Miaohe Lin <linmiaohe@huawei.com> | 2020-08-24 07:44:37 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-08-24 18:12:36 -0700 |
commit | 373c15c2e915178f7bde64a49810b7f48c5ef0bd (patch) | |
tree | bd886e4f2c9de25ca992dd52548efa6dcb177669 /net/ipv4/icmp.c | |
parent | 755114497815bd0931e2d0e95c5aa969dcf4aa25 (diff) | |
download | linux-next-373c15c2e915178f7bde64a49810b7f48c5ef0bd.tar.gz |
net: Use helper macro RT_TOS() in __icmp_send()
Use helper macro RT_TOS() to get tos in __icmp_send().
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/icmp.c')
-rw-r--r-- | net/ipv4/icmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/icmp.c b/net/ipv4/icmp.c index cf36f955bfe6..3b387dc3864f 100644 --- a/net/ipv4/icmp.c +++ b/net/ipv4/icmp.c @@ -690,9 +690,9 @@ 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; + iph->tos; mark = IP4_REPLY_MARK(net, skb_in->mark); if (__ip_options_echo(net, &icmp_param.replyopts.opt.opt, skb_in, opt)) |