The Netsukuku Project
0.0.9
An Alternative routing method
|
#include "includes.h"
#include "request.h"
#include "inet.h"
#include "accept.h"
#include "xmalloc.h"
#include "log.h"
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) |
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 | ) |