Received: with ECARTIS (v1.0.0; list netdev); Thu, 30 Dec 2004 04:24:57 -0800 (PST) Received: from b.mx.projectdream.org (eth0-0.arisu.projectdream.org [194.158.4.191]) by oss.sgi.com (8.13.0/8.13.0) with ESMTP id iBUCOTFq023483 for ; Thu, 30 Dec 2004 04:24:50 -0800 Received: from postel.suug.ch (unknown [195.134.158.23]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by b.mx.projectdream.org (Postfix) with ESMTP id 4D4E2F; Thu, 30 Dec 2004 13:28:08 +0100 (CET) Received: by postel.suug.ch (Postfix, from userid 10001) id 9FFE91C0EA; Thu, 30 Dec 2004 13:28:51 +0100 (CET) Date: Thu, 30 Dec 2004 13:28:51 +0100 From: Thomas Graf To: "David S. Miller" Cc: Jamal Hadi Salim , Patrick McHardy , netdev@oss.sgi.com Subject: [PATCH 1/9] PKT_SCHED: rtattr_parse shortcut for nested TLVs Message-ID: <20041230122851.GN32419@postel.suug.ch> References: <20041230122652.GM32419@postel.suug.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041230122652.GM32419@postel.suug.ch> X-Virus-Scanned: ClamAV 0.80/638/Tue Dec 21 14:41:34 2004 clamav-milter version 0.80j on 127.0.0.1 X-Virus-Status: Clean X-archive-position: 13226 X-ecartis-version: Ecartis v1.0.0 Sender: netdev-bounce@oss.sgi.com Errors-to: netdev-bounce@oss.sgi.com X-original-sender: tgraf@suug.ch Precedence: bulk X-list: netdev Signed-off-by: Thomas Graf --- 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