]> 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>
Wed, 29 Jan 2025 15:48:37 +0000 (16:48 +0100)
commit001fcfa1dd9f7dc2639b4f5c7a52ab59cc425452
treeece177f564d5eadc290531ef7e3bbf233d6d51be
parent4a0e1419a69d07496c7adfb744beecd00e1efef2
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>
lib/nexthop.c
lib/nexthop.h