summaryrefslogtreecommitdiff
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/rtnl-link-dump2.c b/examples/rtnl-link-dump2.c
index bd93f9d..2276eba 100644
--- a/examples/rtnl-link-dump2.c
+++ b/examples/rtnl-link-dump2.c
@@ -35,7 +35,7 @@ static int data_attr_cb(const struct nlattr *attr, void *data)
static int data_cb(const struct nlmsghdr *nlh, void *data)
{
- struct ifinfomsg *ifm = mnl_nlmsg_get_data(nlh);
+ struct ifinfomsg *ifm = mnl_nlmsg_get_payload(nlh);
int len = mnl_nlmsg_get_len(nlh);
struct nlattr *attr;