X-Git-Url: https://git.sommitrealweird.co.uk/quagga-debian.git/blobdiff_plain/6d99eb2938e976229cb50d848a1bc491532b54f9..110ea29b8fe7d11de09e19382a9a5808cfb90d32:/lib/route_types.h diff --git a/lib/route_types.h b/lib/route_types.h new file mode 100644 index 0000000..2dc5533 --- /dev/null +++ b/lib/route_types.h @@ -0,0 +1,334 @@ +/* Auto-generated from route_types.txt by . */ +/* Do not edit! */ + +#ifndef _QUAGGA_ROUTE_TYPES_H +#define _QUAGGA_ROUTE_TYPES_H + +/* Zebra route's types. */ +#define ZEBRA_ROUTE_SYSTEM 0 +#define ZEBRA_ROUTE_KERNEL 1 +#define ZEBRA_ROUTE_CONNECT 2 +#define ZEBRA_ROUTE_STATIC 3 +#define ZEBRA_ROUTE_RIP 4 +#define ZEBRA_ROUTE_RIPNG 5 +#define ZEBRA_ROUTE_OSPF 6 +#define ZEBRA_ROUTE_OSPF6 7 +#define ZEBRA_ROUTE_ISIS 8 +#define ZEBRA_ROUTE_BGP 9 +#define ZEBRA_ROUTE_PIM 10 +#define ZEBRA_ROUTE_HSLS 11 +#define ZEBRA_ROUTE_OLSR 12 +#define ZEBRA_ROUTE_BABEL 13 +#define ZEBRA_ROUTE_NHRP 14 +#define ZEBRA_ROUTE_MAX 15 + +#define SHOW_ROUTE_V4_HEADER \ + "Codes: K - kernel route, C - connected, S - static, R - RIP,%s" \ + " O - OSPF, I - IS-IS, B - BGP, P - PIM, A - Babel, N - NHRP,%s" \ + " > - selected route, * - FIB route%s%s", \ + VTY_NEWLINE, VTY_NEWLINE, VTY_NEWLINE, VTY_NEWLINE +#define SHOW_ROUTE_V6_HEADER \ + "Codes: K - kernel route, C - connected, S - static, R - RIPng,%s" \ + " O - OSPFv6, I - IS-IS, B - BGP, A - Babel, N - NHRP,%s" \ + " > - selected route, * - FIB route%s%s", \ + VTY_NEWLINE, VTY_NEWLINE, VTY_NEWLINE, VTY_NEWLINE + +/* babeld */ +#define QUAGGA_REDIST_STR_BABELD \ + "(kernel|connected|static|rip|ripng|ospf|ospf6|isis|bgp|pim|nhrp)" +#define QUAGGA_REDIST_HELP_STR_BABELD \ + "Kernel routes (not installed via the zebra RIB)\n" \ + "Connected routes (directly attached subnet or host)\n" \ + "Statically configured routes\n" \ + "Routing Information Protocol (RIP)\n" \ + "Routing Information Protocol next-generation (IPv6) (RIPng)\n" \ + "Open Shortest Path First (OSPFv2)\n" \ + "Open Shortest Path First (IPv6) (OSPFv3)\n" \ + "Intermediate System to Intermediate System (IS-IS)\n" \ + "Border Gateway Protocol (BGP)\n" \ + "Protocol Independent Multicast (PIM)\n" \ + "Next Hop Resolution Protocol (NHRP)\n" +#define QUAGGA_IP_REDIST_STR_BABELD \ + "(kernel|connected|static|rip|ospf|isis|bgp|pim|nhrp)" +#define QUAGGA_IP_REDIST_HELP_STR_BABELD \ + "Kernel routes (not installed via the zebra RIB)\n" \ + "Connected routes (directly attached subnet or host)\n" \ + "Statically configured routes\n" \ + "Routing Information Protocol (RIP)\n" \ + "Open Shortest Path First (OSPFv2)\n" \ + "Intermediate System to Intermediate System (IS-IS)\n" \ + "Border Gateway Protocol (BGP)\n" \ + "Protocol Independent Multicast (PIM)\n" \ + "Next Hop Resolution Protocol (NHRP)\n" +#define QUAGGA_IP6_REDIST_STR_BABELD \ + "(kernel|connected|static|ripng|ospf6|isis|bgp|nhrp)" +#define QUAGGA_IP6_REDIST_HELP_STR_BABELD \ + "Kernel routes (not installed via the zebra RIB)\n" \ + "Connected routes (directly attached subnet or host)\n" \ + "Statically configured routes\n" \ + "Routing Information Protocol next-generation (IPv6) (RIPng)\n" \ + "Open Shortest Path First (IPv6) (OSPFv3)\n" \ + "Intermediate System to Intermediate System (IS-IS)\n" \ + "Border Gateway Protocol (BGP)\n" \ + "Next Hop Resolution Protocol (NHRP)\n" + +/* bgpd */ +#define QUAGGA_REDIST_STR_BGPD \ + "(kernel|connected|static|rip|ripng|ospf|ospf6|isis|pim|babel|nhrp)" +#define QUAGGA_REDIST_HELP_STR_BGPD \ + "Kernel routes (not installed via the zebra RIB)\n" \ + "Connected routes (directly attached subnet or host)\n" \ + "Statically configured routes\n" \ + "Routing Information Protocol (RIP)\n" \ + "Routing Information Protocol next-generation (IPv6) (RIPng)\n" \ + "Open Shortest Path First (OSPFv2)\n" \ + "Open Shortest Path First (IPv6) (OSPFv3)\n" \ + "Intermediate System to Intermediate System (IS-IS)\n" \ + "Protocol Independent Multicast (PIM)\n" \ + "Babel routing protocol (Babel)\n" \ + "Next Hop Resolution Protocol (NHRP)\n" +#define QUAGGA_IP_REDIST_STR_BGPD \ + "(kernel|connected|static|rip|ospf|isis|pim|babel|nhrp)" +#define QUAGGA_IP_REDIST_HELP_STR_BGPD \ + "Kernel routes (not installed via the zebra RIB)\n" \ + "Connected routes (directly attached subnet or host)\n" \ + "Statically configured routes\n" \ + "Routing Information Protocol (RIP)\n" \ + "Open Shortest Path First (OSPFv2)\n" \ + "Intermediate System to Intermediate System (IS-IS)\n" \ + "Protocol Independent Multicast (PIM)\n" \ + "Babel routing protocol (Babel)\n" \ + "Next Hop Resolution Protocol (NHRP)\n" +#define QUAGGA_IP6_REDIST_STR_BGPD \ + "(kernel|connected|static|ripng|ospf6|isis|babel|nhrp)" +#define QUAGGA_IP6_REDIST_HELP_STR_BGPD \ + "Kernel routes (not installed via the zebra RIB)\n" \ + "Connected routes (directly attached subnet or host)\n" \ + "Statically configured routes\n" \ + "Routing Information Protocol next-generation (IPv6) (RIPng)\n" \ + "Open Shortest Path First (IPv6) (OSPFv3)\n" \ + "Intermediate System to Intermediate System (IS-IS)\n" \ + "Babel routing protocol (Babel)\n" \ + "Next Hop Resolution Protocol (NHRP)\n" + +/* isisd */ +#define QUAGGA_REDIST_STR_ISISD \ + "(kernel|connected|static|rip|ripng|ospf|ospf6|bgp|pim|babel|nhrp)" +#define QUAGGA_REDIST_HELP_STR_ISISD \ + "Kernel routes (not installed via the zebra RIB)\n" \ + "Connected routes (directly attached subnet or host)\n" \ + "Statically configured routes\n" \ + "Routing Information Protocol (RIP)\n" \ + "Routing Information Protocol next-generation (IPv6) (RIPng)\n" \ + "Open Shortest Path First (OSPFv2)\n" \ + "Open Shortest Path First (IPv6) (OSPFv3)\n" \ + "Border Gateway Protocol (BGP)\n" \ + "Protocol Independent Multicast (PIM)\n" \ + "Babel routing protocol (Babel)\n" \ + "Next Hop Resolution Protocol (NHRP)\n" +#define QUAGGA_IP_REDIST_STR_ISISD \ + "(kernel|connected|static|rip|ospf|bgp|pim|babel|nhrp)" +#define QUAGGA_IP_REDIST_HELP_STR_ISISD \ + "Kernel routes (not installed via the zebra RIB)\n" \ + "Connected routes (directly attached subnet or host)\n" \ + "Statically configured routes\n" \ + "Routing Information Protocol (RIP)\n" \ + "Open Shortest Path First (OSPFv2)\n" \ + "Border Gateway Protocol (BGP)\n" \ + "Protocol Independent Multicast (PIM)\n" \ + "Babel routing protocol (Babel)\n" \ + "Next Hop Resolution Protocol (NHRP)\n" +#define QUAGGA_IP6_REDIST_STR_ISISD \ + "(kernel|connected|static|ripng|ospf6|bgp|babel|nhrp)" +#define QUAGGA_IP6_REDIST_HELP_STR_ISISD \ + "Kernel routes (not installed via the zebra RIB)\n" \ + "Connected routes (directly attached subnet or host)\n" \ + "Statically configured routes\n" \ + "Routing Information Protocol next-generation (IPv6) (RIPng)\n" \ + "Open Shortest Path First (IPv6) (OSPFv3)\n" \ + "Border Gateway Protocol (BGP)\n" \ + "Babel routing protocol (Babel)\n" \ + "Next Hop Resolution Protocol (NHRP)\n" + +/* nhrpd */ +#define QUAGGA_REDIST_STR_NHRPD \ + "(kernel|connected|static|rip|ripng|ospf|ospf6|isis|bgp|pim|babel)" +#define QUAGGA_REDIST_HELP_STR_NHRPD \ + "Kernel routes (not installed via the zebra RIB)\n" \ + "Connected routes (directly attached subnet or host)\n" \ + "Statically configured routes\n" \ + "Routing Information Protocol (RIP)\n" \ + "Routing Information Protocol next-generation (IPv6) (RIPng)\n" \ + "Open Shortest Path First (OSPFv2)\n" \ + "Open Shortest Path First (IPv6) (OSPFv3)\n" \ + "Intermediate System to Intermediate System (IS-IS)\n" \ + "Border Gateway Protocol (BGP)\n" \ + "Protocol Independent Multicast (PIM)\n" \ + "Babel routing protocol (Babel)\n" +#define QUAGGA_IP_REDIST_STR_NHRPD \ + "(kernel|connected|static|rip|ospf|isis|bgp|pim|babel)" +#define QUAGGA_IP_REDIST_HELP_STR_NHRPD \ + "Kernel routes (not installed via the zebra RIB)\n" \ + "Connected routes (directly attached subnet or host)\n" \ + "Statically configured routes\n" \ + "Routing Information Protocol (RIP)\n" \ + "Open Shortest Path First (OSPFv2)\n" \ + "Intermediate System to Intermediate System (IS-IS)\n" \ + "Border Gateway Protocol (BGP)\n" \ + "Protocol Independent Multicast (PIM)\n" \ + "Babel routing protocol (Babel)\n" +#define QUAGGA_IP6_REDIST_STR_NHRPD \ + "(kernel|connected|static|ripng|ospf6|isis|bgp|babel)" +#define QUAGGA_IP6_REDIST_HELP_STR_NHRPD \ + "Kernel routes (not installed via the zebra RIB)\n" \ + "Connected routes (directly attached subnet or host)\n" \ + "Statically configured routes\n" \ + "Routing Information Protocol next-generation (IPv6) (RIPng)\n" \ + "Open Shortest Path First (IPv6) (OSPFv3)\n" \ + "Intermediate System to Intermediate System (IS-IS)\n" \ + "Border Gateway Protocol (BGP)\n" \ + "Babel routing protocol (Babel)\n" + +/* ospf6d */ +#define QUAGGA_REDIST_STR_OSPF6D \ + "(kernel|connected|static|ripng|isis|bgp|babel|nhrp)" +#define QUAGGA_REDIST_HELP_STR_OSPF6D \ + "Kernel routes (not installed via the zebra RIB)\n" \ + "Connected routes (directly attached subnet or host)\n" \ + "Statically configured routes\n" \ + "Routing Information Protocol next-generation (IPv6) (RIPng)\n" \ + "Intermediate System to Intermediate System (IS-IS)\n" \ + "Border Gateway Protocol (BGP)\n" \ + "Babel routing protocol (Babel)\n" \ + "Next Hop Resolution Protocol (NHRP)\n" + +/* ospfd */ +#define QUAGGA_REDIST_STR_OSPFD \ + "(kernel|connected|static|rip|isis|bgp|pim|babel|nhrp)" +#define QUAGGA_REDIST_HELP_STR_OSPFD \ + "Kernel routes (not installed via the zebra RIB)\n" \ + "Connected routes (directly attached subnet or host)\n" \ + "Statically configured routes\n" \ + "Routing Information Protocol (RIP)\n" \ + "Intermediate System to Intermediate System (IS-IS)\n" \ + "Border Gateway Protocol (BGP)\n" \ + "Protocol Independent Multicast (PIM)\n" \ + "Babel routing protocol (Babel)\n" \ + "Next Hop Resolution Protocol (NHRP)\n" + +/* pimd */ +#define QUAGGA_REDIST_STR_PIMD \ + "(kernel|connected|static|rip|ospf|isis|bgp|babel|nhrp)" +#define QUAGGA_REDIST_HELP_STR_PIMD \ + "Kernel routes (not installed via the zebra RIB)\n" \ + "Connected routes (directly attached subnet or host)\n" \ + "Statically configured routes\n" \ + "Routing Information Protocol (RIP)\n" \ + "Open Shortest Path First (OSPFv2)\n" \ + "Intermediate System to Intermediate System (IS-IS)\n" \ + "Border Gateway Protocol (BGP)\n" \ + "Babel routing protocol (Babel)\n" \ + "Next Hop Resolution Protocol (NHRP)\n" + +/* ripd */ +#define QUAGGA_REDIST_STR_RIPD \ + "(kernel|connected|static|ospf|isis|bgp|pim|babel|nhrp)" +#define QUAGGA_REDIST_HELP_STR_RIPD \ + "Kernel routes (not installed via the zebra RIB)\n" \ + "Connected routes (directly attached subnet or host)\n" \ + "Statically configured routes\n" \ + "Open Shortest Path First (OSPFv2)\n" \ + "Intermediate System to Intermediate System (IS-IS)\n" \ + "Border Gateway Protocol (BGP)\n" \ + "Protocol Independent Multicast (PIM)\n" \ + "Babel routing protocol (Babel)\n" \ + "Next Hop Resolution Protocol (NHRP)\n" + +/* ripngd */ +#define QUAGGA_REDIST_STR_RIPNGD \ + "(kernel|connected|static|ospf6|isis|bgp|babel|nhrp)" +#define QUAGGA_REDIST_HELP_STR_RIPNGD \ + "Kernel routes (not installed via the zebra RIB)\n" \ + "Connected routes (directly attached subnet or host)\n" \ + "Statically configured routes\n" \ + "Open Shortest Path First (IPv6) (OSPFv3)\n" \ + "Intermediate System to Intermediate System (IS-IS)\n" \ + "Border Gateway Protocol (BGP)\n" \ + "Babel routing protocol (Babel)\n" \ + "Next Hop Resolution Protocol (NHRP)\n" + +/* zebra */ +#define QUAGGA_REDIST_STR_ZEBRA \ + "(kernel|connected|static|rip|ripng|ospf|ospf6|isis|bgp|pim|babel|nhrp)" +#define QUAGGA_REDIST_HELP_STR_ZEBRA \ + "Kernel routes (not installed via the zebra RIB)\n" \ + "Connected routes (directly attached subnet or host)\n" \ + "Statically configured routes\n" \ + "Routing Information Protocol (RIP)\n" \ + "Routing Information Protocol next-generation (IPv6) (RIPng)\n" \ + "Open Shortest Path First (OSPFv2)\n" \ + "Open Shortest Path First (IPv6) (OSPFv3)\n" \ + "Intermediate System to Intermediate System (IS-IS)\n" \ + "Border Gateway Protocol (BGP)\n" \ + "Protocol Independent Multicast (PIM)\n" \ + "Babel routing protocol (Babel)\n" \ + "Next Hop Resolution Protocol (NHRP)\n" +#define QUAGGA_IP_REDIST_STR_ZEBRA \ + "(kernel|connected|static|rip|ospf|isis|bgp|pim|babel|nhrp)" +#define QUAGGA_IP_REDIST_HELP_STR_ZEBRA \ + "Kernel routes (not installed via the zebra RIB)\n" \ + "Connected routes (directly attached subnet or host)\n" \ + "Statically configured routes\n" \ + "Routing Information Protocol (RIP)\n" \ + "Open Shortest Path First (OSPFv2)\n" \ + "Intermediate System to Intermediate System (IS-IS)\n" \ + "Border Gateway Protocol (BGP)\n" \ + "Protocol Independent Multicast (PIM)\n" \ + "Babel routing protocol (Babel)\n" \ + "Next Hop Resolution Protocol (NHRP)\n" +#define QUAGGA_IP6_REDIST_STR_ZEBRA \ + "(kernel|connected|static|ripng|ospf6|isis|bgp|babel|nhrp)" +#define QUAGGA_IP6_REDIST_HELP_STR_ZEBRA \ + "Kernel routes (not installed via the zebra RIB)\n" \ + "Connected routes (directly attached subnet or host)\n" \ + "Statically configured routes\n" \ + "Routing Information Protocol next-generation (IPv6) (RIPng)\n" \ + "Open Shortest Path First (IPv6) (OSPFv3)\n" \ + "Intermediate System to Intermediate System (IS-IS)\n" \ + "Border Gateway Protocol (BGP)\n" \ + "Babel routing protocol (Babel)\n" \ + "Next Hop Resolution Protocol (NHRP)\n" + + +#ifdef QUAGGA_DEFINE_DESC_TABLE + +struct zebra_desc_table +{ + unsigned int type; + const char *string; + char chr; +}; + +#define DESC_ENTRY(T,S,C) [(T)] = { (T), (S), (C) } +static const struct zebra_desc_table route_types[] = { + DESC_ENTRY (ZEBRA_ROUTE_SYSTEM, "system", 'X' ), + DESC_ENTRY (ZEBRA_ROUTE_KERNEL, "kernel", 'K' ), + DESC_ENTRY (ZEBRA_ROUTE_CONNECT, "connected", 'C' ), + DESC_ENTRY (ZEBRA_ROUTE_STATIC, "static", 'S' ), + DESC_ENTRY (ZEBRA_ROUTE_RIP, "rip", 'R' ), + DESC_ENTRY (ZEBRA_ROUTE_RIPNG, "ripng", 'R' ), + DESC_ENTRY (ZEBRA_ROUTE_OSPF, "ospf", 'O' ), + DESC_ENTRY (ZEBRA_ROUTE_OSPF6, "ospf6", 'O' ), + DESC_ENTRY (ZEBRA_ROUTE_ISIS, "isis", 'I' ), + DESC_ENTRY (ZEBRA_ROUTE_BGP, "bgp", 'B' ), + DESC_ENTRY (ZEBRA_ROUTE_PIM, "pim", 'P' ), + DESC_ENTRY (ZEBRA_ROUTE_HSLS, "hsls", 'H' ), + DESC_ENTRY (ZEBRA_ROUTE_OLSR, "olsr", 'o' ), + DESC_ENTRY (ZEBRA_ROUTE_BABEL, "babel", 'A' ), + DESC_ENTRY (ZEBRA_ROUTE_NHRP, "nhrp", 'N' ), +}; +#undef DESC_ENTRY + +#endif /* QUAGGA_DEFINE_DESC_TABLE */ + +#endif /* _QUAGGA_ROUTE_TYPES_H */