summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 95a086a)
raw | patch | inline | side by side (parent: 95a086a)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Mon, 22 Jul 2013 09:23:25 +0000 (11:23 +0200) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Mon, 22 Jul 2013 09:23:25 +0000 (11:23 +0200) |
src/netlink.c | patch | blob | history |
diff --git a/src/netlink.c b/src/netlink.c
index 4ea4fce51b5f302c131106ea77824c68d2f52ecf..ff730e1e9550e90e8d2e278844e175f799e7efb0 100644 (file)
--- a/src/netlink.c
+++ b/src/netlink.c
#include <time.h>
#include <libmnl/libmnl.h>
-//#include <linux/if.h>
-//#include <linux/if_link.h>
typedef struct ir_ignorelist_s
{
}
return (0);
-}
+} /* int update_iflist */
static void check_ignorelist_and_submit (const char *dev,
struct rtnl_link_stats *stats)
DEBUG ("netlink plugin: Ignoring %s/if_detail.", dev);
}
-}
+} /* void check_ignorelist_and_submit */
static int link_filter_cb (const struct nlmsghdr *nlh,
void __attribute__((unused)) *args)
return MNL_CB_ERROR;
}
+ /* Scan attribute list for device name. */
mnl_attr_for_each (attr, nlh, sizeof (*ifm))
{
if (mnl_attr_get_type (attr) != IFLA_IFNAME)
return (-1);
}
- { /* The the ID */
+ { /* The ID */
uint32_t numberic_id;
numberic_id = tm->tcm_handle;