~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to net/netfilter/xt_DSCP.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
        u_int8_t orig, nv;
100
100
 
101
101
        orig = ipv6_get_dsfield(iph);
102
 
        nv   = (orig & info->tos_mask) ^ info->tos_value;
 
102
        nv   = (orig & ~info->tos_mask) ^ info->tos_value;
103
103
 
104
104
        if (orig != nv) {
105
105
                if (!skb_make_writable(skb, sizeof(struct iphdr)))