mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-30 13:41:53 +00:00
Nest: Fix handling of 64-bit rte_src.private_id
The commit 21213be523
expanded private_id
in route source to u64, but forgot to modify function arguments, so it
was still cropped at 32-bit, which may cause some collisions for L3VPN.
This patch fixes that.
This commit is contained in:
parent
7e65bb83c7
commit
8d062e9312
@ -593,8 +593,8 @@ typedef struct ea_list {
|
||||
#define EALF_BISECT 2 /* Use interval bisection for searching */
|
||||
#define EALF_CACHED 4 /* Attributes belonging to cached rta */
|
||||
|
||||
struct rte_src *rt_find_source(struct proto *p, u32 id);
|
||||
struct rte_src *rt_get_source(struct proto *p, u32 id);
|
||||
struct rte_src *rt_find_source(struct proto *p, u64 id);
|
||||
struct rte_src *rt_get_source(struct proto *p, u64 id);
|
||||
static inline void rt_lock_source(struct rte_src *src) { src->uc++; }
|
||||
static inline void rt_unlock_source(struct rte_src *src) { src->uc--; }
|
||||
void rt_prune_sources(void);
|
||||
|
@ -124,13 +124,13 @@ rte_src_init(void)
|
||||
HASH_DEFINE_REHASH_FN(RSH, struct rte_src)
|
||||
|
||||
struct rte_src *
|
||||
rt_find_source(struct proto *p, u32 id)
|
||||
rt_find_source(struct proto *p, u64 id)
|
||||
{
|
||||
return HASH_FIND(src_hash, RSH, p, id);
|
||||
}
|
||||
|
||||
struct rte_src *
|
||||
rt_get_source(struct proto *p, u32 id)
|
||||
rt_get_source(struct proto *p, u64 id)
|
||||
{
|
||||
struct rte_src *src = rt_find_source(p, id);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user