diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2016-10-30 22:50:26 +0100 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2016-11-28 19:18:35 +0100 |
commit | 661512bf053ecc3d441bb8938dcd4541ae7ffc33 (patch) | |
tree | 01233125543e939ed1e5bd23c050509755c5db50 /lib/nexthop.c | |
parent | lib/zebra: put vrf_get() on a diet (diff) | |
download | frr-661512bf053ecc3d441bb8938dcd4541ae7ffc33.tar.xz frr-661512bf053ecc3d441bb8938dcd4541ae7ffc33.zip |
zebra/lib: remove redundant fields from zebra_vrf
There's no need to duplicate the 'vrf_id' and 'name' fields from the 'vrf'
structure into the 'zebra_vrf' structure. Instead of that, add a back
pointer in 'zebra_vrf' that should point to the associated 'vrf' structure.
Additionally, modify the vrf callbacks to pass the whole vrf structure
as a parameter. This allow us to make further simplifications in the code.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib/nexthop.c')
0 files changed, 0 insertions, 0 deletions