Skip to contentSkip to conversation

tc: u32: Fix firstfrag filter.

PATCH New Hiroaki SHIMODA 1 participant 1 message Jul 10, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tc: u32: Fix firstfrag filter.

On current firstfrag filter, all non fragmented packets are matched. firstfrag should check MF bit.

---
Maybe no one uses this filter.

 tc/f_u32.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tc/f_u32.c +1 -1
index 7a04634..66c3247 100644
@@ -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);
Signature · 1 line
1.7.8.6