mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2026-01-26 22:32:50 +00:00
tc: flower: use correct type when calling flower_icmp_attr_type
Use enum flower_icmp_field rather than bool as type of third parameter
when calling flower_icmp_attr_type.
Fixes: eb3b5696f1 ("tc: flower: support matching on ICMP type and code")
Signed-off-by: Simon Horman <simon.horman@netronome.com>
This commit is contained in:
parent
1e5b0e80ff
commit
81f6e5a727
@ -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]);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user