The Netsukuku Project  0.0.9
An Alternative routing method
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
accept.h File Reference
This graph shows which files directly or indirectly include this file:

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_tableaccept_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
 

Macro Definition Documentation

#define FREE_ACCEPT_TIME   4 /*in seconds*/
#define MAX_ACCEPTS   16
#define MAX_CONNECTIONS   512

Function Documentation

int add_accept ( inet_prefix  ip,
int  replace 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void add_accept_pid ( pid_t  pid,
int  idx,
int  sidx 
)

Here is the caller graph for this function:

int close_accept ( int  idx,
int  sidx 
)

Here is the caller graph for this function:

void del_accept ( int  idx,
int *  sidx 
)

Here is the caller graph for this function:

void destroy_accept_tbl ( void  )

Here is the caller graph for this function:

int find_first_free ( void  )

Here is the caller graph for this function:

int find_free_acp_t ( int  idx)

Here is the caller graph for this function:

int find_ip_acpt ( inet_prefix  ip)

Here is the caller graph for this function:

void init_accept_tbl ( int  startups,
int  accepts,
int  time 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int is_ip_acpt_free ( inet_prefix  ip,
int *  index 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int new_accept ( int  idx,
inet_prefix  ip 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void update_accept_tbl ( void  )

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

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