1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-02-18 17:57:27 +03:00

sd-netlink: make traffic control related message can be monitored

This commit is contained in:
Yu Watanabe 2022-01-26 09:53:40 +09:00
parent 1f38b6f9c6
commit 27e93a4b66

View File

@ -977,7 +977,8 @@ int sd_netlink_add_match(
neighbor_groups[] = { RTNLGRP_NEIGH, },
nexthop_groups[] = { RTNLGRP_NEXTHOP, },
route_groups[] = { RTNLGRP_IPV4_ROUTE, RTNLGRP_IPV6_ROUTE, },
rule_groups[] = { RTNLGRP_IPV4_RULE, RTNLGRP_IPV6_RULE, };
rule_groups[] = { RTNLGRP_IPV4_RULE, RTNLGRP_IPV6_RULE, },
tc_groups[] = { RTNLGRP_TC };
const uint32_t *groups;
size_t n_groups;
@ -1016,6 +1017,13 @@ int sd_netlink_add_match(
groups = nexthop_groups;
n_groups = ELEMENTSOF(nexthop_groups);
break;
case RTM_NEWQDISC:
case RTM_DELQDISC:
case RTM_NEWTCLASS:
case RTM_DELTCLASS:
groups = tc_groups;
n_groups = ELEMENTSOF(tc_groups);
break;
default:
return -EOPNOTSUPP;
}