The Netsukuku Project
0.0.9
An Alternative routing method
|
Go to the source code of this file.
Data Structures | |
struct | accept_table |
Macros | |
#define | MAX_CONNECTIONS 512 |
#define | MAX_ACCEPTS 16 |
#define | FREE_ACCEPT_TIME 4 /*in seconds*/ |
Functions | |
void | init_accept_tbl (int startups, int accepts, int time) |
void | destroy_accept_tbl (void) |
void | update_accept_tbl (void) |
int | find_ip_acpt (inet_prefix ip) |
int | find_first_free (void) |
int | is_ip_acpt_free (inet_prefix ip, int *index) |
int | find_free_acp_t (int idx) |
int | new_accept (int idx, inet_prefix ip) |
int | add_accept (inet_prefix ip, int replace) |
void | del_accept (int idx, int *sidx) |
int | close_accept (int idx, int sidx) |
void | add_accept_pid (pid_t pid, int idx, int sidx) |
Variables | |
struct accept_table * | accept_tbl |
int | accept_idx |
int | accept_sidx |
pthread_mutex_t | mtx_acpt_idx |
pthread_mutex_t | mtx_acpt_sidx |
int | update_accept_tbl_mutex |
int | max_connections |
int | max_accepts_per_host |
int | free_accept_time |
#define FREE_ACCEPT_TIME 4 /*in seconds*/ |
#define MAX_ACCEPTS 16 |
#define MAX_CONNECTIONS 512 |
int add_accept | ( | inet_prefix | ip, |
int | replace | ||
) |
void add_accept_pid | ( | pid_t | pid, |
int | idx, | ||
int | sidx | ||
) |
int close_accept | ( | int | idx, |
int | sidx | ||
) |
void del_accept | ( | int | idx, |
int * | sidx | ||
) |
void destroy_accept_tbl | ( | void | ) |
int find_first_free | ( | void | ) |
int find_free_acp_t | ( | int | idx | ) |
int find_ip_acpt | ( | inet_prefix | ip | ) |
void init_accept_tbl | ( | int | startups, |
int | accepts, | ||
int | time | ||
) |
int is_ip_acpt_free | ( | inet_prefix | ip, |
int * | index | ||
) |
int new_accept | ( | int | idx, |
inet_prefix | ip | ||
) |
void update_accept_tbl | ( | void | ) |
int accept_idx |
int accept_sidx |
struct accept_table* accept_tbl |
int free_accept_time |
int max_accepts_per_host |
int max_connections |
pthread_mutex_t mtx_acpt_idx |
pthread_mutex_t mtx_acpt_sidx |
int update_accept_tbl_mutex |