netdev
[Top] [All Lists]

[PATCH 1/9] PKT_SCHED: rtattr_parse shortcut for nested TLVs

To: "David S. Miller" <davem@xxxxxxxxxxxxx>
Subject: [PATCH 1/9] PKT_SCHED: rtattr_parse shortcut for nested TLVs
From: Thomas Graf <tgraf@xxxxxxx>
Date: Thu, 30 Dec 2004 13:28:51 +0100
Cc: Jamal Hadi Salim <hadi@xxxxxxxxxx>, Patrick McHardy <kaber@xxxxxxxxx>, netdev@xxxxxxxxxxx
In-reply-to: <20041230122652.GM32419@xxxxxxxxxxxxxx>
References: <20041230122652.GM32419@xxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
Signed-off-by: Thomas Graf <tgraf@xxxxxxx>

--- linux-2.6.10.orig/include/linux/rtnetlink.h 2004-12-25 23:21:18.000000000 
+0100
+++ linux-2.6.10/include/linux/rtnetlink.h      2004-12-26 19:52:21.000000000 
+0100
@@ -756,6 +756,9 @@
 
 extern int rtattr_parse(struct rtattr *tb[], int maxattr, struct rtattr *rta, 
int len);
 
+#define rtattr_parse_nested(tb, max, rta) \
+       rtattr_parse((tb), (max), RTA_DATA((rta)), RTA_PAYLOAD((rta)))
+
 extern struct sock *rtnl;
 
 struct rtnetlink_link

<Prev in Thread] Current Thread [Next in Thread>