]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: "Intern" communities in route maps
authorMichael Lambert <lambert@psc.edu>
Sat, 24 Jul 2010 16:44:07 +0000 (12:44 -0400)
committerPaul Jakma <paul@quagga.net>
Mon, 21 Mar 2011 17:30:52 +0000 (17:30 +0000)
commit2c9fd7e07283b8904ef20030c9dadb032e999b12
treee134706cdc5c91daf0002ef3e2d22d12b09cb758
parent95cbbd2ace2f88019a7a54e67b4b12aaeda177f7
bgpd: "Intern" communities in route maps

* bgp_community.[ch]: (community_lookup) New helper function to look
  up a community list in the hash table.

* bgp_routemap.c: A new community structure was being allocated for
  every BGP update which matched a route map which set a community.
  This behavior led to rapid growth in the memory consumed by bgpd.
  Adding the communities to the hash table addresses the memory
  growth, but may introduce a problem in modifying or deleting the
  'set community' statement in the route map.
bgpd/bgp_community.c
bgpd/bgp_community.h
bgpd/bgp_routemap.c