Home | History | Annotate | Download | only in linux
      1 /****************************************************************************
      2  ****************************************************************************
      3  ***
      4  ***   This header was automatically generated from a Linux kernel header
      5  ***   of the same name, to make information necessary for userspace to
      6  ***   call into the kernel available to libc.  It contains only constants,
      7  ***   structures, and macros generated from the original header, and thus,
      8  ***   contains no copyrightable information.
      9  ***
     10  ****************************************************************************
     11  ****************************************************************************/
     12 #ifndef _LINUX_ERRQUEUE_H
     13 #define _LINUX_ERRQUEUE_H 1
     14 
     15 struct sock_extended_err
     16 {
     17  __u32 ee_errno;
     18  __u8 ee_origin;
     19  __u8 ee_type;
     20  __u8 ee_code;
     21  __u8 ee_pad;
     22  __u32 ee_info;
     23  __u32 ee_data;
     24 };
     25 
     26 #define SO_EE_ORIGIN_NONE 0
     27 #define SO_EE_ORIGIN_LOCAL 1
     28 #define SO_EE_ORIGIN_ICMP 2
     29 #define SO_EE_ORIGIN_ICMP6 3
     30 
     31 #define SO_EE_OFFENDER(ee) ((struct sockaddr*)((ee)+1))
     32 
     33 #endif
     34