All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH iproute2] tc: u32: Fix firstfrag filter.
@ 2012-07-10 10:44 Hiroaki SHIMODA
  0 siblings, 0 replies; only message in thread
From: Hiroaki SHIMODA @ 2012-07-10 10:44 UTC (permalink / raw)
  To: shemminger; +Cc: netdev

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

Signed-off-by: Hiroaki SHIMODA <shimoda.hiroaki@gmail.com>
---
Maybe no one uses this filter.

 tc/f_u32.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tc/f_u32.c b/tc/f_u32.c
index 7a04634..66c3247 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);
-- 
1.7.8.6

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-07-10 10:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-10 10:44 [PATCH iproute2] tc: u32: Fix firstfrag filter Hiroaki SHIMODA

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.