|
jabberd2
2.6.1
|
#include <s2s.h>
Data Fields | |
| const char * | id |
| our id (hostname) with the router More... | |
| const char * | router_ip |
| how to connect to the router More... | |
| int | router_port |
| const char * | router_user |
| const char * | router_pass |
| const char * | router_pemfile |
| const char * | router_cachain |
| const char * | router_private_key_password |
| const char * | router_ciphers |
| int | router_default |
| mio_t | mio |
| mio context More... | |
| sx_env_t | sx_env |
| sx environment More... | |
| sx_plugin_t | sx_ssl |
| sx_plugin_t | sx_sasl |
| sx_plugin_t | sx_db |
| sx_t | router |
| router's conn More... | |
| mio_fd_t | fd |
| mio_fd_t | server_fd |
| listening sockets More... | |
| config_t | config |
| config More... | |
| log_t | log |
| logging More... | |
| log_type_t | log_type |
| log data More... | |
| const char * | log_facility |
| const char * | log_ident |
| long long int | packet_count |
| packet counter More... | |
| const char * | packet_stats |
| int | retry_init |
| connect retry More... | |
| int | retry_lost |
| int | retry_sleep |
| int | retry_left |
| const char * | local_ip |
| ip/port to listen on More... | |
| int | local_port |
| const char ** | origin_ips |
| ip(s) to originate connections from More... | |
| int | origin_nips |
| const char * | local_secret |
| dialback secret More... | |
| const char * | local_pemfile |
| pemfile for peer connections More... | |
| const char * | local_private_key_password |
| private key password for local pemfile, if encrypted More... | |
| const char * | local_cachain |
| certificate chain More... | |
| int | local_verify_mode |
| verify-mode More... | |
| const char * | local_ciphers |
| list of TLS ciphers More... | |
| xht | hosts |
| hosts mapping More... | |
| int | io_max_fds |
| max file descriptors More... | |
| int | stanza_size_limit |
| maximum stanza size More... | |
| int | compression |
| enable Stream Compression More... | |
| const char ** | lookup_srv |
| srvs to lookup More... | |
| int | lookup_nsrv |
| int | resolve_aaaa |
| if we resolve AAAA records More... | |
| int | dns_min_ttl |
| dns ttl limits More... | |
| int | dns_max_ttl |
| int | etc_hosts_ttl |
| /etc/hosts ttl limits More... | |
| int | check_interval |
| time checks More... | |
| int | check_queue |
| int | check_invalid |
| int | check_keepalive |
| int | check_idle |
| int | check_dnscache |
| int | retry_limit |
| time_t | last_queue_check |
| time_t | last_invalid_check |
| time_t | next_check |
| time_t | next_expiry |
| int | require_tls |
| Apple security options. More... | |
| int | enable_whitelist |
| char ** | whitelist_domains |
| int | n_whitelist_domains |
| jqueue_t | dead |
| list of sx_t on the way out More... | |
| jqueue_t | dead_conn |
| list of conn_t on the way out More... | |
| int | started |
| this is true if we've connected to the router at least once More... | |
| int | online |
| true if we're bound in the router More... | |
| xht | outq |
| queues of packets waiting to go out (key is route) More... | |
| int | out_reuse |
| reuse outgoing conns keyed by ip/port More... | |
| xht | out_host |
| outgoing conns (key is ip/port) More... | |
| xht | out_dest |
| outgoing conns (key is dest) More... | |
| xht | in |
| incoming conns (key is stream id) More... | |
| xht | in_accept |
| incoming conns prior to stream initiation (key is ip/port) More... | |
| int | udns_fd |
| udns fds More... | |
| mio_fd_t | udns_mio_fd |
| xht | dnscache |
| dns resolution cache More... | |
| int | dns_cache_enabled |
| xht | dns_bad |
| dns resolution bad host cache More... | |
| int | dns_bad_timeout |
| const char* s2s_st::id |
our id (hostname) with the router
Definition at line 68 of file s2s.h.
Referenced by _in_packet(), _s2s_config_expand(), and s2s_router_sx_callback().
| const char* s2s_st::router_ip |
how to connect to the router
Definition at line 71 of file s2s.h.
Referenced by _s2s_config_expand(), and _s2s_router_connect().
| int s2s_st::router_port |
Definition at line 72 of file s2s.h.
Referenced by _s2s_config_expand(), and _s2s_router_connect().
| const char* s2s_st::router_user |
Definition at line 73 of file s2s.h.
Referenced by _s2s_config_expand(), and s2s_router_sx_callback().
| const char* s2s_st::router_pass |
Definition at line 74 of file s2s.h.
Referenced by _s2s_config_expand(), and s2s_router_sx_callback().
| const char* s2s_st::router_pemfile |
Definition at line 75 of file s2s.h.
Referenced by _s2s_config_expand(), JABBER_MAIN(), and s2s_router_sx_callback().
| const char* s2s_st::router_cachain |
Definition at line 76 of file s2s.h.
Referenced by _s2s_config_expand(), and JABBER_MAIN().
| const char* s2s_st::router_private_key_password |
Definition at line 77 of file s2s.h.
Referenced by _s2s_config_expand(), JABBER_MAIN(), and s2s_router_sx_callback().
| const char* s2s_st::router_ciphers |
Definition at line 78 of file s2s.h.
Referenced by _s2s_config_expand(), and JABBER_MAIN().
| int s2s_st::router_default |
Definition at line 79 of file s2s.h.
Referenced by _s2s_config_expand(), and s2s_router_sx_callback().
| mio_t s2s_st::mio |
mio context
Definition at line 82 of file s2s.h.
Referenced by _in_sx_callback(), _out_sx_callback(), _s2s_router_connect(), JABBER_MAIN(), out_route(), and s2s_router_sx_callback().
| sx_env_t s2s_st::sx_env |
sx environment
Definition at line 85 of file s2s.h.
Referenced by _s2s_hosts_expand(), in_mio_callback(), JABBER_MAIN(), and out_route().
| sx_plugin_t s2s_st::sx_ssl |
Definition at line 86 of file s2s.h.
Referenced by _out_sx_callback(), _s2s_hosts_expand(), in_mio_callback(), JABBER_MAIN(), out_route(), and s2s_router_sx_callback().
| sx_plugin_t s2s_st::sx_sasl |
Definition at line 87 of file s2s.h.
Referenced by JABBER_MAIN(), and s2s_router_sx_callback().
| sx_plugin_t s2s_st::sx_db |
Definition at line 88 of file s2s.h.
Referenced by JABBER_MAIN().
| sx_t s2s_st::router |
router's conn
Definition at line 91 of file s2s.h.
Referenced by _in_packet(), out_bounce_route_queue(), s2s_router_mio_callback(), and s2s_router_sx_callback().
| mio_fd_t s2s_st::fd |
Definition at line 92 of file s2s.h.
Referenced by _s2s_router_connect(), and s2s_router_sx_callback().
| mio_fd_t s2s_st::server_fd |
listening sockets
Definition at line 95 of file s2s.h.
Referenced by in_mio_callback(), and s2s_router_sx_callback().
| config_t s2s_st::config |
config
Definition at line 98 of file s2s.h.
Referenced by _s2s_config_expand(), _s2s_hosts_expand(), _s2s_pidfile(), and JABBER_MAIN().
| log_t s2s_st::log |
logging
Definition at line 101 of file s2s.h.
Referenced by _dns_result_a(), _in_packet(), _in_result(), _in_sx_callback(), _in_verify(), _out_dialback(), _out_mio_callback(), _out_result(), _out_sx_callback(), _out_verify(), _s2s_check_conn_routes(), _s2s_config_expand(), _s2s_hosts_expand(), _s2s_pidfile(), _s2s_router_connect(), _s2s_time_checks(), dns_resolve_domain(), in_mio_callback(), JABBER_MAIN(), out_packet(), out_resolve(), out_route(), s2s_domain_in_whitelist(), s2s_router_mio_callback(), and s2s_router_sx_callback().
| log_type_t s2s_st::log_type |
log data
Definition at line 104 of file s2s.h.
Referenced by _s2s_config_expand(), and JABBER_MAIN().
| const char* s2s_st::log_facility |
Definition at line 105 of file s2s.h.
Referenced by _s2s_config_expand(), and JABBER_MAIN().
| const char* s2s_st::log_ident |
Definition at line 106 of file s2s.h.
Referenced by _s2s_config_expand(), and JABBER_MAIN().
| long long int s2s_st::packet_count |
packet counter
Definition at line 109 of file s2s.h.
Referenced by _in_sx_callback(), and _out_sx_callback().
| const char* s2s_st::packet_stats |
Definition at line 110 of file s2s.h.
Referenced by _s2s_config_expand().
| int s2s_st::retry_init |
| int s2s_st::retry_lost |
Definition at line 114 of file s2s.h.
Referenced by _s2s_config_expand(), and s2s_router_sx_callback().
| int s2s_st::retry_sleep |
Definition at line 115 of file s2s.h.
Referenced by _s2s_config_expand().
| int s2s_st::retry_left |
Definition at line 116 of file s2s.h.
Referenced by s2s_router_sx_callback().
| const char* s2s_st::local_ip |
ip/port to listen on
Definition at line 119 of file s2s.h.
Referenced by _s2s_config_expand(), out_route(), and s2s_router_sx_callback().
| int s2s_st::local_port |
Definition at line 120 of file s2s.h.
Referenced by _s2s_config_expand(), and s2s_router_sx_callback().
| const char** s2s_st::origin_ips |
ip(s) to originate connections from
Definition at line 123 of file s2s.h.
Referenced by _s2s_config_expand(), and out_route().
| int s2s_st::origin_nips |
Definition at line 124 of file s2s.h.
Referenced by _s2s_config_expand(), and out_route().
| const char* s2s_st::local_secret |
dialback secret
Definition at line 127 of file s2s.h.
Referenced by _in_verify(), _out_dialback(), and _s2s_config_expand().
| const char* s2s_st::local_pemfile |
pemfile for peer connections
Definition at line 130 of file s2s.h.
Referenced by _out_sx_callback(), _s2s_config_expand(), and JABBER_MAIN().
| const char* s2s_st::local_private_key_password |
private key password for local pemfile, if encrypted
Definition at line 133 of file s2s.h.
Referenced by _out_sx_callback(), _s2s_config_expand(), and JABBER_MAIN().
| const char* s2s_st::local_cachain |
certificate chain
Definition at line 136 of file s2s.h.
Referenced by _s2s_config_expand(), and JABBER_MAIN().
| int s2s_st::local_verify_mode |
verify-mode
Definition at line 139 of file s2s.h.
Referenced by _s2s_config_expand(), and JABBER_MAIN().
| const char* s2s_st::local_ciphers |
list of TLS ciphers
Definition at line 142 of file s2s.h.
Referenced by _s2s_config_expand(), and JABBER_MAIN().
| xht s2s_st::hosts |
hosts mapping
Definition at line 145 of file s2s.h.
Referenced by _s2s_hosts_expand(), and JABBER_MAIN().
| int s2s_st::io_max_fds |
max file descriptors
Definition at line 148 of file s2s.h.
Referenced by _s2s_config_expand(), and JABBER_MAIN().
| int s2s_st::stanza_size_limit |
maximum stanza size
Definition at line 151 of file s2s.h.
Referenced by _s2s_config_expand(), and in_mio_callback().
| int s2s_st::compression |
enable Stream Compression
Definition at line 154 of file s2s.h.
Referenced by _s2s_config_expand(), in_mio_callback(), and JABBER_MAIN().
| const char** s2s_st::lookup_srv |
srvs to lookup
Definition at line 157 of file s2s.h.
Referenced by _dns_result_srv(), and _s2s_config_expand().
| int s2s_st::lookup_nsrv |
Definition at line 158 of file s2s.h.
Referenced by _dns_result_srv(), and _s2s_config_expand().
| int s2s_st::resolve_aaaa |
if we resolve AAAA records
Definition at line 161 of file s2s.h.
Referenced by _dns_result_a(), _dns_result_srv(), and _s2s_config_expand().
| int s2s_st::dns_min_ttl |
dns ttl limits
Definition at line 164 of file s2s.h.
Referenced by _dns_result_a(), and _s2s_config_expand().
| int s2s_st::dns_max_ttl |
Definition at line 165 of file s2s.h.
Referenced by _dns_result_a(), and _s2s_config_expand().
| int s2s_st::etc_hosts_ttl |
/etc/hosts ttl limits
Definition at line 168 of file s2s.h.
Referenced by _dns_result_a(), and _s2s_config_expand().
| int s2s_st::check_interval |
time checks
Definition at line 171 of file s2s.h.
Referenced by _s2s_config_expand(), and JABBER_MAIN().
| int s2s_st::check_queue |
Definition at line 172 of file s2s.h.
Referenced by _s2s_check_conn_routes(), _s2s_config_expand(), _s2s_time_checks(), and JABBER_MAIN().
| int s2s_st::check_keepalive |
Definition at line 174 of file s2s.h.
Referenced by _s2s_config_expand(), _s2s_time_checks(), and JABBER_MAIN().
| int s2s_st::check_idle |
Definition at line 175 of file s2s.h.
Referenced by _s2s_config_expand(), _s2s_time_checks(), and JABBER_MAIN().
| int s2s_st::check_dnscache |
Definition at line 176 of file s2s.h.
Referenced by _s2s_config_expand().
| int s2s_st::retry_limit |
Definition at line 177 of file s2s.h.
Referenced by _out_mio_callback(), and _s2s_config_expand().
| int s2s_st::require_tls |
Apple security options.
Definition at line 186 of file s2s.h.
Referenced by _in_sx_callback(), _out_sx_callback(), _s2s_config_expand(), and out_packet().
| int s2s_st::enable_whitelist |
Definition at line 187 of file s2s.h.
Referenced by _in_sx_callback(), _s2s_config_expand(), and out_packet().
| char** s2s_st::whitelist_domains |
Definition at line 188 of file s2s.h.
Referenced by _s2s_populate_whitelist_domains(), and s2s_domain_in_whitelist().
| int s2s_st::n_whitelist_domains |
Definition at line 189 of file s2s.h.
Referenced by _s2s_populate_whitelist_domains(), and s2s_domain_in_whitelist().
| jqueue_t s2s_st::dead |
list of sx_t on the way out
Definition at line 192 of file s2s.h.
Referenced by _out_mio_callback(), in_mio_callback(), and JABBER_MAIN().
| jqueue_t s2s_st::dead_conn |
list of conn_t on the way out
Definition at line 195 of file s2s.h.
Referenced by _out_mio_callback(), in_mio_callback(), and JABBER_MAIN().
| int s2s_st::started |
this is true if we've connected to the router at least once
Definition at line 198 of file s2s.h.
Referenced by s2s_router_sx_callback().
| int s2s_st::online |
true if we're bound in the router
Definition at line 201 of file s2s.h.
Referenced by s2s_router_mio_callback(), and s2s_router_sx_callback().
| xht s2s_st::outq |
queues of packets waiting to go out (key is route)
Definition at line 204 of file s2s.h.
Referenced by _out_mio_callback(), _out_packet_queue(), _s2s_time_checks(), JABBER_MAIN(), out_bounce_domain_queues(), out_bounce_route_queue(), out_flush_domain_queues(), and out_flush_route_queue().
| int s2s_st::out_reuse |
reuse outgoing conns keyed by ip/port
Definition at line 207 of file s2s.h.
Referenced by _out_mio_callback(), _s2s_config_expand(), _s2s_time_checks(), dns_select(), and out_route().
| xht s2s_st::out_host |
outgoing conns (key is ip/port)
Definition at line 210 of file s2s.h.
Referenced by _out_mio_callback(), _s2s_time_checks(), dns_select(), JABBER_MAIN(), and out_route().
| xht s2s_st::out_dest |
outgoing conns (key is dest)
Definition at line 213 of file s2s.h.
Referenced by _out_mio_callback(), _s2s_time_checks(), JABBER_MAIN(), and out_route().
| xht s2s_st::in |
incoming conns (key is stream id)
Definition at line 216 of file s2s.h.
Referenced by _in_sx_callback(), _out_verify(), _s2s_time_checks(), in_mio_callback(), and JABBER_MAIN().
| xht s2s_st::in_accept |
incoming conns prior to stream initiation (key is ip/port)
Definition at line 219 of file s2s.h.
Referenced by _s2s_time_checks(), in_mio_callback(), and JABBER_MAIN().
| int s2s_st::udns_fd |
| mio_fd_t s2s_st::udns_mio_fd |
Definition at line 223 of file s2s.h.
Referenced by JABBER_MAIN().
| xht s2s_st::dnscache |
dns resolution cache
Definition at line 226 of file s2s.h.
Referenced by _s2s_dns_expiry(), _s2s_time_checks(), JABBER_MAIN(), out_resolve(), and out_route().
| int s2s_st::dns_cache_enabled |
Definition at line 227 of file s2s.h.
Referenced by _s2s_config_expand(), and out_resolve().
| xht s2s_st::dns_bad |
dns resolution bad host cache
Definition at line 230 of file s2s.h.
Referenced by _out_dns_mark_bad(), _s2s_dns_expiry(), _s2s_time_checks(), dns_select(), JABBER_MAIN(), and send_dialbacks().
| int s2s_st::dns_bad_timeout |
Definition at line 231 of file s2s.h.
Referenced by _out_dns_mark_bad(), _s2s_config_expand(), _s2s_time_checks(), dns_select(), and send_dialbacks().
1.8.13