From 0d453a21a0a2e262606ad4e11d53bb10fe1bd11d Mon Sep 17 00:00:00 2001 From: "James R. Leu" Date: Sun, 14 May 2006 21:33:36 -0600 Subject: [PATCH] Add comment to ldp/ldp_global.c stating that we need to do some cleanup when shutting down the ldp_global. [git-p4: depot-paths = "//depot/ldp-portable/": change = 1477] --- ldp/ldp_global.c | 1 + ldp/ldp_nortel.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ldp/ldp_global.c b/ldp/ldp_global.c index 9d06254..05156e9 100644 --- a/ldp/ldp_global.c +++ b/ldp/ldp_global.c @@ -290,6 +290,7 @@ mpls_return_enum ldp_global_shutdown(ldp_global * g) mpls_return_enum ldp_global_delete(ldp_global * g) { if (g) { + /* need to properly purge FECs/nexthops/interfaces/addresses */ mpls_tree_delete(g->addr_tree); mpls_tree_delete(g->fec_tree); diff --git a/ldp/ldp_nortel.h b/ldp/ldp_nortel.h index c294cf1..26626ba 100644 --- a/ldp/ldp_nortel.h +++ b/ldp/ldp_nortel.h @@ -171,8 +171,8 @@ different type of messages */ /* debug macros */ -#define PRINT_OUT(args...) -#define PRINT_ERR(args...) +#define PRINT_OUT(args...) LDP_PRINT(NULL,args) +#define PRINT_ERR(args...) LDP_PRINT(NULL,args) /* * MESSAGE TYPE CONSTANS & TLV CONSTANTS -- 2.11.4.GIT