• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Generated by ./xlat/gen.sh from ./xlat/routing_scopes.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(RT_SCOPE_UNIVERSE) || (defined(HAVE_DECL_RT_SCOPE_UNIVERSE) && HAVE_DECL_RT_SCOPE_UNIVERSE)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((RT_SCOPE_UNIVERSE) == (0), "RT_SCOPE_UNIVERSE != 0");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define RT_SCOPE_UNIVERSE 0
12 #endif
13 #if defined(RT_SCOPE_SITE) || (defined(HAVE_DECL_RT_SCOPE_SITE) && HAVE_DECL_RT_SCOPE_SITE)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((RT_SCOPE_SITE) == (200), "RT_SCOPE_SITE != 200");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define RT_SCOPE_SITE 200
19 #endif
20 #if defined(RT_SCOPE_LINK) || (defined(HAVE_DECL_RT_SCOPE_LINK) && HAVE_DECL_RT_SCOPE_LINK)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((RT_SCOPE_LINK) == (253), "RT_SCOPE_LINK != 253");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define RT_SCOPE_LINK 253
26 #endif
27 #if defined(RT_SCOPE_HOST) || (defined(HAVE_DECL_RT_SCOPE_HOST) && HAVE_DECL_RT_SCOPE_HOST)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((RT_SCOPE_HOST) == (254), "RT_SCOPE_HOST != 254");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define RT_SCOPE_HOST 254
33 #endif
34 #if defined(RT_SCOPE_NOWHERE) || (defined(HAVE_DECL_RT_SCOPE_NOWHERE) && HAVE_DECL_RT_SCOPE_NOWHERE)
35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
36 static_assert((RT_SCOPE_NOWHERE) == (255), "RT_SCOPE_NOWHERE != 255");
37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
38 #else
39 # define RT_SCOPE_NOWHERE 255
40 #endif
41 
42 #ifndef XLAT_MACROS_ONLY
43 
44 # ifndef IN_MPERS
45 
46 const struct xlat routing_scopes[] = {
47  XLAT(RT_SCOPE_UNIVERSE),
48  XLAT(RT_SCOPE_SITE),
49  XLAT(RT_SCOPE_LINK),
50  XLAT(RT_SCOPE_HOST),
51  XLAT(RT_SCOPE_NOWHERE),
52  XLAT_END
53 };
54 
55 # endif /* !IN_MPERS */
56 
57 #endif /* !XLAT_MACROS_ONLY */
58