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