summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_nexthop.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetwroks.com>2016-09-05 02:05:16 +0200
committerDonald Sharp <sharpd@cumulusnetwroks.com>2016-09-05 02:05:16 +0200
commit0adfc788726fcc9585b01d56927a226ab7f86884 (patch)
tree1c4267781a2570caf7aae3ec67d0dd8ff75b8bf5 /bgpd/bgp_nexthop.c
parentzebra: Remove unnecessary log (diff)
downloadfrr-0adfc788726fcc9585b01d56927a226ab7f86884.tar.xz
frr-0adfc788726fcc9585b01d56927a226ab7f86884.zip
bgpd: Fix crash in 'show ip nexthop'
With the addition of the AFI_ETHER we need to initialize the appropriate tables for nexthop's. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_nexthop.c')
-rw-r--r--bgpd/bgp_nexthop.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bgpd/bgp_nexthop.c b/bgpd/bgp_nexthop.c
index c38d54ef7..1e5c4cf8b 100644
--- a/bgpd/bgp_nexthop.c
+++ b/bgpd/bgp_nexthop.c
@@ -564,12 +564,13 @@ bgp_scan_init (struct bgp *bgp)
bgp->connected_table[AFI_IP] = bgp_table_init (AFI_IP, SAFI_UNICAST);
bgp->import_check_table[AFI_IP] = bgp_table_init (AFI_IP, SAFI_UNICAST);
-#ifdef HAVE_IPV6
bgp->nexthop_cache_table[AFI_IP6] = bgp_table_init (AFI_IP6, SAFI_UNICAST);
bgp->connected_table[AFI_IP6] = bgp_table_init (AFI_IP6, SAFI_UNICAST);
bgp->import_check_table[AFI_IP6] = bgp_table_init (AFI_IP6, SAFI_UNICAST);
-#endif /* HAVE_IPV6 */
+ bgp->nexthop_cache_table[AFI_ETHER] = bgp_table_init (AFI_ETHER, SAFI_UNICAST);
+ bgp->connected_table[AFI_ETHER] = bgp_table_init (AFI_ETHER, SAFI_UNICAST);
+ bgp->import_check_table[AFI_ETHER] = bgp_table_init (AFI_ETHER, SAFI_UNICAST);
}
void