FACT++  1.0
void do_update_did ( int  conn_id)

Definition at line 587 of file dns.c.

References node::conn_id, dis_update_service, Dns_conns, Last_conn_id, DNS_CONNECTION::n_services, DNS_CONNECTION::old_n_services, Server_info_id, and Server_new_info_id.

Referenced by handle_registration(), release_conn(), and update_did().

588 {
589  int n_services, old_n_services;
590 
591  n_services = Dns_conns[conn_id].n_services;
592 /*
593  if(Dns_conns[conn_id].n_services)
594  {
595 */
596  old_n_services = Dns_conns[conn_id].old_n_services;
597  if(old_n_services != n_services)
598  {
599  Last_conn_id = conn_id;
600  if((old_n_services <= 0) || (n_services == 0) || (n_services == -1))
603  Dns_conns[conn_id].old_n_services = Dns_conns[conn_id].n_services;
604  }
605 /*
606  }
607 */
608 }
DllExp DIM_NOSHARE DNS_CONNECTION * Dns_conns
Definition: conn_handler.c:29
static int Server_info_id
Definition: dns.c:81
static int Last_conn_id
Definition: dns.c:74
#define dis_update_service
Definition: dis.h:18
static int Server_new_info_id
Definition: dns.c:81
int n_services
Definition: dim.h:440
int old_n_services
Definition: dim.h:441

+ Here is the caller graph for this function: