summaryrefslogtreecommitdiffstats
path: root/examples/rtnl-link-dump2.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/rtnl-link-dump2.c')
-rw-r--r--examples/rtnl-link-dump2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/rtnl-link-dump2.c b/examples/rtnl-link-dump2.c
index 3c62006..d333071 100644
--- a/examples/rtnl-link-dump2.c
+++ b/examples/rtnl-link-dump2.c
@@ -9,8 +9,8 @@
static int data_attr_cb(const struct nlattr *attr, void *data)
{
- if (mnl_attr_type_invalid(attr, IFLA_MAX) < 0) {
- perror("mnl_attr_type_invalid");
+ if (mnl_attr_type_ok(attr, IFLA_MAX) < 0) {
+ perror("mnl_attr_type_ok");
return MNL_CB_ERROR;
}