Mailing List Archive

[PATCH 1/6] bgpd: set Graceful Restart R bit for VPNv4 address family
Because of the specific value of SAFI_MPLS_VPN which cannot be inserted
as is into OPEN graceful restart capability, a test must be added when
forging such capability to insert the good value for VPNv4 address
family.

Signed-off-by: Julien Courtat <julien.courtat@6wind.com>
---
bgpd/bgp_open.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bgpd/bgp_open.c b/bgpd/bgp_open.c
index 7b8b657..39c038c 100644
--- a/bgpd/bgp_open.c
+++ b/bgpd/bgp_open.c
@@ -1123,7 +1123,7 @@ bgp_open_capability (struct stream *s, struct peer *peer)
if (peer->afc[afi][safi])
{
stream_putw (s, afi);
- stream_putc (s, safi);
+ stream_putc (s, (safi == SAFI_MPLS_VPN) ? SAFI_MPLS_LABELED_VPN : safi);
stream_putc (s, 0); //Forwarding is not retained as of now.
}
}
--
2.1.4


_______________________________________________
Quagga-dev mailing list
Quagga-dev@lists.quagga.net
https://lists.quagga.net/mailman/listinfo/quagga-dev