int __attribute__((unused)) stats_submitted = 0;
- if (tm->tcm_ifindex != wanted_ifindex)
- {
- DEBUG ("netlink plugin: qos_filter_cb: Got %s for interface #%i, "
- "but expected #%i.",
- tc_type, msg->tcm_ifindex, wanted_ifindex);
- return MNL_CB_OK;
- }
-
if (nlh->nlmsg_type == RTM_NEWQDISC)
tc_type = "qdisc";
else if (nlh->nlmsg_type == RTM_NEWTCLASS)
return MNL_CB_ERROR;
}
+ if (tm->tcm_ifindex != wanted_ifindex)
+ {
+ DEBUG ("netlink plugin: qos_filter_cb: Got %s for interface #%i, "
+ "but expected #%i.",
+ tc_type, tm->tcm_ifindex, wanted_ifindex);
+ return MNL_CB_OK;
+ }
+
if ((tm->tcm_ifindex >= 0)
&& ((size_t) tm->tcm_ifindex >= iflist_len))
{
}
DEBUG ("netlink plugin: qos_filter_cb: got %s for %s (%i).",
- tc_type, dev, msg->tcm_ifindex);
+ tc_type, dev, tm->tcm_ifindex);
if (check_ignorelist (dev, tc_type, tc_inst))
return MNL_CB_OK;