Home | History | Annotate | Download | only in xlat
      1 /* Generated by ./xlat/gen.sh from ./xlat/netlink_protocols.in; do not edit. */
      2 
      3 #include "gcc_compat.h"
      4 #include "static_assert.h"
      5 
      6 #if defined(NETLINK_ROUTE) || (defined(HAVE_DECL_NETLINK_ROUTE) && HAVE_DECL_NETLINK_ROUTE)
      7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      8 static_assert((NETLINK_ROUTE) == (0), "NETLINK_ROUTE != 0");
      9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     10 #else
     11 # define NETLINK_ROUTE 0
     12 #endif
     13 #if defined(NETLINK_UNUSED) || (defined(HAVE_DECL_NETLINK_UNUSED) && HAVE_DECL_NETLINK_UNUSED)
     14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     15 static_assert((NETLINK_UNUSED) == (1), "NETLINK_UNUSED != 1");
     16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     17 #else
     18 # define NETLINK_UNUSED 1
     19 #endif
     20 #if defined(NETLINK_USERSOCK) || (defined(HAVE_DECL_NETLINK_USERSOCK) && HAVE_DECL_NETLINK_USERSOCK)
     21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     22 static_assert((NETLINK_USERSOCK) == (2), "NETLINK_USERSOCK != 2");
     23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     24 #else
     25 # define NETLINK_USERSOCK 2
     26 #endif
     27 #if defined(NETLINK_FIREWALL) || (defined(HAVE_DECL_NETLINK_FIREWALL) && HAVE_DECL_NETLINK_FIREWALL)
     28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     29 static_assert((NETLINK_FIREWALL) == (3), "NETLINK_FIREWALL != 3");
     30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     31 #else
     32 # define NETLINK_FIREWALL 3
     33 #endif
     34 #if defined(NETLINK_SOCK_DIAG) || (defined(HAVE_DECL_NETLINK_SOCK_DIAG) && HAVE_DECL_NETLINK_SOCK_DIAG)
     35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     36 static_assert((NETLINK_SOCK_DIAG) == (4), "NETLINK_SOCK_DIAG != 4");
     37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     38 #else
     39 # define NETLINK_SOCK_DIAG 4
     40 #endif
     41 #if defined(NETLINK_NFLOG) || (defined(HAVE_DECL_NETLINK_NFLOG) && HAVE_DECL_NETLINK_NFLOG)
     42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     43 static_assert((NETLINK_NFLOG) == (5), "NETLINK_NFLOG != 5");
     44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     45 #else
     46 # define NETLINK_NFLOG 5
     47 #endif
     48 #if defined(NETLINK_XFRM) || (defined(HAVE_DECL_NETLINK_XFRM) && HAVE_DECL_NETLINK_XFRM)
     49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     50 static_assert((NETLINK_XFRM) == (6), "NETLINK_XFRM != 6");
     51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     52 #else
     53 # define NETLINK_XFRM 6
     54 #endif
     55 #if defined(NETLINK_SELINUX) || (defined(HAVE_DECL_NETLINK_SELINUX) && HAVE_DECL_NETLINK_SELINUX)
     56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     57 static_assert((NETLINK_SELINUX) == (7), "NETLINK_SELINUX != 7");
     58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     59 #else
     60 # define NETLINK_SELINUX 7
     61 #endif
     62 #if defined(NETLINK_ISCSI) || (defined(HAVE_DECL_NETLINK_ISCSI) && HAVE_DECL_NETLINK_ISCSI)
     63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     64 static_assert((NETLINK_ISCSI) == (8), "NETLINK_ISCSI != 8");
     65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     66 #else
     67 # define NETLINK_ISCSI 8
     68 #endif
     69 #if defined(NETLINK_AUDIT) || (defined(HAVE_DECL_NETLINK_AUDIT) && HAVE_DECL_NETLINK_AUDIT)
     70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     71 static_assert((NETLINK_AUDIT) == (9), "NETLINK_AUDIT != 9");
     72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     73 #else
     74 # define NETLINK_AUDIT 9
     75 #endif
     76 #if defined(NETLINK_FIB_LOOKUP) || (defined(HAVE_DECL_NETLINK_FIB_LOOKUP) && HAVE_DECL_NETLINK_FIB_LOOKUP)
     77 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     78 static_assert((NETLINK_FIB_LOOKUP) == (10), "NETLINK_FIB_LOOKUP != 10");
     79 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     80 #else
     81 # define NETLINK_FIB_LOOKUP 10
     82 #endif
     83 #if defined(NETLINK_CONNECTOR) || (defined(HAVE_DECL_NETLINK_CONNECTOR) && HAVE_DECL_NETLINK_CONNECTOR)
     84 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     85 static_assert((NETLINK_CONNECTOR) == (11), "NETLINK_CONNECTOR != 11");
     86 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     87 #else
     88 # define NETLINK_CONNECTOR 11
     89 #endif
     90 #if defined(NETLINK_NETFILTER) || (defined(HAVE_DECL_NETLINK_NETFILTER) && HAVE_DECL_NETLINK_NETFILTER)
     91 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     92 static_assert((NETLINK_NETFILTER) == (12), "NETLINK_NETFILTER != 12");
     93 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     94 #else
     95 # define NETLINK_NETFILTER 12
     96 #endif
     97 #if defined(NETLINK_IP6_FW) || (defined(HAVE_DECL_NETLINK_IP6_FW) && HAVE_DECL_NETLINK_IP6_FW)
     98 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     99 static_assert((NETLINK_IP6_FW) == (13), "NETLINK_IP6_FW != 13");
    100 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
    101 #else
    102 # define NETLINK_IP6_FW 13
    103 #endif
    104 #if defined(NETLINK_DNRTMSG) || (defined(HAVE_DECL_NETLINK_DNRTMSG) && HAVE_DECL_NETLINK_DNRTMSG)
    105 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
    106 static_assert((NETLINK_DNRTMSG) == (14), "NETLINK_DNRTMSG != 14");
    107 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
    108 #else
    109 # define NETLINK_DNRTMSG 14
    110 #endif
    111 #if defined(NETLINK_KOBJECT_UEVENT) || (defined(HAVE_DECL_NETLINK_KOBJECT_UEVENT) && HAVE_DECL_NETLINK_KOBJECT_UEVENT)
    112 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
    113 static_assert((NETLINK_KOBJECT_UEVENT) == (15), "NETLINK_KOBJECT_UEVENT != 15");
    114 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
    115 #else
    116 # define NETLINK_KOBJECT_UEVENT 15
    117 #endif
    118 #if defined(NETLINK_GENERIC) || (defined(HAVE_DECL_NETLINK_GENERIC) && HAVE_DECL_NETLINK_GENERIC)
    119 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
    120 static_assert((NETLINK_GENERIC) == (16), "NETLINK_GENERIC != 16");
    121 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
    122 #else
    123 # define NETLINK_GENERIC 16
    124 #endif
    125 #if defined(NETLINK_SCSITRANSPORT) || (defined(HAVE_DECL_NETLINK_SCSITRANSPORT) && HAVE_DECL_NETLINK_SCSITRANSPORT)
    126 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
    127 static_assert((NETLINK_SCSITRANSPORT) == (18), "NETLINK_SCSITRANSPORT != 18");
    128 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
    129 #else
    130 # define NETLINK_SCSITRANSPORT 18
    131 #endif
    132 #if defined(NETLINK_ECRYPTFS) || (defined(HAVE_DECL_NETLINK_ECRYPTFS) && HAVE_DECL_NETLINK_ECRYPTFS)
    133 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
    134 static_assert((NETLINK_ECRYPTFS) == (19), "NETLINK_ECRYPTFS != 19");
    135 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
    136 #else
    137 # define NETLINK_ECRYPTFS 19
    138 #endif
    139 #if defined(NETLINK_RDMA) || (defined(HAVE_DECL_NETLINK_RDMA) && HAVE_DECL_NETLINK_RDMA)
    140 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
    141 static_assert((NETLINK_RDMA) == (20), "NETLINK_RDMA != 20");
    142 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
    143 #else
    144 # define NETLINK_RDMA 20
    145 #endif
    146 #if defined(NETLINK_CRYPTO) || (defined(HAVE_DECL_NETLINK_CRYPTO) && HAVE_DECL_NETLINK_CRYPTO)
    147 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
    148 static_assert((NETLINK_CRYPTO) == (21), "NETLINK_CRYPTO != 21");
    149 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
    150 #else
    151 # define NETLINK_CRYPTO 21
    152 #endif
    153 #if defined(NETLINK_SMC) || (defined(HAVE_DECL_NETLINK_SMC) && HAVE_DECL_NETLINK_SMC)
    154 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
    155 static_assert((NETLINK_SMC) == (22), "NETLINK_SMC != 22");
    156 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
    157 #else
    158 # define NETLINK_SMC 22
    159 #endif
    160 
    161 #ifndef XLAT_MACROS_ONLY
    162 
    163 # ifndef IN_MPERS
    164 
    165 const struct xlat netlink_protocols[] = {
    166  XLAT(NETLINK_ROUTE),
    167  XLAT(NETLINK_UNUSED),
    168  XLAT(NETLINK_USERSOCK),
    169  XLAT(NETLINK_FIREWALL),
    170  XLAT(NETLINK_SOCK_DIAG),
    171  XLAT(NETLINK_NFLOG),
    172  XLAT(NETLINK_XFRM),
    173  XLAT(NETLINK_SELINUX),
    174  XLAT(NETLINK_ISCSI),
    175  XLAT(NETLINK_AUDIT),
    176  XLAT(NETLINK_FIB_LOOKUP),
    177  XLAT(NETLINK_CONNECTOR),
    178  XLAT(NETLINK_NETFILTER),
    179  XLAT(NETLINK_IP6_FW),
    180  XLAT(NETLINK_DNRTMSG),
    181  XLAT(NETLINK_KOBJECT_UEVENT),
    182  XLAT(NETLINK_GENERIC),
    183  XLAT(NETLINK_SCSITRANSPORT),
    184  XLAT(NETLINK_ECRYPTFS),
    185  XLAT(NETLINK_RDMA),
    186  XLAT(NETLINK_CRYPTO),
    187  XLAT(NETLINK_SMC),
    188  XLAT_END
    189 };
    190 
    191 # endif /* !IN_MPERS */
    192 
    193 #endif /* !XLAT_MACROS_ONLY */
    194