]> 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:49:33 +0000 (09:49 +0100)
commit2dda926f4a8341f768ab4625d628ec3033d14c85
treec04cff011ff61136b6551bfbcd72712cc540c564
parent7a40667bfdd666cb2dce1aafa4af92a7a1ea99ac
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