Home | History | Annotate | Download | only in xlat
      1 /* Generated by ./xlat/gen.sh from ./xlat/inet6_if_flags.in; do not edit. */
      2 
      3 #include "gcc_compat.h"
      4 #include "static_assert.h"
      5 
      6 #if defined(IF_RS_SENT) || (defined(HAVE_DECL_IF_RS_SENT) && HAVE_DECL_IF_RS_SENT)
      7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      8 static_assert((IF_RS_SENT) == (0x10), "IF_RS_SENT != 0x10");
      9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     10 #else
     11 # define IF_RS_SENT 0x10
     12 #endif
     13 #if defined(IF_RA_RCVD) || (defined(HAVE_DECL_IF_RA_RCVD) && HAVE_DECL_IF_RA_RCVD)
     14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     15 static_assert((IF_RA_RCVD) == (0x20), "IF_RA_RCVD != 0x20");
     16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     17 #else
     18 # define IF_RA_RCVD 0x20
     19 #endif
     20 #if defined(IF_RA_MANAGED) || (defined(HAVE_DECL_IF_RA_MANAGED) && HAVE_DECL_IF_RA_MANAGED)
     21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     22 static_assert((IF_RA_MANAGED) == (0x40), "IF_RA_MANAGED != 0x40");
     23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     24 #else
     25 # define IF_RA_MANAGED 0x40
     26 #endif
     27 #if defined(IF_RA_OTHERCONF) || (defined(HAVE_DECL_IF_RA_OTHERCONF) && HAVE_DECL_IF_RA_OTHERCONF)
     28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     29 static_assert((IF_RA_OTHERCONF) == (0x80), "IF_RA_OTHERCONF != 0x80");
     30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     31 #else
     32 # define IF_RA_OTHERCONF 0x80
     33 #endif
     34 #if defined(IF_READY) || (defined(HAVE_DECL_IF_READY) && HAVE_DECL_IF_READY)
     35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     36 static_assert((IF_READY) == (0x80000000), "IF_READY != 0x80000000");
     37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     38 #else
     39 # define IF_READY 0x80000000
     40 #endif
     41 
     42 #ifndef XLAT_MACROS_ONLY
     43 
     44 # ifdef IN_MPERS
     45 
     46 #  error static const struct xlat inet6_if_flags in mpers mode
     47 
     48 # else
     49 
     50 static
     51 const struct xlat inet6_if_flags[] = {
     52 
     53  XLAT(IF_RS_SENT),
     54  XLAT(IF_RA_RCVD),
     55  XLAT(IF_RA_MANAGED),
     56  XLAT(IF_RA_OTHERCONF),
     57  XLAT(IF_READY),
     58  XLAT_END
     59 };
     60 
     61 # endif /* !IN_MPERS */
     62 
     63 #endif /* !XLAT_MACROS_ONLY */
     64