From: Hiroaki SHIMODA Date: Tue, 10 Jul 2012 10:44:16 +0000 (+0900) Subject: tc: u32: Fix firstfrag filter. X-Git-Tag: v3.5.0~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=690b11f4a6b8;p=thirdparty%2Fiproute2.git tc: u32: Fix firstfrag filter. On current firstfrag filter, all non fragmented packets are matched. firstfrag should check MF bit. Signed-off-by: Hiroaki SHIMODA --- diff --git a/tc/f_u32.c b/tc/f_u32.c index 7a04634f0..66c324721 100644 --- a/tc/f_u32.c +++ b/tc/f_u32.c @@ -513,7 +513,7 @@ static int parse_ip(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) res = pack_key16(sel, 0, 0x3FFF, 6, 0); } else if (strcmp(*argv, "firstfrag") == 0) { argc--; argv++; - res = pack_key16(sel, 0, 0x1FFF, 6, 0); + res = pack_key16(sel, 0x2000, 0x3FFF, 6, 0); } else if (strcmp(*argv, "df") == 0) { argc--; argv++; res = pack_key16(sel, 0x4000, 0x4000, 6, 0);