From accc3fe2638b3d69e6561171f2dd99f1afd83cf8 Mon Sep 17 00:00:00 2001 From: jardin Date: Tue, 23 Dec 2003 08:56:18 +0000 Subject: Merge isisd into the Quagga's framework: - add privs support - use misc quagga's definitions - make it compile"able" - fix segfault cases related to hostname() - add debug isis xxx command This patch has been approved by Paul Jakma. --- lib/memory.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'lib/memory.c') diff --git a/lib/memory.c b/lib/memory.c index 93833113..faf3f266 100644 --- a/lib/memory.c +++ b/lib/memory.c @@ -385,6 +385,25 @@ struct memory_list memory_list_ospf6[] = { -1, NULL }, }; +struct memory_list memory_list_isis[] = +{ + { MTYPE_ISIS, "ISIS " }, + { MTYPE_ISIS_TMP, "ISIS TMP " }, + { MTYPE_ISIS_CIRCUIT, "ISIS circuit " }, + { MTYPE_ISIS_LSP, "ISIS LSP " }, + { MTYPE_ISIS_ADJACENCY, "ISIS adjacency " }, + { MTYPE_ISIS_AREA, "ISIS area " }, + { MTYPE_ISIS_AREA_ADDR, "ISIS area address " }, + { MTYPE_ISIS_TLV, "ISIS TLV " }, + { MTYPE_ISIS_DYNHN, "ISIS dyn hostname " }, + { MTYPE_ISIS_SPFTREE, "ISIS SPFtree " }, + { MTYPE_ISIS_VERTEX, "ISIS vertex " }, + { MTYPE_ISIS_ROUTE_INFO, "ISIS route info " }, + { MTYPE_ISIS_NEXTHOP, "ISIS nexthop " }, + { MTYPE_ISIS_NEXTHOP6, "ISIS nexthop6 " }, + { -1, NULL }, +}; + struct memory_list memory_list_separator[] = { { 0, NULL}, @@ -420,6 +439,8 @@ DEFUN (show_memory_all, show_memory_vty (vty, memory_list_separator); show_memory_vty (vty, memory_list_ospf6); show_memory_vty (vty, memory_list_separator); + show_memory_vty (vty, memory_list_isis); + show_memory_vty (vty, memory_list_separator); show_memory_vty (vty, memory_list_bgp); return CMD_SUCCESS; @@ -497,6 +518,17 @@ DEFUN (show_memory_ospf6, return CMD_SUCCESS; } +DEFUN (show_memory_isis, + show_memory_isis_cmd, + "show memory isis", + SHOW_STR + "Memory statistics\n" + "ISIS memory\n") +{ + show_memory_vty (vty, memory_list_isis); + return CMD_SUCCESS; +} + void memory_init () { @@ -508,6 +540,7 @@ memory_init () install_element (VIEW_NODE, &show_memory_bgp_cmd); install_element (VIEW_NODE, &show_memory_ospf_cmd); install_element (VIEW_NODE, &show_memory_ospf6_cmd); + install_element (VIEW_NODE, &show_memory_isis_cmd); install_element (ENABLE_NODE, &show_memory_cmd); install_element (ENABLE_NODE, &show_memory_all_cmd); @@ -517,4 +550,5 @@ memory_init () install_element (ENABLE_NODE, &show_memory_bgp_cmd); install_element (ENABLE_NODE, &show_memory_ospf_cmd); install_element (ENABLE_NODE, &show_memory_ospf6_cmd); + install_element (ENABLE_NODE, &show_memory_isis_cmd); } -- cgit v1.2.3