]> 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)
committerDavid Lamparter <equinox@opensourcerouting.org>
Tue, 11 Feb 2025 08:47:32 +0000 (09:47 +0100)
commitd4f9f9588f4b936afb5ac8e47f7899df39869e4b
treea000cad00dd01c32e5489a7814c59249a836c731
parent3c6cfe4c566939d7ccd3f09adc6142406c92e113
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