From: Phil Sutter Date: Tue, 22 Mar 2016 14:16:23 +0000 (+0100) Subject: tc: pedit: Fix raw op X-Git-Tag: v4.6.0~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a33786b582a29a940cfe1eff826ff5a0548a6d81;p=thirdparty%2Fiproute2.git tc: pedit: Fix raw op The retain value was wrong for u16 and u8 types. Signed-off-by: Phil Sutter Signed-off-by: Stephen Hemminger --- diff --git a/tc/m_pedit.c b/tc/m_pedit.c index 30a6f3673..8ccec8bc4 100644 --- a/tc/m_pedit.c +++ b/tc/m_pedit.c @@ -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; }