summaryrefslogtreecommitdiffstats
path: root/lib/memory.c
diff options
context:
space:
mode:
authorhasso <hasso>2003-05-25 19:10:12 +0200
committerhasso <hasso>2003-05-25 19:10:12 +0200
commita94434b69197e074569d7579126074e9cb7212a5 (patch)
treeb63c34ee20e8e6b57796ee591d4569407140047d /lib/memory.c
parentUnbroke "set metric" command in vtysh again. (diff)
downloadfrr-a94434b69197e074569d7579126074e9cb7212a5.tar.xz
frr-a94434b69197e074569d7579126074e9cb7212a5.zip
Ripngd part of 6Wind patch.
Diffstat (limited to 'lib/memory.c')
-rw-r--r--lib/memory.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/memory.c b/lib/memory.c
index bf142dcf9..93833113a 100644
--- a/lib/memory.c
+++ b/lib/memory.c
@@ -255,6 +255,7 @@ struct memory_list memory_list_lib[] =
{ MTYPE_ROUTE_MAP_INDEX, "Route map index " },
{ MTYPE_ROUTE_MAP_RULE, "Route map rule " },
{ MTYPE_ROUTE_MAP_RULE_STR, "Route map rule str" },
+ { MTYPE_ROUTE_MAP_COMPILED, "Route map compiled" },
{ MTYPE_DESC, "Command desc " },
{ MTYPE_BUFFER, "Buffer " },
{ MTYPE_BUFFER_DATA, "Buffer data " },
@@ -323,6 +324,17 @@ struct memory_list memory_list_rip[] =
{ -1, NULL }
};
+struct memory_list memory_list_ripng[] =
+{
+ { MTYPE_RIPNG, "RIPng structure " },
+ { MTYPE_RIPNG_ROUTE, "RIPng route info" },
+ { MTYPE_RIPNG_AGGREGATE, "RIPng aggregate " },
+ { MTYPE_RIPNG_PEER, "RIPng peer " },
+ { MTYPE_RIPNG_OFFSET_LIST, "RIPng offset lst" },
+ { MTYPE_RIPNG_RTE_DATA, "RIPng rte data " },
+ { -1, NULL }
+};
+
struct memory_list memory_list_ospf[] =
{
{ MTYPE_OSPF_TOP, "OSPF top " },
@@ -402,6 +414,8 @@ DEFUN (show_memory_all,
show_memory_vty (vty, memory_list_separator);
show_memory_vty (vty, memory_list_rip);
show_memory_vty (vty, memory_list_separator);
+ show_memory_vty (vty, memory_list_ripng);
+ show_memory_vty (vty, memory_list_separator);
show_memory_vty (vty, memory_list_ospf);
show_memory_vty (vty, memory_list_separator);
show_memory_vty (vty, memory_list_ospf6);
@@ -439,6 +453,17 @@ DEFUN (show_memory_rip,
return CMD_SUCCESS;
}
+DEFUN (show_memory_ripng,
+ show_memory_ripng_cmd,
+ "show memory ripng",
+ SHOW_STR
+ "Memory statistics\n"
+ "RIPng memory\n")
+{
+ show_memory_vty (vty, memory_list_ripng);
+ return CMD_SUCCESS;
+}
+
DEFUN (show_memory_bgp,
show_memory_bgp_cmd,
"show memory bgp",
@@ -479,6 +504,7 @@ memory_init ()
install_element (VIEW_NODE, &show_memory_all_cmd);
install_element (VIEW_NODE, &show_memory_lib_cmd);
install_element (VIEW_NODE, &show_memory_rip_cmd);
+ install_element (VIEW_NODE, &show_memory_ripng_cmd);
install_element (VIEW_NODE, &show_memory_bgp_cmd);
install_element (VIEW_NODE, &show_memory_ospf_cmd);
install_element (VIEW_NODE, &show_memory_ospf6_cmd);
@@ -487,6 +513,7 @@ memory_init ()
install_element (ENABLE_NODE, &show_memory_all_cmd);
install_element (ENABLE_NODE, &show_memory_lib_cmd);
install_element (ENABLE_NODE, &show_memory_rip_cmd);
+ install_element (ENABLE_NODE, &show_memory_ripng_cmd);
install_element (ENABLE_NODE, &show_memory_bgp_cmd);
install_element (ENABLE_NODE, &show_memory_ospf_cmd);
install_element (ENABLE_NODE, &show_memory_ospf6_cmd);