summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a980419)
raw | patch | inline | side by side (parent: a980419)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Thu, 18 Jul 2013 10:07:35 +0000 (12:07 +0200) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Thu, 18 Jul 2013 10:07:35 +0000 (12:07 +0200) |
src/netlink.c | patch | blob | history |
diff --git a/src/netlink.c b/src/netlink.c
index 59c21cce6aa454d6e1f1fe42b49493200b17ce04..0c06e78afdb26b07114f3e1edf056b036a7e740f 100644 (file)
--- a/src/netlink.c
+++ b/src/netlink.c
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;