summaryrefslogtreecommitdiffstats
path: root/examples/rtnl-link-dump3.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/rtnl-link-dump3.c')
-rw-r--r--examples/rtnl-link-dump3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/rtnl-link-dump3.c b/examples/rtnl-link-dump3.c
index 87a15a5..6da62ad 100644
--- a/examples/rtnl-link-dump3.c
+++ b/examples/rtnl-link-dump3.c
@@ -25,8 +25,8 @@ static int data_cb(const struct nlmsghdr *nlh, void *data)
mnl_attr_for_each(attr, nlh, sizeof(*ifm)) {
int type = mnl_attr_get_type(attr);
- if (mnl_attr_type_ok(attr, IFLA_MAX) < 0) {
- perror("mnl_attr_type_ok");
+ if (mnl_attr_type_valid(attr, IFLA_MAX) < 0) {
+ perror("mnl_attr_type_valid");
return MNL_CB_ERROR;
}
switch(type) {