Annotation of embedaddon/quagga/lib/route_types.h, revision 1.1.1.2
1.1.1.2 ! misho 1: /* Auto-generated from route_types.txt by . */
1.1 misho 2: /* Do not edit! */
3:
4: #ifndef _QUAGGA_ROUTE_TYPES_H
5: #define _QUAGGA_ROUTE_TYPES_H
6:
1.1.1.2 ! misho 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_HSLS 10
! 19: #define ZEBRA_ROUTE_OLSR 11
! 20: #define ZEBRA_ROUTE_BABEL 12
! 21: #define ZEBRA_ROUTE_MAX 13
! 22:
! 23: #define SHOW_ROUTE_V4_HEADER \
! 24: "Codes: K - kernel route, C - connected, S - static, R - RIP,%s" \
! 25: " O - OSPF, I - IS-IS, B - BGP, A - Babel,%s" \
! 26: " > - selected route, * - FIB route%s%s", \
! 27: VTY_NEWLINE, VTY_NEWLINE, VTY_NEWLINE, VTY_NEWLINE
! 28: #define SHOW_ROUTE_V6_HEADER \
! 29: "Codes: K - kernel route, C - connected, S - static, R - RIPng,%s" \
! 30: " O - OSPFv6, I - IS-IS, B - BGP, A - Babel,%s" \
! 31: " > - selected route, * - FIB route%s%s", \
! 32: VTY_NEWLINE, VTY_NEWLINE, VTY_NEWLINE, VTY_NEWLINE
! 33:
! 34: /* babeld */
! 35: #define QUAGGA_REDIST_STR_BABELD \
! 36: "(kernel|connected|static|rip|ripng|ospf|ospf6|isis|bgp)"
! 37: #define QUAGGA_REDIST_HELP_STR_BABELD \
! 38: "Kernel routes (not installed via the zebra RIB)\n" \
! 39: "Connected routes (directly attached subnet or host)\n" \
! 40: "Statically configured routes\n" \
1.1 misho 41: "Routing Information Protocol (RIP)\n" \
42: "Routing Information Protocol next-generation (IPv6) (RIPng)\n" \
43: "Open Shortest Path First (OSPFv2)\n" \
44: "Open Shortest Path First (IPv6) (OSPFv3)\n" \
45: "Intermediate System to Intermediate System (IS-IS)\n" \
46: "Border Gateway Protocol (BGP)\n"
1.1.1.2 ! misho 47: #define QUAGGA_IP_REDIST_STR_BABELD \
! 48: "(kernel|connected|static|rip|ospf|isis|bgp)"
! 49: #define QUAGGA_IP_REDIST_HELP_STR_BABELD \
1.1 misho 50: "Kernel routes (not installed via the zebra RIB)\n" \
51: "Connected routes (directly attached subnet or host)\n" \
52: "Statically configured routes\n" \
1.1.1.2 ! misho 53: "Routing Information Protocol (RIP)\n" \
1.1 misho 54: "Open Shortest Path First (OSPFv2)\n" \
55: "Intermediate System to Intermediate System (IS-IS)\n" \
56: "Border Gateway Protocol (BGP)\n"
1.1.1.2 ! misho 57: #define QUAGGA_IP6_REDIST_STR_BABELD \
! 58: "(kernel|connected|static|ripng|ospf6|isis|bgp)"
! 59: #define QUAGGA_IP6_REDIST_HELP_STR_BABELD \
1.1 misho 60: "Kernel routes (not installed via the zebra RIB)\n" \
61: "Connected routes (directly attached subnet or host)\n" \
62: "Statically configured routes\n" \
1.1.1.2 ! misho 63: "Routing Information Protocol next-generation (IPv6) (RIPng)\n" \
1.1 misho 64: "Open Shortest Path First (IPv6) (OSPFv3)\n" \
65: "Intermediate System to Intermediate System (IS-IS)\n" \
66: "Border Gateway Protocol (BGP)\n"
67:
1.1.1.2 ! misho 68: /* bgpd */
! 69: #define QUAGGA_REDIST_STR_BGPD \
! 70: "(kernel|connected|static|rip|ripng|ospf|ospf6|isis|babel)"
! 71: #define QUAGGA_REDIST_HELP_STR_BGPD \
1.1 misho 72: "Kernel routes (not installed via the zebra RIB)\n" \
73: "Connected routes (directly attached subnet or host)\n" \
74: "Statically configured routes\n" \
75: "Routing Information Protocol (RIP)\n" \
1.1.1.2 ! misho 76: "Routing Information Protocol next-generation (IPv6) (RIPng)\n" \
! 77: "Open Shortest Path First (OSPFv2)\n" \
! 78: "Open Shortest Path First (IPv6) (OSPFv3)\n" \
1.1 misho 79: "Intermediate System to Intermediate System (IS-IS)\n" \
1.1.1.2 ! misho 80: "Babel routing protocol (Babel)\n"
! 81: #define QUAGGA_IP_REDIST_STR_BGPD \
! 82: "(kernel|connected|static|rip|ospf|isis|babel)"
! 83: #define QUAGGA_IP_REDIST_HELP_STR_BGPD \
! 84: "Kernel routes (not installed via the zebra RIB)\n" \
! 85: "Connected routes (directly attached subnet or host)\n" \
! 86: "Statically configured routes\n" \
! 87: "Routing Information Protocol (RIP)\n" \
! 88: "Open Shortest Path First (OSPFv2)\n" \
! 89: "Intermediate System to Intermediate System (IS-IS)\n" \
! 90: "Babel routing protocol (Babel)\n"
! 91: #define QUAGGA_IP6_REDIST_STR_BGPD \
! 92: "(kernel|connected|static|ripng|ospf6|isis|babel)"
! 93: #define QUAGGA_IP6_REDIST_HELP_STR_BGPD \
1.1 misho 94: "Kernel routes (not installed via the zebra RIB)\n" \
95: "Connected routes (directly attached subnet or host)\n" \
96: "Statically configured routes\n" \
97: "Routing Information Protocol next-generation (IPv6) (RIPng)\n" \
1.1.1.2 ! misho 98: "Open Shortest Path First (IPv6) (OSPFv3)\n" \
1.1 misho 99: "Intermediate System to Intermediate System (IS-IS)\n" \
1.1.1.2 ! misho 100: "Babel routing protocol (Babel)\n"
1.1 misho 101:
102: /* isisd */
103: #define QUAGGA_REDIST_STR_ISISD \
1.1.1.2 ! misho 104: "(kernel|connected|static|rip|ripng|ospf|ospf6|bgp|babel)"
1.1 misho 105: #define QUAGGA_REDIST_HELP_STR_ISISD \
106: "Kernel routes (not installed via the zebra RIB)\n" \
107: "Connected routes (directly attached subnet or host)\n" \
108: "Statically configured routes\n" \
109: "Routing Information Protocol (RIP)\n" \
110: "Routing Information Protocol next-generation (IPv6) (RIPng)\n" \
111: "Open Shortest Path First (OSPFv2)\n" \
112: "Open Shortest Path First (IPv6) (OSPFv3)\n" \
1.1.1.2 ! misho 113: "Border Gateway Protocol (BGP)\n" \
! 114: "Babel routing protocol (Babel)\n"
! 115: #define QUAGGA_IP_REDIST_STR_ISISD \
! 116: "(kernel|connected|static|rip|ospf|bgp|babel)"
! 117: #define QUAGGA_IP_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: "Open Shortest Path First (OSPFv2)\n" \
! 123: "Border Gateway Protocol (BGP)\n" \
! 124: "Babel routing protocol (Babel)\n"
! 125: #define QUAGGA_IP6_REDIST_STR_ISISD \
! 126: "(kernel|connected|static|ripng|ospf6|bgp|babel)"
! 127: #define QUAGGA_IP6_REDIST_HELP_STR_ISISD \
! 128: "Kernel routes (not installed via the zebra RIB)\n" \
! 129: "Connected routes (directly attached subnet or host)\n" \
! 130: "Statically configured routes\n" \
! 131: "Routing Information Protocol next-generation (IPv6) (RIPng)\n" \
! 132: "Open Shortest Path First (IPv6) (OSPFv3)\n" \
! 133: "Border Gateway Protocol (BGP)\n" \
! 134: "Babel routing protocol (Babel)\n"
1.1 misho 135:
1.1.1.2 ! misho 136: /* ospf6d */
! 137: #define QUAGGA_REDIST_STR_OSPF6D \
! 138: "(kernel|connected|static|ripng|isis|bgp|babel)"
! 139: #define QUAGGA_REDIST_HELP_STR_OSPF6D \
! 140: "Kernel routes (not installed via the zebra RIB)\n" \
! 141: "Connected routes (directly attached subnet or host)\n" \
! 142: "Statically configured routes\n" \
! 143: "Routing Information Protocol next-generation (IPv6) (RIPng)\n" \
! 144: "Intermediate System to Intermediate System (IS-IS)\n" \
! 145: "Border Gateway Protocol (BGP)\n" \
! 146: "Babel routing protocol (Babel)\n"
! 147:
! 148: /* ospfd */
! 149: #define QUAGGA_REDIST_STR_OSPFD \
! 150: "(kernel|connected|static|rip|isis|bgp|babel)"
! 151: #define QUAGGA_REDIST_HELP_STR_OSPFD \
! 152: "Kernel routes (not installed via the zebra RIB)\n" \
! 153: "Connected routes (directly attached subnet or host)\n" \
! 154: "Statically configured routes\n" \
! 155: "Routing Information Protocol (RIP)\n" \
! 156: "Intermediate System to Intermediate System (IS-IS)\n" \
! 157: "Border Gateway Protocol (BGP)\n" \
! 158: "Babel routing protocol (Babel)\n"
! 159:
! 160: /* ripd */
! 161: #define QUAGGA_REDIST_STR_RIPD \
! 162: "(kernel|connected|static|ospf|isis|bgp|babel)"
! 163: #define QUAGGA_REDIST_HELP_STR_RIPD \
! 164: "Kernel routes (not installed via the zebra RIB)\n" \
! 165: "Connected routes (directly attached subnet or host)\n" \
! 166: "Statically configured routes\n" \
! 167: "Open Shortest Path First (OSPFv2)\n" \
! 168: "Intermediate System to Intermediate System (IS-IS)\n" \
! 169: "Border Gateway Protocol (BGP)\n" \
! 170: "Babel routing protocol (Babel)\n"
! 171:
! 172: /* ripngd */
! 173: #define QUAGGA_REDIST_STR_RIPNGD \
! 174: "(kernel|connected|static|ospf6|isis|bgp|babel)"
! 175: #define QUAGGA_REDIST_HELP_STR_RIPNGD \
! 176: "Kernel routes (not installed via the zebra RIB)\n" \
! 177: "Connected routes (directly attached subnet or host)\n" \
! 178: "Statically configured routes\n" \
! 179: "Open Shortest Path First (IPv6) (OSPFv3)\n" \
! 180: "Intermediate System to Intermediate System (IS-IS)\n" \
! 181: "Border Gateway Protocol (BGP)\n" \
! 182: "Babel routing protocol (Babel)\n"
! 183:
! 184: /* zebra */
! 185: #define QUAGGA_REDIST_STR_ZEBRA \
! 186: "(kernel|connected|static|rip|ripng|ospf|ospf6|isis|bgp|babel)"
! 187: #define QUAGGA_REDIST_HELP_STR_ZEBRA \
1.1 misho 188: "Kernel routes (not installed via the zebra RIB)\n" \
189: "Connected routes (directly attached subnet or host)\n" \
190: "Statically configured routes\n" \
191: "Routing Information Protocol (RIP)\n" \
192: "Routing Information Protocol next-generation (IPv6) (RIPng)\n" \
193: "Open Shortest Path First (OSPFv2)\n" \
194: "Open Shortest Path First (IPv6) (OSPFv3)\n" \
1.1.1.2 ! misho 195: "Intermediate System to Intermediate System (IS-IS)\n" \
! 196: "Border Gateway Protocol (BGP)\n" \
! 197: "Babel routing protocol (Babel)\n"
! 198: #define QUAGGA_IP_REDIST_STR_ZEBRA \
! 199: "(kernel|connected|static|rip|ospf|isis|bgp|babel)"
! 200: #define QUAGGA_IP_REDIST_HELP_STR_ZEBRA \
! 201: "Kernel routes (not installed via the zebra RIB)\n" \
! 202: "Connected routes (directly attached subnet or host)\n" \
! 203: "Statically configured routes\n" \
! 204: "Routing Information Protocol (RIP)\n" \
! 205: "Open Shortest Path First (OSPFv2)\n" \
! 206: "Intermediate System to Intermediate System (IS-IS)\n" \
! 207: "Border Gateway Protocol (BGP)\n" \
! 208: "Babel routing protocol (Babel)\n"
! 209: #define QUAGGA_IP6_REDIST_STR_ZEBRA \
! 210: "(kernel|connected|static|ripng|ospf6|isis|bgp|babel)"
! 211: #define QUAGGA_IP6_REDIST_HELP_STR_ZEBRA \
! 212: "Kernel routes (not installed via the zebra RIB)\n" \
! 213: "Connected routes (directly attached subnet or host)\n" \
! 214: "Statically configured routes\n" \
! 215: "Routing Information Protocol next-generation (IPv6) (RIPng)\n" \
! 216: "Open Shortest Path First (IPv6) (OSPFv3)\n" \
! 217: "Intermediate System to Intermediate System (IS-IS)\n" \
! 218: "Border Gateway Protocol (BGP)\n" \
! 219: "Babel routing protocol (Babel)\n"
! 220:
! 221:
! 222: #ifdef QUAGGA_DEFINE_DESC_TABLE
! 223:
! 224: struct zebra_desc_table
! 225: {
! 226: unsigned int type;
! 227: const char *string;
! 228: char chr;
! 229: };
! 230:
! 231: #define DESC_ENTRY(T,S,C) [(T)] = { (T), (S), (C) }
! 232: static const struct zebra_desc_table route_types[] = {
! 233: DESC_ENTRY (ZEBRA_ROUTE_SYSTEM, "system", 'X' ),
! 234: DESC_ENTRY (ZEBRA_ROUTE_KERNEL, "kernel", 'K' ),
! 235: DESC_ENTRY (ZEBRA_ROUTE_CONNECT, "connected", 'C' ),
! 236: DESC_ENTRY (ZEBRA_ROUTE_STATIC, "static", 'S' ),
! 237: DESC_ENTRY (ZEBRA_ROUTE_RIP, "rip", 'R' ),
! 238: DESC_ENTRY (ZEBRA_ROUTE_RIPNG, "ripng", 'R' ),
! 239: DESC_ENTRY (ZEBRA_ROUTE_OSPF, "ospf", 'O' ),
! 240: DESC_ENTRY (ZEBRA_ROUTE_OSPF6, "ospf6", 'O' ),
! 241: DESC_ENTRY (ZEBRA_ROUTE_ISIS, "isis", 'I' ),
! 242: DESC_ENTRY (ZEBRA_ROUTE_BGP, "bgp", 'B' ),
! 243: DESC_ENTRY (ZEBRA_ROUTE_HSLS, "hsls", 'H' ),
! 244: DESC_ENTRY (ZEBRA_ROUTE_OLSR, "olsr", 'o' ),
! 245: DESC_ENTRY (ZEBRA_ROUTE_BABEL, "babel", 'A' ),
! 246: };
! 247: #undef DESC_ENTRY
! 248:
! 249: #endif /* QUAGGA_DEFINE_DESC_TABLE */
1.1 misho 250:
251: #endif /* _QUAGGA_ROUTE_TYPES_H */
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>