]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
parse_rtattr_nested macro to parse nested TLVs
author5!tgraf <5!tgraf>
Tue, 18 Jan 2005 22:11:58 +0000 (22:11 +0000)
committer5!tgraf <5!tgraf>
Tue, 18 Jan 2005 22:11:58 +0000 (22:11 +0000)
(Logical change 1.129)

include/libnetlink.h

index 41a3965559cd269575de35286649c2eca7f3a633..63cc3c80baecc6affb107243fab7a93808eb2794 100644 (file)
@@ -42,6 +42,9 @@ extern int rta_addattr_l(struct rtattr *rta, int maxlen, int type, const void *d
 extern int parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len);
 extern int parse_rtattr_byindex(struct rtattr *tb[], int max, struct rtattr *rta, int len);
 
+#define parse_rtattr_nested(tb, max, rta) \
+       (parse_rtattr((tb), (max), RTA_DATA(rta), RTA_PAYLOAD(rta)))
+
 extern int rtnl_listen(struct rtnl_handle *, rtnl_filter_t handler, 
                       void *jarg);
 extern int rtnl_from_file(FILE *, rtnl_filter_t handler,