blob: acbd16b96ce13f083cead8a56819d805ceb050f4 [file] [log] [blame]
paul2fd2fd52005-04-15 11:47:15 +00001/*
2 * Memory type definitions. This file is parsed by memtypes.awk to extract
3 * MTYPE_ and memory_list_.. information in order to autogenerate
4 * memtypes.h.
5 *
pauldc830cb2005-04-16 15:51:05 +00006 * The script is sensitive to the format (though not whitespace), see
7 * the top of memtypes.awk for more details.
paul2fd2fd52005-04-15 11:47:15 +00008 */
9
10#include "zebra.h"
11#include "memory.h"
12
13struct memory_list memory_list_lib[] =
14{
15 { MTYPE_TMP, "Temporary memory" },
16 { MTYPE_STRVEC, "String vector" },
17 { MTYPE_VECTOR, "Vector" },
18 { MTYPE_VECTOR_INDEX, "Vector index" },
19 { MTYPE_LINK_LIST, "Link List" },
20 { MTYPE_LINK_NODE, "Link Node" },
21 { MTYPE_THREAD, "Thread" },
22 { MTYPE_THREAD_MASTER, "Thread master" },
23 { MTYPE_THREAD_STATS, "Thread stats" },
24 { MTYPE_THREAD_FUNCNAME, "Thread function name" },
25 { MTYPE_VTY, "VTY" },
26 { MTYPE_VTY_OUT_BUF, "VTY output buffer" },
27 { MTYPE_VTY_HIST, "VTY history" },
28 { MTYPE_IF, "Interface" },
29 { MTYPE_CONNECTED, "Connected" },
paul9c4f1c62005-11-03 11:04:07 +000030 { MTYPE_CONNECTED_LABEL, "Connected interface label" },
paul2fd2fd52005-04-15 11:47:15 +000031 { MTYPE_BUFFER, "Buffer" },
32 { MTYPE_BUFFER_DATA, "Buffer data" },
33 { MTYPE_STREAM, "Stream" },
34 { MTYPE_STREAM_DATA, "Stream data" },
35 { MTYPE_STREAM_FIFO, "Stream FIFO" },
36 { MTYPE_PREFIX, "Prefix" },
37 { MTYPE_PREFIX_IPV4, "Prefix IPv4" },
38 { MTYPE_PREFIX_IPV6, "Prefix IPv6" },
39 { MTYPE_HASH, "Hash" },
40 { MTYPE_HASH_BACKET, "Hash Bucket" },
41 { MTYPE_HASH_INDEX, "Hash Index" },
42 { MTYPE_ROUTE_TABLE, "Route table" },
43 { MTYPE_ROUTE_NODE, "Route node" },
44 { MTYPE_DISTRIBUTE, "Distribute list" },
45 { MTYPE_DISTRIBUTE_IFNAME, "Dist-list ifname" },
46 { MTYPE_ACCESS_LIST, "Access List" },
47 { MTYPE_ACCESS_LIST_STR, "Access List Str" },
48 { MTYPE_ACCESS_FILTER, "Access Filter" },
49 { MTYPE_PREFIX_LIST, "Prefix List" },
paul2c1de2a2005-04-25 14:02:44 +000050 { MTYPE_PREFIX_LIST_ENTRY, "Prefix List Entry" },
51 { MTYPE_PREFIX_LIST_STR, "Prefix List Str" },
paul2fd2fd52005-04-15 11:47:15 +000052 { MTYPE_ROUTE_MAP, "Route map" },
53 { MTYPE_ROUTE_MAP_NAME, "Route map name" },
54 { MTYPE_ROUTE_MAP_INDEX, "Route map index" },
55 { MTYPE_ROUTE_MAP_RULE, "Route map rule" },
56 { MTYPE_ROUTE_MAP_RULE_STR, "Route map rule str" },
57 { MTYPE_ROUTE_MAP_COMPILED, "Route map compiled" },
58 { MTYPE_DESC, "Command desc" },
59 { MTYPE_KEY, "Key" },
60 { MTYPE_KEYCHAIN, "Key chain" },
61 { MTYPE_IF_RMAP, "Interface route map" },
paul02416842005-10-26 05:05:16 +000062 { MTYPE_IF_RMAP_NAME, "I.f. route map name", },
paul2fd2fd52005-04-15 11:47:15 +000063 { MTYPE_SOCKUNION, "Socket union" },
64 { MTYPE_PRIVS, "Privilege information" },
65 { MTYPE_ZLOG, "Logging" },
66 { MTYPE_ZCLIENT, "Zclient" },
paul354d1192005-04-25 16:26:42 +000067 { MTYPE_WORK_QUEUE, "Work queue" },
68 { MTYPE_WORK_QUEUE_ITEM, "Work queue item" },
69 { MTYPE_WORK_QUEUE_NAME, "Work queue name string" },
paul02416842005-10-26 05:05:16 +000070 { MTYPE_PQUEUE, "Priority queue" },
71 { MTYPE_PQUEUE_DATA, "Priority queue data" },
72 { MTYPE_HOST, "Host config" },
paul2fd2fd52005-04-15 11:47:15 +000073 { -1, NULL },
74};
75
76struct memory_list memory_list_zebra[] =
77{
78 { MTYPE_RTADV_PREFIX, "Router Advertisement Prefix" },
79 { MTYPE_VRF, "VRF" },
80 { MTYPE_VRF_NAME, "VRF name" },
81 { MTYPE_NEXTHOP, "Nexthop" },
82 { MTYPE_RIB, "RIB" },
paul354d1192005-04-25 16:26:42 +000083 { MTYPE_RIB_QUEUE, "RIB process work queue" },
paul2fd2fd52005-04-15 11:47:15 +000084 { MTYPE_STATIC_IPV4, "Static IPv4 route" },
85 { MTYPE_STATIC_IPV6, "Static IPv6 route" },
86 { -1, NULL },
87};
88
89struct memory_list memory_list_bgp[] =
90{
91 { MTYPE_BGP, "BGP instance" },
Stephen Hemmingerd023aec2009-07-21 16:27:21 -070092 { MTYPE_BGP_LISTENER, "BGP listen socket details" },
paul2fd2fd52005-04-15 11:47:15 +000093 { MTYPE_BGP_PEER, "BGP peer" },
paule387e662005-05-19 02:13:28 +000094 { MTYPE_BGP_PEER_HOST, "BGP peer hostname" },
paul2fd2fd52005-04-15 11:47:15 +000095 { MTYPE_PEER_GROUP, "Peer group" },
96 { MTYPE_PEER_DESC, "Peer description" },
Paul Jakma0df7c912008-07-21 21:02:49 +000097 { MTYPE_PEER_PASSWORD, "Peer password string" },
paul2fd2fd52005-04-15 11:47:15 +000098 { MTYPE_ATTR, "BGP attribute" },
Paul Jakmafb982c22007-05-04 20:15:47 +000099 { MTYPE_ATTR_EXTRA, "BGP extra attributes" },
paul2fd2fd52005-04-15 11:47:15 +0000100 { MTYPE_AS_PATH, "BGP aspath" },
101 { MTYPE_AS_SEG, "BGP aspath seg" },
paul75b2dd02005-09-21 14:06:35 +0000102 { MTYPE_AS_SEG_DATA, "BGP aspath segment data" },
paul2fd2fd52005-04-15 11:47:15 +0000103 { MTYPE_AS_STR, "BGP aspath str" },
104 { 0, NULL },
105 { MTYPE_BGP_TABLE, "BGP table" },
106 { MTYPE_BGP_NODE, "BGP node" },
107 { MTYPE_BGP_ROUTE, "BGP route" },
Paul Jakmafb982c22007-05-04 20:15:47 +0000108 { MTYPE_BGP_ROUTE_EXTRA, "BGP ancillary route info" },
Chris Caputo6c88b442010-07-27 16:28:55 +0000109 { MTYPE_BGP_CONN, "BGP connected" },
paul2fd2fd52005-04-15 11:47:15 +0000110 { MTYPE_BGP_STATIC, "BGP static" },
111 { MTYPE_BGP_ADVERTISE_ATTR, "BGP adv attr" },
112 { MTYPE_BGP_ADVERTISE, "BGP adv" },
Paul Jakmab51f1262006-03-30 14:09:38 +0000113 { MTYPE_BGP_SYNCHRONISE, "BGP synchronise" },
paul2fd2fd52005-04-15 11:47:15 +0000114 { MTYPE_BGP_ADJ_IN, "BGP adj in" },
115 { MTYPE_BGP_ADJ_OUT, "BGP adj out" },
Josh Baileyde8d5df2011-07-20 20:46:01 -0700116 { MTYPE_BGP_MPATH_INFO, "BGP multipath info" },
paul2fd2fd52005-04-15 11:47:15 +0000117 { 0, NULL },
118 { MTYPE_AS_LIST, "BGP AS list" },
119 { MTYPE_AS_FILTER, "BGP AS filter" },
120 { MTYPE_AS_FILTER_STR, "BGP AS filter str" },
121 { 0, NULL },
122 { MTYPE_COMMUNITY, "community" },
123 { MTYPE_COMMUNITY_VAL, "community val" },
124 { MTYPE_COMMUNITY_STR, "community str" },
125 { 0, NULL },
126 { MTYPE_ECOMMUNITY, "extcommunity" },
127 { MTYPE_ECOMMUNITY_VAL, "extcommunity val" },
128 { MTYPE_ECOMMUNITY_STR, "extcommunity str" },
129 { 0, NULL },
130 { MTYPE_COMMUNITY_LIST, "community-list" },
131 { MTYPE_COMMUNITY_LIST_NAME, "community-list name" },
132 { MTYPE_COMMUNITY_LIST_ENTRY, "community-list entry" },
133 { MTYPE_COMMUNITY_LIST_CONFIG, "community-list config" },
134 { MTYPE_COMMUNITY_LIST_HANDLER, "community-list handler" },
135 { 0, NULL },
136 { MTYPE_CLUSTER, "Cluster list" },
137 { MTYPE_CLUSTER_VAL, "Cluster list val" },
138 { 0, NULL },
paul200df112005-06-01 11:17:05 +0000139 { MTYPE_BGP_PROCESS_QUEUE, "BGP Process queue" },
140 { MTYPE_BGP_CLEAR_NODE_QUEUE, "BGP node clear queue" },
141 { 0, NULL },
paul2fd2fd52005-04-15 11:47:15 +0000142 { MTYPE_TRANSIT, "BGP transit attr" },
143 { MTYPE_TRANSIT_VAL, "BGP transit val" },
144 { 0, NULL },
145 { MTYPE_BGP_DISTANCE, "BGP distance" },
146 { MTYPE_BGP_NEXTHOP_CACHE, "BGP nexthop" },
147 { MTYPE_BGP_CONFED_LIST, "BGP confed list" },
148 { MTYPE_PEER_UPDATE_SOURCE, "BGP peer update interface" },
149 { MTYPE_BGP_DAMP_INFO, "Dampening info" },
150 { MTYPE_BGP_DAMP_ARRAY, "BGP Dampening array" },
151 { MTYPE_BGP_REGEXP, "BGP regexp" },
152 { MTYPE_BGP_AGGREGATE, "BGP aggregate" },
153 { -1, NULL }
154};
155
156struct memory_list memory_list_rip[] =
157{
158 { MTYPE_RIP, "RIP structure" },
159 { MTYPE_RIP_INFO, "RIP route info" },
160 { MTYPE_RIP_INTERFACE, "RIP interface" },
161 { MTYPE_RIP_PEER, "RIP peer" },
162 { MTYPE_RIP_OFFSET_LIST, "RIP offset list" },
163 { MTYPE_RIP_DISTANCE, "RIP distance" },
164 { -1, NULL }
165};
166
167struct memory_list memory_list_ripng[] =
168{
169 { MTYPE_RIPNG, "RIPng structure" },
170 { MTYPE_RIPNG_ROUTE, "RIPng route info" },
171 { MTYPE_RIPNG_AGGREGATE, "RIPng aggregate" },
172 { MTYPE_RIPNG_PEER, "RIPng peer" },
173 { MTYPE_RIPNG_OFFSET_LIST, "RIPng offset lst" },
174 { MTYPE_RIPNG_RTE_DATA, "RIPng rte data" },
175 { -1, NULL }
176};
177
Paul Jakma57345092011-12-25 17:52:09 +0100178struct memory_list memory_list_babel[] =
179{
180 { MTYPE_BABEL, "Babel structure" },
181 { MTYPE_BABEL_IF, "Babel interface" },
182 { -1, NULL }
183};
184
paul2fd2fd52005-04-15 11:47:15 +0000185struct memory_list memory_list_ospf[] =
186{
187 { MTYPE_OSPF_TOP, "OSPF top" },
188 { MTYPE_OSPF_AREA, "OSPF area" },
189 { MTYPE_OSPF_AREA_RANGE, "OSPF area range" },
190 { MTYPE_OSPF_NETWORK, "OSPF network" },
191 { MTYPE_OSPF_NEIGHBOR_STATIC,"OSPF static nbr" },
192 { MTYPE_OSPF_IF, "OSPF interface" },
193 { MTYPE_OSPF_NEIGHBOR, "OSPF neighbor" },
194 { MTYPE_OSPF_ROUTE, "OSPF route" },
195 { MTYPE_OSPF_TMP, "OSPF tmp mem" },
196 { MTYPE_OSPF_LSA, "OSPF LSA" },
197 { MTYPE_OSPF_LSA_DATA, "OSPF LSA data" },
198 { MTYPE_OSPF_LSDB, "OSPF LSDB" },
199 { MTYPE_OSPF_PACKET, "OSPF packet" },
200 { MTYPE_OSPF_FIFO, "OSPF FIFO queue" },
201 { MTYPE_OSPF_VERTEX, "OSPF vertex" },
pauleb3da6d2005-10-18 04:20:33 +0000202 { MTYPE_OSPF_VERTEX_PARENT, "OSPF vertex parent", },
paul2fd2fd52005-04-15 11:47:15 +0000203 { MTYPE_OSPF_NEXTHOP, "OSPF nexthop" },
204 { MTYPE_OSPF_PATH, "OSPF path" },
205 { MTYPE_OSPF_VL_DATA, "OSPF VL data" },
206 { MTYPE_OSPF_CRYPT_KEY, "OSPF crypt key" },
207 { MTYPE_OSPF_EXTERNAL_INFO, "OSPF ext. info" },
208 { MTYPE_OSPF_DISTANCE, "OSPF distance" },
209 { MTYPE_OSPF_IF_INFO, "OSPF if info" },
210 { MTYPE_OSPF_IF_PARAMS, "OSPF if params" },
211 { MTYPE_OSPF_MESSAGE, "OSPF message" },
212 { -1, NULL },
213};
214
215struct memory_list memory_list_ospf6[] =
216{
217 { MTYPE_OSPF6_TOP, "OSPF6 top" },
218 { MTYPE_OSPF6_AREA, "OSPF6 area" },
219 { MTYPE_OSPF6_IF, "OSPF6 interface" },
220 { MTYPE_OSPF6_NEIGHBOR, "OSPF6 neighbor" },
221 { MTYPE_OSPF6_ROUTE, "OSPF6 route" },
222 { MTYPE_OSPF6_PREFIX, "OSPF6 prefix" },
223 { MTYPE_OSPF6_MESSAGE, "OSPF6 message" },
224 { MTYPE_OSPF6_LSA, "OSPF6 LSA" },
225 { MTYPE_OSPF6_LSA_SUMMARY, "OSPF6 LSA summary" },
226 { MTYPE_OSPF6_LSDB, "OSPF6 LSA database" },
227 { MTYPE_OSPF6_VERTEX, "OSPF6 vertex" },
228 { MTYPE_OSPF6_SPFTREE, "OSPF6 SPF tree" },
229 { MTYPE_OSPF6_NEXTHOP, "OSPF6 nexthop" },
230 { MTYPE_OSPF6_EXTERNAL_INFO,"OSPF6 ext. info" },
231 { MTYPE_OSPF6_OTHER, "OSPF6 other" },
232 { -1, NULL },
233};
234
235struct memory_list memory_list_isis[] =
236{
237 { MTYPE_ISIS, "ISIS" },
238 { MTYPE_ISIS_TMP, "ISIS TMP" },
239 { MTYPE_ISIS_CIRCUIT, "ISIS circuit" },
240 { MTYPE_ISIS_LSP, "ISIS LSP" },
241 { MTYPE_ISIS_ADJACENCY, "ISIS adjacency" },
242 { MTYPE_ISIS_AREA, "ISIS area" },
243 { MTYPE_ISIS_AREA_ADDR, "ISIS area address" },
244 { MTYPE_ISIS_TLV, "ISIS TLV" },
245 { MTYPE_ISIS_DYNHN, "ISIS dyn hostname" },
246 { MTYPE_ISIS_SPFTREE, "ISIS SPFtree" },
247 { MTYPE_ISIS_VERTEX, "ISIS vertex" },
248 { MTYPE_ISIS_ROUTE_INFO, "ISIS route info" },
249 { MTYPE_ISIS_NEXTHOP, "ISIS nexthop" },
250 { MTYPE_ISIS_NEXTHOP6, "ISIS nexthop6" },
Josh Bailey3f045a02012-03-24 08:35:20 -0700251 { MTYPE_ISIS_DICT, "ISIS dictionary" },
252 { MTYPE_ISIS_DICT_NODE, "ISIS dictionary node" },
paul2fd2fd52005-04-15 11:47:15 +0000253 { -1, NULL },
254};
255
256struct memory_list memory_list_vtysh[] =
257{
258 { MTYPE_VTYSH_CONFIG, "Vtysh configuration", },
259 { MTYPE_VTYSH_CONFIG_LINE, "Vtysh configuration line" },
260 { -1, NULL },
261};
262
263struct mlist mlists[] __attribute__ ((unused)) = {
264 { memory_list_lib, "LIB" },
265 { memory_list_zebra, "ZEBRA" },
266 { memory_list_rip, "RIP" },
267 { memory_list_ripng, "RIPNG" },
268 { memory_list_ospf, "OSPF" },
269 { memory_list_ospf6, "OSPF6" },
270 { memory_list_isis, "ISIS" },
271 { memory_list_bgp, "BGP" },
272 { NULL, NULL},
273};