Riferimenti per il file s_serv.c

#include "stdinc.h"
#include "tools.h"
#include "channel.h"
#include "channel_mode.h"
#include "client.h"
#include "common.h"
#include "dbuf.h"
#include "event.h"
#include "fdlist.h"
#include "hash.h"
#include "irc_string.h"
#include "inet_misc.h"
#include "sprintf_irc.h"
#include "ircd.h"
#include "ircd_defs.h"
#include "s_bsd.h"
#include "irc_getnameinfo.h"
#include "list.h"
#include "numeric.h"
#include "packet.h"
#include "irc_res.h"
#include "s_conf.h"
#include "s_serv.h"
#include "s_log.h"
#include "s_stats.h"
#include "s_user.h"
#include "send.h"
#include "memory.h"

Vai al codice sorgente di questo file.

Definizioni

#define MIN_CONN_FREQ   300
#define ASNO(a, b)   a = (a + b >= a ? a + b : b)

Funzioni

static void server_burst (struct Client *)
static int fork_server (struct Client *)
static void burst_all (struct Client *)
static void cjoin_all (struct Client *)
static void send_tb (struct Client *client_p, struct Channel *chptr)
static void start_io (struct Client *)
static void burst_members (struct Client *, struct Channel *)
static void burst_ll_members (struct Client *, struct Channel *)
static void add_lazylinkchannel (struct Client *, struct Channel *)
void slink_error (unsigned int rpl, unsigned int len, unsigned char *data, struct Client *server_p)
void slink_zipstats (unsigned int rpl, unsigned int len, unsigned char *data, struct Client *server_p)
void collect_zipstats (void *unused)
const char * my_name_for_link (struct ConfItem *conf)
void write_links_file (void *notused)
int hunt_server (struct Client *client_p, struct Client *source_p, const char *command, int server, int parc, char *parv[])
void try_connections (void *unused)
int check_server (const char *name, struct Client *client_p, int cryptlink)
void add_capability (const char *capab_name, int cap_flag, int add_to_default)
int delete_capability (const char *capab_name)
int find_capability (const char *capab)
void send_capabilities (struct Client *client_p, struct AccessItem *aconf, int cap_can_send, int enc_can_send)
void sendnick_TS (struct Client *client_p, struct Client *target_p)
void client_burst_if_needed (struct Client *client_p, struct Client *target_p)
const char * show_capabilities (struct Client *target_p)
struct Servermake_server (struct Client *client_p)
void server_estab (struct Client *client_p)
void burst_channel (struct Client *client_p, struct Channel *chptr)
void add_lazylinkclient (struct Client *local_server_p, struct Client *client_p)
void remove_lazylink_flags (unsigned long mask)
void set_autoconn (struct Client *source_p, const char *name, int newval)
void initServerMask (void)
unsigned long nextFreeMask (void)
int serv_connect (struct AccessItem *aconf, struct Client *by)
static void serv_connect_callback (fde_t *fd, int status, void *data)
struct Clientfind_servconn_in_progress (const char *name)

Variabili

struct Clientuplink = NULL
static dlink_list cap_list = { NULL, NULL, 0 }
static unsigned long freeMask
static CNCB serv_connect_callback
static SlinkRplHnd slink_error
static SlinkRplHnd slink_zipstats
struct SlinkRplDef slinkrpltab []


Documentazione delle definizioni

#define ASNO ( a,
 )     a = (a + b >= a ? a + b : b)

Referenziato da slink_zipstats().

#define MIN_CONN_FREQ   300

Definizione alla linea 59 del file s_serv.c.

Referenziato da try_connections().


Documentazione delle funzioni

void add_capability ( const char *  capab_name,
int  cap_flag,
int  add_to_default 
)

static void add_lazylinkchannel ( struct Client local_server_p,
struct Channel chptr 
) [static]

void add_lazylinkclient ( struct Client local_server_p,
struct Client client_p 
)

static void burst_all ( struct Client client_p  )  [static]

void burst_channel ( struct Client client_p,
struct Channel chptr 
)

static void burst_ll_members ( struct Client client_p,
struct Channel chptr 
) [static]

static void burst_members ( struct Client client_p,
struct Channel chptr 
) [static]

int check_server ( const char *  name,
struct Client client_p,
int  cryptlink 
)

static void cjoin_all ( struct Client client_p  )  [static]

void client_burst_if_needed ( struct Client client_p,
struct Client target_p 
)

void collect_zipstats ( void *  unused  ) 

int delete_capability ( const char *  capab_name  ) 

int find_capability ( const char *  capab  ) 

Definizione alla linea 780 del file s_serv.c.

Riferimenti Capability::cap, _dlink_node::data, DLINK_FOREACH, _dlink_list::head, irccmp(), e Capability::name.

Referenziato da mr_capab().

struct Client* find_servconn_in_progress ( const char *  name  )  [read]

static int fork_server ( struct Client server  )  [static]

int hunt_server ( struct Client client_p,
struct Client source_p,
const char *  command,
int  server,
int  parc,
char *  parv[] 
)

void initServerMask ( void   ) 

Definizione alla linea 1833 del file s_serv.c.

Riferimenti freeMask.

