mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-13 17:13:58 +00:00
tc: Fix filter protocol output
Fixes: 249284ff5a
("tc: jsonify filter core")
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
This commit is contained in:
parent
a366508913
commit
24a5a48e27
@ -276,7 +276,7 @@ int print_filter(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
|
|||||||
if (!filter_protocol || filter_protocol != f_proto) {
|
if (!filter_protocol || filter_protocol != f_proto) {
|
||||||
if (f_proto) {
|
if (f_proto) {
|
||||||
SPRINT_BUF(b1);
|
SPRINT_BUF(b1);
|
||||||
print_string(PRINT_JSON, "protocol",
|
print_string(PRINT_ANY, "protocol",
|
||||||
"protocol %s ",
|
"protocol %s ",
|
||||||
ll_proto_n2a(f_proto, b1, sizeof(b1)));
|
ll_proto_n2a(f_proto, b1, sizeof(b1)));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user