1 /* Generated by ./xlat/gen.sh from ./xlat/sock_sctp_options.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(SCTP_RTOINFO) || (defined(HAVE_DECL_SCTP_RTOINFO) && HAVE_DECL_SCTP_RTOINFO) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((SCTP_RTOINFO) == (0), "SCTP_RTOINFO != 0"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define SCTP_RTOINFO 0 12 #endif 13 #if defined(SCTP_ASSOCINFO) || (defined(HAVE_DECL_SCTP_ASSOCINFO) && HAVE_DECL_SCTP_ASSOCINFO) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((SCTP_ASSOCINFO) == (1), "SCTP_ASSOCINFO != 1"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define SCTP_ASSOCINFO 1 19 #endif 20 #if defined(SCTP_INITMSG) || (defined(HAVE_DECL_SCTP_INITMSG) && HAVE_DECL_SCTP_INITMSG) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((SCTP_INITMSG) == (2), "SCTP_INITMSG != 2"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define SCTP_INITMSG 2 26 #endif 27 #if defined(SCTP_NODELAY) || (defined(HAVE_DECL_SCTP_NODELAY) && HAVE_DECL_SCTP_NODELAY) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((SCTP_NODELAY) == (3), "SCTP_NODELAY != 3"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define SCTP_NODELAY 3 33 #endif 34 #if defined(SCTP_AUTOCLOSE) || (defined(HAVE_DECL_SCTP_AUTOCLOSE) && HAVE_DECL_SCTP_AUTOCLOSE) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((SCTP_AUTOCLOSE) == (4), "SCTP_AUTOCLOSE != 4"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define SCTP_AUTOCLOSE 4 40 #endif 41 #if defined(SCTP_SET_PEER_PRIMARY_ADDR) || (defined(HAVE_DECL_SCTP_SET_PEER_PRIMARY_ADDR) && HAVE_DECL_SCTP_SET_PEER_PRIMARY_ADDR) 42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 43 static_assert((SCTP_SET_PEER_PRIMARY_ADDR) == (5), "SCTP_SET_PEER_PRIMARY_ADDR != 5"); 44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 45 #else 46 # define SCTP_SET_PEER_PRIMARY_ADDR 5 47 #endif 48 #if defined(SCTP_PRIMARY_ADDR) || (defined(HAVE_DECL_SCTP_PRIMARY_ADDR) && HAVE_DECL_SCTP_PRIMARY_ADDR) 49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 50 static_assert((SCTP_PRIMARY_ADDR) == (6), "SCTP_PRIMARY_ADDR != 6"); 51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 52 #else 53 # define SCTP_PRIMARY_ADDR 6 54 #endif 55 #if defined(SCTP_ADAPTATION_LAYER) || (defined(HAVE_DECL_SCTP_ADAPTATION_LAYER) && HAVE_DECL_SCTP_ADAPTATION_LAYER) 56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 57 static_assert((SCTP_ADAPTATION_LAYER) == (7), "SCTP_ADAPTATION_LAYER != 7"); 58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 59 #else 60 # define SCTP_ADAPTATION_LAYER 7 61 #endif 62 #if defined(SCTP_DISABLE_FRAGMENTS) || (defined(HAVE_DECL_SCTP_DISABLE_FRAGMENTS) && HAVE_DECL_SCTP_DISABLE_FRAGMENTS) 63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 64 static_assert((SCTP_DISABLE_FRAGMENTS) == (8), "SCTP_DISABLE_FRAGMENTS != 8"); 65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 66 #else 67 # define SCTP_DISABLE_FRAGMENTS 8 68 #endif 69 #if defined(SCTP_PEER_ADDR_PARAMS) || (defined(HAVE_DECL_SCTP_PEER_ADDR_PARAMS) && HAVE_DECL_SCTP_PEER_ADDR_PARAMS) 70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 71 static_assert((SCTP_PEER_ADDR_PARAMS) == (9), "SCTP_PEER_ADDR_PARAMS != 9"); 72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 73 #else 74 # define SCTP_PEER_ADDR_PARAMS 9 75 #endif 76 #if defined(SCTP_DEFAULT_SEND_PARAM) || (defined(HAVE_DECL_SCTP_DEFAULT_SEND_PARAM) && HAVE_DECL_SCTP_DEFAULT_SEND_PARAM) 77 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 78 static_assert((SCTP_DEFAULT_SEND_PARAM) == (10), "SCTP_DEFAULT_SEND_PARAM != 10"); 79 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 80 #else 81 # define SCTP_DEFAULT_SEND_PARAM 10 82 #endif 83 #if defined(SCTP_EVENTS) || (defined(HAVE_DECL_SCTP_EVENTS) && HAVE_DECL_SCTP_EVENTS) 84 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 85 static_assert((SCTP_EVENTS) == (11), "SCTP_EVENTS != 11"); 86 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 87 #else 88 # define SCTP_EVENTS 11 89 #endif 90 #if defined(SCTP_I_WANT_MAPPED_V4_ADDR) || (defined(HAVE_DECL_SCTP_I_WANT_MAPPED_V4_ADDR) && HAVE_DECL_SCTP_I_WANT_MAPPED_V4_ADDR) 91 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 92 static_assert((SCTP_I_WANT_MAPPED_V4_ADDR) == (12), "SCTP_I_WANT_MAPPED_V4_ADDR != 12"); 93 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 94 #else 95 # define SCTP_I_WANT_MAPPED_V4_ADDR 12 96 #endif 97 #if defined(SCTP_MAXSEG) || (defined(HAVE_DECL_SCTP_MAXSEG) && HAVE_DECL_SCTP_MAXSEG) 98 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 99 static_assert((SCTP_MAXSEG) == (13), "SCTP_MAXSEG != 13"); 100 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 101 #else 102 # define SCTP_MAXSEG 13 103 #endif 104 #if defined(SCTP_STATUS) || (defined(HAVE_DECL_SCTP_STATUS) && HAVE_DECL_SCTP_STATUS) 105 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 106 static_assert((SCTP_STATUS) == (14), "SCTP_STATUS != 14"); 107 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 108 #else 109 # define SCTP_STATUS 14 110 #endif 111 #if defined(SCTP_GET_PEER_ADDR_INFO) || (defined(HAVE_DECL_SCTP_GET_PEER_ADDR_INFO) && HAVE_DECL_SCTP_GET_PEER_ADDR_INFO) 112 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 113 static_assert((SCTP_GET_PEER_ADDR_INFO) == (15), "SCTP_GET_PEER_ADDR_INFO != 15"); 114 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 115 #else 116 # define SCTP_GET_PEER_ADDR_INFO 15 117 #endif 118 #if defined(SCTP_DELAYED_SACK) || (defined(HAVE_DECL_SCTP_DELAYED_SACK) && HAVE_DECL_SCTP_DELAYED_SACK) 119 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 120 static_assert((SCTP_DELAYED_SACK) == (16), "SCTP_DELAYED_SACK != 16"); 121 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 122 #else 123 # define SCTP_DELAYED_SACK 16 124 #endif 125 #if defined(SCTP_CONTEXT) || (defined(HAVE_DECL_SCTP_CONTEXT) && HAVE_DECL_SCTP_CONTEXT) 126 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 127 static_assert((SCTP_CONTEXT) == (17), "SCTP_CONTEXT != 17"); 128 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 129 #else 130 # define SCTP_CONTEXT 17 131 #endif 132 #if defined(SCTP_FRAGMENT_INTERLEAVE) || (defined(HAVE_DECL_SCTP_FRAGMENT_INTERLEAVE) && HAVE_DECL_SCTP_FRAGMENT_INTERLEAVE) 133 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 134 static_assert((SCTP_FRAGMENT_INTERLEAVE) == (18), "SCTP_FRAGMENT_INTERLEAVE != 18"); 135 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 136 #else 137 # define SCTP_FRAGMENT_INTERLEAVE 18 138 #endif 139 #if defined(SCTP_PARTIAL_DELIVERY_POINT) || (defined(HAVE_DECL_SCTP_PARTIAL_DELIVERY_POINT) && HAVE_DECL_SCTP_PARTIAL_DELIVERY_POINT) 140 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 141 static_assert((SCTP_PARTIAL_DELIVERY_POINT) == (19), "SCTP_PARTIAL_DELIVERY_POINT != 19"); 142 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 143 #else 144 # define SCTP_PARTIAL_DELIVERY_POINT 19 145 #endif 146 #if defined(SCTP_MAX_BURST) || (defined(HAVE_DECL_SCTP_MAX_BURST) && HAVE_DECL_SCTP_MAX_BURST) 147 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 148 static_assert((SCTP_MAX_BURST) == (20), "SCTP_MAX_BURST != 20"); 149 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 150 #else 151 # define SCTP_MAX_BURST 20 152 #endif 153 #if defined(SCTP_AUTH_CHUNK) || (defined(HAVE_DECL_SCTP_AUTH_CHUNK) && HAVE_DECL_SCTP_AUTH_CHUNK) 154 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 155 static_assert((SCTP_AUTH_CHUNK) == (21), "SCTP_AUTH_CHUNK != 21"); 156 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 157 #else 158 # define SCTP_AUTH_CHUNK 21 159 #endif 160 #if defined(SCTP_HMAC_IDENT) || (defined(HAVE_DECL_SCTP_HMAC_IDENT) && HAVE_DECL_SCTP_HMAC_IDENT) 161 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 162 static_assert((SCTP_HMAC_IDENT) == (22), "SCTP_HMAC_IDENT != 22"); 163 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 164 #else 165 # define SCTP_HMAC_IDENT 22 166 #endif 167 #if defined(SCTP_AUTH_KEY) || (defined(HAVE_DECL_SCTP_AUTH_KEY) && HAVE_DECL_SCTP_AUTH_KEY) 168 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 169 static_assert((SCTP_AUTH_KEY) == (23), "SCTP_AUTH_KEY != 23"); 170 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 171 #else 172 # define SCTP_AUTH_KEY 23 173 #endif 174 #if defined(SCTP_AUTH_ACTIVE_KEY) || (defined(HAVE_DECL_SCTP_AUTH_ACTIVE_KEY) && HAVE_DECL_SCTP_AUTH_ACTIVE_KEY) 175 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 176 static_assert((SCTP_AUTH_ACTIVE_KEY) == (24), "SCTP_AUTH_ACTIVE_KEY != 24"); 177 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 178 #else 179 # define SCTP_AUTH_ACTIVE_KEY 24 180 #endif 181 #if defined(SCTP_AUTH_DELETE_KEY) || (defined(HAVE_DECL_SCTP_AUTH_DELETE_KEY) && HAVE_DECL_SCTP_AUTH_DELETE_KEY) 182 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 183 static_assert((SCTP_AUTH_DELETE_KEY) == (25), "SCTP_AUTH_DELETE_KEY != 25"); 184 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 185 #else 186 # define SCTP_AUTH_DELETE_KEY 25 187 #endif 188 #if defined(SCTP_PEER_AUTH_CHUNKS) || (defined(HAVE_DECL_SCTP_PEER_AUTH_CHUNKS) && HAVE_DECL_SCTP_PEER_AUTH_CHUNKS) 189 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 190 static_assert((SCTP_PEER_AUTH_CHUNKS) == (26), "SCTP_PEER_AUTH_CHUNKS != 26"); 191 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 192 #else 193 # define SCTP_PEER_AUTH_CHUNKS 26 194 #endif 195 #if defined(SCTP_LOCAL_AUTH_CHUNKS) || (defined(HAVE_DECL_SCTP_LOCAL_AUTH_CHUNKS) && HAVE_DECL_SCTP_LOCAL_AUTH_CHUNKS) 196 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 197 static_assert((SCTP_LOCAL_AUTH_CHUNKS) == (27), "SCTP_LOCAL_AUTH_CHUNKS != 27"); 198 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 199 #else 200 # define SCTP_LOCAL_AUTH_CHUNKS 27 201 #endif 202 #if defined(SCTP_GET_ASSOC_NUMBER) || (defined(HAVE_DECL_SCTP_GET_ASSOC_NUMBER) && HAVE_DECL_SCTP_GET_ASSOC_NUMBER) 203 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 204 static_assert((SCTP_GET_ASSOC_NUMBER) == (28), "SCTP_GET_ASSOC_NUMBER != 28"); 205 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 206 #else 207 # define SCTP_GET_ASSOC_NUMBER 28 208 #endif 209 #if defined(SCTP_GET_ASSOC_ID_LIST) || (defined(HAVE_DECL_SCTP_GET_ASSOC_ID_LIST) && HAVE_DECL_SCTP_GET_ASSOC_ID_LIST) 210 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 211 static_assert((SCTP_GET_ASSOC_ID_LIST) == (29), "SCTP_GET_ASSOC_ID_LIST != 29"); 212 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 213 #else 214 # define SCTP_GET_ASSOC_ID_LIST 29 215 #endif 216 #if defined(SCTP_AUTO_ASCONF) || (defined(HAVE_DECL_SCTP_AUTO_ASCONF) && HAVE_DECL_SCTP_AUTO_ASCONF) 217 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 218 static_assert((SCTP_AUTO_ASCONF) == (30), "SCTP_AUTO_ASCONF != 30"); 219 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 220 #else 221 # define SCTP_AUTO_ASCONF 30 222 #endif 223 #if defined(SCTP_PEER_ADDR_THLDS) || (defined(HAVE_DECL_SCTP_PEER_ADDR_THLDS) && HAVE_DECL_SCTP_PEER_ADDR_THLDS) 224 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 225 static_assert((SCTP_PEER_ADDR_THLDS) == (31), "SCTP_PEER_ADDR_THLDS != 31"); 226 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 227 #else 228 # define SCTP_PEER_ADDR_THLDS 31 229 #endif 230 #if defined(SCTP_RECVRCVINFO) || (defined(HAVE_DECL_SCTP_RECVRCVINFO) && HAVE_DECL_SCTP_RECVRCVINFO) 231 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 232 static_assert((SCTP_RECVRCVINFO) == (32), "SCTP_RECVRCVINFO != 32"); 233 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 234 #else 235 # define SCTP_RECVRCVINFO 32 236 #endif 237 #if defined(SCTP_RECVNXTINFO) || (defined(HAVE_DECL_SCTP_RECVNXTINFO) && HAVE_DECL_SCTP_RECVNXTINFO) 238 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 239 static_assert((SCTP_RECVNXTINFO) == (33), "SCTP_RECVNXTINFO != 33"); 240 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 241 #else 242 # define SCTP_RECVNXTINFO 33 243 #endif 244 #if defined(SCTP_DEFAULT_SNDINFO) || (defined(HAVE_DECL_SCTP_DEFAULT_SNDINFO) && HAVE_DECL_SCTP_DEFAULT_SNDINFO) 245 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 246 static_assert((SCTP_DEFAULT_SNDINFO) == (34), "SCTP_DEFAULT_SNDINFO != 34"); 247 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 248 #else 249 # define SCTP_DEFAULT_SNDINFO 34 250 #endif 251 #if defined(SCTP_AUTH_DEACTIVATE_KEY) || (defined(HAVE_DECL_SCTP_AUTH_DEACTIVATE_KEY) && HAVE_DECL_SCTP_AUTH_DEACTIVATE_KEY) 252 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 253 static_assert((SCTP_AUTH_DEACTIVATE_KEY) == (35), "SCTP_AUTH_DEACTIVATE_KEY != 35"); 254 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 255 #else 256 # define SCTP_AUTH_DEACTIVATE_KEY 35 257 #endif 258 #if defined(SCTP_REUSE_PORT) || (defined(HAVE_DECL_SCTP_REUSE_PORT) && HAVE_DECL_SCTP_REUSE_PORT) 259 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 260 static_assert((SCTP_REUSE_PORT) == (36), "SCTP_REUSE_PORT != 36"); 261 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 262 #else 263 # define SCTP_REUSE_PORT 36 264 #endif 265 #if defined(SCTP_SOCKOPT_BINDX_ADD) || (defined(HAVE_DECL_SCTP_SOCKOPT_BINDX_ADD) && HAVE_DECL_SCTP_SOCKOPT_BINDX_ADD) 266 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 267 static_assert((SCTP_SOCKOPT_BINDX_ADD) == (100), "SCTP_SOCKOPT_BINDX_ADD != 100"); 268 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 269 #else 270 # define SCTP_SOCKOPT_BINDX_ADD 100 271 #endif 272 #if defined(SCTP_SOCKOPT_BINDX_REM) || (defined(HAVE_DECL_SCTP_SOCKOPT_BINDX_REM) && HAVE_DECL_SCTP_SOCKOPT_BINDX_REM) 273 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 274 static_assert((SCTP_SOCKOPT_BINDX_REM) == (101), "SCTP_SOCKOPT_BINDX_REM != 101"); 275 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 276 #else 277 # define SCTP_SOCKOPT_BINDX_REM 101 278 #endif 279 #if defined(SCTP_SOCKOPT_PEELOFF) || (defined(HAVE_DECL_SCTP_SOCKOPT_PEELOFF) && HAVE_DECL_SCTP_SOCKOPT_PEELOFF) 280 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 281 static_assert((SCTP_SOCKOPT_PEELOFF) == (102), "SCTP_SOCKOPT_PEELOFF != 102"); 282 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 283 #else 284 # define SCTP_SOCKOPT_PEELOFF 102 285 #endif 286 #if defined(SCTP_GET_PEER_ADDRS_NUM_OLD) || (defined(HAVE_DECL_SCTP_GET_PEER_ADDRS_NUM_OLD) && HAVE_DECL_SCTP_GET_PEER_ADDRS_NUM_OLD) 287 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 288 static_assert((SCTP_GET_PEER_ADDRS_NUM_OLD) == (103), "SCTP_GET_PEER_ADDRS_NUM_OLD != 103"); 289 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 290 #else 291 # define SCTP_GET_PEER_ADDRS_NUM_OLD 103 292 #endif 293 #if defined(SCTP_GET_PEER_ADDRS_OLD) || (defined(HAVE_DECL_SCTP_GET_PEER_ADDRS_OLD) && HAVE_DECL_SCTP_GET_PEER_ADDRS_OLD) 294 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 295 static_assert((SCTP_GET_PEER_ADDRS_OLD) == (104), "SCTP_GET_PEER_ADDRS_OLD != 104"); 296 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 297 #else 298 # define SCTP_GET_PEER_ADDRS_OLD 104 299 #endif 300 #if defined(SCTP_GET_LOCAL_ADDRS_NUM_OLD) || (defined(HAVE_DECL_SCTP_GET_LOCAL_ADDRS_NUM_OLD) && HAVE_DECL_SCTP_GET_LOCAL_ADDRS_NUM_OLD) 301 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 302 static_assert((SCTP_GET_LOCAL_ADDRS_NUM_OLD) == (105), "SCTP_GET_LOCAL_ADDRS_NUM_OLD != 105"); 303 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 304 #else 305 # define SCTP_GET_LOCAL_ADDRS_NUM_OLD 105 306 #endif 307 #if defined(SCTP_GET_LOCAL_ADDRS_OLD) || (defined(HAVE_DECL_SCTP_GET_LOCAL_ADDRS_OLD) && HAVE_DECL_SCTP_GET_LOCAL_ADDRS_OLD) 308 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 309 static_assert((SCTP_GET_LOCAL_ADDRS_OLD) == (106), "SCTP_GET_LOCAL_ADDRS_OLD != 106"); 310 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 311 #else 312 # define SCTP_GET_LOCAL_ADDRS_OLD 106 313 #endif 314 #if defined(SCTP_SOCKOPT_CONNECTX_OLD) || (defined(HAVE_DECL_SCTP_SOCKOPT_CONNECTX_OLD) && HAVE_DECL_SCTP_SOCKOPT_CONNECTX_OLD) 315 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 316 static_assert((SCTP_SOCKOPT_CONNECTX_OLD) == (107), "SCTP_SOCKOPT_CONNECTX_OLD != 107"); 317 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 318 #else 319 # define SCTP_SOCKOPT_CONNECTX_OLD 107 320 #endif 321 #if defined(SCTP_GET_PEER_ADDRS) || (defined(HAVE_DECL_SCTP_GET_PEER_ADDRS) && HAVE_DECL_SCTP_GET_PEER_ADDRS) 322 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 323 static_assert((SCTP_GET_PEER_ADDRS) == (108), "SCTP_GET_PEER_ADDRS != 108"); 324 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 325 #else 326 # define SCTP_GET_PEER_ADDRS 108 327 #endif 328 #if defined(SCTP_GET_LOCAL_ADDRS) || (defined(HAVE_DECL_SCTP_GET_LOCAL_ADDRS) && HAVE_DECL_SCTP_GET_LOCAL_ADDRS) 329 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 330 static_assert((SCTP_GET_LOCAL_ADDRS) == (109), "SCTP_GET_LOCAL_ADDRS != 109"); 331 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 332 #else 333 # define SCTP_GET_LOCAL_ADDRS 109 334 #endif 335 #if defined(SCTP_SOCKOPT_CONNECTX) || (defined(HAVE_DECL_SCTP_SOCKOPT_CONNECTX) && HAVE_DECL_SCTP_SOCKOPT_CONNECTX) 336 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 337 static_assert((SCTP_SOCKOPT_CONNECTX) == (110), "SCTP_SOCKOPT_CONNECTX != 110"); 338 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 339 #else 340 # define SCTP_SOCKOPT_CONNECTX 110 341 #endif 342 #if defined(SCTP_SOCKOPT_CONNECTX3) || (defined(HAVE_DECL_SCTP_SOCKOPT_CONNECTX3) && HAVE_DECL_SCTP_SOCKOPT_CONNECTX3) 343 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 344 static_assert((SCTP_SOCKOPT_CONNECTX3) == (111), "SCTP_SOCKOPT_CONNECTX3 != 111"); 345 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 346 #else 347 # define SCTP_SOCKOPT_CONNECTX3 111 348 #endif 349 #if defined(SCTP_GET_ASSOC_STATS) || (defined(HAVE_DECL_SCTP_GET_ASSOC_STATS) && HAVE_DECL_SCTP_GET_ASSOC_STATS) 350 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 351 static_assert((SCTP_GET_ASSOC_STATS) == (112), "SCTP_GET_ASSOC_STATS != 112"); 352 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 353 #else 354 # define SCTP_GET_ASSOC_STATS 112 355 #endif 356 #if defined(SCTP_PR_SUPPORTED) || (defined(HAVE_DECL_SCTP_PR_SUPPORTED) && HAVE_DECL_SCTP_PR_SUPPORTED) 357 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 358 static_assert((SCTP_PR_SUPPORTED) == (113), "SCTP_PR_SUPPORTED != 113"); 359 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 360 #else 361 # define SCTP_PR_SUPPORTED 113 362 #endif 363 #if defined(SCTP_DEFAULT_PRINFO) || (defined(HAVE_DECL_SCTP_DEFAULT_PRINFO) && HAVE_DECL_SCTP_DEFAULT_PRINFO) 364 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 365 static_assert((SCTP_DEFAULT_PRINFO) == (114), "SCTP_DEFAULT_PRINFO != 114"); 366 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 367 #else 368 # define SCTP_DEFAULT_PRINFO 114 369 #endif 370 #if defined(SCTP_PR_ASSOC_STATUS) || (defined(HAVE_DECL_SCTP_PR_ASSOC_STATUS) && HAVE_DECL_SCTP_PR_ASSOC_STATUS) 371 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 372 static_assert((SCTP_PR_ASSOC_STATUS) == (115), "SCTP_PR_ASSOC_STATUS != 115"); 373 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 374 #else 375 # define SCTP_PR_ASSOC_STATUS 115 376 #endif 377 #if defined(SCTP_PR_STREAM_STATUS) || (defined(HAVE_DECL_SCTP_PR_STREAM_STATUS) && HAVE_DECL_SCTP_PR_STREAM_STATUS) 378 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 379 static_assert((SCTP_PR_STREAM_STATUS) == (116), "SCTP_PR_STREAM_STATUS != 116"); 380 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 381 #else 382 # define SCTP_PR_STREAM_STATUS 116 383 #endif 384 #if defined(SCTP_RECONFIG_SUPPORTED) || (defined(HAVE_DECL_SCTP_RECONFIG_SUPPORTED) && HAVE_DECL_SCTP_RECONFIG_SUPPORTED) 385 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 386 static_assert((SCTP_RECONFIG_SUPPORTED) == (117), "SCTP_RECONFIG_SUPPORTED != 117"); 387 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 388 #else 389 # define SCTP_RECONFIG_SUPPORTED 117 390 #endif 391 #if defined(SCTP_ENABLE_STREAM_RESET) || (defined(HAVE_DECL_SCTP_ENABLE_STREAM_RESET) && HAVE_DECL_SCTP_ENABLE_STREAM_RESET) 392 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 393 static_assert((SCTP_ENABLE_STREAM_RESET) == (118), "SCTP_ENABLE_STREAM_RESET != 118"); 394 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 395 #else 396 # define SCTP_ENABLE_STREAM_RESET 118 397 #endif 398 #if defined(SCTP_RESET_STREAMS) || (defined(HAVE_DECL_SCTP_RESET_STREAMS) && HAVE_DECL_SCTP_RESET_STREAMS) 399 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 400 static_assert((SCTP_RESET_STREAMS) == (119), "SCTP_RESET_STREAMS != 119"); 401 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 402 #else 403 # define SCTP_RESET_STREAMS 119 404 #endif 405 #if defined(SCTP_RESET_ASSOC) || (defined(HAVE_DECL_SCTP_RESET_ASSOC) && HAVE_DECL_SCTP_RESET_ASSOC) 406 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 407 static_assert((SCTP_RESET_ASSOC) == (120), "SCTP_RESET_ASSOC != 120"); 408 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 409 #else 410 # define SCTP_RESET_ASSOC 120 411 #endif 412 #if defined(SCTP_ADD_STREAMS) || (defined(HAVE_DECL_SCTP_ADD_STREAMS) && HAVE_DECL_SCTP_ADD_STREAMS) 413 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 414 static_assert((SCTP_ADD_STREAMS) == (121), "SCTP_ADD_STREAMS != 121"); 415 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 416 #else 417 # define SCTP_ADD_STREAMS 121 418 #endif 419 #if defined(SCTP_SOCKOPT_PEELOFF_FLAGS) || (defined(HAVE_DECL_SCTP_SOCKOPT_PEELOFF_FLAGS) && HAVE_DECL_SCTP_SOCKOPT_PEELOFF_FLAGS) 420 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 421 static_assert((SCTP_SOCKOPT_PEELOFF_FLAGS) == (122), "SCTP_SOCKOPT_PEELOFF_FLAGS != 122"); 422 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 423 #else 424 # define SCTP_SOCKOPT_PEELOFF_FLAGS 122 425 #endif 426 #if defined(SCTP_STREAM_SCHEDULER) || (defined(HAVE_DECL_SCTP_STREAM_SCHEDULER) && HAVE_DECL_SCTP_STREAM_SCHEDULER) 427 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 428 static_assert((SCTP_STREAM_SCHEDULER) == (123), "SCTP_STREAM_SCHEDULER != 123"); 429 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 430 #else 431 # define SCTP_STREAM_SCHEDULER 123 432 #endif 433 #if defined(SCTP_STREAM_SCHEDULER_VALUE) || (defined(HAVE_DECL_SCTP_STREAM_SCHEDULER_VALUE) && HAVE_DECL_SCTP_STREAM_SCHEDULER_VALUE) 434 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 435 static_assert((SCTP_STREAM_SCHEDULER_VALUE) == (124), "SCTP_STREAM_SCHEDULER_VALUE != 124"); 436 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 437 #else 438 # define SCTP_STREAM_SCHEDULER_VALUE 124 439 #endif 440 #if defined(SCTP_INTERLEAVING_SUPPORTED) || (defined(HAVE_DECL_SCTP_INTERLEAVING_SUPPORTED) && HAVE_DECL_SCTP_INTERLEAVING_SUPPORTED) 441 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 442 static_assert((SCTP_INTERLEAVING_SUPPORTED) == (125), "SCTP_INTERLEAVING_SUPPORTED != 125"); 443 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 444 #else 445 # define SCTP_INTERLEAVING_SUPPORTED 125 446 #endif 447 #if defined(SCTP_SENDMSG_CONNECT) || (defined(HAVE_DECL_SCTP_SENDMSG_CONNECT) && HAVE_DECL_SCTP_SENDMSG_CONNECT) 448 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 449 static_assert((SCTP_SENDMSG_CONNECT) == (126), "SCTP_SENDMSG_CONNECT != 126"); 450 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 451 #else 452 # define SCTP_SENDMSG_CONNECT 126 453 #endif 454 455 #ifndef XLAT_MACROS_ONLY 456 457 # ifdef IN_MPERS 458 459 # error static const struct xlat sock_sctp_options in mpers mode 460 461 # else 462 463 static 464 const struct xlat sock_sctp_options[] = { 465 XLAT(SCTP_RTOINFO), 466 XLAT(SCTP_ASSOCINFO), 467 XLAT(SCTP_INITMSG), 468 XLAT(SCTP_NODELAY), 469 XLAT(SCTP_AUTOCLOSE), 470 XLAT(SCTP_SET_PEER_PRIMARY_ADDR), 471 XLAT(SCTP_PRIMARY_ADDR), 472 XLAT(SCTP_ADAPTATION_LAYER), 473 XLAT(SCTP_DISABLE_FRAGMENTS), 474 XLAT(SCTP_PEER_ADDR_PARAMS), 475 XLAT(SCTP_DEFAULT_SEND_PARAM), 476 XLAT(SCTP_EVENTS), 477 XLAT(SCTP_I_WANT_MAPPED_V4_ADDR), 478 XLAT(SCTP_MAXSEG), 479 XLAT(SCTP_STATUS), 480 XLAT(SCTP_GET_PEER_ADDR_INFO), 481 XLAT(SCTP_DELAYED_SACK), 482 XLAT(SCTP_CONTEXT), 483 XLAT(SCTP_FRAGMENT_INTERLEAVE), 484 XLAT(SCTP_PARTIAL_DELIVERY_POINT), 485 XLAT(SCTP_MAX_BURST), 486 XLAT(SCTP_AUTH_CHUNK), 487 XLAT(SCTP_HMAC_IDENT), 488 XLAT(SCTP_AUTH_KEY), 489 XLAT(SCTP_AUTH_ACTIVE_KEY), 490 XLAT(SCTP_AUTH_DELETE_KEY), 491 XLAT(SCTP_PEER_AUTH_CHUNKS), 492 XLAT(SCTP_LOCAL_AUTH_CHUNKS), 493 XLAT(SCTP_GET_ASSOC_NUMBER), 494 XLAT(SCTP_GET_ASSOC_ID_LIST), 495 XLAT(SCTP_AUTO_ASCONF), 496 XLAT(SCTP_PEER_ADDR_THLDS), 497 XLAT(SCTP_RECVRCVINFO), 498 XLAT(SCTP_RECVNXTINFO), 499 XLAT(SCTP_DEFAULT_SNDINFO), 500 XLAT(SCTP_AUTH_DEACTIVATE_KEY), 501 XLAT(SCTP_REUSE_PORT), 502 503 XLAT(SCTP_SOCKOPT_BINDX_ADD), 504 XLAT(SCTP_SOCKOPT_BINDX_REM), 505 XLAT(SCTP_SOCKOPT_PEELOFF), 506 XLAT(SCTP_GET_PEER_ADDRS_NUM_OLD), 507 XLAT(SCTP_GET_PEER_ADDRS_OLD), 508 XLAT(SCTP_GET_LOCAL_ADDRS_NUM_OLD), 509 XLAT(SCTP_GET_LOCAL_ADDRS_OLD), 510 XLAT(SCTP_SOCKOPT_CONNECTX_OLD), 511 XLAT(SCTP_GET_PEER_ADDRS), 512 XLAT(SCTP_GET_LOCAL_ADDRS), 513 XLAT(SCTP_SOCKOPT_CONNECTX), 514 XLAT(SCTP_SOCKOPT_CONNECTX3), 515 XLAT(SCTP_GET_ASSOC_STATS), 516 XLAT(SCTP_PR_SUPPORTED), 517 XLAT(SCTP_DEFAULT_PRINFO), 518 XLAT(SCTP_PR_ASSOC_STATUS), 519 XLAT(SCTP_PR_STREAM_STATUS), 520 XLAT(SCTP_RECONFIG_SUPPORTED), 521 XLAT(SCTP_ENABLE_STREAM_RESET), 522 XLAT(SCTP_RESET_STREAMS), 523 XLAT(SCTP_RESET_ASSOC), 524 XLAT(SCTP_ADD_STREAMS), 525 XLAT(SCTP_SOCKOPT_PEELOFF_FLAGS), 526 XLAT(SCTP_STREAM_SCHEDULER), 527 XLAT(SCTP_STREAM_SCHEDULER_VALUE), 528 XLAT(SCTP_INTERLEAVING_SUPPORTED), 529 XLAT(SCTP_SENDMSG_CONNECT), 530 XLAT_END 531 }; 532 533 # endif /* !IN_MPERS */ 534 535 #endif /* !XLAT_MACROS_ONLY */ 536