diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2010-03-22 12:18:23 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2010-03-22 12:18:23 +0100 |
commit | c5a4f3d7738f8172de40112cf4a02fbd4b0a9902 (patch) | |
tree | 59eaf378e4ec4762c921d5d869fd601b74c71629 /src/msg.c | |
parent | 3cc6ba530042288363a048299f2d6a38517db308 (diff) | |
download | libmnl-c5a4f3d7738f8172de40112cf4a02fbd4b0a9902.tar.gz libmnl-c5a4f3d7738f8172de40112cf4a02fbd4b0a9902.zip |
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.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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)); |