Home | History | Annotate | Download | only in netfilter
      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  ***   To edit the content of this header, modify the corresponding
     11  ***   source file (e.g. under external/kernel-headers/original/) then
     12  ***   run bionic/libc/kernel/tools/update_all.py
     13  ***
     14  ***   Any manual change here will be lost the next time this script will
     15  ***   be run. You've been warned!
     16  ***
     17  ****************************************************************************
     18  ****************************************************************************/
     19 #ifndef _XT_ADDRTYPE_H
     20 #define _XT_ADDRTYPE_H
     21 #include <linux/types.h>
     22 enum {
     23   XT_ADDRTYPE_INVERT_SOURCE = 0x0001,
     24   XT_ADDRTYPE_INVERT_DEST = 0x0002,
     25   XT_ADDRTYPE_LIMIT_IFACE_IN = 0x0004,
     26   XT_ADDRTYPE_LIMIT_IFACE_OUT = 0x0008,
     27 };
     28 enum {
     29   XT_ADDRTYPE_UNSPEC = 1 << 0,
     30   XT_ADDRTYPE_UNICAST = 1 << 1,
     31   XT_ADDRTYPE_LOCAL = 1 << 2,
     32   XT_ADDRTYPE_BROADCAST = 1 << 3,
     33   XT_ADDRTYPE_ANYCAST = 1 << 4,
     34   XT_ADDRTYPE_MULTICAST = 1 << 5,
     35   XT_ADDRTYPE_BLACKHOLE = 1 << 6,
     36   XT_ADDRTYPE_UNREACHABLE = 1 << 7,
     37   XT_ADDRTYPE_PROHIBIT = 1 << 8,
     38   XT_ADDRTYPE_THROW = 1 << 9,
     39   XT_ADDRTYPE_NAT = 1 << 10,
     40   XT_ADDRTYPE_XRESOLVE = 1 << 11,
     41 };
     42 struct xt_addrtype_info_v1 {
     43   __u16 source;
     44   __u16 dest;
     45   __u32 flags;
     46 };
     47 struct xt_addrtype_info {
     48   __u16 source;
     49   __u16 dest;
     50   __u32 invert_source;
     51   __u32 invert_dest;
     52 };
     53 #endif
     54