1 /* Generated by ./xlat/gen.sh from ./xlat/routing_protocols.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(RTPROT_UNSPEC) || (defined(HAVE_DECL_RTPROT_UNSPEC) && HAVE_DECL_RTPROT_UNSPEC) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((RTPROT_UNSPEC) == (0), "RTPROT_UNSPEC != 0"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define RTPROT_UNSPEC 0 12 #endif 13 #if defined(RTPROT_REDIRECT) || (defined(HAVE_DECL_RTPROT_REDIRECT) && HAVE_DECL_RTPROT_REDIRECT) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((RTPROT_REDIRECT) == (1), "RTPROT_REDIRECT != 1"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define RTPROT_REDIRECT 1 19 #endif 20 #if defined(RTPROT_KERNEL) || (defined(HAVE_DECL_RTPROT_KERNEL) && HAVE_DECL_RTPROT_KERNEL) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((RTPROT_KERNEL) == (2), "RTPROT_KERNEL != 2"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define RTPROT_KERNEL 2 26 #endif 27 #if defined(RTPROT_BOOT) || (defined(HAVE_DECL_RTPROT_BOOT) && HAVE_DECL_RTPROT_BOOT) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((RTPROT_BOOT) == (3), "RTPROT_BOOT != 3"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define RTPROT_BOOT 3 33 #endif 34 #if defined(RTPROT_STATIC) || (defined(HAVE_DECL_RTPROT_STATIC) && HAVE_DECL_RTPROT_STATIC) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((RTPROT_STATIC) == (4), "RTPROT_STATIC != 4"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define RTPROT_STATIC 4 40 #endif 41 #if defined(RTPROT_GATED) || (defined(HAVE_DECL_RTPROT_GATED) && HAVE_DECL_RTPROT_GATED) 42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 43 static_assert((RTPROT_GATED) == (8), "RTPROT_GATED != 8"); 44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 45 #else 46 # define RTPROT_GATED 8 47 #endif 48 #if defined(RTPROT_RA) || (defined(HAVE_DECL_RTPROT_RA) && HAVE_DECL_RTPROT_RA) 49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 50 static_assert((RTPROT_RA) == (9), "RTPROT_RA != 9"); 51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 52 #else 53 # define RTPROT_RA 9 54 #endif 55 #if defined(RTPROT_MRT) || (defined(HAVE_DECL_RTPROT_MRT) && HAVE_DECL_RTPROT_MRT) 56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 57 static_assert((RTPROT_MRT) == (10), "RTPROT_MRT != 10"); 58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 59 #else 60 # define RTPROT_MRT 10 61 #endif 62 #if defined(RTPROT_ZEBRA) || (defined(HAVE_DECL_RTPROT_ZEBRA) && HAVE_DECL_RTPROT_ZEBRA) 63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 64 static_assert((RTPROT_ZEBRA) == (11), "RTPROT_ZEBRA != 11"); 65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 66 #else 67 # define RTPROT_ZEBRA 11 68 #endif 69 #if defined(RTPROT_BIRD) || (defined(HAVE_DECL_RTPROT_BIRD) && HAVE_DECL_RTPROT_BIRD) 70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 71 static_assert((RTPROT_BIRD) == (12), "RTPROT_BIRD != 12"); 72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 73 #else 74 # define RTPROT_BIRD 12 75 #endif 76 #if defined(RTPROT_DNROUTED) || (defined(HAVE_DECL_RTPROT_DNROUTED) && HAVE_DECL_RTPROT_DNROUTED) 77 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 78 static_assert((RTPROT_DNROUTED) == (13), "RTPROT_DNROUTED != 13"); 79 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 80 #else 81 # define RTPROT_DNROUTED 13 82 #endif 83 #if defined(RTPROT_XORP) || (defined(HAVE_DECL_RTPROT_XORP) && HAVE_DECL_RTPROT_XORP) 84 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 85 static_assert((RTPROT_XORP) == (14), "RTPROT_XORP != 14"); 86 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 87 #else 88 # define RTPROT_XORP 14 89 #endif 90 #if defined(RTPROT_NTK) || (defined(HAVE_DECL_RTPROT_NTK) && HAVE_DECL_RTPROT_NTK) 91 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 92 static_assert((RTPROT_NTK) == (15), "RTPROT_NTK != 15"); 93 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 94 #else 95 # define RTPROT_NTK 15 96 #endif 97 #if defined(RTPROT_DHCP) || (defined(HAVE_DECL_RTPROT_DHCP) && HAVE_DECL_RTPROT_DHCP) 98 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 99 static_assert((RTPROT_DHCP) == (16), "RTPROT_DHCP != 16"); 100 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 101 #else 102 # define RTPROT_DHCP 16 103 #endif 104 #if defined(RTPROT_MROUTED) || (defined(HAVE_DECL_RTPROT_MROUTED) && HAVE_DECL_RTPROT_MROUTED) 105 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 106 static_assert((RTPROT_MROUTED) == (17), "RTPROT_MROUTED != 17"); 107 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 108 #else 109 # define RTPROT_MROUTED 17 110 #endif 111 #if defined(RTPROT_BABEL) || (defined(HAVE_DECL_RTPROT_BABEL) && HAVE_DECL_RTPROT_BABEL) 112 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 113 static_assert((RTPROT_BABEL) == (42), "RTPROT_BABEL != 42"); 114 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 115 #else 116 # define RTPROT_BABEL 42 117 #endif 118 #if defined(RTPROT_BGP) || (defined(HAVE_DECL_RTPROT_BGP) && HAVE_DECL_RTPROT_BGP) 119 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 120 static_assert((RTPROT_BGP) == (186), "RTPROT_BGP != 186"); 121 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 122 #else 123 # define RTPROT_BGP 186 124 #endif 125 #if defined(RTPROT_ISIS) || (defined(HAVE_DECL_RTPROT_ISIS) && HAVE_DECL_RTPROT_ISIS) 126 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 127 static_assert((RTPROT_ISIS) == (187), "RTPROT_ISIS != 187"); 128 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 129 #else 130 # define RTPROT_ISIS 187 131 #endif 132 #if defined(RTPROT_OSPF) || (defined(HAVE_DECL_RTPROT_OSPF) && HAVE_DECL_RTPROT_OSPF) 133 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 134 static_assert((RTPROT_OSPF) == (188), "RTPROT_OSPF != 188"); 135 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 136 #else 137 # define RTPROT_OSPF 188 138 #endif 139 #if defined(RTPROT_RIP) || (defined(HAVE_DECL_RTPROT_RIP) && HAVE_DECL_RTPROT_RIP) 140 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 141 static_assert((RTPROT_RIP) == (189), "RTPROT_RIP != 189"); 142 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 143 #else 144 # define RTPROT_RIP 189 145 #endif 146 #if defined(RTPROT_EIGRP) || (defined(HAVE_DECL_RTPROT_EIGRP) && HAVE_DECL_RTPROT_EIGRP) 147 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 148 static_assert((RTPROT_EIGRP) == (192), "RTPROT_EIGRP != 192"); 149 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 150 #else 151 # define RTPROT_EIGRP 192 152 #endif 153 154 #ifndef XLAT_MACROS_ONLY 155 156 # ifdef IN_MPERS 157 158 # error static const struct xlat routing_protocols in mpers mode 159 160 # else 161 162 static 163 const struct xlat routing_protocols[] = { 164 165 XLAT(RTPROT_UNSPEC), 166 XLAT(RTPROT_REDIRECT), 167 XLAT(RTPROT_KERNEL), 168 XLAT(RTPROT_BOOT), 169 XLAT(RTPROT_STATIC), 170 XLAT(RTPROT_GATED), 171 XLAT(RTPROT_RA), 172 XLAT(RTPROT_MRT), 173 XLAT(RTPROT_ZEBRA), 174 XLAT(RTPROT_BIRD), 175 XLAT(RTPROT_DNROUTED), 176 XLAT(RTPROT_XORP), 177 XLAT(RTPROT_NTK), 178 XLAT(RTPROT_DHCP), 179 XLAT(RTPROT_MROUTED), 180 XLAT(RTPROT_BABEL), 181 XLAT(RTPROT_BGP), 182 XLAT(RTPROT_ISIS), 183 XLAT(RTPROT_OSPF), 184 XLAT(RTPROT_RIP), 185 XLAT(RTPROT_EIGRP), 186 XLAT_END 187 }; 188 189 # endif /* !IN_MPERS */ 190 191 #endif /* !XLAT_MACROS_ONLY */ 192