From: Martin Mares Date: Mon, 8 May 2000 11:40:30 +0000 (+0000) Subject: bugs_in_attr_cache_hashing--; X-Git-Tag: v1.2.0~1017 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0126f0bf0098104cd99fedd61a4bdbe7f7b3f1f;p=thirdparty%2Fbird.git bugs_in_attr_cache_hashing--; --- diff --git a/nest/rt-attr.c b/nest/rt-attr.c index 700a90b54..75e9435f7 100644 --- a/nest/rt-attr.c +++ b/nest/rt-attr.c @@ -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