diff options
Diffstat (limited to '9/platforms/android-21/arch-arm/usr/include/linux/netfilter_bridge/ebtables.h')
-rw-r--r-- | 9/platforms/android-21/arch-arm/usr/include/linux/netfilter_bridge/ebtables.h | 169 |
1 files changed, 169 insertions, 0 deletions
diff --git a/9/platforms/android-21/arch-arm/usr/include/linux/netfilter_bridge/ebtables.h b/9/platforms/android-21/arch-arm/usr/include/linux/netfilter_bridge/ebtables.h new file mode 100644 index 0000000..27f765a --- /dev/null +++ b/9/platforms/android-21/arch-arm/usr/include/linux/netfilter_bridge/ebtables.h @@ -0,0 +1,169 @@ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _UAPI__LINUX_BRIDGE_EFF_H +#define _UAPI__LINUX_BRIDGE_EFF_H +#include <linux/if.h> +#include <linux/netfilter_bridge.h> +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#include <linux/if_ether.h> +#define EBT_TABLE_MAXNAMELEN 32 +#define EBT_CHAIN_MAXNAMELEN EBT_TABLE_MAXNAMELEN +#define EBT_FUNCTION_MAXNAMELEN EBT_TABLE_MAXNAMELEN +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define EBT_ACCEPT -1 +#define EBT_DROP -2 +#define EBT_CONTINUE -3 +#define EBT_RETURN -4 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define NUM_STANDARD_TARGETS 4 +#define EBT_VERDICT_BITS 0x0000000F +struct xt_match; +struct xt_target; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +struct ebt_counter { + uint64_t pcnt; + uint64_t bcnt; +}; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +struct ebt_replace { + char name[EBT_TABLE_MAXNAMELEN]; + unsigned int valid_hooks; + unsigned int nentries; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + unsigned int entries_size; + struct ebt_entries __user *hook_entry[NF_BR_NUMHOOKS]; + unsigned int num_counters; + struct ebt_counter __user *counters; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + char __user *entries; +}; +struct ebt_replace_kernel { + char name[EBT_TABLE_MAXNAMELEN]; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + unsigned int valid_hooks; + unsigned int nentries; + unsigned int entries_size; + struct ebt_entries *hook_entry[NF_BR_NUMHOOKS]; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + unsigned int num_counters; + struct ebt_counter *counters; + char *entries; +}; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +struct ebt_entries { + unsigned int distinguisher; + char name[EBT_CHAIN_MAXNAMELEN]; + unsigned int counter_offset; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + int policy; + unsigned int nentries; + char data[0] __attribute__ ((aligned (__alignof__(struct ebt_replace)))); +}; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define EBT_ENTRY_OR_ENTRIES 0x01 +#define EBT_NOPROTO 0x02 +#define EBT_802_3 0x04 +#define EBT_SOURCEMAC 0x08 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define EBT_DESTMAC 0x10 +#define EBT_F_MASK (EBT_NOPROTO | EBT_802_3 | EBT_SOURCEMAC | EBT_DESTMAC | EBT_ENTRY_OR_ENTRIES) +#define EBT_IPROTO 0x01 +#define EBT_IIN 0x02 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define EBT_IOUT 0x04 +#define EBT_ISOURCE 0x8 +#define EBT_IDEST 0x10 +#define EBT_ILOGICALIN 0x20 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define EBT_ILOGICALOUT 0x40 +#define EBT_INV_MASK (EBT_IPROTO | EBT_IIN | EBT_IOUT | EBT_ILOGICALIN | EBT_ILOGICALOUT | EBT_ISOURCE | EBT_IDEST) +struct ebt_entry_match { + union { +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + char name[EBT_FUNCTION_MAXNAMELEN]; + struct xt_match *match; + } u; + unsigned int match_size; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + unsigned char data[0] __attribute__ ((aligned (__alignof__(struct ebt_replace)))); +}; +struct ebt_entry_watcher { + union { +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + char name[EBT_FUNCTION_MAXNAMELEN]; + struct xt_target *watcher; + } u; + unsigned int watcher_size; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + unsigned char data[0] __attribute__ ((aligned (__alignof__(struct ebt_replace)))); +}; +struct ebt_entry_target { + union { +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + char name[EBT_FUNCTION_MAXNAMELEN]; + struct xt_target *target; + } u; + unsigned int target_size; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + unsigned char data[0] __attribute__ ((aligned (__alignof__(struct ebt_replace)))); +}; +#define EBT_STANDARD_TARGET "standard" +struct ebt_standard_target { +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + struct ebt_entry_target target; + int verdict; +}; +struct ebt_entry { +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + unsigned int bitmask; + unsigned int invflags; + __be16 ethproto; + char in[IFNAMSIZ]; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + char logical_in[IFNAMSIZ]; + char out[IFNAMSIZ]; + char logical_out[IFNAMSIZ]; + unsigned char sourcemac[ETH_ALEN]; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + unsigned char sourcemsk[ETH_ALEN]; + unsigned char destmac[ETH_ALEN]; + unsigned char destmsk[ETH_ALEN]; + unsigned int watchers_offset; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + unsigned int target_offset; + unsigned int next_offset; + unsigned char elems[0] __attribute__ ((aligned (__alignof__(struct ebt_replace)))); +}; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define EBT_BASE_CTL 128 +#define EBT_SO_SET_ENTRIES (EBT_BASE_CTL) +#define EBT_SO_SET_COUNTERS (EBT_SO_SET_ENTRIES+1) +#define EBT_SO_SET_MAX (EBT_SO_SET_COUNTERS+1) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define EBT_SO_GET_INFO (EBT_BASE_CTL) +#define EBT_SO_GET_ENTRIES (EBT_SO_GET_INFO+1) +#define EBT_SO_GET_INIT_INFO (EBT_SO_GET_ENTRIES+1) +#define EBT_SO_GET_INIT_ENTRIES (EBT_SO_GET_INIT_INFO+1) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define EBT_SO_GET_MAX (EBT_SO_GET_INIT_ENTRIES+1) +#define EBT_MATCH_ITERATE(e, fn, args...) ({ unsigned int __i; int __ret = 0; struct ebt_entry_match *__match; for (__i = sizeof(struct ebt_entry); __i < (e)->watchers_offset; __i += __match->match_size + sizeof(struct ebt_entry_match)) { __match = (void *)(e) + __i; __ret = fn(__match , ## args); if (__ret != 0) break; } if (__ret == 0) { if (__i != (e)->watchers_offset) __ret = -EINVAL; } __ret; }) +#define EBT_WATCHER_ITERATE(e, fn, args...) ({ unsigned int __i; int __ret = 0; struct ebt_entry_watcher *__watcher; for (__i = e->watchers_offset; __i < (e)->target_offset; __i += __watcher->watcher_size + sizeof(struct ebt_entry_watcher)) { __watcher = (void *)(e) + __i; __ret = fn(__watcher , ## args); if (__ret != 0) break; } if (__ret == 0) { if (__i != (e)->target_offset) __ret = -EINVAL; } __ret; }) +#define EBT_ENTRY_ITERATE(entries, size, fn, args...) ({ unsigned int __i; int __ret = 0; struct ebt_entry *__entry; for (__i = 0; __i < (size);) { __entry = (void *)(entries) + __i; __ret = fn(__entry , ## args); if (__ret != 0) break; if (__entry->bitmask != 0) __i += __entry->next_offset; else __i += sizeof(struct ebt_entries); } if (__ret == 0) { if (__i != (size)) __ret = -EINVAL; } __ret; }) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#endif |