Commit 690b11f4 authored by Hiroaki SHIMODA's avatar Hiroaki SHIMODA Committed by Stephen Hemminger

tc: u32: Fix firstfrag filter.

On current firstfrag filter, all non fragmented packets are matched.
firstfrag should check MF bit.
Signed-off-by: default avatarHiroaki SHIMODA <shimoda.hiroaki@gmail.com>
parent 1d62f99f
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment