1 /* Generated by ./xlat/gen.sh from ./xlat/rtnl_rta_metrics_attrs.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(RTAX_UNSPEC) || (defined(HAVE_DECL_RTAX_UNSPEC) && HAVE_DECL_RTAX_UNSPEC) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((RTAX_UNSPEC) == (0), "RTAX_UNSPEC != 0"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define RTAX_UNSPEC 0 12 #endif 13 #if defined(RTAX_LOCK) || (defined(HAVE_DECL_RTAX_LOCK) && HAVE_DECL_RTAX_LOCK) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((RTAX_LOCK) == (1), "RTAX_LOCK != 1"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define RTAX_LOCK 1 19 #endif 20 #if defined(RTAX_MTU) || (defined(HAVE_DECL_RTAX_MTU) && HAVE_DECL_RTAX_MTU) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((RTAX_MTU) == (2), "RTAX_MTU != 2"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define RTAX_MTU 2 26 #endif 27 #if defined(RTAX_WINDOW) || (defined(HAVE_DECL_RTAX_WINDOW) && HAVE_DECL_RTAX_WINDOW) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((RTAX_WINDOW) == (3), "RTAX_WINDOW != 3"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define RTAX_WINDOW 3 33 #endif 34 #if defined(RTAX_RTT) || (defined(HAVE_DECL_RTAX_RTT) && HAVE_DECL_RTAX_RTT) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((RTAX_RTT) == (4), "RTAX_RTT != 4"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define RTAX_RTT 4 40 #endif 41 #if defined(RTAX_RTTVAR) || (defined(HAVE_DECL_RTAX_RTTVAR) && HAVE_DECL_RTAX_RTTVAR) 42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 43 static_assert((RTAX_RTTVAR) == (5), "RTAX_RTTVAR != 5"); 44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 45 #else 46 # define RTAX_RTTVAR 5 47 #endif 48 #if defined(RTAX_SSTHRESH) || (defined(HAVE_DECL_RTAX_SSTHRESH) && HAVE_DECL_RTAX_SSTHRESH) 49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 50 static_assert((RTAX_SSTHRESH) == (6), "RTAX_SSTHRESH != 6"); 51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 52 #else 53 # define RTAX_SSTHRESH 6 54 #endif 55 #if defined(RTAX_CWND) || (defined(HAVE_DECL_RTAX_CWND) && HAVE_DECL_RTAX_CWND) 56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 57 static_assert((RTAX_CWND) == (7), "RTAX_CWND != 7"); 58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 59 #else 60 # define RTAX_CWND 7 61 #endif 62 #if defined(RTAX_ADVMSS) || (defined(HAVE_DECL_RTAX_ADVMSS) && HAVE_DECL_RTAX_ADVMSS) 63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 64 static_assert((RTAX_ADVMSS) == (8), "RTAX_ADVMSS != 8"); 65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 66 #else 67 # define RTAX_ADVMSS 8 68 #endif 69 #if defined(RTAX_REORDERING) || (defined(HAVE_DECL_RTAX_REORDERING) && HAVE_DECL_RTAX_REORDERING) 70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 71 static_assert((RTAX_REORDERING) == (9), "RTAX_REORDERING != 9"); 72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 73 #else 74 # define RTAX_REORDERING 9 75 #endif 76 #if defined(RTAX_HOPLIMIT) || (defined(HAVE_DECL_RTAX_HOPLIMIT) && HAVE_DECL_RTAX_HOPLIMIT) 77 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 78 static_assert((RTAX_HOPLIMIT) == (10), "RTAX_HOPLIMIT != 10"); 79 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 80 #else 81 # define RTAX_HOPLIMIT 10 82 #endif 83 #if defined(RTAX_INITCWND) || (defined(HAVE_DECL_RTAX_INITCWND) && HAVE_DECL_RTAX_INITCWND) 84 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 85 static_assert((RTAX_INITCWND) == (11), "RTAX_INITCWND != 11"); 86 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 87 #else 88 # define RTAX_INITCWND 11 89 #endif 90 #if defined(RTAX_FEATURES) || (defined(HAVE_DECL_RTAX_FEATURES) && HAVE_DECL_RTAX_FEATURES) 91 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 92 static_assert((RTAX_FEATURES) == (12), "RTAX_FEATURES != 12"); 93 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 94 #else 95 # define RTAX_FEATURES 12 96 #endif 97 #if defined(RTAX_RTO_MIN) || (defined(HAVE_DECL_RTAX_RTO_MIN) && HAVE_DECL_RTAX_RTO_MIN) 98 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 99 static_assert((RTAX_RTO_MIN) == (13), "RTAX_RTO_MIN != 13"); 100 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 101 #else 102 # define RTAX_RTO_MIN 13 103 #endif 104 #if defined(RTAX_INITRWND) || (defined(HAVE_DECL_RTAX_INITRWND) && HAVE_DECL_RTAX_INITRWND) 105 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 106 static_assert((RTAX_INITRWND) == (14), "RTAX_INITRWND != 14"); 107 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 108 #else 109 # define RTAX_INITRWND 14 110 #endif 111 #if defined(RTAX_QUICKACK) || (defined(HAVE_DECL_RTAX_QUICKACK) && HAVE_DECL_RTAX_QUICKACK) 112 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 113 static_assert((RTAX_QUICKACK) == (15), "RTAX_QUICKACK != 15"); 114 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 115 #else 116 # define RTAX_QUICKACK 15 117 #endif 118 #if defined(RTAX_CC_ALGO) || (defined(HAVE_DECL_RTAX_CC_ALGO) && HAVE_DECL_RTAX_CC_ALGO) 119 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 120 static_assert((RTAX_CC_ALGO) == (16), "RTAX_CC_ALGO != 16"); 121 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 122 #else 123 # define RTAX_CC_ALGO 16 124 #endif 125 126 #ifndef XLAT_MACROS_ONLY 127 128 # ifdef IN_MPERS 129 130 # error static const struct xlat rtnl_rta_metrics_attrs in mpers mode 131 132 # else 133 134 static 135 const struct xlat rtnl_rta_metrics_attrs[] = { 136 XLAT(RTAX_UNSPEC), 137 XLAT(RTAX_LOCK), 138 XLAT(RTAX_MTU), 139 XLAT(RTAX_WINDOW), 140 XLAT(RTAX_RTT), 141 XLAT(RTAX_RTTVAR), 142 XLAT(RTAX_SSTHRESH), 143 XLAT(RTAX_CWND), 144 XLAT(RTAX_ADVMSS), 145 XLAT(RTAX_REORDERING), 146 XLAT(RTAX_HOPLIMIT), 147 XLAT(RTAX_INITCWND), 148 XLAT(RTAX_FEATURES), 149 XLAT(RTAX_RTO_MIN), 150 XLAT(RTAX_INITRWND), 151 XLAT(RTAX_QUICKACK), 152 XLAT(RTAX_CC_ALGO), 153 XLAT_END 154 }; 155 156 # endif /* !IN_MPERS */ 157 158 #endif /* !XLAT_MACROS_ONLY */ 159