]> git.ipfire.org Git - thirdparty/bird.git/blobdiff - nest/mpls.c
MPLS: Update to support and use 64bit source id
[thirdparty/bird.git] / nest / mpls.c
index 54bfb4021dec3b7d4b8cc40a79f1bf44858cb8aa..e37535c5dde67a619c4615300669a569f0936b17 100644 (file)
@@ -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)