]> git.proxmox.com Git - mirror_frr.git/blob - bgpd/bgp_memory.c
tests: run black over mcast-pim-static, static_routing_with_[ei]bgp
[mirror_frr.git] / bgpd / bgp_memory.c
1 /* bgpd memory type definitions
2 *
3 * Copyright (C) 2015 David Lamparter
4 *
5 * This file is part of Quagga.
6 *
7 * Quagga is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2, or (at your option) any
10 * later version.
11 *
12 * Quagga is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program; see the file COPYING; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21
22 #ifdef HAVE_CONFIG_H
23 #include "config.h"
24 #endif
25
26 #include "bgp_memory.h"
27
28 /* this file is temporary in nature; definitions should be moved to the
29 * files they're used in */
30
31 DEFINE_MGROUP(BGPD, "bgpd");
32 DEFINE_MTYPE(BGPD, BGP, "BGP instance");
33 DEFINE_MTYPE(BGPD, BGP_LISTENER, "BGP listen socket details");
34 DEFINE_MTYPE(BGPD, BGP_PEER, "BGP peer");
35 DEFINE_MTYPE(BGPD, BGP_PEER_HOST, "BGP peer hostname");
36 DEFINE_MTYPE(BGPD, BGP_PEER_IFNAME, "BGP peer ifname");
37 DEFINE_MTYPE(BGPD, PEER_GROUP, "Peer group");
38 DEFINE_MTYPE(BGPD, PEER_GROUP_HOST, "BGP Peer group hostname");
39 DEFINE_MTYPE(BGPD, PEER_DESC, "Peer description");
40 DEFINE_MTYPE(BGPD, PEER_PASSWORD, "Peer password string");
41 DEFINE_MTYPE(BGPD, BGP_PEER_AF, "BGP peer af");
42 DEFINE_MTYPE(BGPD, BGP_UPDGRP, "BGP update group");
43 DEFINE_MTYPE(BGPD, BGP_UPD_SUBGRP, "BGP update subgroup");
44 DEFINE_MTYPE(BGPD, BGP_PACKET, "BGP packet");
45 DEFINE_MTYPE(BGPD, ATTR, "BGP attribute");
46 DEFINE_MTYPE(BGPD, AS_PATH, "BGP aspath");
47 DEFINE_MTYPE(BGPD, AS_SEG, "BGP aspath seg");
48 DEFINE_MTYPE(BGPD, AS_SEG_DATA, "BGP aspath segment data");
49 DEFINE_MTYPE(BGPD, AS_STR, "BGP aspath str");
50
51 DEFINE_MTYPE(BGPD, BGP_TABLE, "BGP table");
52 DEFINE_MTYPE(BGPD, BGP_NODE, "BGP node");
53 DEFINE_MTYPE(BGPD, BGP_ROUTE, "BGP route");
54 DEFINE_MTYPE(BGPD, BGP_ROUTE_EXTRA, "BGP ancillary route info");
55 DEFINE_MTYPE(BGPD, BGP_CONN, "BGP connected");
56 DEFINE_MTYPE(BGPD, BGP_STATIC, "BGP static");
57 DEFINE_MTYPE(BGPD, BGP_ADVERTISE_ATTR, "BGP adv attr");
58 DEFINE_MTYPE(BGPD, BGP_ADVERTISE, "BGP adv");
59 DEFINE_MTYPE(BGPD, BGP_SYNCHRONISE, "BGP synchronise");
60 DEFINE_MTYPE(BGPD, BGP_ADJ_IN, "BGP adj in");
61 DEFINE_MTYPE(BGPD, BGP_ADJ_OUT, "BGP adj out");
62 DEFINE_MTYPE(BGPD, BGP_MPATH_INFO, "BGP multipath info");
63
64 DEFINE_MTYPE(BGPD, AS_LIST, "BGP AS list");
65 DEFINE_MTYPE(BGPD, AS_FILTER, "BGP AS filter");
66 DEFINE_MTYPE(BGPD, AS_FILTER_STR, "BGP AS filter str");
67
68 DEFINE_MTYPE(BGPD, COMMUNITY, "community");
69 DEFINE_MTYPE(BGPD, COMMUNITY_VAL, "community val");
70 DEFINE_MTYPE(BGPD, COMMUNITY_STR, "community str");
71
72 DEFINE_MTYPE(BGPD, ECOMMUNITY, "extcommunity");
73 DEFINE_MTYPE(BGPD, ECOMMUNITY_VAL, "extcommunity val");
74 DEFINE_MTYPE(BGPD, ECOMMUNITY_STR, "extcommunity str");
75
76 DEFINE_MTYPE(BGPD, COMMUNITY_LIST, "community-list");
77 DEFINE_MTYPE(BGPD, COMMUNITY_LIST_NAME, "community-list name");
78 DEFINE_MTYPE(BGPD, COMMUNITY_LIST_ENTRY, "community-list entry");
79 DEFINE_MTYPE(BGPD, COMMUNITY_LIST_CONFIG, "community-list config");
80 DEFINE_MTYPE(BGPD, COMMUNITY_LIST_HANDLER, "community-list handler");
81
82 DEFINE_MTYPE(BGPD, CLUSTER, "Cluster list");
83 DEFINE_MTYPE(BGPD, CLUSTER_VAL, "Cluster list val");
84
85 DEFINE_MTYPE(BGPD, BGP_PROCESS_QUEUE, "BGP Process queue");
86 DEFINE_MTYPE(BGPD, BGP_CLEAR_NODE_QUEUE, "BGP node clear queue");
87
88 DEFINE_MTYPE(BGPD, TRANSIT, "BGP transit attr");
89 DEFINE_MTYPE(BGPD, TRANSIT_VAL, "BGP transit val");
90
91 DEFINE_MTYPE(BGPD, BGP_DEBUG_FILTER, "BGP debug filter");
92 DEFINE_MTYPE(BGPD, BGP_DEBUG_STR, "BGP debug filter string");
93
94 DEFINE_MTYPE(BGPD, BGP_DISTANCE, "BGP distance");
95 DEFINE_MTYPE(BGPD, BGP_NEXTHOP_CACHE, "BGP nexthop");
96 DEFINE_MTYPE(BGPD, BGP_CONFED_LIST, "BGP confed list");
97 DEFINE_MTYPE(BGPD, PEER_UPDATE_SOURCE, "BGP peer update interface");
98 DEFINE_MTYPE(BGPD, PEER_CONF_IF, "BGP peer config interface");
99 DEFINE_MTYPE(BGPD, BGP_DAMP_INFO, "Dampening info");
100 DEFINE_MTYPE(BGPD, BGP_DAMP_ARRAY, "BGP Dampening array");
101 DEFINE_MTYPE(BGPD, BGP_DAMP_REUSELIST, "BGP Dampening reuse list");
102 DEFINE_MTYPE(BGPD, BGP_REGEXP, "BGP regexp");
103 DEFINE_MTYPE(BGPD, BGP_AGGREGATE, "BGP aggregate");
104 DEFINE_MTYPE(BGPD, BGP_ADDR, "BGP own address");
105 DEFINE_MTYPE(BGPD, TIP_ADDR, "BGP own tunnel-ip address");
106
107 DEFINE_MTYPE(BGPD, BGP_REDIST, "BGP redistribution");
108 DEFINE_MTYPE(BGPD, BGP_FILTER_NAME, "BGP Filter Information");
109 DEFINE_MTYPE(BGPD, BGP_DUMP_STR, "BGP Dump String Information");
110 DEFINE_MTYPE(BGPD, ENCAP_TLV, "ENCAP TLV");
111
112 DEFINE_MTYPE(BGPD, BGP_TEA_OPTIONS, "BGP TEA Options");
113 DEFINE_MTYPE(BGPD, BGP_TEA_OPTIONS_VALUE, "BGP TEA Options Value");
114
115 DEFINE_MTYPE(BGPD, LCOMMUNITY, "Large Community");
116 DEFINE_MTYPE(BGPD, LCOMMUNITY_STR, "Large Community display string");
117 DEFINE_MTYPE(BGPD, LCOMMUNITY_VAL, "Large Community value");
118
119 DEFINE_MTYPE(BGPD, BGP_EVPN, "BGP EVPN Information");
120 DEFINE_MTYPE(BGPD, BGP_EVPN_MH_INFO, "BGP EVPN MH Information");
121 DEFINE_MTYPE(BGPD, BGP_EVPN_ES_VTEP, "BGP EVPN ES VTEP");
122 DEFINE_MTYPE(BGPD, BGP_EVPN_PATH_MH_INFO, "BGP EVPN PATH MH Information");
123 DEFINE_MTYPE(BGPD, BGP_EVPN_PATH_ES_INFO, "BGP EVPN PATH ES Information");
124 DEFINE_MTYPE(BGPD, BGP_EVPN_PATH_NH_INFO, "BGP EVPN PATH NH Information");
125 DEFINE_MTYPE(BGPD, BGP_EVPN_NH, "BGP EVPN Nexthop");
126 DEFINE_MTYPE(BGPD, BGP_EVPN_ES_EVI_VTEP, "BGP EVPN ES-EVI VTEP");
127 DEFINE_MTYPE(BGPD, BGP_EVPN_ES, "BGP EVPN ESI Information");
128 DEFINE_MTYPE(BGPD, BGP_EVPN_ES_EVI, "BGP EVPN ES-per-EVI Information");
129 DEFINE_MTYPE(BGPD, BGP_EVPN_ES_VRF, "BGP EVPN ES-per-VRF Information");
130 DEFINE_MTYPE(BGPD, BGP_EVPN_IMPORT_RT, "BGP EVPN Import RT");
131 DEFINE_MTYPE(BGPD, BGP_EVPN_VRF_IMPORT_RT, "BGP EVPN VRF Import RT");
132 DEFINE_MTYPE(BGPD, BGP_EVPN_MACIP, "BGP EVPN MAC IP");
133
134 DEFINE_MTYPE(BGPD, BGP_FLOWSPEC, "BGP flowspec");
135 DEFINE_MTYPE(BGPD, BGP_FLOWSPEC_RULE, "BGP flowspec rule");
136 DEFINE_MTYPE(BGPD, BGP_FLOWSPEC_RULE_STR, "BGP flowspec rule str");
137 DEFINE_MTYPE(BGPD, BGP_FLOWSPEC_COMPILED, "BGP flowspec compiled");
138 DEFINE_MTYPE(BGPD, BGP_FLOWSPEC_NAME, "BGP flowspec name");
139 DEFINE_MTYPE(BGPD, BGP_FLOWSPEC_INDEX, "BGP flowspec index");
140
141 DEFINE_MTYPE(BGPD, BGP_SRV6_L3VPN, "BGP prefix-sid srv6 l3vpn servcie");
142 DEFINE_MTYPE(BGPD, BGP_SRV6_VPN, "BGP prefix-sid srv6 vpn service");