#include "lib/routemap.h"
#include "lib/mpls.h"
#include "lib/jhash.h"
+#include "lib/debug.h"
#include "zebra/connected.h"
#include "zebra/debug.h"
#include "zebra/zebra_nhg.h"
#include "zebra/zebra_rnh.h"
#include "zebra/zebra_routemap.h"
+#include "zebra/zebra_memory.h"
+#include "zebra/zserv.h"
#include "zebra/rt.h"
#include "zebra_errors.h"
+DEFINE_MTYPE_STATIC(ZEBRA, NHG, "Nexthop Group Entry");
/**
* zebra_nhg_lookup_id() - Lookup the nexthop group id in the id table
*
struct nhg_hash_entry *nhe;
struct nhg_hash_entry *copy = arg;
- nhe = XCALLOC(MTYPE_TMP, sizeof(struct nhg_hash_entry));
+ nhe = XCALLOC(MTYPE_NHG, sizeof(struct nhg_hash_entry));
pthread_mutex_lock(&lock); /* Lock, set the id counter from kernel */
if (copy->id) {
nhe = (struct nhg_hash_entry *)arg;
nexthops_free(nhe->nhg.nexthop);
- XFREE(MTYPE_TMP, nhe);
+
+ XFREE(MTYPE_NHG, nhe);
}
/**