]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
tc: u32: Fix icmp_code off.
authorHiroaki SHIMODA <shimoda.hiroaki@gmail.com>
Tue, 10 Jul 2012 09:53:18 +0000 (18:53 +0900)
committerStephen Hemminger <shemminger@vyatta.com>
Tue, 10 Jul 2012 22:39:02 +0000 (15:39 -0700)
The off of icmp_code is not 20 but 21. Also offmask should be 0 unless
nexthdr+ is specified.

Signed-off-by: Hiroaki SHIMODA <shimoda.hiroaki@gmail.com>
tc/f_u32.c

index 975c0b5d035ae67c26fa2f2a6341a0ae733d09f8..7a04634f063acf98159e5ee11c19ba0328dacf7e 100644 (file)
@@ -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;