From 1d62f99fe215b88ae15636380bbaa00dcfdd47e1 Mon Sep 17 00:00:00 2001 From: Hiroaki SHIMODA Date: Tue, 10 Jul 2012 18:53:18 +0900 Subject: [PATCH] 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. Signed-off-by: Hiroaki SHIMODA --- tc/f_u32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tc/f_u32.c b/tc/f_u32.c index 975c0b5d0..7a04634f0 100644 --- a/tc/f_u32.c +++ b/tc/f_u32.c @@ -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; -- 2.47.2