]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
bugs_in_attr_cache_hashing--;
authorMartin Mares <mj@ucw.cz>
Mon, 8 May 2000 11:40:30 +0000 (11:40 +0000)
committerMartin Mares <mj@ucw.cz>
Mon, 8 May 2000 11:40:30 +0000 (11:40 +0000)
nest/rt-attr.c

index 700a90b54bc02277e0aeda5b5a773d35006c6b78..75e9435f75b306935c94f363a0db90eb786c2e19 100644 (file)
@@ -419,7 +419,7 @@ rta_alloc_hash(void)
 static inline unsigned int
 rta_hash(rta *a)
 {
-  return a->proto->hash_key ^ ipa_hash(a->gw) ^ ea_hash(a->eattrs);
+  return (a->proto->hash_key ^ ipa_hash(a->gw) ^ ea_hash(a->eattrs)) & 0xffff;
 }
 
 static inline int