#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>
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_match * | load_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_afinfo * | afinfo |
typedef int(* mainfunc_t)(int, char **) |
anonymous enum |
int command_default | ( | struct iptables_command_state * | , |
struct xtables_globals * | |||
) |
References iptables_command_state::argv, iptables_command_state::c, xtables_rule_match::completed, xtables_match::extra_opts, iptables_command_state::fw, iptables_command_state::invert, load_proto(), xtables_match::m, xtables_rule_match::match, xt_entry_match::match_size, iptables_command_state::matches, xtables_match::name, xtables_rule_match::next, NULL, xtables_match::option_offset, xtables_target::option_offset, xtables_globals::opts, xtables_globals::orig_opts, OTHER_PROBLEM, PARAMETER_PROBLEM, xtables_match::parse, xtables_target::parse, iptables_command_state::proto_used, xtables_match::revision, size, xtables_match::size, iptables_command_state::target, xt_entry_match::u, xt_entry_match::user, xtables_match::x6_options, xtables_match::x6_parse, xtables_target::x6_parse, xs_init_match(), XT_ALIGN, XT_OPTION_OFFSET_SCALE, xtables_calloc(), xtables_error, xtables_merge_options(), xtables_option_mpcall(), xtables_option_tpcall(), and xtables_options_xfrm().
Referenced by do_command4(), do_command6(), and do_commandx().
struct xtables_match* load_proto | ( | struct iptables_command_state * | ) |
References iptables_command_state::matches, NULL, OPT_NUMERIC, iptables_command_state::options, iptables_command_state::protocol, and XTF_TRY_LOAD.
Referenced by command_default().
void print_extension_helps | ( | const struct xtables_target * | , |
const struct xtables_rule_match * | |||
) |
const char* proto_to_name | ( | uint8_t | , |
int | |||
) |
References xtables_pprot::name, NULL, and xtables_chain_protos.
Referenced by print_firewall_details().
int subcmd_main | ( | int | , |
char ** | , | ||
const struct subcommand * | |||
) |
References subcommand::name, and NULL.
Referenced by main().
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().
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().
bool xtables_lock | ( | int | wait | ) |
References offsetof, XT_SOCKET_LEN, and XT_SOCKET_NAME.
Referenced by do_command4(), and do_command6().
const struct xtables_afinfo* afinfo |
Referenced by xtables_arp_main().