]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: associate listener with the appropriate bgp instance
authorPat Ruddy <pat@voltanet.io>
Tue, 21 Jul 2020 14:03:41 +0000 (15:03 +0100)
committerPat Ruddy <pat@voltanet.io>
Tue, 1 Sep 2020 08:42:26 +0000 (09:42 +0100)
commita4faae3aacb9336338ad6f2a6df2fa3ebec3d7ca
treecee68399442a368e0182ea937e5c0886423e5705
parent48a1bbdf76ed74510a8d78c5d736dfa8c85e9e59
bgpd: associate listener with  the appropriate bgp instance

When setting authentication on a BGP peer in a VRF the listener is
looked up from a global list. However there is no check that the
listener is the one associated with the VRF being configured. This
can result in the wrong listener beiong configured with a password,
leaving the intended listener in an open authentication state.
To simplify this lookup stash a pointer to the bgp instance in
the listener on creating (in the same way as is done for NS-based
VRFS).

Signed-off-by: Pat Ruddy <pat@voltanet.io>
bgpd/bgp_network.c
bgpd/bgp_network.h
bgpd/bgpd.c