mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Nest: Expand rte_src.private_id to u64
In general, private_id is sparse and protocols may want to map some internal values directly into it. For example, L3VPN needs to map VPN route discriminators to private_id. OTOH, u32 is enough for global_id, as these identifiers are dense.
This commit is contained in:
@@ -2499,7 +2499,7 @@ bgp_bmp_encode_rte(struct bgp_channel *c, byte *buf, const net_addr *n,
|
||||
/* Sham prefix */
|
||||
struct bgp_prefix *px = alloca(prefix_size);
|
||||
*px = (struct bgp_prefix) { };
|
||||
px->path_id = src->private_id;
|
||||
px->path_id = (u32) src->private_id;
|
||||
net_copy(px->net, n);
|
||||
add_tail(&b->prefixes, &px->buck_node);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user