netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
xshared.h File Reference
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
#include <netinet/in.h>
#include <net/if.h>
#include <linux/netfilter_ipv4/ip_tables.h>
#include <linux/netfilter_ipv6/ip6_tables.h>
Include dependency graph for xshared.h:
This graph shows which files directly or indirectly include this file:

Data Structures

struct  xtables_afinfo
 xtables_afinfo - protocol family dependent information : kernel module basename (e.g. More...
 
struct  iptables_command_state
 
struct  subcommand
 

Typedefs

typedef int(* mainfunc_t )(int, char **)
 

Enumerations

enum  {
  OPT_NONE = 0,
  OPT_NUMERIC = 1 << 0,
  OPT_SOURCE = 1 << 1,
  OPT_DESTINATION = 1 << 2,
  OPT_PROTOCOL = 1 << 3,
  OPT_JUMP = 1 << 4,
  OPT_VERBOSE = 1 << 5,
  OPT_EXPANDED = 1 << 6,
  OPT_VIANAMEIN = 1 << 7,
  OPT_VIANAMEOUT = 1 << 8,
  OPT_LINENUMBERS = 1 << 9,
  OPT_COUNTERS = 1 << 10
}
 
enum  { XT_OPTION_OFFSET_SCALE = 256 }
 

Functions

void print_extension_helps (const struct xtables_target *, const struct xtables_rule_match *)
 
const char * proto_to_name (uint8_t, int)
 
int command_default (struct iptables_command_state *, struct xtables_globals *)
 
struct xtables_matchload_proto (struct iptables_command_state *)
 
int subcmd_main (int, char **, const struct subcommand *)
 
void xs_init_target (struct xtables_target *)
 
void xs_init_match (struct xtables_match *)
 
bool xtables_lock (int wait)
 

Variables

const struct xtables_afinfoafinfo
 

Typedef Documentation

typedef int(* mainfunc_t)(int, char **)

Enumeration Type Documentation

anonymous enum
Enumerator
OPT_NONE 
OPT_NUMERIC 
OPT_SOURCE 
OPT_DESTINATION 
OPT_PROTOCOL 
OPT_JUMP 
OPT_VERBOSE 
OPT_EXPANDED 
OPT_VIANAMEIN 
OPT_VIANAMEOUT 
OPT_LINENUMBERS 
OPT_COUNTERS 
anonymous enum
Enumerator
XT_OPTION_OFFSET_SCALE 

Function Documentation

const char* proto_to_name ( uint8_t  ,
int   
)

References xtables_pprot::name, NULL, and xtables_chain_protos.

Referenced by print_firewall_details().

Here is the caller graph for this function:

int subcmd_main ( int  ,
char **  ,
const struct subcommand  
)

References subcommand::name, and NULL.

Referenced by main().

Here is the caller graph for this function:

void xs_init_match ( struct xtables_match )

References xtables_match::init, xtables_match::m, NULL, RESOURCE_PROBLEM, xtables_match::udata, xtables_match::udata_size, and xtables_error.

Referenced by command_default().

Here is the caller graph for this function:

void xs_init_target ( struct xtables_target )

References xtables_target::init, NULL, RESOURCE_PROBLEM, xtables_target::t, xtables_target::udata, xtables_target::udata_size, and xtables_error.

Referenced by do_command4(), and do_command6().

Here is the caller graph for this function:

bool xtables_lock ( int  wait)

References offsetof, XT_SOCKET_LEN, and XT_SOCKET_NAME.

Referenced by do_command4(), and do_command6().

Here is the caller graph for this function:

Variable Documentation

const struct xtables_afinfo* afinfo

Referenced by xtables_arp_main().