FACT++  1.0
int locate_service ( DIC_SERVICE servp)

Definition at line 1167 of file dic.c.

References DIC_DNS_TMOUT_MAX, DIC_DNS_TMOUT_MIN, DID_DNS_TMOUT_MAX, DID_DNS_TMOUT_MIN, DIM_FATAL, DIMDNSUNDEF, Dns_dic_conn_id, error_handler(), open_dns(), dic_serv::prev, recv_dns_dic_rout(), request_dns_info(), dic_serv::serv_id, dic_serv::serv_name, SRC_DIC, Tmout_max, and Tmout_min.

Referenced by request_command(), and request_service().

1168 {
1169  extern int open_dns(dim_long, void (*)(), void (*)(), int, int, int);
1170 
1171  if(!strcmp(servp->serv_name,"DIS_DNS/SERVER_INFO"))
1172  {
1175  }
1176  if(Tmout_min == 0)
1177  {
1180  }
1181  if( !Dns_dic_conn_id )
1182  {
1183  DISABLE_AST;
1185  Tmout_min,
1186  Tmout_max,
1187  SRC_DIC);
1188  if(Dns_dic_conn_id == -2)
1189  error_handler(0, DIM_FATAL, DIMDNSUNDEF, "DIM_DNS_NODE undefined");
1190  ENABLE_AST;
1191  }
1192  if( Dns_dic_conn_id > 0)
1193  {
1194  DISABLE_AST;
1195  request_dns_info(servp->prev->serv_id);
1196  ENABLE_AST;
1197  }
1198 
1199  return(Dns_dic_conn_id);
1200 }
static void error_handler(int conn_id, int severity, int errcode, char *reason)
Definition: dic.c:120
static int Dns_dic_conn_id
Definition: dic.c:46
static int Tmout_min
Definition: dic.c:49
static void recv_dns_dic_rout(int conn_id, DNS_DIC_PACKET *packet, int size, int status)
Definition: dic.c:464
#define DIC_DNS_TMOUT_MIN
Definition: dim.h:158
#define DIMDNSUNDEF
Definition: dim_common.h:282
int open_dns(dim_long dnsid, void(*recv_rout)(), void(*error_rout)(), int tmout_min, int tmout_max, SRC_TYPES src_type)
Definition: open_dns.c:313
#define DID_DNS_TMOUT_MIN
Definition: dim.h:168
struct dic_serv * prev
Definition: dim.h:459
#define DID_DNS_TMOUT_MAX
Definition: dim.h:169
static int Tmout_max
Definition: dic.c:48
long dim_long
Definition: dim_common.h:57
int serv_id
Definition: dim.h:461
#define DIC_DNS_TMOUT_MAX
Definition: dim.h:159
static void request_dns_info(int id)
Definition: dic.c:1245
char serv_name[MAX_NAME]
Definition: dim.h:460

+ Here is the call graph for this function:

+ Here is the caller graph for this function: