Data Structures | |
struct | ipset_commands |
struct | ipset_envopts |
Macros | |
#define | IPSET_CMD_ALIASES 3 |
Functions | |
bool | ipset_match_cmd (const char *arg, const char *const name[]) |
bool | ipset_match_option (const char *arg, const char *const name[]) |
bool | ipset_match_envopt (const char *arg, const char *const name[]) |
void | ipset_shift_argv (int *argc, char *argv[], int from) |
ipset_shift_argv - shift off an argument : argument count : array of argument strings : from where shift off an argument More... | |
void | ipset_port_usage (void) |
ipset_port_usage - prints the usage for the port parameter More... | |
int | ipset_parse_file (struct ipset_session *s, int opt, const char *str) |
Variables | |
const struct ipset_commands | ipset_commands [] |
const struct ipset_envopts | ipset_envopts [] |
#define IPSET_CMD_ALIASES 3 |
Referenced by ipset_match_cmd().
bool ipset_match_cmd | ( | const char * | arg, |
const char *const | name[] | ||
) |
References IPSET_CMD_ALIASES, len, NULL, and STRNEQ.
Referenced by parse_commandline().
bool ipset_match_envopt | ( | const char * | arg, |
const char *const | name[] | ||
) |
int ipset_parse_file | ( | struct ipset_session * | s, |
int | opt, | ||
const char * | str | ||
) |
void ipset_port_usage | ( | void | ) |
ipset_port_usage - prints the usage for the port parameter
Print the usage for the port parameter to stdout.
References id_to_icmp(), id_to_icmpv6(), name, and NULL.
void ipset_shift_argv | ( | int * | argc, |
char * | argv[], | ||
int | from | ||
) |
ipset_shift_argv - shift off an argument : argument count : array of argument strings : from where shift off an argument
Shift off the argument at "from" from the array of arguments argv of size argc.
Referenced by parse_commandline().
const struct ipset_commands ipset_commands[] |
const struct ipset_envopts ipset_envopts[] |