summaryrefslogtreecommitdiff
path: root/lib/memory.c
diff options
context:
space:
mode:
authorjardin <jardin>2003-12-23 08:56:18 +0000
committerjardin <jardin>2003-12-23 08:56:18 +0000
commit9e867fe663c4eb43c36f35067c0dd092e8c83c14 (patch)
treef29461b6a2dc8c38037dc0cf91e70392f9ed4ab2 /lib/memory.c
parenteb5d44eb8dcf25a1b328e57d1eabb1f89e3bc59b (diff)
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.
Diffstat (limited to 'lib/memory.c')
-rw-r--r--lib/memory.c34
1 files changed, 34 insertions, 0 deletions
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);
}