From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiri Benc Subject: Re: [PATCH 1/3] libnetlink: introduce rta_nest and u8,u16,u64 helpers for nesting within rtattr Date: Thu, 15 Oct 2015 18:51:36 +0200 Message-ID: <20151015185136.57a1c8d0@griffin> References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: stephen@networkplumber.org, netdev@vger.kernel.org, roopa@cumulusnetworks.com, mengke.liu@intel.com, tom@herbertland.com To: Thomas Graf Return-path: Received: from mx1.redhat.com ([209.132.183.28]:9461 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753816AbbJOQvk (ORCPT ); Thu, 15 Oct 2015 12:51:40 -0400 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Thu, 15 Oct 2015 13:13:38 +0200, Thomas Graf wrote: > From: Roopa Prabhu > > This patch introduces two new api's rta_nest and rta_nest_end to > nest attributes inside a rta attribute represented by 'struct rtattr' > as required to construct a nexthop. Also adds rta_addattr* variants > for u8, u16 and u64 as needed to support encapsulation. > > Signed-off-by: Roopa Prabhu > Signed-off-by: Thomas Graf Acked-by: Jiri Benc -- Jiri Benc