netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ui.h File Reference
#include <stdbool.h>
#include <libipset/linux_ip_set.h>
Include dependency graph for ui.h:
This graph shows which files directly or indirectly include this file:

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 []
 

Macro Definition Documentation

#define IPSET_CMD_ALIASES   3

Referenced by ipset_match_cmd().

Function Documentation

bool ipset_match_cmd ( const char *  arg,
const char *const  name[] 
)

References IPSET_CMD_ALIASES, len, NULL, and STRNEQ.

Referenced by parse_commandline().

Here is the caller graph for this function:

bool ipset_match_envopt ( const char *  arg,
const char *const  name[] 
)

References NULL, and STREQ.

Referenced by parse_commandline().

Here is the caller graph for this function:

bool ipset_match_option ( const char *  arg,
const char *const  name[] 
)

References NULL, and STREQ.

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.

Here is the call graph for this function:

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().

Here is the caller graph for this function:

Variable Documentation