]> git.proxmox.com Git - mirror_frr.git/commit
staticd: minor refactor NHT register code
authorDavid Lamparter <equinox@opensourcerouting.org>
Sun, 24 Apr 2022 13:47:58 +0000 (15:47 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Sun, 24 Apr 2022 13:47:58 +0000 (15:47 +0200)
commitc68cd5af4428c810645480c3caf8688b2845b9f1
tree2e69b3c3bc6b8437eea1b84cec6e3978edf7c1ba
parent0e8d473b328276239fca4142a83d145e3b0c3285
staticd: minor refactor NHT register code

Put static_nexthop -> prefix code into a small helper, remove extra
prefix variable, and grab AFI from prefix.

This commit should not result in any functional change.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
staticd/static_zebra.c