aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/netfilter/xt_DSCP.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/xt_DSCP.c b/net/netfilter/xt_DSCP.c
index fd7500ecadfd..9951e7f85e32 100644
--- a/net/netfilter/xt_DSCP.c
+++ b/net/netfilter/xt_DSCP.c
@@ -128,7 +128,7 @@ tos_tg(struct sk_buff *skb, const struct net_device *in,
128 u_int8_t orig, nv; 128 u_int8_t orig, nv;
129 129
130 orig = ipv4_get_dsfield(iph); 130 orig = ipv4_get_dsfield(iph);
131 nv = (orig & info->tos_mask) ^ info->tos_value; 131 nv = (orig & ~info->tos_mask) ^ info->tos_value;
132 132
133 if (orig != nv) { 133 if (orig != nv) {
134 if (!skb_make_writable(skb, sizeof(struct iphdr))) 134 if (!skb_make_writable(skb, sizeof(struct iphdr)))