Skip to contentSkip to conversation

tc: u32: Fix icmp_code off.

PATCH In review Hiroaki SHIMODA 2 participants 2 messages Jul 10, 2012

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

PATCH 1/1 tc: u32: Fix icmp_code off.

The off of icmp_code is not 20 but 21. Also offmask should be 0 unless nexthdr+ is specified.

---
 tc/f_u32.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tc/f_u32.c +1 -1
index 975c0b5..7a04634 100644
@@ -531,7 +531,7 @@ static int parse_ip(int *argc_p, char ***argv_p, struct tc_u32_sel *sel)
 		res = parse_u8(&argc, &argv, sel, 20, 0);
 	} else if (strcmp(*argv, "icmp_code") == 0) {
 		NEXT_ARG();
-		res = parse_u8(&argc, &argv, sel, 20, 1);
+		res = parse_u8(&argc, &argv, sel, 21, 0);
 	} else
 		return -1;
 
Signature · 1 line
1.7.8.6