lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 11 May 2022 05:35:21 +0000
From:   "Magesh  M P" <magesh@...itizethings.com>
To:     Stephen Hemminger <stephen@...workplumber.org>,
        "netdev@...r.kernel.org" <netdev@...r.kernel.org>
CC:     David Ahern <dsahern@...il.com>
Subject: Re: gateway field missing in netlink message


 
Hi Steve/Dave
 
Could you please confirm that VPP during synchronization of routing table with Linux kernel in case of dual gateway ECMP configuration gets only single route in the netlink message is a known bug ?? 
 
I am using VPP 21.06 version.
 
Regards
Magesh 
 
 
  
From: Stephen Hemminger
Sent: 09 May 2022 20:35
To: Magesh M P
Cc: David Ahern
Subject: Re: gateway field missing in netlink message
 
On Mon, 9 May 2022 06:55:46 +0000
"Magesh  M P" <magesh@...itizethings.com> wrote:

> Hi Steve/Dave,
> 
> Thank you very much for great support and sharing the knowledge.
> 
> Dave referred me the file iproute.c but this contains the flow from user space to kernel.
> 
> In my problematic scenario, the use case is from Linux kernel to VPP kernel and this is where my parser at vpp kernel is not doing its work properly. The VPP stack tries to synchronize the routing table information from Linux kernel through netlink messages.
> 
> My file netns.c looks like the following:
> vpp-netlink/netns.c at master · Oryon/vpp-netlink · GitHub<https://github.com/Oryon/vpp-netlink/blob/master/librtnl/netns.c>
> 
> I tried to implement the parser logic as shown in the following link but that did not help.
> Parsing the RTA_MULTIPATH attribute from Rtnetlink | Eder L. Fernandes (ederlf.website)<https://ederlf.website/post/netlink-multipath/>
> 
> I see only one gateway in parsing the RTA_MULTIPATH attribute inspite when I had configured dual gateways.
> 
> The existing code in netns.c works fine for single gateway ip route configuration and it fails in dual gateway ECMP case.
> 
> Your help is greatly appreciated.
> 
> Best regards
> Magesh
> 
> 
> Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows
> 
> From: Stephen Hemminger<mailto:stephen@...workplumber.org>
> Sent: 05 May 2022 21:58
> To: Magesh M P<mailto:magesh@...itizethings.com>
> Cc: David Ahern<mailto:dsahern@...il.com>
> Subject: Re: gateway field missing in netlink message
> 
> Have you considered using libmnl it is good way to handle the
> low level parts of netlink parsing.
> 
> https://www.netfilter.org/projects/libmnl/


Have you looked at other routing projects that handle multipath like:

https://github.com/FRRouting/frr/blob/master/zebra/rt_netlink.c

 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