The Netsukuku Project  0.0.9
An Alternative routing method
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
mark.c File Reference
#include "includes.h"
#include "config.h"
#include <fcntl.h>
#include "iptunnel.h"
#include "mark.h"
#include "err_errno.h"
#include "log.h"
Include dependency graph for mark.c:

Functions

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 dump_rules ()
 
int load_dump_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 ()
 

Variables

static int death_loop_rule
 
static int clean_on_exit
 
static rule_store rr
 
static rule_store fr
 
static rule_store dr
 
static int dumped
 

Function Documentation

int append_rule ( const char *  rule,
iptc_handle_t t,
const char *  chain 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int commit_rules ( iptc_handle_t t)

Here is the call graph for this function:

Here is the caller graph for this function:

int count_ntk_mark_chain ( iptc_handle_t t)

Here is the call graph for this function:

Here is the caller graph for this function:

int create_mark_rules ( int  n)

Here is the call graph for this function:

Here is the caller graph for this function:

int delete_first_rule ( iptc_handle_t t,
const char *  chain 
)

Here is the call graph for this function:

int delete_ntk_forward_chain ( iptc_handle_t t)

Here is the call graph for this function:

Here is the caller graph for this function:

int delete_rule ( rule_store rule,
iptc_handle_t t 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int dump_rules ( )

Here is the call graph for this function:

Here is the caller graph for this function:

void igw_mark_rule_init ( char *  rule)

Here is the caller graph for this function:

int insert_rule ( const char *  rule,
iptc_handle_t t,
const char *  chain,
int  pos 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int load_dump_rules ( )

Here is the call graph for this function:

Here is the caller graph for this function:

int mark_close ( )

Here is the call graph for this function:

Here is the caller graph for this function:

int mark_init ( int  igw)

Here is the call graph for this function:

Here is the caller graph for this function:

void mark_rule_init ( char *  rule,
char *  outiface,
int  outiface_num 
)

Here is the caller graph for this function:

void ntk_forward_rule_init ( char *  rule)

Here is the caller graph for this function:

int ntk_mark_chain_init ( iptc_handle_t t)

Here is the call graph for this function:

Here is the caller graph for this function:

void restore_output_rule_init ( char *  rule)

Here is the caller graph for this function:

int rule_position ( rule_store rule,
iptc_handle_t t 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int store_rules ( )

Here is the call graph for this function:

Here is the caller graph for this function:

int table_init ( const char *  table,
iptc_handle_t t 
)

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

int clean_on_exit
static
int death_loop_rule
static
rule_store dr
static
int dumped
static
rule_store fr
static
rule_store rr
static