]> git.puffer.fish Git - matthieu/frr.git/commit
zebra/lib: remove redundant fields from zebra_vrf
authorRenato Westphal <renato@opensourcerouting.org>
Sun, 30 Oct 2016 21:50:26 +0000 (19:50 -0200)
committerRenato Westphal <renato@opensourcerouting.org>
Mon, 28 Nov 2016 18:18:35 +0000 (16:18 -0200)
commit661512bf053ecc3d441bb8938dcd4541ae7ffc33
tree01233125543e939ed1e5bd23c050509755c5db50
parent05e8e11e54a38cb9d6ed9c2522b557231197b1bc
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>
17 files changed:
bgpd/bgp_main.c
lib/vrf.c
lib/vrf.h
zebra/redistribute.c
zebra/router-id.c
zebra/rt_netlink.c
zebra/rtadv.c
zebra/zebra_fpm.c
zebra/zebra_fpm_netlink.c
zebra/zebra_mpls.c
zebra/zebra_ptm.c
zebra/zebra_rib.c
zebra/zebra_static.c
zebra/zebra_vrf.c
zebra/zebra_vrf.h
zebra/zebra_vty.c
zebra/zserv.c