Data Structures | |
struct | arpt_entry_match |
struct | arptables_match |
struct | arptables_target |
Enumerations | |
enum | arpt_tryload { DONT_LOAD, TRY_LOAD, LOAD_MUST_SUCCEED } |
Variables | |
struct arptables_match * | arptables_matches |
struct arptables_target * | arptables_targets |
enum arpt_tryload |
char* addr_to_anyname | ( | const struct in_addr * | addr | ) |
char* addr_to_dotted | ( | const struct in_addr * | addrp | ) |
References buf.
Referenced by addr_to_anyname(), and mask_to_dotted().
int delete_chain | ( | const arpt_chainlabel | chain, |
int | verbose, | ||
arptc_handle_t * | handle | ||
) |
References arptc_delete_chain(), delete_chain(), and for_each_chain().
Referenced by delete_chain(), and do_command().
int do_command | ( | int | argc, |
char * | argv[], | ||
char ** | table, | ||
arptc_handle_t * | handle | ||
) |
References arpt_devaddr_info::addr, arpt_arp::arhln, arpt_arp::arhln_mask, arpt_arp::arhrd, arpt_arp::arhrd_mask, arpt_entry::arp, arpt_arp::arpop, arpt_arp::arpop_mask, arpt_arp::arpro, arpt_arp::arpro_mask, ARPT_ALIGN, ARPT_FUNCTION_MAXNAMELEN, ARPT_INV_SRCIP, ARPT_INV_TGTIP, ARPT_STANDARD_TARGET, arptables_insmod(), arptc_create_chain(), arptc_delete_num_entry(), arptc_init(), arptc_is_chain(), arptc_rename_chain(), arptc_set_policy(), arptc_strerror(), arpt_counters::bcnt, check_inverse(), CMD_APPEND, CMD_DELETE, CMD_DELETE_CHAIN, CMD_DELETE_NUM, CMD_FLUSH, CMD_INSERT, CMD_LIST, CMD_NEW_CHAIN, CMD_NONE, CMD_RENAME_CHAIN, CMD_REPLACE, CMD_SET_POLICY, CMD_ZERO, arpt_entry::counters, delete_chain(), dump_entries(), exit_error(), exit_printhelp(), exit_tryhelp(), arptables_target::extra_opts, FALSE, arptables_target::final_check, find_match(), find_target(), flush_entries(), get16_and_mask(), getlength_and_mask(), getmac_and_mask(), arpt_arp::iniface, arpt_arp::iniface_mask, arptables_target::init, arpt_arp::invflags, LOAD_MUST_SUCCEED, arpt_devaddr_info::mask, arptables_target::next, NULL, NUMOPCODES, OPT_COUNTERS, OPT_D_IP, OPT_D_MAC, OPT_H_LENGTH, OPT_H_TYPE, OPT_JUMP, OPT_LINENUMBERS, OPT_NUMERIC, OPT_OPCODE, OPT_P_TYPE, OPT_S_IP, OPT_S_MAC, OPT_VERBOSE, OPT_VIANAMEIN, OPT_VIANAMEOUT, arptables_target::option_offset, opts, arpt_arp::outiface, arpt_arp::outiface_mask, PARAMETER_PROBLEM, arptables_target::parse, parse_hostnetworkmask(), arpt_counters::pcnt, program_name, program_version, RUNTIME_NF_ARP_NUMHOOKS, arptables_target::size, size, arpt_arp::src_devaddr, arptables_target::t, arpt_entry_target::target_size, arptables_target::tflags, arpt_arp::tgt_devaddr, arpt_arp::tmsk, TRUE, TRY_LOAD, arpt_entry_target::u, arptables_target::used, arpt_entry_target::user, and VERSION_PROBLEM.
Referenced by main().
struct in_addr* dotted_to_addr | ( | const char * | dotted | ) |
References buf, NULL, and string_to_number().
Referenced by parse_hostnetwork().
struct arptables_match* find_match | ( | const char * | name, |
enum | arpt_tryload | ||
) |
References DONT_LOAD, exit_error(), LOAD_MUST_SUCCEED, arptables_match::loaded, arptables_match::name, arptables_match::next, NULL, PARAMETER_PROBLEM, and arptables_match::used.
Referenced by do_command(), and register_match().
struct arptables_target* find_target | ( | const char * | name, |
enum | arpt_tryload | ||
) |
References ARPTC_LABEL_ACCEPT, ARPTC_LABEL_DROP, ARPTC_LABEL_QUEUE, ARPTC_LABEL_RETURN, DONT_LOAD, exit_error(), LOAD_MUST_SUCCEED, arptables_target::loaded, arptables_target::name, arptables_target::next, NULL, PARAMETER_PROBLEM, and arptables_target::used.
Referenced by do_command(), and register_target().
int flush_entries | ( | const arpt_chainlabel | chain, |
int | verbose, | ||
arptc_handle_t * | handle | ||
) |
References arptc_flush_entries(), flush_entries(), and for_each_chain().
Referenced by do_command(), and flush_entries().
int for_each_chain | ( | int(*)(const arpt_chainlabel, int, arptc_handle_t *) | fn, |
int | verbose, | ||
int | builtinstoo, | ||
arptc_handle_t * | handle | ||
) |
References arptc_builtin(), arptc_first_chain(), and arptc_next_chain().
Referenced by delete_chain(), and flush_entries().
char* mask_to_dotted | ( | const struct in_addr * | mask | ) |
References dotted_to_addr(), exit_error(), NULL, and PARAMETER_PROBLEM.
Referenced by parse_hostnetworkmask().
void parse_hostnetworkmask | ( | const char * | name, |
struct in_addr ** | addrpp, | ||
struct in_addr * | maskp, | ||
unsigned int * | naddrs | ||
) |
References buf, NULL, and parse_hostnetwork().
Referenced by do_command(), and do_commandarp().
u_int16_t parse_protocol | ( | const char * | s | ) |
void print_mac | ( | const unsigned char * | mac, |
int | l | ||
) |
void register_match | ( | struct arptables_match * | me | ) |
References ARPT_ALIGN, DONT_LOAD, find_match(), arptables_match::m, arptables_match::mflags, arptables_match::name, arptables_match::next, NULL, program_name, program_version, arptables_match::size, and arptables_match::version.
void register_target | ( | struct arptables_target * | me | ) |
References ARPT_ALIGN, arptables_targets, DONT_LOAD, find_target(), arptables_target::name, arptables_target::next, NULL, program_name, program_version, arptables_target::size, arptables_target::t, arptables_target::tflags, and arptables_target::version.
struct arptables_match* arptables_matches |
struct arptables_target* arptables_targets |
Referenced by register_target().