summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_vty.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-09-04 00:57:30 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-09-05 20:33:06 +0200
commit3f65c5b1f7db20c1ee3ab723483f294975ce2f94 (patch)
tree298e5547fd5d36b177e2d3eb31a4ff88d76a158c /bgpd/bgp_vty.c
parentzebra: Add hash name to mpls hash (diff)
downloadfrr-3f65c5b1f7db20c1ee3ab723483f294975ce2f94.tar.xz
frr-3f65c5b1f7db20c1ee3ab723483f294975ce2f94.zip
bgpd: Add various hash optimizations
1) Add hash names to all hash_create calls 2) Fix community_hash, ecommunity_hash and lcommunity_hash key creation 3) Fix output of community and lcommunity iterators( why would we want to see the memory location of the backet? ). Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_vty.c')
-rw-r--r--bgpd/bgp_vty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
index a29b7f7be..f9105bfaf 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -9934,7 +9934,7 @@ static void community_show_all_iterator(struct hash_backet *backet,
struct community *com;
com = (struct community *)backet->data;
- vty_out(vty, "[%p] (%ld) %s\n", (void *)backet, com->refcnt,
+ vty_out(vty, "[%p] (%ld) %s\n", (void *)com, com->refcnt,
community_str(com));
}
@@ -9963,7 +9963,7 @@ static void lcommunity_show_all_iterator(struct hash_backet *backet,
struct lcommunity *lcom;
lcom = (struct lcommunity *)backet->data;
- vty_out(vty, "[%p] (%ld) %s\n", (void *)backet, lcom->refcnt,
+ vty_out(vty, "[%p] (%ld) %s\n", (void *)lcom, lcom->refcnt,
lcommunity_str(lcom));
}