]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
tc: flower: Fix flower output for src and dst ports
authorRoi Dayan <roid@mellanox.com>
Sun, 15 Jan 2017 14:23:49 +0000 (16:23 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 17 Jan 2017 16:45:22 +0000 (08:45 -0800)
This fix a missing use case after the introduction of enum flower_endpoint.

Fixes: 6910d65661a3 ("tc: flower: introduce enum flower_endpoint")
Signed-off-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Paul Blakey <paulb@mellanox.com>
tc/f_flower.c

index 71e9515f501ad39205288580b561a5b05d338812..1dbc5320f14f71abb3a85b04c9ba5b284d17eed6 100644 (file)
@@ -744,10 +744,10 @@ static int flower_print_opt(struct filter_util *qu, FILE *f,
                             tb[TCA_FLOWER_KEY_IPV6_SRC],
                             tb[TCA_FLOWER_KEY_IPV6_SRC_MASK]);
 
-       nl_type = flower_port_attr_type(ip_proto, false);
+       nl_type = flower_port_attr_type(ip_proto, FLOWER_ENDPOINT_DST);
        if (nl_type >= 0)
                flower_print_port(f, "dst_port", tb[nl_type]);
-       nl_type = flower_port_attr_type(ip_proto, true);
+       nl_type = flower_port_attr_type(ip_proto, FLOWER_ENDPOINT_SRC);
        if (nl_type >= 0)
                flower_print_port(f, "src_port", tb[nl_type]);