]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
tc: u32: Fix firstfrag filter.
authorHiroaki SHIMODA <shimoda.hiroaki@gmail.com>
Tue, 10 Jul 2012 10:44:16 +0000 (19:44 +0900)
committerStephen Hemminger <shemminger@vyatta.com>
Tue, 10 Jul 2012 22:39:02 +0000 (15:39 -0700)
On current firstfrag filter, all non fragmented packets are matched.
firstfrag should check MF bit.

Signed-off-by: Hiroaki SHIMODA <shimoda.hiroaki@gmail.com>
tc/f_u32.c

index 7a04634f063acf98159e5ee11c19ba0328dacf7e..66c3247213f67c4f06b9d435e797cca589dec86b 100644 (file)
@@ -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);