summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2017-05-12 11:04:31 -0300
committerRenato Westphal <renato@opensourcerouting.org>2017-05-12 11:48:02 -0300
commit17c7bb7b1c4dabd41515b1423f6848614affc255 (patch)
tree6ca736f39f45531aff7ed47d23efe3ea13e64901 /lib
parent8b89a3023f651786a4709ee6212a0d6c61183d35 (diff)
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/zebra.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/zebra.h b/lib/zebra.h
index cd72dc67f8..0cc81bdb70 100644
--- a/lib/zebra.h
+++ b/lib/zebra.h
@@ -404,8 +404,8 @@ extern const char *zserv_command_string (unsigned int command);
typedef enum {
AFI_IP = 1,
AFI_IP6 = 2,
- AFI_L2VPN = 4,
- AFI_MAX = 5
+ AFI_L2VPN = 3,
+ AFI_MAX = 4
} afi_t;
/* Subsequent Address Family Identifier. */