From 1f09fdccb75005a53ba2bb90fb61d4e6f45e8e14 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 12 Apr 2010 18:06:28 +0200 Subject: remove mnl_nlmsg_get_len() function Remove mnl_nlmsg_get_len() since it returns a field of a structure that is public (struct nlmsghdr). We can directly access the header fields and they are not likely to change in the future (at least for this version of Netlink I think). Signed-off-by: Pablo Neira Ayuso --- examples/rtnl-link-event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/rtnl-link-event.c') diff --git a/examples/rtnl-link-event.c b/examples/rtnl-link-event.c index 1f3ceaf..17f479f 100644 --- a/examples/rtnl-link-event.c +++ b/examples/rtnl-link-event.c @@ -39,7 +39,7 @@ static int data_cb(const struct nlmsghdr *nlh, void *data) { struct nlattr *tb[IFLA_MAX+1] = {}; struct ifinfomsg *ifm = mnl_nlmsg_get_payload(nlh); - int len = mnl_nlmsg_get_len(nlh); + int len = nlh->nlmsg_len; struct nlattr *attr; printf("index=%d type=%d flags=%d family=%d ", -- cgit v1.2.3