1 /* Auto-generated from route_types.txt by . */
4 #ifndef _QUAGGA_ROUTE_TYPES_H
5 #define _QUAGGA_ROUTE_TYPES_H
7 /* Zebra route's types. */
8 #define ZEBRA_ROUTE_SYSTEM 0
9 #define ZEBRA_ROUTE_KERNEL 1
10 #define ZEBRA_ROUTE_CONNECT 2
11 #define ZEBRA_ROUTE_STATIC 3
12 #define ZEBRA_ROUTE_RIP 4
13 #define ZEBRA_ROUTE_RIPNG 5
14 #define ZEBRA_ROUTE_OSPF 6
15 #define ZEBRA_ROUTE_OSPF6 7
16 #define ZEBRA_ROUTE_ISIS 8
17 #define ZEBRA_ROUTE_BGP 9
18 #define ZEBRA_ROUTE_PIM 10
19 #define ZEBRA_ROUTE_HSLS 11
20 #define ZEBRA_ROUTE_OLSR 12
21 #define ZEBRA_ROUTE_BABEL 13
22 #define ZEBRA_ROUTE_NHRP 14
23 #define ZEBRA_ROUTE_MAX 15
25 #define SHOW_ROUTE_V4_HEADER \
26 "Codes: K - kernel route, C - connected, S - static, R - RIP,%s" \
27 " O - OSPF, I - IS-IS, B - BGP, P - PIM, A - Babel, N - NHRP,%s" \
28 " > - selected route, * - FIB route%s%s", \
29 VTY_NEWLINE, VTY_NEWLINE, VTY_NEWLINE, VTY_NEWLINE
30 #define SHOW_ROUTE_V6_HEADER \
31 "Codes: K - kernel route, C - connected, S - static, R - RIPng,%s" \
32 " O - OSPFv6, I - IS-IS, B - BGP, A - Babel, N - NHRP,%s" \
33 " > - selected route, * - FIB route%s%s", \
34 VTY_NEWLINE, VTY_NEWLINE, VTY_NEWLINE, VTY_NEWLINE
37 #define QUAGGA_REDIST_STR_BABELD \
38 "(kernel|connected|static|rip|ripng|ospf|ospf6|isis|bgp|pim|nhrp)"
39 #define QUAGGA_REDIST_HELP_STR_BABELD \
40 "Kernel routes (not installed via the zebra RIB)\n" \
41 "Connected routes (directly attached subnet or host)\n" \
42 "Statically configured routes\n" \
43 "Routing Information Protocol (RIP)\n" \
44 "Routing Information Protocol next-generation (IPv6) (RIPng)\n" \
45 "Open Shortest Path First (OSPFv2)\n" \
46 "Open Shortest Path First (IPv6) (OSPFv3)\n" \
47 "Intermediate System to Intermediate System (IS-IS)\n" \
48 "Border Gateway Protocol (BGP)\n" \
49 "Protocol Independent Multicast (PIM)\n" \
50 "Next Hop Resolution Protocol (NHRP)\n"
51 #define QUAGGA_IP_REDIST_STR_BABELD \
52 "(kernel|connected|static|rip|ospf|isis|bgp|pim|nhrp)"
53 #define QUAGGA_IP_REDIST_HELP_STR_BABELD \
54 "Kernel routes (not installed via the zebra RIB)\n" \
55 "Connected routes (directly attached subnet or host)\n" \
56 "Statically configured routes\n" \
57 "Routing Information Protocol (RIP)\n" \
58 "Open Shortest Path First (OSPFv2)\n" \
59 "Intermediate System to Intermediate System (IS-IS)\n" \
60 "Border Gateway Protocol (BGP)\n" \
61 "Protocol Independent Multicast (PIM)\n" \
62 "Next Hop Resolution Protocol (NHRP)\n"
63 #define QUAGGA_IP6_REDIST_STR_BABELD \
64 "(kernel|connected|static|ripng|ospf6|isis|bgp|nhrp)"
65 #define QUAGGA_IP6_REDIST_HELP_STR_BABELD \
66 "Kernel routes (not installed via the zebra RIB)\n" \
67 "Connected routes (directly attached subnet or host)\n" \
68 "Statically configured routes\n" \
69 "Routing Information Protocol next-generation (IPv6) (RIPng)\n" \
70 "Open Shortest Path First (IPv6) (OSPFv3)\n" \
71 "Intermediate System to Intermediate System (IS-IS)\n" \
72 "Border Gateway Protocol (BGP)\n" \
73 "Next Hop Resolution Protocol (NHRP)\n"
76 #define QUAGGA_REDIST_STR_BGPD \
77 "(kernel|connected|static|rip|ripng|ospf|ospf6|isis|pim|babel|nhrp)"
78 #define QUAGGA_REDIST_HELP_STR_BGPD \
79 "Kernel routes (not installed via the zebra RIB)\n" \
80 "Connected routes (directly attached subnet or host)\n" \
81 "Statically configured routes\n" \
82 "Routing Information Protocol (RIP)\n" \
83 "Routing Information Protocol next-generation (IPv6) (RIPng)\n" \
84 "Open Shortest Path First (OSPFv2)\n" \
85 "Open Shortest Path First (IPv6) (OSPFv3)\n" \
86 "Intermediate System to Intermediate System (IS-IS)\n" \
87 "Protocol Independent Multicast (PIM)\n" \
88 "Babel routing protocol (Babel)\n" \
89 "Next Hop Resolution Protocol (NHRP)\n"
90 #define QUAGGA_IP_REDIST_STR_BGPD \
91 "(kernel|connected|static|rip|ospf|isis|pim|babel|nhrp)"
92 #define QUAGGA_IP_REDIST_HELP_STR_BGPD \
93 "Kernel routes (not installed via the zebra RIB)\n" \
94 "Connected routes (directly attached subnet or host)\n" \
95 "Statically configured routes\n" \
96 "Routing Information Protocol (RIP)\n" \
97 "Open Shortest Path First (OSPFv2)\n" \
98 "Intermediate System to Intermediate System (IS-IS)\n" \
99 "Protocol Independent Multicast (PIM)\n" \
100 "Babel routing protocol (Babel)\n" \
101 "Next Hop Resolution Protocol (NHRP)\n"
102 #define QUAGGA_IP6_REDIST_STR_BGPD \
103 "(kernel|connected|static|ripng|ospf6|isis|babel|nhrp)"
104 #define QUAGGA_IP6_REDIST_HELP_STR_BGPD \
105 "Kernel routes (not installed via the zebra RIB)\n" \
106 "Connected routes (directly attached subnet or host)\n" \
107 "Statically configured routes\n" \
108 "Routing Information Protocol next-generation (IPv6) (RIPng)\n" \
109 "Open Shortest Path First (IPv6) (OSPFv3)\n" \
110 "Intermediate System to Intermediate System (IS-IS)\n" \
111 "Babel routing protocol (Babel)\n" \
112 "Next Hop Resolution Protocol (NHRP)\n"
115 #define QUAGGA_REDIST_STR_ISISD \
116 "(kernel|connected|static|rip|ripng|ospf|ospf6|bgp|pim|babel|nhrp)"
117 #define QUAGGA_REDIST_HELP_STR_ISISD \
118 "Kernel routes (not installed via the zebra RIB)\n" \
119 "Connected routes (directly attached subnet or host)\n" \
120 "Statically configured routes\n" \
121 "Routing Information Protocol (RIP)\n" \
122 "Routing Information Protocol next-generation (IPv6) (RIPng)\n" \
123 "Open Shortest Path First (OSPFv2)\n" \
124 "Open Shortest Path First (IPv6) (OSPFv3)\n" \
125 "Border Gateway Protocol (BGP)\n" \
126 "Protocol Independent Multicast (PIM)\n" \
127 "Babel routing protocol (Babel)\n" \
128 "Next Hop Resolution Protocol (NHRP)\n"
129 #define QUAGGA_IP_REDIST_STR_ISISD \
130 "(kernel|connected|static|rip|ospf|bgp|pim|babel|nhrp)"
131 #define QUAGGA_IP_REDIST_HELP_STR_ISISD \
132 "Kernel routes (not installed via the zebra RIB)\n" \
133 "Connected routes (directly attached subnet or host)\n" \
134 "Statically configured routes\n" \
135 "Routing Information Protocol (RIP)\n" \
136 "Open Shortest Path First (OSPFv2)\n" \
137 "Border Gateway Protocol (BGP)\n" \
138 "Protocol Independent Multicast (PIM)\n" \
139 "Babel routing protocol (Babel)\n" \
140 "Next Hop Resolution Protocol (NHRP)\n"
141 #define QUAGGA_IP6_REDIST_STR_ISISD \
142 "(kernel|connected|static|ripng|ospf6|bgp|babel|nhrp)"
143 #define QUAGGA_IP6_REDIST_HELP_STR_ISISD \
144 "Kernel routes (not installed via the zebra RIB)\n" \
145 "Connected routes (directly attached subnet or host)\n" \
146 "Statically configured routes\n" \
147 "Routing Information Protocol next-generation (IPv6) (RIPng)\n" \
148 "Open Shortest Path First (IPv6) (OSPFv3)\n" \
149 "Border Gateway Protocol (BGP)\n" \
150 "Babel routing protocol (Babel)\n" \
151 "Next Hop Resolution Protocol (NHRP)\n"
154 #define QUAGGA_REDIST_STR_NHRPD \
155 "(kernel|connected|static|rip|ripng|ospf|ospf6|isis|bgp|pim|babel)"
156 #define QUAGGA_REDIST_HELP_STR_NHRPD \
157 "Kernel routes (not installed via the zebra RIB)\n" \
158 "Connected routes (directly attached subnet or host)\n" \
159 "Statically configured routes\n" \
160 "Routing Information Protocol (RIP)\n" \
161 "Routing Information Protocol next-generation (IPv6) (RIPng)\n" \
162 "Open Shortest Path First (OSPFv2)\n" \
163 "Open Shortest Path First (IPv6) (OSPFv3)\n" \
164 "Intermediate System to Intermediate System (IS-IS)\n" \
165 "Border Gateway Protocol (BGP)\n" \
166 "Protocol Independent Multicast (PIM)\n" \
167 "Babel routing protocol (Babel)\n"
168 #define QUAGGA_IP_REDIST_STR_NHRPD \
169 "(kernel|connected|static|rip|ospf|isis|bgp|pim|babel)"
170 #define QUAGGA_IP_REDIST_HELP_STR_NHRPD \
171 "Kernel routes (not installed via the zebra RIB)\n" \
172 "Connected routes (directly attached subnet or host)\n" \
173 "Statically configured routes\n" \
174 "Routing Information Protocol (RIP)\n" \
175 "Open Shortest Path First (OSPFv2)\n" \
176 "Intermediate System to Intermediate System (IS-IS)\n" \
177 "Border Gateway Protocol (BGP)\n" \
178 "Protocol Independent Multicast (PIM)\n" \
179 "Babel routing protocol (Babel)\n"
180 #define QUAGGA_IP6_REDIST_STR_NHRPD \
181 "(kernel|connected|static|ripng|ospf6|isis|bgp|babel)"
182 #define QUAGGA_IP6_REDIST_HELP_STR_NHRPD \
183 "Kernel routes (not installed via the zebra RIB)\n" \
184 "Connected routes (directly attached subnet or host)\n" \
185 "Statically configured routes\n" \
186 "Routing Information Protocol next-generation (IPv6) (RIPng)\n" \
187 "Open Shortest Path First (IPv6) (OSPFv3)\n" \
188 "Intermediate System to Intermediate System (IS-IS)\n" \
189 "Border Gateway Protocol (BGP)\n" \
190 "Babel routing protocol (Babel)\n"
193 #define QUAGGA_REDIST_STR_OSPF6D \
194 "(kernel|connected|static|ripng|isis|bgp|babel|nhrp)"
195 #define QUAGGA_REDIST_HELP_STR_OSPF6D \
196 "Kernel routes (not installed via the zebra RIB)\n" \
197 "Connected routes (directly attached subnet or host)\n" \
198 "Statically configured routes\n" \
199 "Routing Information Protocol next-generation (IPv6) (RIPng)\n" \
200 "Intermediate System to Intermediate System (IS-IS)\n" \
201 "Border Gateway Protocol (BGP)\n" \
202 "Babel routing protocol (Babel)\n" \
203 "Next Hop Resolution Protocol (NHRP)\n"
206 #define QUAGGA_REDIST_STR_OSPFD \
207 "(kernel|connected|static|rip|isis|bgp|pim|babel|nhrp)"
208 #define QUAGGA_REDIST_HELP_STR_OSPFD \
209 "Kernel routes (not installed via the zebra RIB)\n" \
210 "Connected routes (directly attached subnet or host)\n" \
211 "Statically configured routes\n" \
212 "Routing Information Protocol (RIP)\n" \
213 "Intermediate System to Intermediate System (IS-IS)\n" \
214 "Border Gateway Protocol (BGP)\n" \
215 "Protocol Independent Multicast (PIM)\n" \
216 "Babel routing protocol (Babel)\n" \
217 "Next Hop Resolution Protocol (NHRP)\n"
220 #define QUAGGA_REDIST_STR_PIMD \
221 "(kernel|connected|static|rip|ospf|isis|bgp|babel|nhrp)"
222 #define QUAGGA_REDIST_HELP_STR_PIMD \
223 "Kernel routes (not installed via the zebra RIB)\n" \
224 "Connected routes (directly attached subnet or host)\n" \
225 "Statically configured routes\n" \
226 "Routing Information Protocol (RIP)\n" \
227 "Open Shortest Path First (OSPFv2)\n" \
228 "Intermediate System to Intermediate System (IS-IS)\n" \
229 "Border Gateway Protocol (BGP)\n" \
230 "Babel routing protocol (Babel)\n" \
231 "Next Hop Resolution Protocol (NHRP)\n"
234 #define QUAGGA_REDIST_STR_RIPD \
235 "(kernel|connected|static|ospf|isis|bgp|pim|babel|nhrp)"
236 #define QUAGGA_REDIST_HELP_STR_RIPD \
237 "Kernel routes (not installed via the zebra RIB)\n" \
238 "Connected routes (directly attached subnet or host)\n" \
239 "Statically configured routes\n" \
240 "Open Shortest Path First (OSPFv2)\n" \
241 "Intermediate System to Intermediate System (IS-IS)\n" \
242 "Border Gateway Protocol (BGP)\n" \
243 "Protocol Independent Multicast (PIM)\n" \
244 "Babel routing protocol (Babel)\n" \
245 "Next Hop Resolution Protocol (NHRP)\n"
248 #define QUAGGA_REDIST_STR_RIPNGD \
249 "(kernel|connected|static|ospf6|isis|bgp|babel|nhrp)"
250 #define QUAGGA_REDIST_HELP_STR_RIPNGD \
251 "Kernel routes (not installed via the zebra RIB)\n" \
252 "Connected routes (directly attached subnet or host)\n" \
253 "Statically configured routes\n" \
254 "Open Shortest Path First (IPv6) (OSPFv3)\n" \
255 "Intermediate System to Intermediate System (IS-IS)\n" \
256 "Border Gateway Protocol (BGP)\n" \
257 "Babel routing protocol (Babel)\n" \
258 "Next Hop Resolution Protocol (NHRP)\n"
261 #define QUAGGA_REDIST_STR_ZEBRA \
262 "(kernel|connected|static|rip|ripng|ospf|ospf6|isis|bgp|pim|babel|nhrp)"
263 #define QUAGGA_REDIST_HELP_STR_ZEBRA \
264 "Kernel routes (not installed via the zebra RIB)\n" \
265 "Connected routes (directly attached subnet or host)\n" \
266 "Statically configured routes\n" \
267 "Routing Information Protocol (RIP)\n" \
268 "Routing Information Protocol next-generation (IPv6) (RIPng)\n" \
269 "Open Shortest Path First (OSPFv2)\n" \
270 "Open Shortest Path First (IPv6) (OSPFv3)\n" \
271 "Intermediate System to Intermediate System (IS-IS)\n" \
272 "Border Gateway Protocol (BGP)\n" \
273 "Protocol Independent Multicast (PIM)\n" \
274 "Babel routing protocol (Babel)\n" \
275 "Next Hop Resolution Protocol (NHRP)\n"
276 #define QUAGGA_IP_REDIST_STR_ZEBRA \
277 "(kernel|connected|static|rip|ospf|isis|bgp|pim|babel|nhrp)"
278 #define QUAGGA_IP_REDIST_HELP_STR_ZEBRA \
279 "Kernel routes (not installed via the zebra RIB)\n" \
280 "Connected routes (directly attached subnet or host)\n" \
281 "Statically configured routes\n" \
282 "Routing Information Protocol (RIP)\n" \
283 "Open Shortest Path First (OSPFv2)\n" \
284 "Intermediate System to Intermediate System (IS-IS)\n" \
285 "Border Gateway Protocol (BGP)\n" \
286 "Protocol Independent Multicast (PIM)\n" \
287 "Babel routing protocol (Babel)\n" \
288 "Next Hop Resolution Protocol (NHRP)\n"
289 #define QUAGGA_IP6_REDIST_STR_ZEBRA \
290 "(kernel|connected|static|ripng|ospf6|isis|bgp|babel|nhrp)"
291 #define QUAGGA_IP6_REDIST_HELP_STR_ZEBRA \
292 "Kernel routes (not installed via the zebra RIB)\n" \
293 "Connected routes (directly attached subnet or host)\n" \
294 "Statically configured routes\n" \
295 "Routing Information Protocol next-generation (IPv6) (RIPng)\n" \
296 "Open Shortest Path First (IPv6) (OSPFv3)\n" \
297 "Intermediate System to Intermediate System (IS-IS)\n" \
298 "Border Gateway Protocol (BGP)\n" \
299 "Babel routing protocol (Babel)\n" \
300 "Next Hop Resolution Protocol (NHRP)\n"
303 #ifdef QUAGGA_DEFINE_DESC_TABLE
305 struct zebra_desc_table
312 #define DESC_ENTRY(T,S,C) [(T)] = { (T), (S), (C) }
313 static const struct zebra_desc_table route_types[] = {
314 DESC_ENTRY (ZEBRA_ROUTE_SYSTEM, "system", 'X' ),
315 DESC_ENTRY (ZEBRA_ROUTE_KERNEL, "kernel", 'K' ),
316 DESC_ENTRY (ZEBRA_ROUTE_CONNECT, "connected", 'C' ),
317 DESC_ENTRY (ZEBRA_ROUTE_STATIC, "static", 'S' ),
318 DESC_ENTRY (ZEBRA_ROUTE_RIP, "rip", 'R' ),
319 DESC_ENTRY (ZEBRA_ROUTE_RIPNG, "ripng", 'R' ),
320 DESC_ENTRY (ZEBRA_ROUTE_OSPF, "ospf", 'O' ),
321 DESC_ENTRY (ZEBRA_ROUTE_OSPF6, "ospf6", 'O' ),
322 DESC_ENTRY (ZEBRA_ROUTE_ISIS, "isis", 'I' ),
323 DESC_ENTRY (ZEBRA_ROUTE_BGP, "bgp", 'B' ),
324 DESC_ENTRY (ZEBRA_ROUTE_PIM, "pim", 'P' ),
325 DESC_ENTRY (ZEBRA_ROUTE_HSLS, "hsls", 'H' ),
326 DESC_ENTRY (ZEBRA_ROUTE_OLSR, "olsr", 'o' ),
327 DESC_ENTRY (ZEBRA_ROUTE_BABEL, "babel", 'A' ),
328 DESC_ENTRY (ZEBRA_ROUTE_NHRP, "nhrp", 'N' ),
332 #endif /* QUAGGA_DEFINE_DESC_TABLE */
334 #endif /* _QUAGGA_ROUTE_TYPES_H */