1 /* Generated by ./xlat/gen.sh from ./xlat/rtnl_ifla_events.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(IFLA_EVENT_NONE) || (defined(HAVE_DECL_IFLA_EVENT_NONE) && HAVE_DECL_IFLA_EVENT_NONE) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((IFLA_EVENT_NONE) == (0), "IFLA_EVENT_NONE != 0"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define IFLA_EVENT_NONE 0 12 #endif 13 #if defined(IFLA_EVENT_REBOOT) || (defined(HAVE_DECL_IFLA_EVENT_REBOOT) && HAVE_DECL_IFLA_EVENT_REBOOT) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((IFLA_EVENT_REBOOT) == (1), "IFLA_EVENT_REBOOT != 1"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define IFLA_EVENT_REBOOT 1 19 #endif 20 #if defined(IFLA_EVENT_FEATURES) || (defined(HAVE_DECL_IFLA_EVENT_FEATURES) && HAVE_DECL_IFLA_EVENT_FEATURES) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((IFLA_EVENT_FEATURES) == (2), "IFLA_EVENT_FEATURES != 2"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define IFLA_EVENT_FEATURES 2 26 #endif 27 #if defined(IFLA_EVENT_BONDING_FAILOVER) || (defined(HAVE_DECL_IFLA_EVENT_BONDING_FAILOVER) && HAVE_DECL_IFLA_EVENT_BONDING_FAILOVER) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((IFLA_EVENT_BONDING_FAILOVER) == (3), "IFLA_EVENT_BONDING_FAILOVER != 3"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define IFLA_EVENT_BONDING_FAILOVER 3 33 #endif 34 #if defined(IFLA_EVENT_NOTIFY_PEERS) || (defined(HAVE_DECL_IFLA_EVENT_NOTIFY_PEERS) && HAVE_DECL_IFLA_EVENT_NOTIFY_PEERS) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((IFLA_EVENT_NOTIFY_PEERS) == (4), "IFLA_EVENT_NOTIFY_PEERS != 4"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define IFLA_EVENT_NOTIFY_PEERS 4 40 #endif 41 #if defined(IFLA_EVENT_IGMP_RESEND) || (defined(HAVE_DECL_IFLA_EVENT_IGMP_RESEND) && HAVE_DECL_IFLA_EVENT_IGMP_RESEND) 42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 43 static_assert((IFLA_EVENT_IGMP_RESEND) == (5), "IFLA_EVENT_IGMP_RESEND != 5"); 44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 45 #else 46 # define IFLA_EVENT_IGMP_RESEND 5 47 #endif 48 #if defined(IFLA_EVENT_BONDING_OPTIONS) || (defined(HAVE_DECL_IFLA_EVENT_BONDING_OPTIONS) && HAVE_DECL_IFLA_EVENT_BONDING_OPTIONS) 49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 50 static_assert((IFLA_EVENT_BONDING_OPTIONS) == (6), "IFLA_EVENT_BONDING_OPTIONS != 6"); 51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 52 #else 53 # define IFLA_EVENT_BONDING_OPTIONS 6 54 #endif 55 56 #ifndef XLAT_MACROS_ONLY 57 58 # ifdef IN_MPERS 59 60 # error static const struct xlat rtnl_ifla_events in mpers mode 61 62 # else 63 64 static 65 const struct xlat rtnl_ifla_events[] = { 66 XLAT(IFLA_EVENT_NONE), 67 XLAT(IFLA_EVENT_REBOOT), 68 XLAT(IFLA_EVENT_FEATURES), 69 XLAT(IFLA_EVENT_BONDING_FAILOVER), 70 XLAT(IFLA_EVENT_NOTIFY_PEERS), 71 XLAT(IFLA_EVENT_IGMP_RESEND), 72 XLAT(IFLA_EVENT_BONDING_OPTIONS), 73 XLAT_END 74 }; 75 76 # endif /* !IN_MPERS */ 77 78 #endif /* !XLAT_MACROS_ONLY */ 79