diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2010-04-12 18:06:28 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2010-04-12 18:06:28 +0200 |
commit | 1f09fdccb75005a53ba2bb90fb61d4e6f45e8e14 (patch) | |
tree | b24b4a6d6eb7da977d2c1a493d4f8cd3d4a2deba /src/attr.c | |
parent | 0f53ba01cd326130bdf68c2ed69e13007fe75fa3 (diff) | |
download | libmnl-1f09fdccb75005a53ba2bb90fb61d4e6f45e8e14.tar.gz libmnl-1f09fdccb75005a53ba2bb90fb61d4e6f45e8e14.zip |
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 <pablo@netfilter.org>
Diffstat (limited to 'src/attr.c')
-rw-r--r-- | src/attr.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -247,7 +247,7 @@ int mnl_attr_parse(const struct nlmsghdr *nlh, int offset, { int ret = MNL_CB_OK; struct nlattr *attr = mnl_nlmsg_get_payload_offset(nlh, offset); - int len = mnl_nlmsg_get_len(nlh); + int len = nlh->nlmsg_len; while (mnl_attr_ok(attr, len)) { if (cb && (ret = cb(attr, data)) <= MNL_CB_STOP) |