From a94434b69197e074569d7579126074e9cb7212a5 Mon Sep 17 00:00:00 2001 From: hasso Date: Sun, 25 May 2003 17:10:12 +0000 Subject: Ripngd part of 6Wind patch. --- lib/memory.c | 27 +++++++++++++++++++++++++++ lib/memory.h | 9 +++++++-- 2 files changed, 34 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/memory.c b/lib/memory.c index bf142dcf..93833113 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); diff --git a/lib/memory.h b/lib/memory.h index 52e3bc11..a38cda3f 100644 --- a/lib/memory.h +++ b/lib/memory.h @@ -58,8 +58,6 @@ enum MTYPE_HASH, MTYPE_HASH_INDEX, MTYPE_HASH_BACKET, - MTYPE_RIPNG_ROUTE, - MTYPE_RIPNG_AGGREGATE, MTYPE_ROUTE_TABLE, MTYPE_ROUTE_NODE, MTYPE_ACCESS_LIST, @@ -179,6 +177,13 @@ enum MTYPE_KEYCHAIN, MTYPE_KEY, + MTYPE_RIPNG, + MTYPE_RIPNG_ROUTE, + MTYPE_RIPNG_AGGREGATE, + MTYPE_RIPNG_PEER, + MTYPE_RIPNG_OFFSET_LIST, + MTYPE_RIPNG_RTE_DATA, + MTYPE_VTYSH_CONFIG, MTYPE_VTYSH_CONFIG_LINE, -- cgit v1.2.1