Home | History | Annotate | Download | only in xlat
      1 /* Generated by ./xlat/gen.sh from ./xlat/ip_cmsg_types.in; do not edit. */
      2 #if !(defined(IP_TOS) || (defined(HAVE_DECL_IP_TOS) && HAVE_DECL_IP_TOS))
      3 # define IP_TOS 1
      4 #endif
      5 #if !(defined(IP_TTL) || (defined(HAVE_DECL_IP_TTL) && HAVE_DECL_IP_TTL))
      6 # define IP_TTL 2
      7 #endif
      8 #if !(defined(IP_RECVOPTS) || (defined(HAVE_DECL_IP_RECVOPTS) && HAVE_DECL_IP_RECVOPTS))
      9 # define IP_RECVOPTS 6
     10 #endif
     11 #if !(defined(IP_RETOPTS) || (defined(HAVE_DECL_IP_RETOPTS) && HAVE_DECL_IP_RETOPTS))
     12 # define IP_RETOPTS 7
     13 #endif
     14 #if !(defined(IP_PKTINFO) || (defined(HAVE_DECL_IP_PKTINFO) && HAVE_DECL_IP_PKTINFO))
     15 # define IP_PKTINFO 8
     16 #endif
     17 #if !(defined(IP_RECVERR) || (defined(HAVE_DECL_IP_RECVERR) && HAVE_DECL_IP_RECVERR))
     18 # define IP_RECVERR 11
     19 #endif
     20 #if !(defined(IP_ORIGDSTADDR) || (defined(HAVE_DECL_IP_ORIGDSTADDR) && HAVE_DECL_IP_ORIGDSTADDR))
     21 # define IP_ORIGDSTADDR 20
     22 #endif
     23 #if !(defined(IP_CHECKSUM) || (defined(HAVE_DECL_IP_CHECKSUM) && HAVE_DECL_IP_CHECKSUM))
     24 # define IP_CHECKSUM 23
     25 #endif
     26 
     27 #ifdef IN_MPERS
     28 
     29 # error static const struct xlat ip_cmsg_types in mpers mode
     30 
     31 #else
     32 
     33 static
     34 const struct xlat ip_cmsg_types[] = {
     35  XLAT(IP_TOS),
     36  XLAT(IP_TTL),
     37  XLAT(IP_RECVOPTS),
     38  XLAT(IP_RETOPTS),
     39  XLAT(IP_PKTINFO),
     40  XLAT(IP_RECVERR),
     41  XLAT(IP_ORIGDSTADDR),
     42  XLAT(IP_CHECKSUM),
     43 #if defined(SCM_SECURITY) || (defined(HAVE_DECL_SCM_SECURITY) && HAVE_DECL_SCM_SECURITY)
     44   XLAT(SCM_SECURITY),
     45 #endif
     46  XLAT_END
     47 };
     48 
     49 #endif /* !IN_MPERS */
     50