]> git.puffer.fish Git - matthieu/frr.git/commit
lib: clean up nexthop hashing mess
authorDavid Lamparter <equinox@opensourcerouting.org>
Wed, 22 Jan 2025 10:23:31 +0000 (11:23 +0100)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Tue, 11 Feb 2025 08:43:53 +0000 (08:43 +0000)
commitf1d22e011601e5c41a051fa7719170429256f055
treec669ba23cfcf014f146e0bbcde57b6fc3492e770
parent536488044c6e499ccace5d2e1beb39b54ab83247
lib: clean up nexthop hashing mess

We were hashing 4 bytes of the address.  Even for IPv6 addresses.

Oops.

The reason this was done was to try to make it faster, but made a
complex maze out of everything.  Time for a refactor.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
(cherry picked from commit 001fcfa1dd9f7dc2639b4f5c7a52ab59cc425452)
lib/nexthop.c
lib/nexthop.h