Kannel: Open Source WAP and SMS gateway
svn-r5336
|
#include <string.h>
#include <fcntl.h>
#include <errno.h>
#include "gwlib/gwlib.h"
#include "radius/radius_acct.h"
#include "radius/radius_pdu.h"
Go to the source code of this file.
Macros | |
#define | RADIUS_NAS_PORTS 30 |
Functions | |
static int | update_tables (RADIUS_PDU *pdu) |
static void | proxy_thread (void *arg) |
Octstr * | radius_acct_get_msisdn (Octstr *client_ip) |
void | radius_acct_init (CfgGroup *grp) |
void | radius_acct_shutdown (void) |
Variables | |
static Dict * | radius_table = NULL |
static Dict * | session_table = NULL |
static Dict * | client_table = NULL |
static Mutex * | radius_mutex = NULL |
static int | run_thread = 0 |
static Octstr * | our_host = NULL |
static long | our_port = 1813 |
static Octstr * | remote_host = NULL |
static long | remote_port = 1813 |
static Octstr * | secret_nas = NULL |
static Octstr * | secret_radius = NULL |
static Octstr * | unified_prefix = NULL |
static long | remote_timeout = 40000 |
#define RADIUS_NAS_PORTS 30 |
Definition at line 76 of file radius_acct.c.
Referenced by radius_acct_init().
|
static |
Definition at line 215 of file radius_acct.c.
References client_table, debug(), dict_key_count(), error(), info(), mutex_lock, mutex_unlock, octstr_destroy(), octstr_dump, octstr_duplicate, octstr_get_cstr, our_host, our_port, panic, radius_authenticate_pdu(), radius_mutex, radius_pdu_create(), radius_pdu_destroy(), radius_pdu_pack(), radius_pdu_unpack(), radius_table, read_available(), remote_host, remote_port, remote_timeout, run_thread, secret_nas, session_table, RADIUS_PDU::type_name, RADIUS_PDU::u, udp_bind(), udp_client_socket(), udp_create_address(), udp_get_ip(), udp_get_port(), udp_recvfrom(), udp_sendto(), update_tables(), and warning().
Referenced by radius_acct_init(), and radius_acct_shutdown().
Definition at line 363 of file radius_acct.c.
References dict_get(), mutex_lock, mutex_unlock, normalize_number(), octstr_duplicate, octstr_get_cstr, radius_mutex, radius_table, and unified_prefix.
Referenced by add_msisdn(), and start_fetch().
void radius_acct_init | ( | CfgGroup * | grp | ) |
Definition at line 384 of file radius_acct.c.
References cfg_get, cfg_get_integer(), client_table, dict_create(), gwthread_create, info(), mutex_create, octstr_create, octstr_destroy(), octstr_get_cstr, octstr_imm(), our_host, our_port, panic, proxy_thread(), radius_mutex, RADIUS_NAS_PORTS, radius_table, remote_host, remote_port, remote_timeout, secret_nas, secret_radius, session_table, and unified_prefix.
Referenced by init_wapbox().
void radius_acct_shutdown | ( | void | ) |
Definition at line 432 of file radius_acct.c.
References client_table, dict_destroy(), gwthread_join_every(), info(), mutex_destroy(), mutex_lock, mutex_unlock, octstr_destroy(), our_host, proxy_thread(), radius_mutex, radius_table, remote_host, run_thread, secret_nas, secret_radius, session_table, and unified_prefix.
Referenced by main().
|
static |
Definition at line 110 of file radius_acct.c.
References RADIUS_PDU::attr, client_table, dict_get(), dict_put(), dict_remove(), error(), info(), octstr_compare(), octstr_destroy(), octstr_duplicate, octstr_get_cstr, octstr_imm(), radius_table, session_table, RADIUS_PDU::type, type, and warning().
Referenced by proxy_thread().
|
static |
Definition at line 73 of file radius_acct.c.
Referenced by proxy_thread(), radius_acct_init(), radius_acct_shutdown(), and update_tables().
|
static |
Definition at line 86 of file radius_acct.c.
Referenced by conn_open_tcp(), conn_open_tcp_nb(), conn_open_tcp_nb_with_port(), conn_open_tcp_with_port(), conn_pool_get(), conn_pool_key(), connect_to_bearerbox(), connect_to_bearerbox_real(), http_set_interface(), proxy_thread(), radius_acct_init(), and radius_acct_shutdown().
|
static |
Definition at line 87 of file radius_acct.c.
Referenced by conn_open_tcp_nb_with_port(), conn_open_tcp_with_port(), proxy_thread(), radius_acct_init(), smpp_create(), smsc_cgw_create(), smsc_emi2_create(), smsc_open(), smsc_smpp_create(), tcpip_connect_nb_to_server_with_port(), and tcpip_connect_to_server_with_port().
|
static |
Definition at line 78 of file radius_acct.c.
Referenced by proxy_thread(), radius_acct_get_msisdn(), radius_acct_init(), and radius_acct_shutdown().
|
static |
Definition at line 71 of file radius_acct.c.
Referenced by proxy_thread(), radius_acct_get_msisdn(), radius_acct_init(), radius_acct_shutdown(), server(), and update_tables().
|
static |
Definition at line 88 of file radius_acct.c.
Referenced by proxy_thread(), radius_acct_init(), and radius_acct_shutdown().
|
static |
Definition at line 89 of file radius_acct.c.
Referenced by proxy_thread(), and radius_acct_init().
|
static |
Definition at line 99 of file radius_acct.c.
Referenced by proxy_thread(), and radius_acct_init().
|
static |
Definition at line 79 of file radius_acct.c.
Referenced by proxy_thread(), and radius_acct_shutdown().
|
static |
Definition at line 92 of file radius_acct.c.
Referenced by proxy_thread(), radius_acct_init(), and radius_acct_shutdown().
|
static |
Definition at line 93 of file radius_acct.c.
Referenced by radius_acct_init(), and radius_acct_shutdown().
|
static |
Definition at line 72 of file radius_acct.c.
Referenced by proxy_thread(), radius_acct_init(), radius_acct_shutdown(), and update_tables().
|
static |
Definition at line 96 of file radius_acct.c.
Referenced by radius_acct_get_msisdn(), radius_acct_init(), and radius_acct_shutdown().