jabberd2
2.7.0
|
Go to the source code of this file.
Data Structures | |
struct | acl_s |
struct | router_st |
struct | component_st |
a single component More... | |
struct | routes_st |
struct | alias_st |
union | xhashv |
session packet handling More... | |
Typedefs | |
typedef struct router_st * | router_t |
typedef struct component_st * | component_t |
typedef struct routes_st * | routes_t |
typedef struct alias_st * | alias_t |
typedef struct acl_s * | acl_t |
Enumerations | |
enum | route_type_t { route_SINGLE = 0x00, route_MULTI_TO = 0x10, route_MULTI_FROM = 0x11, route_NONE = 0x00, route_UNICAST = 0x10, route_BROADCAST = 0x11, route_ADV = 0x20, route_ADV_UN = 0x21, route_ERROR = 0x40 } |
route types More... | |
Functions | |
int | router_mio_callback (mio_t m, mio_action_t a, mio_fd_t fd, void *data, void *arg) |
void | router_sx_handshake (sx_t s, sx_buf_t buf, void *arg) |
xht | aci_load (router_t r) |
void | aci_unload (xht aci) |
unload aci table More... | |
int | aci_check (xht acls, const char *type, const char *name) |
see if a username is in an acl More... | |
int | user_table_load (router_t r) |
user table manager More... | |
void | user_table_unload (router_t r) |
int | filter_load (router_t r) |
void | filter_unload (router_t r) |
filter manager More... | |
int | filter_packet (router_t r, nad_t nad) |
int | message_log (nad_t nad, router_t r, const char *msg_from, const char *msg_to) |
void | routes_free (routes_t routes) |
typedef struct component_st* component_t |
enum route_type_t |
route types
int router_mio_callback | ( | mio_t | m, |
mio_action_t | a, | ||
mio_fd_t | fd, | ||
void * | data, | ||
void * | arg | ||
) |
Definition at line 1028 of file router.c.
References _router_accept_check(), _router_route_unbind_walker(), _router_sx_callback(), action_ACCEPT, action_CLOSE, action_READ, action_WRITE, router_st::byte_rate_seconds, router_st::byte_rate_total, router_st::byte_rate_wait, router_st::components, mio_fd_st::fd, router_st::fd, INET6_ADDRSTRLEN, component_st::ip, j_inet_getport(), jqueue_free(), jqueue_push(), component_st::last_activity, router_st::log, log_debug, log_write(), mio_app, component_st::port, component_st::r, rate_free(), rate_new(), router_mio_callback(), component_st::routes, component_st::s, sx_can_read(), sx_can_write(), router_st::sx_env, sx_kill(), sx_new(), SX_SASL_OFFER, sx_server_init(), SX_SSL_STARTTLS_OFFER, xhash_free(), xhash_new(), xhash_put(), xhash_walk(), xhash_zap(), and ZONE.
Referenced by JABBER_MAIN(), and router_mio_callback().
Definition at line 31 of file aci.c.
References router_st::config, log_debug, config_st::nad, NAD_AVAL, NAD_AVAL_L, NAD_CDATA, NAD_CDATA_L, nad_find_attr(), nad_find_elem(), aci_user_st::name, aci_user_st::next, pstrdup(), xhash_new(), xhash_pool(), xhash_put(), and ZONE.
Referenced by JABBER_MAIN().
int aci_check | ( | xht | acls, |
const char * | type, | ||
const char * | name | ||
) |
see if a username is in an acl
Definition at line 93 of file aci.c.
References log_debug, aci_user_st::name, aci_user_st::next, xhash_get(), and ZONE.
Referenced by _announce_pkt_sm(), _disco_pkt_sm(), and _router_process_bind().
int user_table_load | ( | router_t | r | ) |
user table manager
Definition at line 25 of file user.c.
References router_st::config, config_get_one(), router_st::log, log_debug, log_write(), NAD_CDATA, NAD_CDATA_L, nad_find_elem(), nad_free(), nad_parse(), pstrdupx(), router_st::users, router_st::users_load, xhash_free(), xhash_new(), xhash_pool(), xhash_put(), and ZONE.
Referenced by JABBER_MAIN().
void user_table_unload | ( | router_t | r | ) |
Definition at line 113 of file user.c.
References router_st::users, and xhash_free().
Referenced by JABBER_MAIN().
int filter_load | ( | router_t | r | ) |
Definition at line 43 of file filter.c.
References _stanza_errors, _stanza_error_st::code, router_st::config, config_get_one(), acl_s::dump, acl_s::error, router_st::filter, router_st::filter_load, filter_unload(), acl_s::from, acl_s::log, router_st::log, log_debug, log_write(), NAD_AVAL, NAD_AVAL_L, nad_find_attr(), nad_find_elem(), nad_parse(), acl_s::next, acl_s::redirect, acl_s::redirect_len, stanza_err_BAD_REQUEST, stanza_err_NOT_ALLOWED, stanza_err_REDIRECT, acl_s::to, acl_s::what, and ZONE.
Referenced by JABBER_MAIN().
void filter_unload | ( | router_t | r | ) |
filter manager
Definition at line 25 of file filter.c.
References acl_s::dump, router_st::filter, acl_s::from, acl_s::next, acl_s::redirect, acl_s::to, and acl_s::what.
Referenced by filter_load(), and JABBER_MAIN().
Definition at line 202 of file filter.c.
References acl_s::dump, acl_s::error, router_st::filter, acl_s::from, acl_s::log, router_st::log, log_debug, log_write(), NAD_AVAL, NAD_AVAL_L, nad_find_attr(), nad_find_elem_path(), nad_print(), nad_set_attr(), acl_s::next, acl_s::redirect, acl_s::redirect_len, acl_s::to, acl_s::what, and ZONE.
Referenced by _router_process_route().
Definition at line 1133 of file router.c.
References router_st::log, log_write(), router_st::message_logging_file, NAD_CDATA, NAD_CDATA_L, and nad_find_elem().
Referenced by _router_process_route().
void routes_free | ( | routes_t | routes | ) |
Definition at line 153 of file router.c.
References routes_st::comp, and routes_st::name.
Referenced by JABBER_MAIN().