• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Generated by ./xlat/gen.sh from ./xlat/routing_types.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(RTN_UNSPEC) || (defined(HAVE_DECL_RTN_UNSPEC) && HAVE_DECL_RTN_UNSPEC)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((RTN_UNSPEC) == (0), "RTN_UNSPEC != 0");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define RTN_UNSPEC 0
12 #endif
13 #if defined(RTN_UNICAST) || (defined(HAVE_DECL_RTN_UNICAST) && HAVE_DECL_RTN_UNICAST)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((RTN_UNICAST) == (1), "RTN_UNICAST != 1");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define RTN_UNICAST 1
19 #endif
20 #if defined(RTN_LOCAL) || (defined(HAVE_DECL_RTN_LOCAL) && HAVE_DECL_RTN_LOCAL)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((RTN_LOCAL) == (2), "RTN_LOCAL != 2");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define RTN_LOCAL 2
26 #endif
27 #if defined(RTN_BROADCAST) || (defined(HAVE_DECL_RTN_BROADCAST) && HAVE_DECL_RTN_BROADCAST)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((RTN_BROADCAST) == (3), "RTN_BROADCAST != 3");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define RTN_BROADCAST 3
33 #endif
34 #if defined(RTN_ANYCAST) || (defined(HAVE_DECL_RTN_ANYCAST) && HAVE_DECL_RTN_ANYCAST)
35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
36 static_assert((RTN_ANYCAST) == (4), "RTN_ANYCAST != 4");
37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
38 #else
39 # define RTN_ANYCAST 4
40 #endif
41 #if defined(RTN_MULTICAST) || (defined(HAVE_DECL_RTN_MULTICAST) && HAVE_DECL_RTN_MULTICAST)
42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
43 static_assert((RTN_MULTICAST) == (5), "RTN_MULTICAST != 5");
44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
45 #else
46 # define RTN_MULTICAST 5
47 #endif
48 #if defined(RTN_BLACKHOLE) || (defined(HAVE_DECL_RTN_BLACKHOLE) && HAVE_DECL_RTN_BLACKHOLE)
49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
50 static_assert((RTN_BLACKHOLE) == (6), "RTN_BLACKHOLE != 6");
51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
52 #else
53 # define RTN_BLACKHOLE 6
54 #endif
55 #if defined(RTN_UNREACHABLE) || (defined(HAVE_DECL_RTN_UNREACHABLE) && HAVE_DECL_RTN_UNREACHABLE)
56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
57 static_assert((RTN_UNREACHABLE) == (7), "RTN_UNREACHABLE != 7");
58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
59 #else
60 # define RTN_UNREACHABLE 7
61 #endif
62 #if defined(RTN_PROHIBIT) || (defined(HAVE_DECL_RTN_PROHIBIT) && HAVE_DECL_RTN_PROHIBIT)
63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
64 static_assert((RTN_PROHIBIT) == (8), "RTN_PROHIBIT != 8");
65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
66 #else
67 # define RTN_PROHIBIT 8
68 #endif
69 #if defined(RTN_THROW) || (defined(HAVE_DECL_RTN_THROW) && HAVE_DECL_RTN_THROW)
70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
71 static_assert((RTN_THROW) == (9), "RTN_THROW != 9");
72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
73 #else
74 # define RTN_THROW 9
75 #endif
76 #if defined(RTN_NAT) || (defined(HAVE_DECL_RTN_NAT) && HAVE_DECL_RTN_NAT)
77 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
78 static_assert((RTN_NAT) == (10), "RTN_NAT != 10");
79 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
80 #else
81 # define RTN_NAT 10
82 #endif
83 #if defined(RTN_XRESOLVE) || (defined(HAVE_DECL_RTN_XRESOLVE) && HAVE_DECL_RTN_XRESOLVE)
84 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
85 static_assert((RTN_XRESOLVE) == (11), "RTN_XRESOLVE != 11");
86 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
87 #else
88 # define RTN_XRESOLVE 11
89 #endif
90 
91 #ifndef XLAT_MACROS_ONLY
92 
93 # ifndef IN_MPERS
94 
95 const struct xlat routing_types[] = {
96  XLAT(RTN_UNSPEC),
97  XLAT(RTN_UNICAST),
98  XLAT(RTN_LOCAL),
99  XLAT(RTN_BROADCAST),
100  XLAT(RTN_ANYCAST),
101  XLAT(RTN_MULTICAST),
102  XLAT(RTN_BLACKHOLE),
103  XLAT(RTN_UNREACHABLE),
104  XLAT(RTN_PROHIBIT),
105  XLAT(RTN_THROW),
106  XLAT(RTN_NAT),
107  XLAT(RTN_XRESOLVE),
108  XLAT_END
109 };
110 
111 # endif /* !IN_MPERS */
112 
113 #endif /* !XLAT_MACROS_ONLY */
114