diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2023-10-02 15:09:30 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2023-10-02 15:09:30 +0200 |
commit | 21213be523baa7f2cbf0feaa617f265c55e9b17a (patch) | |
tree | 97d0374225e267fe6b3c0cc64eacbe5395ba00b6 /proto/bgp | |
parent | 8ad9c4bb339172d445d1346876b2c9f3c27199c1 (diff) |
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.
Diffstat (limited to 'proto/bgp')
-rw-r--r-- | proto/bgp/packets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c index fd7828f0..054e6c3c 100644 --- a/proto/bgp/packets.c +++ b/proto/bgp/packets.c @@ -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); |