summaryrefslogtreecommitdiff
path: root/include/libmnl
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2010-04-05 18:23:25 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2010-04-05 18:23:25 +0200
commitadae0f1a8967e5e853c98a336c51553c07c1d269 (patch)
tree24976e56a800dd4f922394441573329ea4003500 /include/libmnl
parentdb085424d91624a3f01bf7e76ce7e30a02857e88 (diff)
downloadlibmnl-adae0f1a8967e5e853c98a336c51553c07c1d269.tar.gz
libmnl-adae0f1a8967e5e853c98a336c51553c07c1d269.zip
rename mnl_nlmsg_payload_size() to mnl_nlmsg_get_payload_len() for consistency
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/libmnl')
-rw-r--r--include/libmnl/libmnl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/libmnl/libmnl.h b/include/libmnl/libmnl.h
index 5d05b19..b7e72c8 100644
--- a/include/libmnl/libmnl.h
+++ b/include/libmnl/libmnl.h
@@ -35,7 +35,7 @@ extern int mnl_socket_getsockopt(const struct mnl_socket *nl, int type, void *bu
extern size_t mnl_nlmsg_size(int len);
extern size_t mnl_nlmsg_total_size(int len);
-extern size_t mnl_nlmsg_payload_size(const struct nlmsghdr *nlh);
+extern size_t mnl_nlmsg_get_payload_len(const struct nlmsghdr *nlh);
/* Netlink message header builder */
extern struct nlmsghdr *mnl_nlmsg_put_header(void *buf);
@@ -112,7 +112,7 @@ extern int mnl_attr_ok(const struct nlattr *attr, int len);
extern struct nlattr *mnl_attr_next(const struct nlattr *attr, int *len);
#define mnl_attr_for_each(attr, nlh, offset) \
- int __len__ = mnl_nlmsg_payload_size(nlh); \
+ int __len__ = mnl_nlmsg_get_payload_len(nlh); \
for (attr = mnl_nlmsg_get_data_offset(nlh, offset); \
mnl_attr_ok(attr, __len__); \
attr = mnl_attr_next(attr, &(__len__)))