#include "iptables_common.h"
#include "libiptc/libiptc.h"
Go to the source code of this file.
|
void | register_match (struct iptables_match *me) |
|
void | register_target (struct iptables_target *me) |
|
struct in_addr * | dotted_to_addr (const char *dotted) |
|
char * | addr_to_dotted (const struct in_addr *addrp) |
|
char * | addr_to_anyname (const struct in_addr *addr) |
|
char * | mask_to_dotted (const struct in_addr *mask) |
|
void | parse_hostnetworkmask (const char *name, struct in_addr **addrpp, struct in_addr *maskp, unsigned int *naddrs) |
|
u_int16_t | parse_protocol (const char *s) |
|
void | parse_interface (const char *arg, char *vianame, unsigned char *mask) |
|
int | do_command (int argc, char *argv[], char **table, iptc_handle_t *handle) |
|
struct iptables_target * | find_target (const char *name, enum ipt_tryload) |
|
struct iptables_match * | find_match (const char *name, enum ipt_tryload, struct iptables_rule_match **match) |
|
int | delete_chain (const ipt_chainlabel chain, int verbose, iptc_handle_t *handle) |
|
int | flush_entries (const ipt_chainlabel chain, int verbose, iptc_handle_t *handle) |
|
int | for_each_chain (int(*fn)(const ipt_chainlabel, int, iptc_handle_t *), int verbose, int builtinstoo, iptc_handle_t *handle) |
|
void | get_kernel_version (void) |
|
#define IPT_LIB_DIR "/usr/local/lib/iptables" |
#define IPT_SO_GET_REVISION_MATCH (IPT_BASE_CTL + 2) |
#define IPT_SO_GET_REVISION_TARGET (IPT_BASE_CTL + 3) |
#define LINUX_VERSION |
( |
|
x, |
|
|
|
y, |
|
|
|
z |
|
) |
| (0x10000*(x) + 0x100*(y) + z) |
#define LINUX_VERSION_MAJOR |
( |
|
x | ) |
(((x)>>16) & 0xFF) |
#define LINUX_VERSION_MINOR |
( |
|
x | ) |
(((x)>> 8) & 0xFF) |
#define LINUX_VERSION_PATCH |
( |
|
x | ) |
( (x) & 0xFF) |
Enumerator |
---|
DONT_LOAD |
|
TRY_LOAD |
|
LOAD_MUST_SUCCEED |
|
char* addr_to_anyname |
( |
const struct in_addr * |
addr | ) |
|
char* addr_to_dotted |
( |
const struct in_addr * |
addrp | ) |
|
int do_command |
( |
int |
argc, |
|
|
char * |
argv[], |
|
|
char ** |
table, |
|
|
iptc_handle_t * |
handle |
|
) |
| |
struct in_addr* dotted_to_addr |
( |
const char * |
dotted | ) |
|
struct iptables_target* find_target |
( |
const char * |
name, |
|
|
enum |
ipt_tryload |
|
) |
| |
void get_kernel_version |
( |
void |
| ) |
|
char* mask_to_dotted |
( |
const struct in_addr * |
mask | ) |
|
void parse_hostnetworkmask |
( |
const char * |
name, |
|
|
struct in_addr ** |
addrpp, |
|
|
struct in_addr * |
maskp, |
|
|
unsigned int * |
naddrs |
|
) |
| |
void parse_interface |
( |
const char * |
arg, |
|
|
char * |
vianame, |
|
|
unsigned char * |
mask |
|
) |
| |
u_int16_t parse_protocol |
( |
const char * |
s | ) |
|