Merge pull request #4632 from manuhalo/fix_bgp_lu_update

bgpd: fix bgp-lu update bug
This commit is contained in:
Quentin Young 2019-07-03 14:25:18 -04:00 committed by GitHub
commit 5787842b98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2974,6 +2974,8 @@ size_t bgp_packet_mpattr_prefix_size(afi_t afi, safi_t safi, struct prefix *p)
int size = PSIZE(p->prefixlen);
if (safi == SAFI_MPLS_VPN)
size += 88;
else if (safi == SAFI_LABELED_UNICAST)
size += BGP_LABEL_BYTES;
else if (afi == AFI_L2VPN && safi == SAFI_EVPN)
size += 232; // TODO: Maximum possible for type-2, type-3 and
// type-5