]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: remove bogus change in attrhash_key_make() 914/head
authorJorge Boncompte <jbonor@gmail.com>
Fri, 4 Aug 2017 17:33:15 +0000 (19:33 +0200)
committerJorge Boncompte <jbonor@gmail.com>
Fri, 4 Aug 2017 17:33:15 +0000 (19:33 +0200)
Commit c8e7b895 ("bgpd: use Jenkins hash for BGP transit, cluster and
attr hashes") changed attrhash_key_make() to use Jenkins hash, commit
c8f3fe30 ("bgpd: Remove AS Path limit/TTL functionality") introduced
a bogus change with a snippet of code that was deleted in the first
one.

Signed-off-by: Jorge Boncompte <jbonor@gmail.com>
bgpd/bgp_attr.c

index ca9a50db55b9cf39316a44944adcf48abd7246be..dd187976377b15579536b59e4c5dc282d6c2a44b 100644 (file)
@@ -566,12 +566,6 @@ unsigned int attrhash_key_make(void *p)
        MIX(attr->nexthop.s_addr);
        MIX(attr->med);
        MIX(attr->local_pref);
-
-       key += attr->origin;
-       key += attr->nexthop.s_addr;
-       key += attr->med;
-       key += attr->local_pref;
-
        MIX(attr->aggregator_as);
        MIX(attr->aggregator_addr.s_addr);
        MIX(attr->weight);