]> git.puffer.fish Git - mirror/frr.git/commit
lib: clean up nexthop hashing mess 18084/head
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:51 +0000 (08:43 +0000)
commit46e685d2f9cd1a359e0abd95b584f7cc3df9ae2c
treefadf61456f7404bb5b77db50dd276e77f2eaa2d6
parent4285bd8a176a2be4d035a9a055afa378c74f1cd1
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