netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ip6_tables.h File Reference
#include <linux/types.h>
#include <linux/netfilter_ipv6.h>
#include <linux/netfilter/x_tables.h>
#include <linux/netfilter/xt_tcpudp.h>
Include dependency graph for ip6_tables.h:
This graph shows which files directly or indirectly include this file:

Data Structures

struct  ip6t_ip6
 
struct  ip6t_entry
 
struct  ip6t_standard
 
struct  ip6t_error
 
struct  ip6t_icmp
 
struct  ip6t_getinfo
 
struct  ip6t_replace
 
struct  ip6t_get_entries
 

Macros

#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
 
#define ip6t_entry_match   xt_entry_match
 
#define ip6t_entry_target   xt_entry_target
 
#define ip6t_standard_target   xt_standard_target
 
#define ip6t_error_target   xt_error_target
 
#define ip6t_counters   xt_counters
 
#define IP6T_CONTINUE   XT_CONTINUE
 
#define IP6T_RETURN   XT_RETURN
 
#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
 
#define ip6t_counters_info   xt_counters_info
 
#define IP6T_STANDARD_TARGET   XT_STANDARD_TARGET
 
#define IP6T_ERROR_TARGET   XT_ERROR_TARGET
 
#define IP6T_MATCH_ITERATE(e, fn, args...)   XT_MATCH_ITERATE(struct ip6t_entry, e, fn, ## args)
 
#define IP6T_ENTRY_ITERATE(entries, size, fn, args...)   XT_ENTRY_ITERATE(struct ip6t_entry, entries, size, fn, ## args)
 
#define IP6T_F_PROTO
 
#define IP6T_F_TOS   0x02 /* Match the TOS. */
 
#define IP6T_F_GOTO   0x04 /* Set if jump is a goto */
 
#define IP6T_F_MASK   0x07 /* All possible flag bits mask. */
 
#define IP6T_INV_VIA_IN   0x01 /* Invert the sense of IN IFACE. */
 
#define IP6T_INV_VIA_OUT   0x02 /* Invert the sense of OUT IFACE */
 
#define IP6T_INV_TOS   0x04 /* Invert the sense of TOS. */
 
#define IP6T_INV_SRCIP   0x08 /* Invert the sense of SRC IP. */
 
#define IP6T_INV_DSTIP   0x10 /* Invert the sense of DST OP. */
 
#define IP6T_INV_FRAG   0x20 /* Invert the sense of FRAG. */
 
#define IP6T_INV_PROTO   XT_INV_PROTO
 
#define IP6T_INV_MASK   0x7F /* All possible flag bits mask. */
 
#define IP6T_ENTRY_INIT(__size)
 
#define IP6T_STANDARD_INIT(__verdict)
 
#define IP6T_ERROR_INIT
 
#define IP6T_BASE_CTL   64
 
#define IP6T_SO_SET_REPLACE   (IP6T_BASE_CTL)
 
#define IP6T_SO_SET_ADD_COUNTERS   (IP6T_BASE_CTL + 1)
 
#define IP6T_SO_SET_MAX   IP6T_SO_SET_ADD_COUNTERS
 
#define IP6T_SO_GET_INFO   (IP6T_BASE_CTL)
 
#define IP6T_SO_GET_ENTRIES   (IP6T_BASE_CTL + 1)
 
#define IP6T_SO_GET_REVISION_MATCH   (IP6T_BASE_CTL + 4)
 
#define IP6T_SO_GET_REVISION_TARGET   (IP6T_BASE_CTL + 5)
 
#define IP6T_SO_GET_MAX   IP6T_SO_GET_REVISION_TARGET
 
#define IP6T_ICMP_INV   0x01 /* Invert the sense of type/code test */
 

Macro Definition Documentation

#define IP6T_BASE_CTL   64
#define IP6T_CONTINUE   XT_CONTINUE
#define ip6t_counters   xt_counters
#define ip6t_counters_info   xt_counters_info
#define IP6T_ENTRY_INIT (   __size)
Value:
{ \
.target_offset = sizeof(struct ip6t_entry), \
.next_offset = (__size), \
}
Definition: ip6_tables.h:106
u_int16_t next_offset
Definition: ip6_tables.h:115
#define IP6T_ENTRY_ITERATE (   entries,
  size,
  fn,
  args... 
)    XT_ENTRY_ITERATE(struct ip6t_entry, entries, size, fn, ## args)
#define ip6t_entry_match   xt_entry_match
#define ip6t_entry_target   xt_entry_target
#define IP6T_ERROR_INIT
Value:
{ \
.entry = IP6T_ENTRY_INIT(sizeof(struct ip6t_error)), \
sizeof(struct xt_error_target)), \
.target.errorname = "ERROR", \
}
Definition: x_tables.h:69
#define XT_TARGET_INIT(__name, __size)
Definition: x_tables.h:56
#define IP6T_ENTRY_INIT(__size)
Definition: ip6_tables.h:138
Definition: ip6_tables.h:133
#define XT_ERROR_TARGET
Definition: x_tables.h:104
#define ip6t_error_target   xt_error_target
#define IP6T_ERROR_TARGET   XT_ERROR_TARGET
#define IP6T_F_GOTO   0x04 /* Set if jump is a goto */

