FACT++  1.0
DIS_DNS_CONN* find_dns_by_conn_id ( int  conn_id)

Definition at line 3392 of file dis.c.

References Default_DNS, dis_find_dns(), dns_get_dnsid(), dis_dns_ent::dnsid, and SRC_DIS.

Referenced by recv_dns_dis_rout().

3393 {
3394  DIS_DNS_CONN *dnsp;
3395  extern dim_long dns_get_dnsid();
3396  dim_long dnsid;
3397 
3398  dnsid = dns_get_dnsid(conn_id, SRC_DIS);
3399  dnsp = dis_find_dns(dnsid);
3400  if(!dnsp)
3401  dnsp = Default_DNS;
3402  return (DIS_DNS_CONN *)dnsp;
3403 }
DIS_DNS_CONN * Default_DNS
Definition: dis.c:129
long dim_long
Definition: dim_common.h:57
dim_long dns_get_dnsid(int conn_id, SRC_TYPES src_type)
Definition: open_dns.c:426
DIS_DNS_CONN * dis_find_dns(dim_long dnsid)
Definition: dis.c:3360
dnsid
Definition: README_v19.txt:372

+ Here is the call graph for this function:

+ Here is the caller graph for this function: