We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ee738e commit 2c77bcbCopy full SHA for 2c77bcb
net/ipv4/ip_gre.c
@@ -926,7 +926,7 @@ static int ipgre_open(struct net_device *dev)
926
if (ipv4_is_multicast(t->parms.iph.daddr)) {
927
struct flowi4 fl4 = {
928
.flowi4_oif = t->parms.link,
929
- .flowi4_tos = t->parms.iph.tos & INET_DSCP_MASK,
+ .flowi4_tos = inet_dscp_to_dsfield(ip4h_dscp(&t->parms.iph)),
930
.flowi4_scope = RT_SCOPE_UNIVERSE,
931
.flowi4_proto = IPPROTO_GRE,
932
.saddr = t->parms.iph.saddr,
0 commit comments