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_SET_H
     20 #define _XT_SET_H
     21 #include <linux/types.h>
     22 #include <linux/netfilter/ipset/ip_set.h>
     23 #define IPSET_SRC 0x01
     24 #define IPSET_DST 0x02
     25 #define IPSET_MATCH_INV 0x04
     26 struct xt_set_info_v0 {
     27   ip_set_id_t index;
     28   union {
     29     __u32 flags[IPSET_DIM_MAX + 1];
     30     struct {
     31       __u32 __flags[IPSET_DIM_MAX];
     32       __u8 dim;
     33       __u8 flags;
     34     } compat;
     35   } u;
     36 };
     37 struct xt_set_info_match_v0 {
     38   struct xt_set_info_v0 match_set;
     39 };
     40 struct xt_set_info_target_v0 {
     41   struct xt_set_info_v0 add_set;
     42   struct xt_set_info_v0 del_set;
     43 };
     44 struct xt_set_info {
     45   ip_set_id_t index;
     46   __u8 dim;
     47   __u8 flags;
     48 };
     49 struct xt_set_info_match_v1 {
     50   struct xt_set_info match_set;
     51 };
     52 struct xt_set_info_target_v1 {
     53   struct xt_set_info add_set;
     54   struct xt_set_info del_set;
     55 };
     56 struct xt_set_info_target_v2 {
     57   struct xt_set_info add_set;
     58   struct xt_set_info del_set;
     59   __u32 flags;
     60   __u32 timeout;
     61 };
     62 struct xt_set_info_match_v3 {
     63   struct xt_set_info match_set;
     64   struct ip_set_counter_match0 packets;
     65   struct ip_set_counter_match0 bytes;
     66   __u32 flags;
     67 };
     68 struct xt_set_info_target_v3 {
     69   struct xt_set_info add_set;
     70   struct xt_set_info del_set;
     71   struct xt_set_info map_set;
     72   __u32 flags;
     73   __u32 timeout;
     74 };
     75 struct xt_set_info_match_v4 {
     76   struct xt_set_info match_set;
     77   struct ip_set_counter_match packets;
     78   struct ip_set_counter_match bytes;
     79   __u32 flags;
     80 };
     81 #endif
     82