Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
ip6_tables.h File Reference
#include <linux/types.h>
#include <linux/compiler.h>
#include <linux/netfilter_ipv6.h>
#include <linux/netfilter/x_tables.h>
#include <linux/netfilter/xt_tcpudp.h>

Go to the source code of 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

Definition at line 168 of file ip6_tables.h.

#define IP6T_CONTINUE   XT_CONTINUE

Definition at line 36 of file ip6_tables.h.

#define ip6t_counters   xt_counters

Definition at line 35 of file ip6_tables.h.

#define ip6t_counters_info   xt_counters_info

Definition at line 52 of file ip6_tables.h.

#define IP6T_ENTRY_INIT (   __size)
Value:
{ \
.target_offset = sizeof(struct ip6t_entry), \
.next_offset = (__size), \
}

Definition at line 139 of file ip6_tables.h.

#define IP6T_ENTRY_ITERATE (   entries,
  size,
  fn,
  args... 
)    XT_ENTRY_ITERATE(struct ip6t_entry, entries, size, fn, ## args)

Definition at line 57 of file ip6_tables.h.

#define ip6t_entry_match   xt_entry_match

Definition at line 31 of file ip6_tables.h.

#define ip6t_entry_target   xt_entry_target

Definition at line 32 of file ip6_tables.h.

#define IP6T_ERROR_INIT
Value:
{ \
.entry = IP6T_ENTRY_INIT(sizeof(struct ip6t_error)), \
sizeof(struct xt_error_target)), \
.target.errorname = "ERROR", \
}

Definition at line 153 of file ip6_tables.h.

#define ip6t_error_target   xt_error_target

Definition at line 34 of file ip6_tables.h.

#define IP6T_ERROR_TARGET   XT_ERROR_TARGET

Definition at line 54 of file ip6_tables.h.

#define IP6T_F_GOTO   0x04 /* Set if jump is a goto */

Definition at line 91 of file ip6_tables.h.

#define IP6T_F_MASK   0x07 /* All possible flag bits mask. */

Definition at line 92 of file ip6_tables.h.

#define IP6T_F_PROTO
Value:
0x01 /* Set if rule cares about upper
protocols */

Definition at line 89 of file ip6_tables.h.

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

Definition at line 90 of file ip6_tables.h.

#define IP6T_FUNCTION_MAXNAMELEN   XT_FUNCTION_MAXNAMELEN

Definition at line 25 of file ip6_tables.h.

#define ip6t_get_revision   xt_get_revision

Definition at line 30 of file ip6_tables.h.

#define IP6T_ICMP_INV   0x01 /* Invert the sense of type/code test */

Definition at line 188 of file ip6_tables.h.

#define IP6T_INV_DSTIP   0x10 /* Invert the sense of DST OP. */

Definition at line 99 of file ip6_tables.h.

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

Definition at line 100 of file ip6_tables.h.

#define IP6T_INV_MASK   0x7F /* All possible flag bits mask. */

Definition at line 102 of file ip6_tables.h.

#define IP6T_INV_PROTO   XT_INV_PROTO

Definition at line 101 of file ip6_tables.h.

#define IP6T_INV_SRCIP   0x08 /* Invert the sense of SRC IP. */

Definition at line 98 of file ip6_tables.h.

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

Definition at line 97 of file ip6_tables.h.

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

Definition at line 95 of file ip6_tables.h.

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

Definition at line 96 of file ip6_tables.h.

#define ip6t_match   xt_match

Definition at line 27 of file ip6_tables.h.

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

Definition at line 55 of file ip6_tables.h.

#define IP6T_RETURN   XT_RETURN

Definition at line 37 of file ip6_tables.h.

#define IP6T_SO_GET_ENTRIES   (IP6T_BASE_CTL + 1)

Definition at line 175 of file ip6_tables.h.

#define IP6T_SO_GET_INFO   (IP6T_BASE_CTL)

Definition at line 174 of file ip6_tables.h.

#define IP6T_SO_GET_MAX   IP6T_SO_GET_REVISION_TARGET

Definition at line 178 of file ip6_tables.h.

#define IP6T_SO_GET_REVISION_MATCH   (IP6T_BASE_CTL + 4)

Definition at line 176 of file ip6_tables.h.

#define IP6T_SO_GET_REVISION_TARGET   (IP6T_BASE_CTL + 5)

Definition at line 177 of file ip6_tables.h.

#define IP6T_SO_SET_ADD_COUNTERS   (IP6T_BASE_CTL + 1)

Definition at line 171 of file ip6_tables.h.

#define IP6T_SO_SET_MAX   IP6T_SO_SET_ADD_COUNTERS

Definition at line 172 of file ip6_tables.h.

#define IP6T_SO_SET_REPLACE   (IP6T_BASE_CTL)

Definition at line 170 of file ip6_tables.h.

#define IP6T_STANDARD_INIT (   __verdict)
Value:
{ \
.entry = IP6T_ENTRY_INIT(sizeof(struct ip6t_standard)), \
sizeof(struct xt_standard_target)), \
.target.verdict = -(__verdict) - 1, \
}

Definition at line 145 of file ip6_tables.h.

#define ip6t_standard_target   xt_standard_target

Definition at line 33 of file ip6_tables.h.

#define IP6T_STANDARD_TARGET   XT_STANDARD_TARGET

Definition at line 53 of file ip6_tables.h.

#define ip6t_table   xt_table

Definition at line 29 of file ip6_tables.h.

#define IP6T_TABLE_MAXNAMELEN   XT_TABLE_MAXNAMELEN

Definition at line 26 of file ip6_tables.h.

#define ip6t_target   xt_target

Definition at line 28 of file ip6_tables.h.

#define ip6t_tcp   xt_tcp

Definition at line 41 of file ip6_tables.h.

#define IP6T_TCP_INV_DSTPT   XT_TCP_INV_DSTPT

Definition at line 44 of file ip6_tables.h.

#define IP6T_TCP_INV_FLAGS   XT_TCP_INV_FLAGS

Definition at line 45 of file ip6_tables.h.

#define IP6T_TCP_INV_MASK   XT_TCP_INV_MASK

Definition at line 47 of file ip6_tables.h.

#define IP6T_TCP_INV_OPTION   XT_TCP_INV_OPTION

Definition at line 46 of file ip6_tables.h.

#define IP6T_TCP_INV_SRCPT   XT_TCP_INV_SRCPT

Definition at line 43 of file ip6_tables.h.

#define ip6t_udp   xt_udp

Definition at line 42 of file ip6_tables.h.

#define IP6T_UDP_INV_DSTPT   XT_UDP_INV_DSTPT

Definition at line 49 of file ip6_tables.h.

#define IP6T_UDP_INV_MASK   XT_UDP_INV_MASK

Definition at line 50 of file ip6_tables.h.

#define IP6T_UDP_INV_SRCPT   XT_UDP_INV_SRCPT

Definition at line 48 of file ip6_tables.h.