#include <netinet/ip.h>
#include <xtables.h>
#include <libiptc/libiptc.h>
#include <iptables/internal.h>
Functions | |
int | do_command4 (int argc, char *argv[], char **table, struct xtc_handle **handle, bool restore) |
int | delete_chain4 (const xt_chainlabel chain, int verbose, struct xtc_handle *handle) |
int | flush_entries4 (const xt_chainlabel chain, int verbose, struct xtc_handle *handle) |
int | for_each_chain4 (int(*fn)(const xt_chainlabel, int, struct xtc_handle *), int verbose, int builtinstoo, struct xtc_handle *handle) |
void | print_rule4 (const struct ipt_entry *e, struct xtc_handle *handle, const char *chain, int counters) |
Variables | |
struct xtables_globals | iptables_globals |
struct xtables_globals | xtables_globals |
int delete_chain4 | ( | const xt_chainlabel | chain, |
int | verbose, | ||
struct xtc_handle * | handle | ||
) |
References for_each_chain4(), and iptc_delete_chain().
Referenced by do_command4(), and iptables_restore_main().
int do_command4 | ( | int | argc, |
char * | argv[], | ||
char ** | table, | ||
struct xtc_handle ** | handle, | ||
bool | restore | ||
) |
References iptables_command_state::argv, xt_counters::bcnt, iptables_command_state::c, CMD_APPEND, CMD_CHECK, CMD_DELETE, CMD_DELETE_CHAIN, CMD_DELETE_NUM, CMD_FLUSH, CMD_INSERT, CMD_LIST, CMD_LIST_RULES, CMD_NEW_CHAIN, CMD_NONE, CMD_RENAME_CHAIN, CMD_REPLACE, CMD_SET_POLICY, CMD_ZERO, CMD_ZERO_NUM, command_default(), ipt_entry::counters, delete_chain4(), dump_entries(), exit_printhelp(), exit_tryhelp(), FALSE, ipt_ip::flags, flush_entries4(), iptables_command_state::fw, generic_opt_check(), ipt_ip::iniface, ipt_ip::iniface_mask, iptables_command_state::invert, ipt_ip::invflags, ipt_entry::ip, IPT_F_FRAG, IPT_F_GOTO, IPT_INV_DSTIP, IPT_INV_SRCIP, iptables_globals, iptc_create_chain(), iptc_delete_num_entry(), iptc_init(), iptc_is_chain(), iptc_rename_chain(), iptc_set_policy(), iptc_strerror(), iptc_zero_counter(), iptables_command_state::jumpto, line, xtables_match::m, xtables_rule_match::match, iptables_command_state::matches, xtables_match::mflags, xtables_match::next, xtables_target::next, xtables_rule_match::next, NULL, OPT_COUNTERS, OPT_DESTINATION, OPT_EXPANDED, OPT_FRAGMENT, OPT_JUMP, OPT_LINENUMBERS, OPT_NUMERIC, OPT_PROTOCOL, OPT_SOURCE, OPT_VERBOSE, OPT_VIANAMEIN, OPT_VIANAMEOUT, iptables_command_state::options, opts, xtables_globals::orig_opts, ipt_ip::outiface, ipt_ip::outiface_mask, PARAMETER_PROBLEM, xt_counters::pcnt, prog_name, prog_vers, ipt_ip::proto, iptables_command_state::protocol, RESOURCE_PROBLEM, size, xtables_target::t, xt_entry_target::target, iptables_command_state::target, xtables_target::tflags, TRUE, xtables_target::used, VERSION_PROBLEM, xs_init_target(), XT_INV_PROTO, xt_params, XT_STANDARD_TARGET, xtables_calloc(), xtables_error, xtables_find_match(), xtables_find_target(), xtables_free_opts(), xtables_ipparse_multiple(), xtables_load_ko(), xtables_lock(), xtables_matches, xtables_modprobe_program, xtables_option_mfcall(), xtables_option_tfcall(), xtables_parse_interface(), xtables_parse_protocol(), xtables_rule_matches_free(), xtables_targets, XTF_LOAD_MUST_SUCCEED, and XTF_TRY_LOAD.
Referenced by iptables_main(), and iptables_restore_main().
int flush_entries4 | ( | const xt_chainlabel | chain, |
int | verbose, | ||
struct xtc_handle * | handle | ||
) |
References for_each_chain4(), and iptc_flush_entries().
Referenced by do_command4(), and iptables_restore_main().
int for_each_chain4 | ( | int(*)(const xt_chainlabel, int, struct xtc_handle *) | fn, |
int | verbose, | ||
int | builtinstoo, | ||
struct xtc_handle * | handle | ||
) |
References iptc_builtin(), iptc_first_chain(), iptc_next_chain(), and xtables_malloc().
Referenced by delete_chain4(), flush_entries4(), and iptables_restore_main().
void print_rule4 | ( | const struct ipt_entry * | e, |
struct xtc_handle * | handle, | ||
const char * | chain, | ||
int | counters | ||
) |
References xtables_target::alias, xt_counters::bcnt, ipt_entry::counters, ipt_ip::dmsk, ipt_ip::dst, ipt_ip::flags, ipt_ip::iniface, ipt_ip::iniface_mask, ipt_ip::invflags, ipt_entry::ip, IPT_F_FRAG, IPT_F_GOTO, IPT_INV_DSTIP, IPT_INV_FRAG, IPT_INV_SRCIP, IPT_INV_VIA_IN, IPT_INV_VIA_OUT, IPT_MATCH_ITERATE, iptc_get_target(), ipt_ip::outiface, ipt_ip::outiface_mask, xt_counters::pcnt, ipt_ip::proto, xtables_target::save, ipt_entry::target_offset, xt_entry_target::target_size, xt_entry_target::u, xt_entry_target::user, XT_INV_PROTO, xtables_find_target(), and XTF_TRY_LOAD.
struct xtables_globals iptables_globals |
Referenced by do_command4(), iptables_main(), iptables_restore_main(), and iptables_save_main().