summaryrefslogtreecommitdiffstats
path: root/src
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 /src
parentdb085424d91624a3f01bf7e76ce7e30a02857e88 (diff)
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 'src')
-rw-r--r--src/nlmsg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nlmsg.c b/src/nlmsg.c
index ad387e7..274aa8e 100644
--- a/src/nlmsg.c
+++ b/src/nlmsg.c
@@ -38,12 +38,12 @@ size_t mnl_nlmsg_aligned_size(int len)
}
/**
- * mnl_nlmsg_payload_size - get the size of the payload
+ * mnl_nlmsg_get_payload_len - get the size of the payload
* @nlh: pointer to the header of the netlink message
*
* This function returns the size of the netlink payload
*/
-size_t mnl_nlmsg_payload_size(const struct nlmsghdr *nlh)
+size_t mnl_nlmsg_get_payload_len(const struct nlmsghdr *nlh)
{
return nlh->nlmsg_len - MNL_NLMSG_HDRLEN;
}