From: Philippe Guibert <philippe.guib...@6wind.com>

When sending UPDATE message with MP-BGP NLRI for address family VPNv4,
don't build nlri attributes within the nlri attribute forging function.

Signed-off-by: Philippe Guibert <philippe.guib...@6wind.com>
Signed-off-by: Julien Courtat <julien.cour...@6wind.com>
---
 bgpd/bgp_attr.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c
index 26b513a..dd04524 100644
--- a/bgpd/bgp_attr.c
+++ b/bgpd/bgp_attr.c
@@ -2631,14 +2631,6 @@ bgp_packet_attribute (struct bgp *bgp, struct peer *peer,
   /* Remember current pointer. */
   cp = stream_get_endp (s);
 
-  if (p && !(afi == AFI_IP && safi == SAFI_UNICAST))
-    {
-      size_t mpattrlen_pos = 0;
-      mpattrlen_pos = bgp_packet_mpattr_start(s, afi, safi, attr);
-      bgp_packet_mpattr_prefix(s, afi, safi, p, prd, labels, nlabels);
-      bgp_packet_mpattr_end(s, mpattrlen_pos);
-    }
-
   /* Origin attribute. */
   stream_putc (s, BGP_ATTR_FLAG_TRANS);
   stream_putc (s, BGP_ATTR_ORIGIN);
-- 
2.1.4


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

Reply via email to