1 /* Generated by ./xlat/gen.sh from ./xlat/ax25_protocols.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(AX25_P_ROSE) || (defined(HAVE_DECL_AX25_P_ROSE) && HAVE_DECL_AX25_P_ROSE) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((AX25_P_ROSE) == (0x01), "AX25_P_ROSE != 0x01"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define AX25_P_ROSE 0x01 12 #endif 13 #if defined(AX25_P_VJCOMP) || (defined(HAVE_DECL_AX25_P_VJCOMP) && HAVE_DECL_AX25_P_VJCOMP) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((AX25_P_VJCOMP) == (0x06), "AX25_P_VJCOMP != 0x06"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define AX25_P_VJCOMP 0x06 19 #endif 20 #if defined(AX25_P_VJUNCOMP) || (defined(HAVE_DECL_AX25_P_VJUNCOMP) && HAVE_DECL_AX25_P_VJUNCOMP) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((AX25_P_VJUNCOMP) == (0x07), "AX25_P_VJUNCOMP != 0x07"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define AX25_P_VJUNCOMP 0x07 26 #endif 27 #if defined(AX25_P_SEGMENT) || (defined(HAVE_DECL_AX25_P_SEGMENT) && HAVE_DECL_AX25_P_SEGMENT) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((AX25_P_SEGMENT) == (0x08), "AX25_P_SEGMENT != 0x08"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define AX25_P_SEGMENT 0x08 33 #endif 34 #if defined(AX25_P_TEXNET) || (defined(HAVE_DECL_AX25_P_TEXNET) && HAVE_DECL_AX25_P_TEXNET) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((AX25_P_TEXNET) == (0xc3), "AX25_P_TEXNET != 0xc3"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define AX25_P_TEXNET 0xc3 40 #endif 41 #if defined(AX25_P_LQ) || (defined(HAVE_DECL_AX25_P_LQ) && HAVE_DECL_AX25_P_LQ) 42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 43 static_assert((AX25_P_LQ) == (0xc4), "AX25_P_LQ != 0xc4"); 44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 45 #else 46 # define AX25_P_LQ 0xc4 47 #endif 48 #if defined(AX25_P_ATALK) || (defined(HAVE_DECL_AX25_P_ATALK) && HAVE_DECL_AX25_P_ATALK) 49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 50 static_assert((AX25_P_ATALK) == (0xca), "AX25_P_ATALK != 0xca"); 51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 52 #else 53 # define AX25_P_ATALK 0xca 54 #endif 55 #if defined(AX25_P_ATALK_ARP) || (defined(HAVE_DECL_AX25_P_ATALK_ARP) && HAVE_DECL_AX25_P_ATALK_ARP) 56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 57 static_assert((AX25_P_ATALK_ARP) == (0xcb), "AX25_P_ATALK_ARP != 0xcb"); 58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 59 #else 60 # define AX25_P_ATALK_ARP 0xcb 61 #endif 62 #if defined(AX25_P_IP) || (defined(HAVE_DECL_AX25_P_IP) && HAVE_DECL_AX25_P_IP) 63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 64 static_assert((AX25_P_IP) == (0xcc), "AX25_P_IP != 0xcc"); 65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 66 #else 67 # define AX25_P_IP 0xcc 68 #endif 69 #if defined(AX25_P_ARP) || (defined(HAVE_DECL_AX25_P_ARP) && HAVE_DECL_AX25_P_ARP) 70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 71 static_assert((AX25_P_ARP) == (0xcd), "AX25_P_ARP != 0xcd"); 72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 73 #else 74 # define AX25_P_ARP 0xcd 75 #endif 76 #if defined(AX25_P_FLEXNET) || (defined(HAVE_DECL_AX25_P_FLEXNET) && HAVE_DECL_AX25_P_FLEXNET) 77 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 78 static_assert((AX25_P_FLEXNET) == (0xce), "AX25_P_FLEXNET != 0xce"); 79 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 80 #else 81 # define AX25_P_FLEXNET 0xce 82 #endif 83 #if defined(AX25_P_NETROM) || (defined(HAVE_DECL_AX25_P_NETROM) && HAVE_DECL_AX25_P_NETROM) 84 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 85 static_assert((AX25_P_NETROM) == (0xcf), "AX25_P_NETROM != 0xcf"); 86 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 87 #else 88 # define AX25_P_NETROM 0xcf 89 #endif 90 #if defined(AX25_P_TEXT) || (defined(HAVE_DECL_AX25_P_TEXT) && HAVE_DECL_AX25_P_TEXT) 91 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 92 static_assert((AX25_P_TEXT) == (0xf0), "AX25_P_TEXT != 0xf0"); 93 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 94 #else 95 # define AX25_P_TEXT 0xf0 96 #endif 97 98 #ifndef XLAT_MACROS_ONLY 99 100 # ifdef IN_MPERS 101 102 # error static const struct xlat ax25_protocols in mpers mode 103 104 # else 105 106 static 107 const struct xlat ax25_protocols[] = { 108 109 110 XLAT(AX25_P_ROSE), 111 XLAT(AX25_P_VJCOMP), 112 113 XLAT(AX25_P_VJUNCOMP), 114 115 XLAT(AX25_P_SEGMENT), 116 XLAT(AX25_P_TEXNET), 117 XLAT(AX25_P_LQ), 118 XLAT(AX25_P_ATALK), 119 XLAT(AX25_P_ATALK_ARP), 120 XLAT(AX25_P_IP), 121 XLAT(AX25_P_ARP), 122 XLAT(AX25_P_FLEXNET), 123 XLAT(AX25_P_NETROM), 124 XLAT(AX25_P_TEXT), 125 XLAT_END 126 }; 127 128 # endif /* !IN_MPERS */ 129 130 #endif /* !XLAT_MACROS_ONLY */ 131