jabberd2  2.6.1
Data Fields
s2s_st Struct Reference

#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
 

Detailed Description

Definition at line 66 of file s2s.h.

Field Documentation

◆ id

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().

◆ router_ip

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().

◆ router_port

int s2s_st::router_port

Definition at line 72 of file s2s.h.

Referenced by _s2s_config_expand(), and _s2s_router_connect().

◆ router_user

const char* s2s_st::router_user

Definition at line 73 of file s2s.h.

Referenced by _s2s_config_expand(), and s2s_router_sx_callback().

◆ router_pass

const char* s2s_st::router_pass

Definition at line 74 of file s2s.h.

Referenced by _s2s_config_expand(), and s2s_router_sx_callback().

◆ router_pemfile

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().

◆ router_cachain

const char* s2s_st::router_cachain

Definition at line 76 of file s2s.h.

Referenced by _s2s_config_expand(), and JABBER_MAIN().

◆ router_private_key_password

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().

◆ router_ciphers

const char* s2s_st::router_ciphers

Definition at line 78 of file s2s.h.

Referenced by _s2s_config_expand(), and JABBER_MAIN().

◆ router_default

int s2s_st::router_default

Definition at line 79 of file s2s.h.

Referenced by _s2s_config_expand(), and s2s_router_sx_callback().

◆ mio

mio_t s2s_st::mio

◆ sx_env

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_ssl

sx_plugin_t s2s_st::sx_ssl

◆ sx_sasl

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_db

sx_plugin_t s2s_st::sx_db

Definition at line 88 of file s2s.h.

Referenced by JABBER_MAIN().

◆ router

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().

◆ fd

mio_fd_t s2s_st::fd

Definition at line 92 of file s2s.h.

Referenced by _s2s_router_connect(), and s2s_router_sx_callback().

◆ server_fd

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

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

log_t s2s_st::log

◆ log_type

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().

◆ log_facility

const char* s2s_st::log_facility

Definition at line 105 of file s2s.h.

Referenced by _s2s_config_expand(), and JABBER_MAIN().

◆ log_ident

const char* s2s_st::log_ident

Definition at line 106 of file s2s.h.

Referenced by _s2s_config_expand(), and JABBER_MAIN().

◆ packet_count

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().

◆ packet_stats

const char* s2s_st::packet_stats

Definition at line 110 of file s2s.h.

Referenced by _s2s_config_expand().

◆ retry_init

int s2s_st::retry_init

connect retry

Definition at line 113 of file s2s.h.

Referenced by _s2s_config_expand().

◆ retry_lost

int s2s_st::retry_lost

Definition at line 114 of file s2s.h.

Referenced by _s2s_config_expand(), and s2s_router_sx_callback().

◆ retry_sleep

int s2s_st::retry_sleep

Definition at line 115 of file s2s.h.

Referenced by _s2s_config_expand().

◆ retry_left

int s2s_st::retry_left

Definition at line 116 of file s2s.h.

Referenced by s2s_router_sx_callback().

◆ local_ip

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().

◆ local_port

int s2s_st::local_port

Definition at line 120 of file s2s.h.

Referenced by _s2s_config_expand(), and s2s_router_sx_callback().

◆ origin_ips

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().

◆ origin_nips

int s2s_st::origin_nips

Definition at line 124 of file s2s.h.

Referenced by _s2s_config_expand(), and out_route().

◆ local_secret

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().

◆ local_pemfile

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().

◆ local_private_key_password

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().

◆ local_cachain

const char* s2s_st::local_cachain

certificate chain

Definition at line 136 of file s2s.h.

Referenced by _s2s_config_expand(), and JABBER_MAIN().

◆ local_verify_mode

int s2s_st::local_verify_mode

verify-mode

Definition at line 139 of file s2s.h.

Referenced by _s2s_config_expand(), and JABBER_MAIN().

◆ local_ciphers

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().

◆ hosts

xht s2s_st::hosts

hosts mapping

Definition at line 145 of file s2s.h.

Referenced by _s2s_hosts_expand(), and JABBER_MAIN().

◆ io_max_fds

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().

◆ stanza_size_limit

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().

◆ compression

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().

◆ lookup_srv

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().

◆ lookup_nsrv

int s2s_st::lookup_nsrv

Definition at line 158 of file s2s.h.

Referenced by _dns_result_srv(), and _s2s_config_expand().

◆ resolve_aaaa

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().

◆ dns_min_ttl

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().

◆ dns_max_ttl

int s2s_st::dns_max_ttl

Definition at line 165 of file s2s.h.

Referenced by _dns_result_a(), and _s2s_config_expand().

◆ etc_hosts_ttl

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().

◆ check_interval

int s2s_st::check_interval

time checks

Definition at line 171 of file s2s.h.

Referenced by _s2s_config_expand(), and JABBER_MAIN().

◆ check_queue

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().

◆ check_invalid

int s2s_st::check_invalid

Definition at line 173 of file s2s.h.

◆ check_keepalive

int s2s_st::check_keepalive

Definition at line 174 of file s2s.h.

Referenced by _s2s_config_expand(), _s2s_time_checks(), and JABBER_MAIN().

◆ check_idle

int s2s_st::check_idle

Definition at line 175 of file s2s.h.

Referenced by _s2s_config_expand(), _s2s_time_checks(), and JABBER_MAIN().

◆ check_dnscache

int s2s_st::check_dnscache

Definition at line 176 of file s2s.h.

Referenced by _s2s_config_expand().

◆ retry_limit

int s2s_st::retry_limit

Definition at line 177 of file s2s.h.

Referenced by _out_mio_callback(), and _s2s_config_expand().

◆ last_queue_check

time_t s2s_st::last_queue_check

Definition at line 179 of file s2s.h.

◆ last_invalid_check

time_t s2s_st::last_invalid_check

Definition at line 180 of file s2s.h.

◆ next_check

time_t s2s_st::next_check

Definition at line 182 of file s2s.h.

◆ next_expiry

time_t s2s_st::next_expiry

Definition at line 183 of file s2s.h.

◆ require_tls

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().

◆ enable_whitelist

int s2s_st::enable_whitelist

Definition at line 187 of file s2s.h.

Referenced by _in_sx_callback(), _s2s_config_expand(), and out_packet().

◆ whitelist_domains

char** s2s_st::whitelist_domains

Definition at line 188 of file s2s.h.

Referenced by _s2s_populate_whitelist_domains(), and s2s_domain_in_whitelist().

◆ n_whitelist_domains

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().

◆ dead

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().

◆ dead_conn

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().

◆ started

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().

◆ online

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().

◆ outq

xht s2s_st::outq

◆ out_reuse

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().

◆ out_host

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().

◆ out_dest

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().

◆ in

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().

◆ in_accept

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().

◆ udns_fd

int s2s_st::udns_fd

udns fds

Definition at line 222 of file s2s.h.

Referenced by JABBER_MAIN().

◆ udns_mio_fd

mio_fd_t s2s_st::udns_mio_fd

Definition at line 223 of file s2s.h.

Referenced by JABBER_MAIN().

◆ dnscache

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().

◆ dns_cache_enabled

int s2s_st::dns_cache_enabled

Definition at line 227 of file s2s.h.

Referenced by _s2s_config_expand(), and out_resolve().

◆ dns_bad

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().

◆ dns_bad_timeout

int s2s_st::dns_bad_timeout

The documentation for this struct was generated from the following file: