diff options
Diffstat (limited to 'sysroot/usr/include/linux/netfilter_ipv6')
13 files changed, 517 insertions, 0 deletions
diff --git a/sysroot/usr/include/linux/netfilter_ipv6/ip6_tables.h b/sysroot/usr/include/linux/netfilter_ipv6/ip6_tables.h new file mode 100644 index 0000000..1687e4f --- /dev/null +++ b/sysroot/usr/include/linux/netfilter_ipv6/ip6_tables.h @@ -0,0 +1,178 @@ +/**************************************************************************** + **************************************************************************** + *** + *** 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. + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _IP6_TABLES_H +#define _IP6_TABLES_H + +#include <linux/compiler.h> +#include <linux/netfilter_ipv6.h> + +#include <linux/netfilter/x_tables.h> + +#define IP6T_FUNCTION_MAXNAMELEN XT_FUNCTION_MAXNAMELEN +#define IP6T_TABLE_MAXNAMELEN XT_TABLE_MAXNAMELEN + +#define ip6t_match xt_match +#define ip6t_target xt_target +#define ip6t_table xt_table +#define ip6t_get_revision xt_get_revision + +struct ip6t_ip6 { + + struct in6_addr src, dst; + + struct in6_addr smsk, dmsk; + char iniface[IFNAMSIZ], outiface[IFNAMSIZ]; + unsigned char iniface_mask[IFNAMSIZ], outiface_mask[IFNAMSIZ]; + + u_int16_t proto; + + u_int8_t tos; + + u_int8_t flags; + + u_int8_t invflags; +}; + +#define ip6t_entry_match xt_entry_match +#define ip6t_entry_target xt_entry_target +#define ip6t_standard_target xt_standard_target + +#define ip6t_counters xt_counters + +#define IP6T_F_PROTO 0x01 +#define IP6T_F_TOS 0x02 +#define IP6T_F_GOTO 0x04 +#define IP6T_F_MASK 0x07 + +#define IP6T_INV_VIA_IN 0x01 +#define IP6T_INV_VIA_OUT 0x02 +#define IP6T_INV_TOS 0x04 +#define IP6T_INV_SRCIP 0x08 +#define IP6T_INV_DSTIP 0x10 +#define IP6T_INV_FRAG 0x20 +#define IP6T_INV_PROTO XT_INV_PROTO +#define IP6T_INV_MASK 0x7F + +struct ip6t_entry +{ + struct ip6t_ip6 ipv6; + + unsigned int nfcache; + + u_int16_t target_offset; + + u_int16_t next_offset; + + unsigned int comefrom; + + struct xt_counters counters; + + unsigned char elems[0]; +}; + +#define IP6T_BASE_CTL XT_BASE_CTL + +#define IP6T_SO_SET_REPLACE XT_SO_SET_REPLACE +#define IP6T_SO_SET_ADD_COUNTERS XT_SO_SET_ADD_COUNTERS +#define IP6T_SO_SET_MAX XT_SO_SET_MAX + +#define IP6T_SO_GET_INFO XT_SO_GET_INFO +#define IP6T_SO_GET_ENTRIES XT_SO_GET_ENTRIES +#define IP6T_SO_GET_REVISION_MATCH XT_SO_GET_REVISION_MATCH +#define IP6T_SO_GET_REVISION_TARGET XT_SO_GET_REVISION_TARGET +#define IP6T_SO_GET_MAX XT_SO_GET_REVISION_TARGET + +#define IP6T_CONTINUE XT_CONTINUE + +#define IP6T_RETURN XT_RETURN + +#include <linux/netfilter/xt_tcpudp.h> + +#define ip6t_tcp xt_tcp +#define ip6t_udp xt_udp + +#define IP6T_TCP_INV_SRCPT XT_TCP_INV_SRCPT +#define IP6T_TCP_INV_DSTPT XT_TCP_INV_DSTPT +#define IP6T_TCP_INV_FLAGS XT_TCP_INV_FLAGS +#define IP6T_TCP_INV_OPTION XT_TCP_INV_OPTION +#define IP6T_TCP_INV_MASK XT_TCP_INV_MASK + +#define IP6T_UDP_INV_SRCPT XT_UDP_INV_SRCPT +#define IP6T_UDP_INV_DSTPT XT_UDP_INV_DSTPT +#define IP6T_UDP_INV_MASK XT_UDP_INV_MASK + +struct ip6t_icmp +{ + u_int8_t type; + u_int8_t code[2]; + u_int8_t invflags; +}; + +#define IP6T_ICMP_INV 0x01 + +struct ip6t_getinfo +{ + + char name[IP6T_TABLE_MAXNAMELEN]; + + unsigned int valid_hooks; + + unsigned int hook_entry[NF_IP6_NUMHOOKS]; + + unsigned int underflow[NF_IP6_NUMHOOKS]; + + unsigned int num_entries; + + unsigned int size; +}; + +struct ip6t_replace +{ + + char name[IP6T_TABLE_MAXNAMELEN]; + + unsigned int valid_hooks; + + unsigned int num_entries; + + unsigned int size; + + unsigned int hook_entry[NF_IP6_NUMHOOKS]; + + unsigned int underflow[NF_IP6_NUMHOOKS]; + + unsigned int num_counters; + + struct xt_counters __user *counters; + + struct ip6t_entry entries[0]; +}; + +#define ip6t_counters_info xt_counters_info + +struct ip6t_get_entries +{ + + char name[IP6T_TABLE_MAXNAMELEN]; + + unsigned int size; + + struct ip6t_entry entrytable[0]; +}; + +#define IP6T_STANDARD_TARGET XT_STANDARD_TARGET + +#define IP6T_ERROR_TARGET XT_ERROR_TARGET + +#define IP6T_MATCH_ITERATE(e, fn, args...) ({ unsigned int __i; int __ret = 0; struct ip6t_entry_match *__m; for (__i = sizeof(struct ip6t_entry); __i < (e)->target_offset; __i += __m->u.match_size) { __m = (void *)(e) + __i; __ret = fn(__m , ## args); if (__ret != 0) break; } __ret; }) +#define IP6T_ENTRY_ITERATE(entries, size, fn, args...) ({ unsigned int __i; int __ret = 0; struct ip6t_entry *__e; for (__i = 0; __i < (size); __i += __e->next_offset) { __e = (void *)(entries) + __i; __ret = fn(__e , ## args); if (__ret != 0) break; } __ret; }) +#endif diff --git a/sysroot/usr/include/linux/netfilter_ipv6/ip6t_LOG.h b/sysroot/usr/include/linux/netfilter_ipv6/ip6t_LOG.h new file mode 100644 index 0000000..344c133 --- /dev/null +++ b/sysroot/usr/include/linux/netfilter_ipv6/ip6t_LOG.h @@ -0,0 +1,28 @@ +/**************************************************************************** + **************************************************************************** + *** + *** 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. + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _IP6T_LOG_H +#define _IP6T_LOG_H + +#define IP6T_LOG_TCPSEQ 0x01 +#define IP6T_LOG_TCPOPT 0x02 +#define IP6T_LOG_IPOPT 0x04 +#define IP6T_LOG_UID 0x08 +#define IP6T_LOG_NFLOG 0x10 +#define IP6T_LOG_MASK 0x1f + +struct ip6t_log_info { + unsigned char level; + unsigned char logflags; + char prefix[30]; +}; + +#endif diff --git a/sysroot/usr/include/linux/netfilter_ipv6/ip6t_REJECT.h b/sysroot/usr/include/linux/netfilter_ipv6/ip6t_REJECT.h new file mode 100644 index 0000000..b101c85 --- /dev/null +++ b/sysroot/usr/include/linux/netfilter_ipv6/ip6t_REJECT.h @@ -0,0 +1,29 @@ +/**************************************************************************** + **************************************************************************** + *** + *** 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. + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _IP6T_REJECT_H +#define _IP6T_REJECT_H + +enum ip6t_reject_with { + IP6T_ICMP6_NO_ROUTE, + IP6T_ICMP6_ADM_PROHIBITED, + IP6T_ICMP6_NOT_NEIGHBOUR, + IP6T_ICMP6_ADDR_UNREACH, + IP6T_ICMP6_PORT_UNREACH, + IP6T_ICMP6_ECHOREPLY, + IP6T_TCP_RESET +}; + +struct ip6t_reject_info { + u_int32_t with; +}; + +#endif diff --git a/sysroot/usr/include/linux/netfilter_ipv6/ip6t_ah.h b/sysroot/usr/include/linux/netfilter_ipv6/ip6t_ah.h new file mode 100644 index 0000000..7110df5 --- /dev/null +++ b/sysroot/usr/include/linux/netfilter_ipv6/ip6t_ah.h @@ -0,0 +1,31 @@ +/**************************************************************************** + **************************************************************************** + *** + *** 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. + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _IP6T_AH_H +#define _IP6T_AH_H + +struct ip6t_ah +{ + u_int32_t spis[2]; + u_int32_t hdrlen; + u_int8_t hdrres; + u_int8_t invflags; +}; + +#define IP6T_AH_SPI 0x01 +#define IP6T_AH_LEN 0x02 +#define IP6T_AH_RES 0x04 + +#define IP6T_AH_INV_SPI 0x01 +#define IP6T_AH_INV_LEN 0x02 +#define IP6T_AH_INV_MASK 0x03 + +#endif diff --git a/sysroot/usr/include/linux/netfilter_ipv6/ip6t_esp.h b/sysroot/usr/include/linux/netfilter_ipv6/ip6t_esp.h new file mode 100644 index 0000000..0aa7556 --- /dev/null +++ b/sysroot/usr/include/linux/netfilter_ipv6/ip6t_esp.h @@ -0,0 +1,21 @@ +/**************************************************************************** + **************************************************************************** + *** + *** 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. + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _IP6T_ESP_H +#define _IP6T_ESP_H + +#include <linux/netfilter/xt_esp.h> + +#define ip6t_esp xt_esp +#define IP6T_ESP_INV_SPI XT_ESP_INV_SPI +#define IP6T_ESP_INV_MASK XT_ESP_INV_MASK + +#endif diff --git a/sysroot/usr/include/linux/netfilter_ipv6/ip6t_frag.h b/sysroot/usr/include/linux/netfilter_ipv6/ip6t_frag.h new file mode 100644 index 0000000..134d6bb --- /dev/null +++ b/sysroot/usr/include/linux/netfilter_ipv6/ip6t_frag.h @@ -0,0 +1,34 @@ +/**************************************************************************** + **************************************************************************** + *** + *** 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. + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _IP6T_FRAG_H +#define _IP6T_FRAG_H + +struct ip6t_frag +{ + u_int32_t ids[2]; + u_int32_t hdrlen; + u_int8_t flags; + u_int8_t invflags; +}; + +#define IP6T_FRAG_IDS 0x01 +#define IP6T_FRAG_LEN 0x02 +#define IP6T_FRAG_RES 0x04 +#define IP6T_FRAG_FST 0x08 +#define IP6T_FRAG_MF 0x10 +#define IP6T_FRAG_NMF 0x20 + +#define IP6T_FRAG_INV_IDS 0x01 +#define IP6T_FRAG_INV_LEN 0x02 +#define IP6T_FRAG_INV_MASK 0x03 + +#endif diff --git a/sysroot/usr/include/linux/netfilter_ipv6/ip6t_ipv6header.h b/sysroot/usr/include/linux/netfilter_ipv6/ip6t_ipv6header.h new file mode 100644 index 0000000..7e83ebc --- /dev/null +++ b/sysroot/usr/include/linux/netfilter_ipv6/ip6t_ipv6header.h @@ -0,0 +1,31 @@ +/**************************************************************************** + **************************************************************************** + *** + *** 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. + *** + **************************************************************************** + ****************************************************************************/ +#ifndef __IPV6HEADER_H +#define __IPV6HEADER_H + +struct ip6t_ipv6header_info +{ + u_int8_t matchflags; + u_int8_t invflags; + u_int8_t modeflag; +}; + +#define MASK_HOPOPTS 128 +#define MASK_DSTOPTS 64 +#define MASK_ROUTING 32 +#define MASK_FRAGMENT 16 +#define MASK_AH 8 +#define MASK_ESP 4 +#define MASK_NONE 2 +#define MASK_PROTO 1 + +#endif diff --git a/sysroot/usr/include/linux/netfilter_ipv6/ip6t_length.h b/sysroot/usr/include/linux/netfilter_ipv6/ip6t_length.h new file mode 100644 index 0000000..fdc4c5f --- /dev/null +++ b/sysroot/usr/include/linux/netfilter_ipv6/ip6t_length.h @@ -0,0 +1,19 @@ +/**************************************************************************** + **************************************************************************** + *** + *** 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. + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _IP6T_LENGTH_H +#define _IP6T_LENGTH_H + +#include <linux/netfilter/xt_length.h> +#define ip6t_length_info xt_length_info + +#endif + diff --git a/sysroot/usr/include/linux/netfilter_ipv6/ip6t_mac.h b/sysroot/usr/include/linux/netfilter_ipv6/ip6t_mac.h new file mode 100644 index 0000000..58e6023 --- /dev/null +++ b/sysroot/usr/include/linux/netfilter_ipv6/ip6t_mac.h @@ -0,0 +1,18 @@ +/**************************************************************************** + **************************************************************************** + *** + *** 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. + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _IP6T_MAC_H +#define _IP6T_MAC_H + +#include <linux/netfilter/xt_mac.h> +#define ip6t_mac_info xt_mac_info + +#endif diff --git a/sysroot/usr/include/linux/netfilter_ipv6/ip6t_opts.h b/sysroot/usr/include/linux/netfilter_ipv6/ip6t_opts.h new file mode 100644 index 0000000..1d9db9c --- /dev/null +++ b/sysroot/usr/include/linux/netfilter_ipv6/ip6t_opts.h @@ -0,0 +1,33 @@ +/**************************************************************************** + **************************************************************************** + *** + *** 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. + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _IP6T_OPTS_H +#define _IP6T_OPTS_H + +#define IP6T_OPTS_OPTSNR 16 + +struct ip6t_opts +{ + u_int32_t hdrlen; + u_int8_t flags; + u_int8_t invflags; + u_int16_t opts[IP6T_OPTS_OPTSNR]; + u_int8_t optsnr; +}; + +#define IP6T_OPTS_LEN 0x01 +#define IP6T_OPTS_OPTS 0x02 +#define IP6T_OPTS_NSTRICT 0x04 + +#define IP6T_OPTS_INV_LEN 0x01 +#define IP6T_OPTS_INV_MASK 0x01 + +#endif diff --git a/sysroot/usr/include/linux/netfilter_ipv6/ip6t_owner.h b/sysroot/usr/include/linux/netfilter_ipv6/ip6t_owner.h new file mode 100644 index 0000000..a6126b4 --- /dev/null +++ b/sysroot/usr/include/linux/netfilter_ipv6/ip6t_owner.h @@ -0,0 +1,28 @@ +/**************************************************************************** + **************************************************************************** + *** + *** 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. + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _IP6T_OWNER_H +#define _IP6T_OWNER_H + +#define IP6T_OWNER_UID 0x01 +#define IP6T_OWNER_GID 0x02 +#define IP6T_OWNER_PID 0x04 +#define IP6T_OWNER_SID 0x08 + +struct ip6t_owner_info { + uid_t uid; + gid_t gid; + pid_t pid; + pid_t sid; + u_int8_t match, invert; +}; + +#endif diff --git a/sysroot/usr/include/linux/netfilter_ipv6/ip6t_physdev.h b/sysroot/usr/include/linux/netfilter_ipv6/ip6t_physdev.h new file mode 100644 index 0000000..657e2fb --- /dev/null +++ b/sysroot/usr/include/linux/netfilter_ipv6/ip6t_physdev.h @@ -0,0 +1,26 @@ +/**************************************************************************** + **************************************************************************** + *** + *** 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. + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _IP6T_PHYSDEV_H +#define _IP6T_PHYSDEV_H + +#include <linux/netfilter/xt_physdev.h> + +#define IP6T_PHYSDEV_OP_IN XT_PHYSDEV_OP_IN +#define IP6T_PHYSDEV_OP_OUT XT_PHYSDEV_OP_OUT +#define IP6T_PHYSDEV_OP_BRIDGED XT_PHYSDEV_OP_BRIDGED +#define IP6T_PHYSDEV_OP_ISIN XT_PHYSDEV_OP_ISIN +#define IP6T_PHYSDEV_OP_ISOUT XT_PHYSDEV_OP_ISOUT +#define IP6T_PHYSDEV_OP_MASK XT_PHYSDEV_OP_MASK + +#define ip6t_physdev_info xt_physdev_info + +#endif diff --git a/sysroot/usr/include/linux/netfilter_ipv6/ip6t_rt.h b/sysroot/usr/include/linux/netfilter_ipv6/ip6t_rt.h new file mode 100644 index 0000000..274a7ee --- /dev/null +++ b/sysroot/usr/include/linux/netfilter_ipv6/ip6t_rt.h @@ -0,0 +1,41 @@ +/**************************************************************************** + **************************************************************************** + *** + *** 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. + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _IP6T_RT_H +#define _IP6T_RT_H + +#define IP6T_RT_HOPS 16 + +struct ip6t_rt +{ + u_int32_t rt_type; + u_int32_t segsleft[2]; + u_int32_t hdrlen; + u_int8_t flags; + u_int8_t invflags; + struct in6_addr addrs[IP6T_RT_HOPS]; + u_int8_t addrnr; +}; + +#define IP6T_RT_TYP 0x01 +#define IP6T_RT_SGS 0x02 +#define IP6T_RT_LEN 0x04 +#define IP6T_RT_RES 0x08 +#define IP6T_RT_FST_MASK 0x30 +#define IP6T_RT_FST 0x10 +#define IP6T_RT_FST_NSTRICT 0x20 + +#define IP6T_RT_INV_TYP 0x01 +#define IP6T_RT_INV_SGS 0x02 +#define IP6T_RT_INV_LEN 0x04 +#define IP6T_RT_INV_MASK 0x07 + +#endif |