#include <linux/version.h>
#include "libiptc/libiptc.h"
#include <linux/netfilter/nf_conntrack_common.h>
#include "libiptc/ipt_conntrack.h"
#include "libiptc/ipt_connmark.h"
#include "libiptc/ipt_CONNMARK.h"
Go to the source code of this file.
|
int | table_init (const char *table, iptc_handle_t *t) |
|
int | insert_rule (const char *rule, iptc_handle_t *t, const char *chain, int pos) |
|
int | append_rule (const char *rule, iptc_handle_t *t, const char *chain) |
|
int | commit_rules (iptc_handle_t *t) |
|
void | restore_output_rule_init (char *rule) |
|
void | ntk_forward_rule_init (char *rule) |
|
void | mark_rule_init (char *rule, char *outiface, int outiface_num) |
|
void | igw_mark_rule_init (char *rule) |
|
int | ntk_mark_chain_init (iptc_handle_t *t) |
|
int | store_rules () |
|
int | mark_init (int igw) |
|
int | count_ntk_mark_chain (iptc_handle_t *t) |
|
int | create_mark_rules (int n) |
|
int | delete_ntk_forward_chain (iptc_handle_t *t) |
|
int | delete_first_rule (iptc_handle_t *t, const char *chain) |
|
int | rule_position (rule_store *rule, iptc_handle_t *t) |
|
int | delete_rule (rule_store *rule, iptc_handle_t *t) |
|
int | mark_close () |
|
#define CHAIN_FORWARD "FORWARD" |
#define CHAIN_OUTPUT "OUTPUT" |
#define CHAIN_POSTROUTING "POSTROUTING" |
#define CHAIN_POSTROUTING "POSTROUTING" |
#define CHAIN_PREROUTING "PREROUTING" |
#define FILTER_TABLE "filter" |
#define IPT_ENTRY_MATCH_SZ sizeof(struct ipt_entry_match) |
#define IPT_ENTRY_SZ sizeof(struct ipt_entry) |
#define IPT_ENTRY_TARGET_SZ sizeof(struct ipt_entry_target) |
#define MANGLE_TABLE "mangle" |
#define MARK_TARGET "MARK" |
#define MAX_MARK_RULES 100 |
#define MOD_CONNMARK "CONNMARK" |
#define MOD_CONNTRACK "conntrack" |
#define NTK_MARK_CHAIN "ntk_mark_chain" |
#define NTK_NET_MASK_STR "255.0.0.0" |
#define NTK_NET_STR "10.0.0.0" |
int append_rule |
( |
const char * |
rule, |
|
|
iptc_handle_t * |
t, |
|
|
const char * |
chain |
|
) |
| |
int create_mark_rules |
( |
int |
n | ) |
|
void igw_mark_rule_init |
( |
char * |
rule | ) |
|
int insert_rule |
( |
const char * |
rule, |
|
|
iptc_handle_t * |
t, |
|
|
const char * |
chain, |
|
|
int |
pos |
|
) |
| |
void mark_rule_init |
( |
char * |
rule, |
|
|
char * |
outiface, |
|
|
int |
outiface_num |
|
) |
| |
void ntk_forward_rule_init |
( |
char * |
rule | ) |
|
void restore_output_rule_init |
( |
char * |
rule | ) |
|