netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
libip6tc.c File Reference
#include <assert.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <arpa/inet.h>
#include "libiptc/libip6tc.h"
#include "libiptc.c"
Include dependency graph for libip6tc.c:

Macros

#define HOOK_PRE_ROUTING   NF_IP6_PRE_ROUTING
 
#define HOOK_LOCAL_IN   NF_IP6_LOCAL_IN
 
#define HOOK_FORWARD   NF_IP6_FORWARD
 
#define HOOK_LOCAL_OUT   NF_IP6_LOCAL_OUT
 
#define HOOK_POST_ROUTING   NF_IP6_POST_ROUTING
 
#define STRUCT_ENTRY_TARGET   struct xt_entry_target
 
#define STRUCT_ENTRY   struct ip6t_entry
 
#define STRUCT_ENTRY_MATCH   struct xt_entry_match
 
#define STRUCT_GETINFO   struct ip6t_getinfo
 
#define STRUCT_GET_ENTRIES   struct ip6t_get_entries
 
#define STRUCT_COUNTERS   struct xt_counters
 
#define STRUCT_COUNTERS_INFO   struct xt_counters_info
 
#define STRUCT_STANDARD_TARGET   struct xt_standard_target
 
#define STRUCT_REPLACE   struct ip6t_replace
 
#define ENTRY_ITERATE   IP6T_ENTRY_ITERATE
 
#define TABLE_MAXNAMELEN   XT_TABLE_MAXNAMELEN
 
#define FUNCTION_MAXNAMELEN   XT_FUNCTION_MAXNAMELEN
 
#define GET_TARGET   ip6t_get_target
 
#define ERROR_TARGET   XT_ERROR_TARGET
 
#define NUMHOOKS   NF_IP6_NUMHOOKS
 
#define IPT_CHAINLABEL   xt_chainlabel
 
#define TC_DUMP_ENTRIES   dump_entries6
 
#define TC_IS_CHAIN   ip6tc_is_chain
 
#define TC_FIRST_CHAIN   ip6tc_first_chain
 
#define TC_NEXT_CHAIN   ip6tc_next_chain
 
#define TC_FIRST_RULE   ip6tc_first_rule
 
#define TC_NEXT_RULE   ip6tc_next_rule
 
#define TC_GET_TARGET   ip6tc_get_target
 
#define TC_BUILTIN   ip6tc_builtin
 
#define TC_GET_POLICY   ip6tc_get_policy
 
#define TC_INSERT_ENTRY   ip6tc_insert_entry
 
#define TC_REPLACE_ENTRY   ip6tc_replace_entry
 
#define TC_APPEND_ENTRY   ip6tc_append_entry
 
#define TC_CHECK_ENTRY   ip6tc_check_entry
 
#define TC_DELETE_ENTRY   ip6tc_delete_entry
 
#define TC_DELETE_NUM_ENTRY   ip6tc_delete_num_entry
 
#define TC_FLUSH_ENTRIES   ip6tc_flush_entries
 
#define TC_ZERO_ENTRIES   ip6tc_zero_entries
 
#define TC_ZERO_COUNTER   ip6tc_zero_counter
 
#define TC_READ_COUNTER   ip6tc_read_counter
 
#define TC_SET_COUNTER   ip6tc_set_counter
 
#define TC_CREATE_CHAIN   ip6tc_create_chain
 
#define TC_GET_REFERENCES   ip6tc_get_references
 
#define TC_DELETE_CHAIN   ip6tc_delete_chain
 
#define TC_RENAME_CHAIN   ip6tc_rename_chain
 
#define TC_SET_POLICY   ip6tc_set_policy
 
#define TC_GET_RAW_SOCKET   ip6tc_get_raw_socket
 
#define TC_INIT   ip6tc_init
 
#define TC_FREE   ip6tc_free
 
#define TC_COMMIT   ip6tc_commit
 
#define TC_STRERROR   ip6tc_strerror
 
#define TC_NUM_RULES   ip6tc_num_rules
 
#define TC_GET_RULE   ip6tc_get_rule
 
#define TC_OPS   ip6tc_ops
 
#define TC_AF   AF_INET6
 
#define TC_IPPROTO   IPPROTO_IPV6
 
#define SO_SET_REPLACE   IP6T_SO_SET_REPLACE
 
#define SO_SET_ADD_COUNTERS   IP6T_SO_SET_ADD_COUNTERS
 
#define SO_GET_INFO   IP6T_SO_GET_INFO
 
#define SO_GET_ENTRIES   IP6T_SO_GET_ENTRIES
 
#define SO_GET_VERSION   IP6T_SO_GET_VERSION
 
#define STANDARD_TARGET   XT_STANDARD_TARGET
 
#define LABEL_RETURN   IP6TC_LABEL_RETURN
 
#define LABEL_ACCEPT   IP6TC_LABEL_ACCEPT
 
#define LABEL_DROP   IP6TC_LABEL_DROP
 
#define LABEL_QUEUE   IP6TC_LABEL_QUEUE
 
#define ALIGN   XT_ALIGN
 
