• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Generated by ./xlat/gen.sh from ./xlat/route_nexthop_flags.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(RTNH_F_DEAD) || (defined(HAVE_DECL_RTNH_F_DEAD) && HAVE_DECL_RTNH_F_DEAD)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((RTNH_F_DEAD) == (1), "RTNH_F_DEAD != 1");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define RTNH_F_DEAD 1
12 #endif
13 #if defined(RTNH_F_PERVASIVE) || (defined(HAVE_DECL_RTNH_F_PERVASIVE) && HAVE_DECL_RTNH_F_PERVASIVE)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((RTNH_F_PERVASIVE) == (2), "RTNH_F_PERVASIVE != 2");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define RTNH_F_PERVASIVE 2
19 #endif
20 #if defined(RTNH_F_ONLINK) || (defined(HAVE_DECL_RTNH_F_ONLINK) && HAVE_DECL_RTNH_F_ONLINK)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((RTNH_F_ONLINK) == (4), "RTNH_F_ONLINK != 4");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define RTNH_F_ONLINK 4
26 #endif
27 #if defined(RTNH_F_OFFLOAD) || (defined(HAVE_DECL_RTNH_F_OFFLOAD) && HAVE_DECL_RTNH_F_OFFLOAD)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((RTNH_F_OFFLOAD) == (8), "RTNH_F_OFFLOAD != 8");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define RTNH_F_OFFLOAD 8
33 #endif
34 #if defined(RTNH_F_LINKDOWN) || (defined(HAVE_DECL_RTNH_F_LINKDOWN) && HAVE_DECL_RTNH_F_LINKDOWN)
35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
36 static_assert((RTNH_F_LINKDOWN) == (16), "RTNH_F_LINKDOWN != 16");
37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
38 #else
39 # define RTNH_F_LINKDOWN 16
40 #endif
41 #if defined(RTNH_F_UNRESOLVED) || (defined(HAVE_DECL_RTNH_F_UNRESOLVED) && HAVE_DECL_RTNH_F_UNRESOLVED)
42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
43 static_assert((RTNH_F_UNRESOLVED) == (32), "RTNH_F_UNRESOLVED != 32");
44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
45 #else
46 # define RTNH_F_UNRESOLVED 32
47 #endif
48 
49 #ifndef XLAT_MACROS_ONLY
50 
51 # ifdef IN_MPERS
52 
53 #  error static const struct xlat route_nexthop_flags in mpers mode
54 
55 # else
56 
57 static
58 const struct xlat route_nexthop_flags[] = {
59  XLAT(RTNH_F_DEAD),
60  XLAT(RTNH_F_PERVASIVE),
61  XLAT(RTNH_F_ONLINK),
62  XLAT(RTNH_F_OFFLOAD),
63  XLAT(RTNH_F_LINKDOWN),
64  XLAT(RTNH_F_UNRESOLVED),
65  XLAT_END
66 };
67 
68 # endif /* !IN_MPERS */
69 
70 #endif /* !XLAT_MACROS_ONLY */
71