]> git.puffer.fish Git - mirror/frr.git/commit
lib: remove gap between AFI_IP6 and AFI_L2VPN
authorRenato Westphal <renato@opensourcerouting.org>
Fri, 12 May 2017 14:04:31 +0000 (11:04 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Fri, 12 May 2017 14:48:02 +0000 (11:48 -0300)
commit17c7bb7b1c4dabd41515b1423f6848614affc255
tree6ca736f39f45531aff7ed47d23efe3ea13e64901
parent8b89a3023f651786a4709ee6212a0d6c61183d35
lib: remove gap between AFI_IP6 and AFI_L2VPN

We have several pieces of code like this in FRR:

  for (afi = AFI_IP; afi < AFI_MAX; afi++)
    for (safi = SAFI_UNICAST; safi < SAFI_MAX; safi++)
      bgp_distance_table[afi][safi] = bgp_table_init (afi, safi);

We were creating a lot of useless garbage in the code because of this
gap. Fix this.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
lib/zebra.h