From: Hiroaki SHIMODA Date: Tue, 10 Jul 2012 09:53:18 +0000 (+0900) Subject: tc: u32: Fix icmp_code off. X-Git-Tag: v3.5.0~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d62f99fe215b88ae15636380bbaa00dcfdd47e1;p=thirdparty%2Fiproute2.git 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 --- 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;