Line data Source code
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 144 : DEFINE_MGROUP(BGPD, "bgpd");
32 144 : DEFINE_MTYPE(BGPD, BGP, "BGP instance");
33 144 : DEFINE_MTYPE(BGPD, BGP_LISTENER, "BGP listen socket details");
34 144 : DEFINE_MTYPE(BGPD, BGP_PEER, "BGP peer");
35 144 : DEFINE_MTYPE(BGPD, BGP_PEER_HOST, "BGP peer hostname");
36 144 : DEFINE_MTYPE(BGPD, BGP_PEER_IFNAME, "BGP peer ifname");
37 144 : DEFINE_MTYPE(BGPD, PEER_GROUP, "Peer group");
38 144 : DEFINE_MTYPE(BGPD, PEER_GROUP_HOST, "BGP Peer group hostname");
39 144 : DEFINE_MTYPE(BGPD, PEER_DESC, "Peer description");
40 144 : DEFINE_MTYPE(BGPD, PEER_PASSWORD, "Peer password string");
41 144 : DEFINE_MTYPE(BGPD, BGP_PEER_AF, "BGP peer af");
42 144 : DEFINE_MTYPE(BGPD, BGP_UPDGRP, "BGP update group");
43 144 : DEFINE_MTYPE(BGPD, BGP_UPD_SUBGRP, "BGP update subgroup");
44 144 : DEFINE_MTYPE(BGPD, BGP_PACKET, "BGP packet");
45 144 : DEFINE_MTYPE(BGPD, ATTR, "BGP attribute");
46 144 : DEFINE_MTYPE(BGPD, AS_PATH, "BGP aspath");
47 144 : DEFINE_MTYPE(BGPD, AS_SEG, "BGP aspath seg");
48 144 : DEFINE_MTYPE(BGPD, AS_SEG_DATA, "BGP aspath segment data");
49 144 : DEFINE_MTYPE(BGPD, AS_STR, "BGP aspath str");
50 :
51 144 : DEFINE_MTYPE(BGPD, BGP_TABLE, "BGP table");
52 144 : DEFINE_MTYPE(BGPD, BGP_NODE, "BGP node");
53 144 : DEFINE_MTYPE(BGPD, BGP_ROUTE, "BGP route");
54 144 : DEFINE_MTYPE(BGPD, BGP_ROUTE_EXTRA, "BGP ancillary route info");
55 144 : DEFINE_MTYPE(BGPD, BGP_CONN, "BGP connected");
56 144 : DEFINE_MTYPE(BGPD, BGP_STATIC, "BGP static");
57 144 : DEFINE_MTYPE(BGPD, BGP_ADVERTISE_ATTR, "BGP adv attr");
58 144 : DEFINE_MTYPE(BGPD, BGP_ADVERTISE, "BGP adv");
59 144 : DEFINE_MTYPE(BGPD, BGP_SYNCHRONISE, "BGP synchronise");
60 144 : DEFINE_MTYPE(BGPD, BGP_ADJ_IN, "BGP adj in");
61 144 : DEFINE_MTYPE(BGPD, BGP_ADJ_OUT, "BGP adj out");
62 144 : DEFINE_MTYPE(BGPD, BGP_MPATH_INFO, "BGP multipath info");
63 :
64 144 : DEFINE_MTYPE(BGPD, AS_LIST, "BGP AS list");
65 144 : DEFINE_MTYPE(BGPD, AS_FILTER, "BGP AS filter");
66 144 : DEFINE_MTYPE(BGPD, AS_FILTER_STR, "BGP AS filter str");
67 :
68 144 : DEFINE_MTYPE(BGPD, COMMUNITY_ALIAS, "community alias");
69 :
70 144 : DEFINE_MTYPE(BGPD, COMMUNITY, "community");
71 144 : DEFINE_MTYPE(BGPD, COMMUNITY_VAL, "community val");
72 144 : DEFINE_MTYPE(BGPD, COMMUNITY_STR, "community str");
73 :
74 144 : DEFINE_MTYPE(BGPD, ECOMMUNITY, "extcommunity");
75 144 : DEFINE_MTYPE(BGPD, ECOMMUNITY_VAL, "extcommunity val");
76 144 : DEFINE_MTYPE(BGPD, ECOMMUNITY_STR, "extcommunity str");
77 :
78 144 : DEFINE_MTYPE(BGPD, COMMUNITY_LIST, "community-list");
79 144 : DEFINE_MTYPE(BGPD, COMMUNITY_LIST_NAME, "community-list name");
80 144 : DEFINE_MTYPE(BGPD, COMMUNITY_LIST_ENTRY, "community-list entry");
81 144 : DEFINE_MTYPE(BGPD, COMMUNITY_LIST_CONFIG, "community-list config");
82 144 : DEFINE_MTYPE(BGPD, COMMUNITY_LIST_HANDLER, "community-list handler");
83 :
84 144 : DEFINE_MTYPE(BGPD, CLUSTER, "Cluster list");
85 144 : DEFINE_MTYPE(BGPD, CLUSTER_VAL, "Cluster list val");
86 :
87 144 : DEFINE_MTYPE(BGPD, BGP_PROCESS_QUEUE, "BGP Process queue");
88 144 : DEFINE_MTYPE(BGPD, BGP_CLEAR_NODE_QUEUE, "BGP node clear queue");
89 :
90 144 : DEFINE_MTYPE(BGPD, TRANSIT, "BGP transit attr");
91 144 : DEFINE_MTYPE(BGPD, TRANSIT_VAL, "BGP transit val");
92 :
93 144 : DEFINE_MTYPE(BGPD, BGP_DEBUG_FILTER, "BGP debug filter");
94 144 : DEFINE_MTYPE(BGPD, BGP_DEBUG_STR, "BGP debug filter string");
95 :
96 144 : DEFINE_MTYPE(BGPD, BGP_DISTANCE, "BGP distance");
97 144 : DEFINE_MTYPE(BGPD, BGP_NEXTHOP_CACHE, "BGP nexthop");
98 144 : DEFINE_MTYPE(BGPD, BGP_CONFED_LIST, "BGP confed list");
99 144 : DEFINE_MTYPE(BGPD, PEER_UPDATE_SOURCE, "BGP peer update interface");
100 144 : DEFINE_MTYPE(BGPD, PEER_CONF_IF, "BGP peer config interface");
101 144 : DEFINE_MTYPE(BGPD, BGP_DAMP_INFO, "Dampening info");
102 144 : DEFINE_MTYPE(BGPD, BGP_DAMP_ARRAY, "BGP Dampening array");
103 144 : DEFINE_MTYPE(BGPD, BGP_REGEXP, "BGP regexp");
104 144 : DEFINE_MTYPE(BGPD, BGP_AGGREGATE, "BGP aggregate");
105 144 : DEFINE_MTYPE(BGPD, BGP_ADDR, "BGP own address");
106 144 : DEFINE_MTYPE(BGPD, TIP_ADDR, "BGP own tunnel-ip address");
107 :
108 144 : DEFINE_MTYPE(BGPD, BGP_REDIST, "BGP redistribution");
109 144 : DEFINE_MTYPE(BGPD, BGP_FILTER_NAME, "BGP Filter Information");
110 144 : DEFINE_MTYPE(BGPD, BGP_DUMP_STR, "BGP Dump String Information");
111 144 : DEFINE_MTYPE(BGPD, ENCAP_TLV, "ENCAP TLV");
112 :
113 144 : DEFINE_MTYPE(BGPD, BGP_TEA_OPTIONS, "BGP TEA Options");
114 144 : DEFINE_MTYPE(BGPD, BGP_TEA_OPTIONS_VALUE, "BGP TEA Options Value");
115 :
116 144 : DEFINE_MTYPE(BGPD, LCOMMUNITY, "Large Community");
117 144 : DEFINE_MTYPE(BGPD, LCOMMUNITY_STR, "Large Community display string");
118 144 : DEFINE_MTYPE(BGPD, LCOMMUNITY_VAL, "Large Community value");
119 :
120 144 : DEFINE_MTYPE(BGPD, BGP_EVPN, "BGP EVPN Information");
121 144 : DEFINE_MTYPE(BGPD, BGP_EVPN_MH_INFO, "BGP EVPN MH Information");
122 144 : DEFINE_MTYPE(BGPD, BGP_EVPN_ES_VTEP, "BGP EVPN ES VTEP");
123 144 : DEFINE_MTYPE(BGPD, BGP_EVPN_PATH_MH_INFO, "BGP EVPN PATH MH Information");
124 144 : DEFINE_MTYPE(BGPD, BGP_EVPN_PATH_ES_INFO, "BGP EVPN PATH ES Information");
125 144 : DEFINE_MTYPE(BGPD, BGP_EVPN_PATH_NH_INFO, "BGP EVPN PATH NH Information");
126 144 : DEFINE_MTYPE(BGPD, BGP_EVPN_NH, "BGP EVPN Nexthop");
127 144 : DEFINE_MTYPE(BGPD, BGP_EVPN_ES_EVI_VTEP, "BGP EVPN ES-EVI VTEP");
128 144 : DEFINE_MTYPE(BGPD, BGP_EVPN_ES, "BGP EVPN ESI Information");
129 144 : DEFINE_MTYPE(BGPD, BGP_EVPN_ES_FRAG, "BGP EVPN ES Fragment Information");
130 144 : DEFINE_MTYPE(BGPD, BGP_EVPN_ES_EVI, "BGP EVPN ES-per-EVI Information");
131 144 : DEFINE_MTYPE(BGPD, BGP_EVPN_ES_VRF, "BGP EVPN ES-per-VRF Information");
132 144 : DEFINE_MTYPE(BGPD, BGP_EVPN_IMPORT_RT, "BGP EVPN Import RT");
133 144 : DEFINE_MTYPE(BGPD, BGP_EVPN_VRF_IMPORT_RT, "BGP EVPN VRF Import RT");
134 :
135 144 : DEFINE_MTYPE(BGPD, BGP_SRV6_L3VPN, "BGP prefix-sid srv6 l3vpn servcie");
136 144 : DEFINE_MTYPE(BGPD, BGP_SRV6_VPN, "BGP prefix-sid srv6 vpn service");
137 144 : DEFINE_MTYPE(BGPD, BGP_SRV6_SID, "BGP srv6 segment-id");
138 144 : DEFINE_MTYPE(BGPD, BGP_SRV6_FUNCTION, "BGP srv6 function");
139 144 : DEFINE_MTYPE(BGPD, EVPN_REMOTE_IP, "BGP EVPN Remote IP hash entry");
140 :
141 144 : DEFINE_MTYPE(BGPD, BGP_NOTIFICATION, "BGP Notification Message");
|