Referenziato da main().

struct Server* make_server ( struct Client client_p  )  [read]

Definizione alla linea 978 del file s_serv.c.

Riferimenti Server::dep_servers, MyMalloc(), e Client::serv.

Referenziato da main(), mo_jupe(), ms_server(), ms_sid(), serv_connect(), e server_estab().

const char* my_name_for_link ( struct ConfItem conf  ) 

unsigned long nextFreeMask ( void   ) 

Definizione alla linea 1845 del file s_serv.c.

Riferimenti freeMask.

Referenziato da cryptlink_serv(), e mr_server().

void remove_lazylink_flags ( unsigned long  mask  ) 

void send_capabilities ( struct Client client_p,
struct AccessItem aconf,
int  cap_can_send,
int  enc_can_send 
)

static void send_tb ( struct Client client_p,
struct Channel chptr 
) [static]

void sendnick_TS ( struct Client client_p,
struct Client target_p 
)

int serv_connect ( struct AccessItem aconf,
struct Client by 
)

static void serv_connect_callback ( fde_t fd,
int  status,
void *  data 
) [static]

static void server_burst ( struct Client client_p  )  [static]

Definizione alla linea 1454 del file s_serv.c.

Riferimenti burst_all(), CAP_LL, cjoin_all(), server_info::hub, ID_or_name, IsCapable, me, sendto_one(), e ServerInfo.

Referenziato da server_estab().

void server_estab ( struct Client client_p  ) 

Definizione alla linea 996 del file s_serv.c.

Riferimenti CAP_ENC, CAP_HUB, CAP_LL, CAP_TB, CAP_TBURST, CAP_TS6, CAP_ZIP, ConfigFileEntry, ConfigServerHide, LocalUser::confs, Count, LocalUser::ctrlfd, CurrentTime, _dlink_node::data, detach_conf(), DLINK_FOREACH, DLINK_FOREACH_PREV, dlinkAdd(), dlinkDelete(), dlinkFind(), EmptyString, exit_client(), LocalUser::fd, fd_note(), find_conf_name(), Client::firsttime, fork_server(), Client::from, get_client_name(), global_serv_list, hash_add_client(), hash_add_id(), HasID, HasServlink, _dlink_list::head, config_server_hide::hidden, HIDE_IP, Client::hopcount, AccessItem::host, HOSTLEN, server_info::hub, ID, Client::id, ilog(), Client::info, ServerStatistics::is_ref, IsCapable, IsClosing, IsConfCompressed, IsConfCryptLink, IsConfLazyLink, IsConfTopicBurst, IsHidden, IsUnknown, L_ADMIN, L_ALL, L_NOTICE, L_OPER, Client::lnode, Client::localClient, make_dlink_node(), make_server(), map_to_conf(), MASK_IP, match(), me, my_name_for_link(), MyConnect, MyFree(), Counter::myserver, Client::name, _dlink_node::next, OPER_TYPE, LocalUser::passwd, Server::sconf, send_capabilities(), send_queued_write(), sendto_one(), sendto_realops_flags(), Client::serv, serv_list, server_burst(), SERVER_TYPE, ServerInfo, Server::servers, ServerStats, config_file_entry::servlink_path, Client::servptr, set_chcap_usage_counts(), SetGotId, SetServer, SetServlink, show_capabilities(), SHOW_IP, AccessItem::spasswd, start_io(), strlcpy(), _dlink_list::tail, TS_CURRENT, TS_MIN, UMODE_ALL, unknown_list, e USERLEN.

Referenziato da cryptlink_auth(), e mr_server().

void set_autoconn ( struct Client source_p,
const char *  name,
int  newval 
)

const char* show_capabilities ( struct Client target_p  ) 

void slink_error ( unsigned int  rpl,
unsigned int  len,
unsigned char *  data,
struct Client server_p 
)

Definizione alla linea 119 del file s_serv.c.

Riferimenti exit_client(), L_ALL, me, Client::name, sendto_realops_flags(), SLINKRPL_ERROR, e UMODE_ALL.

void slink_zipstats ( unsigned int  rpl,
unsigned int  len,
unsigned char *  data,
struct Client server_p 
)

static void start_io ( struct Client server  )  [static]

void try_connections ( void *  unused  ) 

void write_links_file ( void *  notused  ) 


Documentazione delle variabili

dlink_list cap_list = { NULL, NULL, 0 } [static]

Definizione alla linea 64 del file s_serv.c.

unsigned long freeMask [static]

Definizione alla linea 65 del file s_serv.c.

Referenziato da initServerMask(), nextFreeMask(), e remove_lazylink_flags().

CNCB serv_connect_callback [static]

Definizione alla linea 72 del file s_serv.c.

Referenziato da serv_connect().

SlinkRplHnd slink_error [static]

Definizione alla linea 79 del file s_serv.c.

SlinkRplHnd slink_zipstats [static]

Definizione alla linea 80 del file s_serv.c.

Valore iniziale:

Definizione alla linea 111 del file s_serv.c.

Referenziato da read_ctrl_packet().

struct Client* uplink = NULL


Generato il Wed Apr 15 00:19:23 2009 per ircd-hybrid da  doxygen 1.5.6