From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 90D0DC433F5 for ; Thu, 5 May 2022 04:13:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242639AbiEEERX (ORCPT ); Thu, 5 May 2022 00:17:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230030AbiEEERW (ORCPT ); Thu, 5 May 2022 00:17:22 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65CA61FA6B for ; Wed, 4 May 2022 21:13:44 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 2027EB82A86 for ; Thu, 5 May 2022 04:13:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CBA17C385AC; Thu, 5 May 2022 04:13:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651724021; bh=603LS4oKcI3zDcIx/j8AKER4j1Ql9LRZ89C1e8uXugQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=dECi7ax2vrQ+kgkJb71Ftk8O/7FTeANx3/DWXA4fc0b6stP4BsSco6y93FRvL2U2s lLJabl2mvXZPibBj2RNutmoeNo4swy7yYGBnCIOyIcTwEiwDOjQcPzSVPTbdwxBndi YuNvY3BvLMicImtDen2qj0bzoheUqODiB9FK2UuMUBnEQ94nxL0dkxi1226bsuDYzM hjfC0GrOntQGOeMM0WirQAgGMmQO7cY+zVQXnDEPVuZjmeNBGorSF7p3PtrAg2XPtY 5Ef/o/fMwVWDYj8o5PHGsNr4hZ/lbN3qPgWietal5KzVMO4t9g59AmZhwyJvEqvwHl AVIIpkZuRTOzw== Message-ID: <094b9834-2ea6-f990-1661-f68ba65d4cfd@kernel.org> Date: Wed, 4 May 2022 21:13:41 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: gateway field missing in netlink message Content-Language: en-US To: Magesh M P Cc: "netdev@vger.kernel.org" References: <20220504223100.GA2968@u2004-local> From: David Ahern In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On 5/4/22 8:43 PM, Magesh M P wrote: > Hi Dave, > > Thanks for responding. > > The librtnl/netns.c contains the parser code as below which parses the MULTIPATH attribute. Could you please take a look at the code and see if anything is wrong ? Stephen gave you a few comments. In addition to that rather than me reviewing your code for errors, here is a reference to iproute2 code that is known to work: https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/tree/ip/iproute.c#n742 you can review it, add debug prints, etc to get your code working the same.