FACT++  1.0
int close_dns ( dim_long  dnsid,
SRC_TYPES  src_type 
)

Definition at line 298 of file open_dns.c.

References dtq_create(), dtq_rem_entry(), get_dns(), dns_ent::pending, Timer_q, and dns_ent::timr_ent.

Referenced by do_dis_stop_serving_dns().

299 {
300  DNS_CONN *connp;
301 
302  connp = get_dns((DNS_CONN *)dnsid, src_type);
303  if( !Timer_q )
304  Timer_q = dtq_create();
305  if( connp->pending )
306  {
307  connp->pending = 0;
308  dtq_rem_entry( Timer_q, connp->timr_ent );
309  }
310  return 1;
311 }
int dtq_create()
Definition: dtq.c:353
TIMR_ENT * timr_ent
Definition: open_dns.c:32
static int Timer_q
Definition: open_dns.c:39
int dtq_rem_entry(int queue_id, TIMR_ENT *entry)
Definition: dtq.c:503
int pending
Definition: open_dns.c:35
dnsid
Definition: README_v19.txt:372
DNS_CONN * get_dns(DNS_CONN *connp, SRC_TYPES src_type)
Definition: open_dns.c:279

+ Here is the call graph for this function:

+ Here is the caller graph for this function: