1827283714cf6f0ff11f3b46a98203cb3c8fd920bElliott Hughes/* Generated by ./xlat/gen.sh from ./xlat/socketlayers.in; do not edit. */ 2a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes#if !(defined(SOL_IP) || (defined(HAVE_DECL_SOL_IP) && HAVE_DECL_SOL_IP)) 3a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes# define SOL_IP 0 4a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes#endif 5a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes#if !(defined(SOL_SOCKET) || (defined(HAVE_DECL_SOL_SOCKET) && HAVE_DECL_SOL_SOCKET)) 6a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes# define SOL_SOCKET 1 7827283714cf6f0ff11f3b46a98203cb3c8fd920bElliott Hughes#endif 8a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes#if !(defined(SOL_TCP) || (defined(HAVE_DECL_SOL_TCP) && HAVE_DECL_SOL_TCP)) 9a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes# define SOL_TCP 6 10827283714cf6f0ff11f3b46a98203cb3c8fd920bElliott Hughes#endif 11a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes#if !(defined(SOL_UDP) || (defined(HAVE_DECL_SOL_UDP) && HAVE_DECL_SOL_UDP)) 12a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes# define SOL_UDP 17 13827283714cf6f0ff11f3b46a98203cb3c8fd920bElliott Hughes#endif 14a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes#if !(defined(SOL_IPV6) || (defined(HAVE_DECL_SOL_IPV6) && HAVE_DECL_SOL_IPV6)) 15a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes# define SOL_IPV6 41 16827283714cf6f0ff11f3b46a98203cb3c8fd920bElliott Hughes#endif 17a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes#if !(defined(SOL_ICMPV6) || (defined(HAVE_DECL_SOL_ICMPV6) && HAVE_DECL_SOL_ICMPV6)) 18a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes# define SOL_ICMPV6 58 19827283714cf6f0ff11f3b46a98203cb3c8fd920bElliott Hughes#endif 20a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes#if !(defined(SOL_SCTP) || (defined(HAVE_DECL_SOL_SCTP) && HAVE_DECL_SOL_SCTP)) 21a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes# define SOL_SCTP 132 22827283714cf6f0ff11f3b46a98203cb3c8fd920bElliott Hughes#endif 23a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes#if !(defined(SOL_UDPLITE) || (defined(HAVE_DECL_SOL_UDPLITE) && HAVE_DECL_SOL_UDPLITE)) 24a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes# define SOL_UDPLITE 136 25827283714cf6f0ff11f3b46a98203cb3c8fd920bElliott Hughes#endif 26a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes#if !(defined(SOL_RAW) || (defined(HAVE_DECL_SOL_RAW) && HAVE_DECL_SOL_RAW)) 27a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes# define SOL_RAW 255 28827283714cf6f0ff11f3b46a98203cb3c8fd920bElliott Hughes#endif 29a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes#if !(defined(SOL_IPX) || (defined(HAVE_DECL_SOL_IPX) && HAVE_DECL_SOL_IPX)) 30a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes# define SOL_IPX 256 31827283714cf6f0ff11f3b46a98203cb3c8fd920bElliott Hughes#endif 32a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes#if !(defined(SOL_AX25) || (defined(HAVE_DECL_SOL_AX25) && HAVE_DECL_SOL_AX25)) 33a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes# define SOL_AX25 257 34827283714cf6f0ff11f3b46a98203cb3c8fd920bElliott Hughes#endif 35a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes#if !(defined(SOL_ATALK) || (defined(HAVE_DECL_SOL_ATALK) && HAVE_DECL_SOL_ATALK)) 36a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes# define SOL_ATALK 258 37827283714cf6f0ff11f3b46a98203cb3c8fd920bElliott Hughes#endif 38a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes#if !(defined(SOL_NETROM) || (defined(HAVE_DECL_SOL_NETROM) && HAVE_DECL_SOL_NETROM)) 39a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes# define SOL_NETROM 259 40827283714cf6f0ff11f3b46a98203cb3c8fd920bElliott Hughes#endif 41a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes#if !(defined(SOL_ROSE) || (defined(HAVE_DECL_SOL_ROSE) && HAVE_DECL_SOL_ROSE)) 42a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes# define SOL_ROSE 260 43827283714cf6f0ff11f3b46a98203cb3c8fd920bElliott Hughes#endif 44a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes#if !(defined(SOL_DECNET) || (defined(HAVE_DECL_SOL_DECNET) && HAVE_DECL_SOL_DECNET)) 45a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes# define SOL_DECNET 261 46827283714cf6f0ff11f3b46a98203cb3c8fd920bElliott Hughes#endif 47a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes#if !(defined(SOL_X25) || (defined(HAVE_DECL_SOL_X25) && HAVE_DECL_SOL_X25)) 48a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes# define SOL_X25 262 49827283714cf6f0ff11f3b46a98203cb3c8fd920bElliott Hughes#endif 50a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes#if !(defined(SOL_PACKET) || (defined(HAVE_DECL_SOL_PACKET) && HAVE_DECL_SOL_PACKET)) 51a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes# define SOL_PACKET 263 52827283714cf6f0ff11f3b46a98203cb3c8fd920bElliott Hughes#endif 53a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes#if !(defined(SOL_ATM) || (defined(HAVE_DECL_SOL_ATM) && HAVE_DECL_SOL_ATM)) 54a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes# define SOL_ATM 264 55827283714cf6f0ff11f3b46a98203cb3c8fd920bElliott Hughes#endif 56a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes#if !(defined(SOL_AAL) || (defined(HAVE_DECL_SOL_AAL) && HAVE_DECL_SOL_AAL)) 57a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes# define SOL_AAL 265 58827283714cf6f0ff11f3b46a98203cb3c8fd920bElliott Hughes#endif 59a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes#if !(defined(SOL_IRDA) || (defined(HAVE_DECL_SOL_IRDA) && HAVE_DECL_SOL_IRDA)) 60a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes# define SOL_IRDA 266 61827283714cf6f0ff11f3b46a98203cb3c8fd920bElliott Hughes#endif 62a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes#if !(defined(SOL_NETBEUI) || (defined(HAVE_DECL_SOL_NETBEUI) && HAVE_DECL_SOL_NETBEUI)) 63a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes# define SOL_NETBEUI 267 64827283714cf6f0ff11f3b46a98203cb3c8fd920bElliott Hughes#endif 65a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes#if !(defined(SOL_LLC) || (defined(HAVE_DECL_SOL_LLC) && HAVE_DECL_SOL_LLC)) 66a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes# define SOL_LLC 268 67827283714cf6f0ff11f3b46a98203cb3c8fd920bElliott Hughes#endif 68a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes#if !(defined(SOL_DCCP) || (defined(HAVE_DECL_SOL_DCCP) && HAVE_DECL_SOL_DCCP)) 69a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes# define SOL_DCCP 269 70827283714cf6f0ff11f3b46a98203cb3c8fd920bElliott Hughes#endif 71a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes#if !(defined(SOL_NETLINK) || (defined(HAVE_DECL_SOL_NETLINK) && HAVE_DECL_SOL_NETLINK)) 72a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes# define SOL_NETLINK 270 73827283714cf6f0ff11f3b46a98203cb3c8fd920bElliott Hughes#endif 74a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes#if !(defined(SOL_TIPC) || (defined(HAVE_DECL_SOL_TIPC) && HAVE_DECL_SOL_TIPC)) 75a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes# define SOL_TIPC 271 76827283714cf6f0ff11f3b46a98203cb3c8fd920bElliott Hughes#endif 77a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes#if !(defined(SOL_RXRPC) || (defined(HAVE_DECL_SOL_RXRPC) && HAVE_DECL_SOL_RXRPC)) 78a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes# define SOL_RXRPC 272 79827283714cf6f0ff11f3b46a98203cb3c8fd920bElliott Hughes#endif 80a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes#if !(defined(SOL_PPPOL2TP) || (defined(HAVE_DECL_SOL_PPPOL2TP) && HAVE_DECL_SOL_PPPOL2TP)) 81a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes# define SOL_PPPOL2TP 273 82827283714cf6f0ff11f3b46a98203cb3c8fd920bElliott Hughes#endif 83a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes#if !(defined(SOL_BLUETOOTH) || (defined(HAVE_DECL_SOL_BLUETOOTH) && HAVE_DECL_SOL_BLUETOOTH)) 84a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes# define SOL_BLUETOOTH 274 85827283714cf6f0ff11f3b46a98203cb3c8fd920bElliott Hughes#endif 86a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes#if !(defined(SOL_PNPIPE) || (defined(HAVE_DECL_SOL_PNPIPE) && HAVE_DECL_SOL_PNPIPE)) 87a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes# define SOL_PNPIPE 275 88827283714cf6f0ff11f3b46a98203cb3c8fd920bElliott Hughes#endif 89a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes#if !(defined(SOL_RDS) || (defined(HAVE_DECL_SOL_RDS) && HAVE_DECL_SOL_RDS)) 90a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes# define SOL_RDS 276 91827283714cf6f0ff11f3b46a98203cb3c8fd920bElliott Hughes#endif 92a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes#if !(defined(SOL_IUCV) || (defined(HAVE_DECL_SOL_IUCV) && HAVE_DECL_SOL_IUCV)) 93a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes# define SOL_IUCV 277 94827283714cf6f0ff11f3b46a98203cb3c8fd920bElliott Hughes#endif 95a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes#if !(defined(SOL_CAIF) || (defined(HAVE_DECL_SOL_CAIF) && HAVE_DECL_SOL_CAIF)) 96a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes# define SOL_CAIF 278 97827283714cf6f0ff11f3b46a98203cb3c8fd920bElliott Hughes#endif 98a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes#if !(defined(SOL_ALG) || (defined(HAVE_DECL_SOL_ALG) && HAVE_DECL_SOL_ALG)) 99a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes# define SOL_ALG 279 100827283714cf6f0ff11f3b46a98203cb3c8fd920bElliott Hughes#endif 101a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes#if !(defined(SOL_NFC) || (defined(HAVE_DECL_SOL_NFC) && HAVE_DECL_SOL_NFC)) 102a0ccdac57bc9ac3fc9e9d9d8f669212403300d02Elliott Hughes# define SOL_NFC 280 1030328d0a8a4c8c60cb7e4651f45f62f06823d5acbElliott Hughes#endif 104a618f75b70fc6921a50568225320dfd022c9b3a0Elliott Hughes#if !(defined(SOL_KCM) || (defined(HAVE_DECL_SOL_KCM) && HAVE_DECL_SOL_KCM)) 105a618f75b70fc6921a50568225320dfd022c9b3a0Elliott Hughes# define SOL_KCM 281 106a618f75b70fc6921a50568225320dfd022c9b3a0Elliott Hughes#endif 107bbf97dc20c4ee0e36b4628fe03e0e7db5a11d469Elliott Hughes#if !(defined(SOL_TLS) || (defined(HAVE_DECL_SOL_TLS) && HAVE_DECL_SOL_TLS)) 108bbf97dc20c4ee0e36b4628fe03e0e7db5a11d469Elliott Hughes# define SOL_TLS 282 109bbf97dc20c4ee0e36b4628fe03e0e7db5a11d469Elliott Hughes#endif 1108948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes 11137796793fa30cc9ea30bd204b137a9e89b22f8c8Elliott Hughes#ifndef IN_MPERS 1128948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes 1138948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughesconst struct xlat socketlayers[] = { 1148948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes XLAT(SOL_IP), 1158948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes XLAT(SOL_SOCKET), 1168948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes XLAT(SOL_TCP), 1178948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes XLAT(SOL_UDP), 1188948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes XLAT(SOL_IPV6), 1198948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes XLAT(SOL_ICMPV6), 1208948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes XLAT(SOL_SCTP), 1218948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes XLAT(SOL_UDPLITE), 1228948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes XLAT(SOL_RAW), 1238948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes XLAT(SOL_IPX), 1248948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes XLAT(SOL_AX25), 1258948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes XLAT(SOL_ATALK), 1268948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes XLAT(SOL_NETROM), 1278948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes XLAT(SOL_ROSE), 1288948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes XLAT(SOL_DECNET), 1298948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes XLAT(SOL_X25), 1308948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes XLAT(SOL_PACKET), 1318948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes XLAT(SOL_ATM), 1328948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes XLAT(SOL_AAL), 1338948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes XLAT(SOL_IRDA), 1348948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes XLAT(SOL_NETBEUI), 1358948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes XLAT(SOL_LLC), 1368948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes XLAT(SOL_DCCP), 1378948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes XLAT(SOL_NETLINK), 1388948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes XLAT(SOL_TIPC), 1398948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes XLAT(SOL_RXRPC), 1408948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes XLAT(SOL_PPPOL2TP), 1418948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes XLAT(SOL_BLUETOOTH), 1428948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes XLAT(SOL_PNPIPE), 1438948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes XLAT(SOL_RDS), 1448948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes XLAT(SOL_IUCV), 1458948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes XLAT(SOL_CAIF), 1468948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes XLAT(SOL_ALG), 1470328d0a8a4c8c60cb7e4651f45f62f06823d5acbElliott Hughes XLAT(SOL_NFC), 148a618f75b70fc6921a50568225320dfd022c9b3a0Elliott Hughes XLAT(SOL_KCM), 149bbf97dc20c4ee0e36b4628fe03e0e7db5a11d469Elliott Hughes XLAT(SOL_TLS), 1500328d0a8a4c8c60cb7e4651f45f62f06823d5acbElliott Hughes XLAT_END 151827283714cf6f0ff11f3b46a98203cb3c8fd920bElliott Hughes}; 1528948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes 1538948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes#endif /* !IN_MPERS */ 154