summaryrefslogtreecommitdiffstats
path: root/src/msg.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2010-03-22 12:18:23 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2010-03-22 12:18:23 +0100
commitc5a4f3d7738f8172de40112cf4a02fbd4b0a9902 (patch)
tree59eaf378e4ec4762c921d5d869fd601b74c71629 /src/msg.c
parent3cc6ba530042288363a048299f2d6a38517db308 (diff)
finish API documentation
This patch may contain errors but we can review them and fix them later, better to have it in the tree (to allow others to contribute) to keep it in my local tree.
Diffstat (limited to 'src/msg.c')
-rw-r--r--src/msg.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/msg.c b/src/msg.c
index 02f812b..0824eb3 100644
--- a/src/msg.c
+++ b/src/msg.c
@@ -164,6 +164,13 @@ struct nlmsghdr *mnl_nlmsg_next(const struct nlmsghdr *nlh, int *len)
return (struct nlmsghdr *)((void *)nlh + mnl_align(nlh->nlmsg_len));
}
+/**
+ * mnl_nlmsg_get_tail - get the ending of the netlink message
+ * @nlh: pointer to netlink message
+ *
+ * This function returns a pointer to the netlink message tail. This is useful
+ * to build a message since we continue adding attribute at the end of it.
+ */
void *mnl_nlmsg_get_tail(const struct nlmsghdr *nlh)
{
return (struct nlmsghdr *)((void *)nlh + mnl_align(nlh->nlmsg_len));