summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Jakma <paul.jakma@sun.com>2006-03-30 14:09:38 +0000
committerPaul Jakma <paul.jakma@sun.com>2006-03-30 14:09:38 +0000
commitb51f126edee1c170e69951f92033e3e5aec2862d (patch)
treeff637d3f5909fd777aa8e8fe0740349258485e6f
parent4bf6a3621c828ea9f2c62298b525a2c1a191a45e (diff)
[bgpd] trivial: use a distinct memtype for struct bgp_synchronize
2006-03-19 Paul Jakma <paul.jakma@sun.com> * memtypes.c: Add MTYPE_BGP_SYNCHRONISE. * bgp_advertise.c: Use a distinct memory type for struct bgp_synchronize.
-rw-r--r--bgpd/ChangeLog2
-rw-r--r--bgpd/bgp_advertise.c3
-rw-r--r--lib/ChangeLog4
-rw-r--r--lib/memtypes.c3
4 files changed, 10 insertions, 2 deletions
diff --git a/bgpd/ChangeLog b/bgpd/ChangeLog
index b80c7b20..3f0cad7d 100644
--- a/bgpd/ChangeLog
+++ b/bgpd/ChangeLog
@@ -11,6 +11,8 @@
(bgp_vty_init) Install show_bgp_memory_cmd.
* bgp_nexthop.h: Include if.h as a dependent header, for struct
connected.
+ * bgp_advertise.c: Use a distinct memory type for struct
+ bgp_synchronize.
2006-03-12 Paul Jakma <paul.jakma@sun.com>
diff --git a/bgpd/bgp_advertise.c b/bgpd/bgp_advertise.c
index 512ff05b..3a49ca85 100644
--- a/bgpd/bgp_advertise.c
+++ b/bgpd/bgp_advertise.c
@@ -383,7 +383,8 @@ bgp_sync_init (struct peer *peer)
for (afi = AFI_IP; afi < AFI_MAX; afi++)
for (safi = SAFI_UNICAST; safi < SAFI_MAX; safi++)
{
- sync = XCALLOC (MTYPE_TMP, sizeof (struct bgp_synchronize));
+ sync = XCALLOC (MTYPE_BGP_SYNCHRONISE,
+ sizeof (struct bgp_synchronize));
FIFO_INIT (&sync->update);
FIFO_INIT (&sync->withdraw);
FIFO_INIT (&sync->withdraw_low);
diff --git a/lib/ChangeLog b/lib/ChangeLog
index fac908e5..b5a5e486 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,7 @@
+2006-03-19 Paul Jakma <paul.jakma@sun.com>
+
+ * memtypes.c: Add MTYPE_BGP_SYNCHRONISE.
+
2006-03-16 Paul Jakma <paul.jakma@sun.com>
* Makefile.am: Fix -version-info argument.
diff --git a/lib/memtypes.c b/lib/memtypes.c
index d9a1a623..5a685e0e 100644
--- a/lib/memtypes.c
+++ b/lib/memtypes.c
@@ -6,7 +6,7 @@
* The script is sensitive to the format (though not whitespace), see
* the top of memtypes.awk for more details.
*
- * $Id: memtypes.c,v 1.10 2005/11/03 11:04:07 paul Exp $
+ * $Id: memtypes.c,v 1.11 2006/03/30 14:09:38 paul Exp $
*/
#include "zebra.h"
@@ -107,6 +107,7 @@ struct memory_list memory_list_bgp[] =
{ MTYPE_BGP_STATIC, "BGP static" },
{ MTYPE_BGP_ADVERTISE_ATTR, "BGP adv attr" },
{ MTYPE_BGP_ADVERTISE, "BGP adv" },
+ { MTYPE_BGP_SYNCHRONISE, "BGP synchronise" },
{ MTYPE_BGP_ADJ_IN, "BGP adj in" },
{ MTYPE_BGP_ADJ_OUT, "BGP adj out" },
{ 0, NULL },