diff options
author | Thomas Graf <tgr@deb.localdomain> | 2008-01-14 15:46:17 (GMT) |
---|---|---|
committer | Thomas Graf <tgr@deb.localdomain> | 2008-01-14 15:46:17 (GMT) |
commit | 75a26f3fc5a306e39f5244ee24e69936c4b5146d (patch) | |
tree | 62a0984f34df2cd002f3efdb8e369a634f34a09a /include | |
parent | dbefb734d37208547e2d09f6bedd88b962f0a2bc (diff) | |
download | libnl-75a26f3fc5a306e39f5244ee24e69936c4b5146d.zip libnl-75a26f3fc5a306e39f5244ee24e69936c4b5146d.tar.gz libnl-75a26f3fc5a306e39f5244ee24e69936c4b5146d.tar.bz2 |
Improve message/attribute construction documentation and add nlmsg_expand()
Diffstat (limited to 'include')
-rw-r--r-- | include/netlink/msg.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/netlink/msg.h b/include/netlink/msg.h index 5d0ecd2..732e66f 100644 --- a/include/netlink/msg.h +++ b/include/netlink/msg.h @@ -81,6 +81,7 @@ extern struct nl_msg * nlmsg_inherit(struct nlmsghdr *); extern struct nl_msg * nlmsg_convert(struct nlmsghdr *); extern void * nlmsg_reserve(struct nl_msg *, size_t, int); extern int nlmsg_append(struct nl_msg *, void *, size_t, int); +extern int nlmsg_expand(struct nl_msg *, size_t); extern struct nlmsghdr * nlmsg_put(struct nl_msg *, uint32_t, uint32_t, int, int, int); @@ -90,6 +91,7 @@ extern void nlmsg_free(struct nl_msg *); /* attribute modification */ extern void nlmsg_set_proto(struct nl_msg *, int); extern int nlmsg_get_proto(struct nl_msg *); +extern size_t nlmsg_get_max_size(struct nl_msg *); extern void nlmsg_set_src(struct nl_msg *, struct sockaddr_nl *); extern struct sockaddr_nl *nlmsg_get_src(struct nl_msg *); extern void nlmsg_set_dst(struct nl_msg *, struct sockaddr_nl *); |