]> git.puffer.fish Git - mirror/frr.git/commitdiff
[bgpd] trivial: use a distinct memtype for struct bgp_synchronize
authorPaul Jakma <paul.jakma@sun.com>
Thu, 30 Mar 2006 14:09:38 +0000 (14:09 +0000)
committerPaul Jakma <paul.jakma@sun.com>
Thu, 30 Mar 2006 14:09:38 +0000 (14:09 +0000)
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.

bgpd/ChangeLog
bgpd/bgp_advertise.c
lib/ChangeLog
lib/memtypes.c

index b80c7b20199381c42b62ece4e91e8ef442763c06..3f0cad7dd0a0a6909e2a80512a7232051bf8dbf6 100644 (file)
@@ -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>
 
index 512ff05b50305287130c568a27647ae427a86c7a..3a49ca852355c751d43ceef1a4f4450e9fb13c19 100644 (file)
@@ -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);
index fac908e550101891e867308ea5a213ebcac26032..b5a5e486cbd2692127af5a264355b7781fdd9e48 100644 (file)
@@ -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.
index d9a1a623f0841f8c6606a0bdd29a5b9a208296ca..5a685e0ee300064a77c3105a72f00ea4c9ec53aa 100644 (file)
@@ -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 },