]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
tc: flower: use correct type when calling flower_icmp_attr_type
authorSimon Horman <simon.horman@netronome.com>
Wed, 8 Feb 2017 12:04:31 +0000 (13:04 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 8 Feb 2017 19:37:44 +0000 (11:37 -0800)
Use enum flower_icmp_field rather than bool as type of third parameter
when calling flower_icmp_attr_type.

Fixes: eb3b5696f163 ("tc: flower: support matching on ICMP type and code")
Signed-off-by: Simon Horman <simon.horman@netronome.com>
tc/f_flower.c

index 403100c92af0eeadac7cd4d088e8d00585f78892..c9d56211b04094a79fb0baffb71fff6cb81cc7e2 100644 (file)
@@ -1061,10 +1061,12 @@ static int flower_print_opt(struct filter_util *qu, FILE *f,
        if (nl_type >= 0)
                flower_print_port(f, "src_port", tb[nl_type]);
 
-       nl_type = flower_icmp_attr_type(eth_type, ip_proto, false);
+       nl_type = flower_icmp_attr_type(eth_type, ip_proto,
+                                       FLOWER_ICMP_FIELD_TYPE);
        if (nl_type >= 0)
                flower_print_icmp(f, "icmp_type", tb[nl_type]);
-       nl_type = flower_icmp_attr_type(eth_type, ip_proto, true);
+       nl_type = flower_icmp_attr_type(eth_type, ip_proto,
+                                       FLOWER_ICMP_FIELD_CODE);
        if (nl_type >= 0)
                flower_print_icmp(f, "icmp_code", tb[nl_type]);