From: "Julius Volz" Subject: Re: [PATCHv2 2/2] IPVS: Add genetlink interface implementation Date: Sat, 26 Jul 2008 00:39:10 +0200 Message-ID: References: <1216645375-20410-1-git-send-email-juliusv@google.com> <1216645375-20410-3-git-send-email-juliusv@google.com> <20080724235833.GD20815@postel.suug.ch> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1217025553; bh=keuf0S+YgCU+S0A2kJXmt0qNXR0=; h=DomainKey-Signature:Message-ID:Date:From:To:Subject:Cc: In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-Disposition:References; b=q7y92UMzoDc4JbkGqM/LpJgZKMg+skrd 2YgUMGWaGAED4UxV3ZHVeTHhcFoQyC+tTUO84r2xyXW5neW1uP4DpQ== In-Reply-To: <20080724235833.GD20815@postel.suug.ch> Content-Disposition: inline Sender: netdev-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Thomas Graf Cc: netdev@vger.kernel.org, lvs-devel@vger.kernel.org, horms@verge.net.au, kaber@trash.net, davem@davemloft.net, vbusam@google.com On Fri, Jul 25, 2008 at 1:58 AM, Thomas Graf wrote: > * Julius Volz 2008-07-21 15:02 >> +static int ip_vs_genl_parse_dest(struct ip_vs_dest_user *udest, >> + struct nlattr *nla, int full_entry) >> +{ >> + struct nlattr *attrs[IPVS_SVC_ATTR_MAX + 1]; >> + struct nlattr *nla_addr, *nla_port; >> + >> + /* Parse mandatory identifying destination fields first */ >> + if (nla == NULL || >> + nla_parse_nested(attrs, IPVS_DEST_ATTR_MAX, nla, ip_vs_dest_policy)) > > Small typo here, attrs[] is defined with a length of IPVS_SVC_ATTR_MAX+1 > while IPVS_DEST_ATTR_MAX is passed to to nla_parse_nested. Right, thanks for catching this! Will include this in the next iteration after vacation... Julius -- Google Switzerland GmbH