Annotation of embedaddon/quagga/lib/route_types.h, revision 1.1.1.3

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>