#define RETURN   XT_RETURN
 
#define BIT6(a, l)   ((ntohl(a->s6_addr32[(l) / 32]) >> (31 - ((l) & 31))) & 1)
 

Typedefs

typedef unsigned int socklen_t
 

Macro Definition Documentation

#define ALIGN   XT_ALIGN
#define BIT6 (   a,
 
)    ((ntohl(a->s6_addr32[(l) / 32]) >> (31 - ((l) & 31))) & 1)
#define ENTRY_ITERATE   IP6T_ENTRY_ITERATE
#define ERROR_TARGET   XT_ERROR_TARGET
#define FUNCTION_MAXNAMELEN   XT_FUNCTION_MAXNAMELEN
#define GET_TARGET   ip6t_get_target
#define HOOK_FORWARD   NF_IP6_FORWARD
#define HOOK_LOCAL_IN   NF_IP6_LOCAL_IN
#define HOOK_LOCAL_OUT   NF_IP6_LOCAL_OUT
#define HOOK_POST_ROUTING   NF_IP6_POST_ROUTING
#define HOOK_PRE_ROUTING   NF_IP6_PRE_ROUTING
#define IPT_CHAINLABEL   xt_chainlabel
#define LABEL_ACCEPT   IP6TC_LABEL_ACCEPT
#define LABEL_DROP   IP6TC_LABEL_DROP
#define LABEL_QUEUE   IP6TC_LABEL_QUEUE
#define LABEL_RETURN   IP6TC_LABEL_RETURN
#define NUMHOOKS   NF_IP6_NUMHOOKS
#define RETURN   XT_RETURN
#define SO_GET_ENTRIES   IP6T_SO_GET_ENTRIES
#define SO_GET_INFO   IP6T_SO_GET_INFO
#define SO_GET_VERSION   IP6T_SO_GET_VERSION
#define SO_SET_ADD_COUNTERS   IP6T_SO_SET_ADD_COUNTERS
#define SO_SET_REPLACE   IP6T_SO_SET_REPLACE
#define STANDARD_TARGET   XT_STANDARD_TARGET
#define STRUCT_COUNTERS   struct xt_counters
#define STRUCT_COUNTERS_INFO   struct xt_counters_info
#define STRUCT_ENTRY   struct ip6t_entry
#define STRUCT_ENTRY_MATCH   struct xt_entry_match
#define STRUCT_ENTRY_TARGET   struct xt_entry_target
#define STRUCT_GET_ENTRIES   struct ip6t_get_entries
#define STRUCT_GETINFO   struct ip6t_getinfo
#define STRUCT_REPLACE   struct ip6t_replace
#define STRUCT_STANDARD_TARGET   struct xt_standard_target
#define TABLE_MAXNAMELEN   XT_TABLE_MAXNAMELEN
#define TC_AF   AF_INET6
#define TC_APPEND_ENTRY   ip6tc_append_entry
#define TC_BUILTIN   ip6tc_builtin
#define TC_CHECK_ENTRY   ip6tc_check_entry
#define TC_COMMIT   ip6tc_commit
#define TC_CREATE_CHAIN   ip6tc_create_chain
#define TC_DELETE_CHAIN   ip6tc_delete_chain
#define TC_DELETE_ENTRY   ip6tc_delete_entry
#define TC_DELETE_NUM_ENTRY   ip6tc_delete_num_entry
#define TC_DUMP_ENTRIES   dump_entries6
#define TC_FIRST_CHAIN   ip6tc_first_chain
#define TC_FIRST_RULE   ip6tc_first_rule
#define TC_FLUSH_ENTRIES   ip6tc_flush_entries
#define TC_FREE   ip6tc_free
#define TC_GET_POLICY   ip6tc_get_policy
#define TC_GET_RAW_SOCKET   ip6tc_get_raw_socket
#define TC_GET_REFERENCES   ip6tc_get_references
#define TC_GET_RULE   ip6tc_get_rule
#define TC_GET_TARGET   ip6tc_get_target
#define TC_INIT   ip6tc_init
#define TC_INSERT_ENTRY   ip6tc_insert_entry
#define TC_IPPROTO   IPPROTO_IPV6
#define TC_IS_CHAIN   ip6tc_is_chain
#define TC_NEXT_CHAIN   ip6tc_next_chain
#define TC_NEXT_RULE   ip6tc_next_rule
#define TC_NUM_RULES   ip6tc_num_rules
#define TC_OPS   ip6tc_ops
#define TC_READ_COUNTER   ip6tc_read_counter
#define TC_RENAME_CHAIN   ip6tc_rename_chain
#define TC_REPLACE_ENTRY   ip6tc_replace_entry
#define TC_SET_COUNTER   ip6tc_set_counter
#define TC_SET_POLICY   ip6tc_set_policy
#define TC_STRERROR   ip6tc_strerror
#define TC_ZERO_COUNTER   ip6tc_zero_counter
#define TC_ZERO_ENTRIES   ip6tc_zero_entries

Typedef Documentation

typedef unsigned int socklen_t