#include <assert.h>#include <ctype.h>#include <errno.h>#include <stdarg.h>#include <stdbool.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <config.h>#include <libipset/debug.h>#include <libipset/data.h>#include <libipset/parse.h>#include <libipset/session.h>#include <libipset/types.h>#include <libipset/ui.h>#include <libipset/utils.h>
Enumerations | |
| enum | exittype { OTHER_PROBLEM = 1, PARAMETER_PROBLEM, VERSION_PROBLEM, OTHER_PROBLEM = 1, PARAMETER_PROBLEM, VERSION_PROBLEM, NO_PROBLEM = 0, OTHER_PROBLEM, PARAMETER_PROBLEM, VERSION_PROBLEM, SESSION_PROBLEM } |
Functions | |
| int | ipset_parse_file (struct ipset_session *s UNUSED, int opt UNUSED, const char *str) |
| int | parse_commandline (int argc, char *argv[]) |
| int | main (int argc, char *argv[]) |
| enum exittype |
| int ipset_parse_file | ( | struct ipset_session *s | UNUSED, |
| int opt | UNUSED, | ||
| const char * | str | ||
| ) |
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
References exit_error(), ipset_load_types(), ipset_session_fini(), ipset_session_init(), NULL, OTHER_PROBLEM, and parse_commandline().

| int parse_commandline | ( | int | argc, |
| char * | argv[] | ||
| ) |
References ipset_type::args, ipset_commands::cmd, command, D, ipset_type::description, exit_error(), ipset_type::family, ipset_envopts::flag, ipset_commands::has_arg, ipset_envopts::has_arg, IPSET_CMD_ADD, IPSET_CMD_CREATE, IPSET_CMD_DEL, IPSET_CMD_DESTROY, IPSET_CMD_FLUSH, IPSET_CMD_HELP, IPSET_CMD_LIST, IPSET_CMD_NONE, IPSET_CMD_QUIT, IPSET_CMD_RENAME, IPSET_CMD_RESTORE, IPSET_CMD_SAVE, IPSET_CMD_SWAP, IPSET_CMD_TEST, IPSET_CMD_VERSION, IPSET_CREATE, IPSET_ENV_QUIET, ipset_envopt_parse(), ipset_envopt_test(), IPSET_MANDATORY_ARG, IPSET_MANDATORY_ARG2, ipset_match_cmd(), ipset_match_envopt(), IPSET_NO_ARG, IPSET_OPT_SETNAME2, IPSET_OPT_TYPENAME, IPSET_OPTIONAL_ARG, ipset_parse_elem(), ipset_parse_setname(), ipset_parse_typename(), IPSET_PROTOCOL, ipset_session_lineno(), ipset_session_report_reset(), ipset_session_warning(), IPSET_SETNAME, ipset_shift_argv(), ipset_type_get(), ipset_types(), ipset_type::last_elem_optional, ipset_commands::name, ipset_envopts::name, ipset_type::name, ipset_type::next, NFPROTO_IPSET_IPV46, NFPROTO_IPV4, NFPROTO_UNSPEC, NO_PROBLEM, NULL, opt, OTHER_PROBLEM, PARAMETER_PROBLEM, ipset_envopts::parse, program_name, program_version, ipset_type::revision, STREQ, type, ipset_type::usage, and ipset_type::usagefn.
Referenced by main().

