Add NLMSG_TAIL macro pointing to the tail of a netlink message
(Logical change 1.127)
This commit is contained in:
parent
228569c3ff
commit
370d67ba56
|
|
@ -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__ */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue