]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
tc: pedit: Fix raw op
authorPhil Sutter <phil@nwl.cc>
Tue, 22 Mar 2016 14:16:23 +0000 (15:16 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Sun, 27 Mar 2016 17:34:36 +0000 (10:34 -0700)
The retain value was wrong for u16 and u8 types.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
tc/m_pedit.c

index 30a6f3673e896b8a5ed04d6690a101fa6387691b..8ccec8bc4a99f56bf2d505517cbf2fc6691e9c92 100644 (file)
@@ -339,12 +339,12 @@ parse_offset(int *argc_p, char ***argv_p, struct tc_pedit_sel *sel, struct tc_pe
        }
        if (matches(*argv, "u16") == 0) {
                len = 2;
-               retain = 0x0;
+               retain = 0xffff;
                goto done;
        }
        if (matches(*argv, "u8") == 0) {
                len = 1;
-               retain = 0x0;
+               retain = 0xff;
                goto done;
        }