diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2023-11-25 23:42:55 +0100 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2023-11-25 23:42:55 +0100 |
commit | b3d9a088ebfa43d8c0805f07715d93e8345c906e (patch) | |
tree | a3b11d2580e407b6ab4cf396312e6f2f24ab5a5a /nest/mpls.c | |
parent | 391e10e593c0fab0f3cd4ae898bf5a7c99dd395c (diff) | |
parent | be09b030ed40c76ee0727dd3980df77094fdc907 (diff) |
Merge commit 'be09b030' into wireguard-next-tmp7-1
Diffstat (limited to 'nest/mpls.c')
-rw-r--r-- | nest/mpls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nest/mpls.c b/nest/mpls.c index 54bfb402..e37535c5 100644 --- a/nest/mpls.c +++ b/nest/mpls.c @@ -847,12 +847,12 @@ mpls_get_fec_by_label(struct mpls_fec_map *m, u32 label) } struct mpls_fec * -mpls_get_fec_by_net(struct mpls_fec_map *m, const net_addr *net, u32 path_id) +mpls_get_fec_by_net(struct mpls_fec_map *m, const net_addr *net, u64 path_id) { if (!m->net_hash.data) HASH_INIT(m->net_hash, m->pool, 4); - u32 hash = net_hash(net) ^ u32_hash(path_id); + u32 hash = net_hash(net) ^ u64_hash(path_id); struct mpls_fec *fec = HASH_FIND(m->net_hash, NET, net, path_id, hash); if (fec) |