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 _X_TABLES_H
     20 #define _X_TABLES_H
     21 #define XT_FUNCTION_MAXNAMELEN 30
     22 #define XT_TABLE_MAXNAMELEN 32
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24 struct xt_entry_match
     25 {
     26  union {
     27  struct {
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29  u_int16_t match_size;
     30  char name[XT_FUNCTION_MAXNAMELEN-1];
     31  u_int8_t revision;
     32  } user;
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34  struct {
     35  u_int16_t match_size;
     36  struct xt_match *match;
     37  } kernel;
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39  u_int16_t match_size;
     40  } u;
     41  unsigned char data[0];
     42 };
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44 struct xt_entry_target
     45 {
     46  union {
     47  struct {
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49  u_int16_t target_size;
     50  char name[XT_FUNCTION_MAXNAMELEN-1];
     51  u_int8_t revision;
     52  } user;
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54  struct {
     55  u_int16_t target_size;
     56  struct xt_target *target;
     57  } kernel;
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59  u_int16_t target_size;
     60  } u;
     61  unsigned char data[0];
     62 };
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64 struct xt_standard_target
     65 {
     66  struct xt_entry_target target;
     67  int verdict;
     68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     69 };
     70 struct xt_get_revision
     71 {
     72  char name[XT_FUNCTION_MAXNAMELEN-1];
     73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     74  u_int8_t revision;
     75 };
     76 #define XT_CONTINUE 0xFFFFFFFF
     77 #define XT_RETURN (-NF_REPEAT - 1)
     78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     79 struct _xt_align
     80 {
     81  u_int8_t u8;
     82  u_int16_t u16;
     83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     84  u_int32_t u32;
     85  u_int64_t u64;
     86 };
     87 #define XT_ALIGN(s) (((s) + (__alignof__(struct _xt_align)-1))   & ~(__alignof__(struct _xt_align)-1))
     88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     89 #define XT_STANDARD_TARGET ""
     90 #define XT_ERROR_TARGET "ERROR"
     91 #define XT_BASE_CTL 64
     92 #define XT_SO_SET_REPLACE (XT_BASE_CTL)
     93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     94 #define XT_SO_SET_ADD_COUNTERS (XT_BASE_CTL + 1)
     95 #define XT_SO_SET_MAX XT_SO_SET_ADD_COUNTERS
     96 #define XT_SO_GET_INFO (XT_BASE_CTL)
     97 #define XT_SO_GET_ENTRIES (XT_BASE_CTL + 1)
     98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     99 #define XT_SO_GET_REVISION_MATCH (XT_BASE_CTL + 2)
    100 #define XT_SO_GET_REVISION_TARGET (XT_BASE_CTL + 3)
    101 #define XT_SO_GET_MAX XT_SO_GET_REVISION_TARGET
    102 #define SET_COUNTER(c,b,p) do { (c).bcnt = (b); (c).pcnt = (p); } while(0)
    103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    104 #define ADD_COUNTER(c,b,p) do { (c).bcnt += (b); (c).pcnt += (p); } while(0)
    105 struct xt_counters
    106 {
    107  u_int64_t pcnt, bcnt;
    108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    109 };
    110 struct xt_counters_info
    111 {
    112  char name[XT_TABLE_MAXNAMELEN];
    113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    114  unsigned int num_counters;
    115  struct xt_counters counters[0];
    116 };
    117 #define XT_INV_PROTO 0x40
    118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    119 #endif
    120