]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/commitdiff
Add NLMSG_TAIL macro pointing to the tail of a netlink message
author5!tgraf <5!tgraf>
Tue, 18 Jan 2005 01:24:18 +0000 (01:24 +0000)
committer5!tgraf <5!tgraf>
Tue, 18 Jan 2005 01:24:18 +0000 (01:24 +0000)
(Logical change 1.127)

include/libnetlink.h

index 08be752eb9620f7017f7eb45a7477c739fd50a60..40587a0ee18b5e79472795711dbbef53cd3d4b03 100644 (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__ */