Referenced by do_command6(), and print_rule6().

#define IP6T_F_MASK   0x07 /* All possible flag bits mask. */
#define IP6T_F_PROTO
Value:
0x01 /* Set if rule cares about upper
protocols */

Referenced by do_command6().

#define IP6T_F_TOS   0x02 /* Match the TOS. */

Referenced by print_rule6().

#define IP6T_FUNCTION_MAXNAMELEN   XT_FUNCTION_MAXNAMELEN
#define ip6t_get_revision   xt_get_revision
#define IP6T_ICMP_INV   0x01 /* Invert the sense of type/code test */
#define IP6T_INV_DSTIP   0x10 /* Invert the sense of DST OP. */

Referenced by do_command6(), and print_rule6().

#define IP6T_INV_FRAG   0x20 /* Invert the sense of FRAG. */

Referenced by print_rule6().

#define IP6T_INV_MASK   0x7F /* All possible flag bits mask. */
#define IP6T_INV_PROTO   XT_INV_PROTO
#define IP6T_INV_SRCIP   0x08 /* Invert the sense of SRC IP. */

Referenced by do_command6(), and print_rule6().

#define IP6T_INV_TOS   0x04 /* Invert the sense of TOS. */

Referenced by print_rule6().

#define IP6T_INV_VIA_IN   0x01 /* Invert the sense of IN IFACE. */

Referenced by print_rule6().

#define IP6T_INV_VIA_OUT   0x02 /* Invert the sense of OUT IFACE */

Referenced by print_rule6().

#define ip6t_match   xt_match
#define IP6T_MATCH_ITERATE (   e,
  fn,
  args... 
)    XT_MATCH_ITERATE(struct ip6t_entry, e, fn, ## args)

Referenced by print_rule6().

#define IP6T_RETURN   XT_RETURN
#define IP6T_SO_GET_ENTRIES   (IP6T_BASE_CTL + 1)
#define IP6T_SO_GET_INFO   (IP6T_BASE_CTL)
#define IP6T_SO_GET_MAX   IP6T_SO_GET_REVISION_TARGET
#define IP6T_SO_GET_REVISION_MATCH   (IP6T_BASE_CTL + 4)

Referenced by nft_compatible_revision().

#define IP6T_SO_GET_REVISION_TARGET   (IP6T_BASE_CTL + 5)
#define IP6T_SO_SET_ADD_COUNTERS   (IP6T_BASE_CTL + 1)
#define IP6T_SO_SET_MAX   IP6T_SO_SET_ADD_COUNTERS
#define IP6T_SO_SET_REPLACE   (IP6T_BASE_CTL)
#define IP6T_STANDARD_INIT (   __verdict)
Value:
{ \
.entry = IP6T_ENTRY_INIT(sizeof(struct ip6t_standard)), \
sizeof(struct xt_standard_target)), \
.target.verdict = -(__verdict) - 1, \
}
Definition: ip6_tables.h:128
#define XT_TARGET_INIT(__name, __size)
Definition: x_tables.h:56
#define IP6T_ENTRY_INIT(__size)
Definition: ip6_tables.h:138
Definition: x_tables.h:64
#define XT_STANDARD_TARGET
Definition: x_tables.h:102
#define ip6t_standard_target   xt_standard_target
#define IP6T_STANDARD_TARGET   XT_STANDARD_TARGET
#define ip6t_table   xt_table
#define IP6T_TABLE_MAXNAMELEN   XT_TABLE_MAXNAMELEN
#define ip6t_target   xt_target
#define ip6t_tcp   xt_tcp
#define IP6T_TCP_INV_DSTPT   XT_TCP_INV_DSTPT
#define IP6T_TCP_INV_FLAGS   XT_TCP_INV_FLAGS
#define IP6T_TCP_INV_MASK   XT_TCP_INV_MASK
#define IP6T_TCP_INV_OPTION   XT_TCP_INV_OPTION
#define IP6T_TCP_INV_SRCPT   XT_TCP_INV_SRCPT
#define ip6t_udp   xt_udp
#define IP6T_UDP_INV_DSTPT   XT_UDP_INV_DSTPT
#define IP6T_UDP_INV_MASK   XT_UDP_INV_MASK
#define IP6T_UDP_INV_SRCPT   XT_UDP_INV_SRCPT