Add NLMSG_TAIL macro pointing to the tail of a netlink message

(Logical change 1.127)
This commit is contained in:
5!tgraf 2005-01-18 01:24:18 +00:00
parent 228569c3ff
commit 370d67ba56
1 changed files with 3 additions and 0 deletions

View File

@ -46,5 +46,8 @@ extern int rtnl_listen(struct rtnl_handle *, rtnl_filter_t handler,
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__ */