#include <stdio.h>#include <string.h>#include <stdlib.h>#include <assert.h>#include "../../mem/shm_mem.h"#include "../../locking.h"#include "../../timer.h"#include "../../ip_addr.h"#include "../../resolve.h"#include "ip_tree.h"#include "pike_funcs.h"#include "timer.h"

Go to the source code of this file.
Functions | |
| void | clean_routine (unsigned int ticks, void *param) |
| int | pike_check_req (struct sip_msg *msg, char *foo, char *bar) |
| static void | refresh_node (struct ip_node *node) |
| void | swap_routine (unsigned int ticks, void *param) |
Variables | |
| int | pike_log_level |
| int | timeout |
| struct list_link * | timer |
| Timer handler. | |
| gen_lock_t * | timer_lock |
| void clean_routine | ( | unsigned int | ticks, | |
| void * | param | |||
| ) |
Definition at line 166 of file pike_funcs.c.
References append_to_timer(), ip_node::branch, ip_node::byte, check_and_split_timer(), CURR_POS, ip_node::expires, ip_node::flags, get_ticks(), has_timer_set, ip_node::hits, is_list_empty, ip_node::kids, ip_node::leaf_hits, ll2ipnode, LM_DBG, lock_tree_branch(), mask, MAX_IP_BRANCHES, ip_node::next, list_link::next, NODE_EXPIRED_FLAG, NODE_INTIMER_FLAG, NODE_IPLEAF_FLAG, ip_node::prev, list_link::prev, PREV_POS, remove_node(), timeout, ip_node::timer_ll, timer_lock, and unlock_tree_branch().
Referenced by pike_init().
| int pike_check_req | ( | struct sip_msg * | msg, | |
| char * | foo, | |||
| char * | bar | |||
| ) |
Definition at line 60 of file pike_funcs.c.
References ip_addr::addr, append_to_timer(), CURR_POS, ip_node::expires, ip_node::flags, get_ticks(), has_timer_set, HDR_VIA1_F, ip_node::hits, via_body::host, ip_addr2a(), ip_node::kids, ip_node::leaf_hits, ip_addr::len, LM_DBG, LM_GEN1, lock_tree_branch(), mark_node(), NEW_NODE, NEWRED_NODE, ip_node::next, NO_UPDATE, NODE_EXPIRED_FLAG, NODE_INTIMER_FLAG, NODE_IPLEAF_FLAG, parse_headers(), pike_log_level, PREV_POS, sip_msg::rcv, RED_NODE, remove_from_timer(), receive_info::src_ip, str2ip(), timeout, ip_node::timer_ll, timer_lock, ip_addr::u, unlock_tree_branch(), update_in_timer, and sip_msg::via1.
| static void refresh_node | ( | struct ip_node * | node | ) | [inline, static] |
Definition at line 268 of file pike_funcs.c.
References CURR_POS, ip_node::flags, ip_node::hits, is_node_hot_leaf(), ip_node::kids, ip_node::leaf_hits, LM_GEN1, ip_node::next, NODE_ISRED_FLAG, pike_log_level, and PREV_POS.
Referenced by swap_routine().
| void swap_routine | ( | unsigned int | ticks, | |
| void * | param | |||
| ) |
Definition at line 287 of file pike_funcs.c.
References get_tree_branch(), lock_tree_branch(), MAX_IP_BRANCHES, refresh_node(), and unlock_tree_branch().
Referenced by pike_init().
| int pike_log_level |
| int timeout |
Definition at line 65 of file pike.c.
Referenced by check_timeout_in_report_queue(), clean_routine(), dispatch_actions(), dlg_onroute(), pike_check_req(), set_1timer(), set_timer(), setAdditionalServerParms(), spawn_pinger(), and tls_blocking_write().
| gen_lock_t* timer_lock |
Definition at line 69 of file pike.c.
Referenced by clean_routine(), pike_check_req(), pike_exit(), and pike_init().
1.5.6