summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5ce6bf7)
raw | patch | inline | side by side (parent: 5ce6bf7)
author | Florian Forster <octo@huhu.verplant.org> | |
Thu, 30 Aug 2007 21:35:39 +0000 (23:35 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Thu, 30 Aug 2007 21:35:39 +0000 (23:35 +0200) |
src/netlink.c | patch | blob | history |
diff --git a/src/netlink.c b/src/netlink.c
index 043f023c456af586c293146dc1e5fb24324f74d4..3c8a1fcdf01893a83bc0992f1a78982da647ca72 100644 (file)
--- a/src/netlink.c
+++ b/src/netlink.c
if (check_ignorelist (dev, "interface", NULL) == 0)
{
submit_two (dev, "if_octets", NULL, stats->rx_bytes, stats->tx_bytes);
- submit_two (dev, "if_packets", NULL, stats->rx_bytes, stats->tx_bytes);
- submit_two (dev, "if_errors", NULL, stats->rx_bytes, stats->tx_bytes);
+ submit_two (dev, "if_packets", NULL, stats->rx_packets, stats->tx_packets);
+ submit_two (dev, "if_errors", NULL, stats->rx_errors, stats->tx_errors);
}
else
{
char *tc_type;
char tc_inst[DATA_MAX_NAME_LEN];
- printf ("=== qos_filter ===\n");
-
if (nmh->nlmsg_type == RTM_NEWQDISC)
tc_type = "qdisc";
else if (nmh->nlmsg_type == RTM_NEWTCLASS)
memcpy (&bs, RTA_DATA (attrs_stats[TCA_STATS_BASIC]),
MIN (RTA_PAYLOAD (attrs_stats[TCA_STATS_BASIC]), sizeof(bs)));
- submit_one (dev, "ipt_octets", type_instance, bs.bytes);
+ submit_one (dev, "ipt_bytes", type_instance, bs.bytes);
submit_one (dev, "ipt_packets", type_instance, bs.packets);
}
}