Hi,

Thank you for improving the patch.

Did I get it right? You mean the case when one has the same IP for BGP sessions in different VRFs on different interfaces?

On Fri, Oct 26, 2018 at 7:28 PM, Ondrej Zajicek <santiago@crfreenet.org> wrote:
On Fri, Oct 26, 2018 at 12:03:57PM +0200, Alexander Zubkov wrote:
> BGP protocol could not bind to the interface in a VRF
> even if the vrf option was specified in the configuration.

Hi

Thanks for the bugfix, but note that in order to work with multiple BGP
protocols in different VRFs, also the selector of existing sockets that
runs before the sk_new() have to take it into consideration, otherwise it
will just return old socket bound to different VRF. See attached patch.

--
Elen sila lumenn' omentielvo

Ondrej 'Santiago' Zajicek (email: santiago@crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."