commit | 370d67ba5678b222ccbdd19647ae81ccc3c97801 | [log] [tgz] |
---|---|---|
author | 5!tgraf <5!tgraf> | Tue Jan 18 01:24:18 2005 +0000 |
committer | 5!tgraf <5!tgraf> | Tue Jan 18 01:24:18 2005 +0000 |
tree | e621be2e0237fb2fc052c317feed8a35971ff2e3 | |
parent | 228569c3ff79468f4c7580fd88b0d6a34ebdc311 [diff] |
Add NLMSG_TAIL macro pointing to the tail of a netlink message (Logical change 1.127)
diff --git a/include/libnetlink.h b/include/libnetlink.h index 08be752..40587a0 100644 --- a/include/libnetlink.h +++ b/include/libnetlink.h
@@ -46,5 +46,8 @@ extern int rtnl_from_file(FILE *, rtnl_filter_t handler, void *jarg); +#define NLMSG_TAIL(nmsg) \ + ((struct rtattr *) (((void *) (nmsg)) + NLMSG_ALIGN((nmsg)->nlmsg_len))) + #endif /* __LIBNETLINK_H__ */