]> git.puffer.fish Git - matthieu/frr.git/commit
BGP: Unnumbered peering in a VRF
authorvivek <vivek@cumulusnetworks.com>
Mon, 29 Feb 2016 18:04:29 +0000 (18:04 +0000)
committervivek <vivek@cumulusnetworks.com>
Mon, 29 Feb 2016 18:04:29 +0000 (18:04 +0000)
commit8dee039673865b234d14d567163a206bc93cd5a4
tree90065eb22cea0fb6f3a7ff99db36c26f78b6a4f4
parentd511d7f1685b29914f4e6c6ed3ff4c03454b4d20
BGP: Unnumbered peering in a VRF

Code changes to make unnumbered peering work in a VRF. The changes have
to do with locating the interface in the correct VRF (in order to look for
neighbor address) in the case of outgoing connections and when specifying
source address as well as fetching the correct instance for an incoming
connection based on reading the device the socket is bound to (the multi-vrf
socket option in the kernel).

Additionally, for IPv4 unnumbered peering in a VRF (based on /30 or /31
addresses), bind to the VRF rather than the interface.

Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Ticket: CM-9311
Reviewed By: CCR-4192
Testing Done: Manual, bgpsmoke
bgpd/bgp_network.c
bgpd/bgpd.c