FACT++  1.0
static DIS_DNS_CONN* create_dns ( dim_long  dnsid)
static

Definition at line 1047 of file dis.c.

References dis_dns_ent::dis_dns_packet, dis_dns_ent::dis_first_time, dis_dns_ent::dis_n_services, dll_insert_queue(), dis_dns_ent::dns_dis_conn_id, dis_dns_ent::dns_timr_ent, dis_dns_ent::dnsid, Memory::malloc(), DIS_DNS_PACKET::node_name, dis_dns_ent::serving, DIS_DNS_PACKET::size, DIS_DNS_PACKET::src_type, and dis_dns_ent::updating_service_list.

Referenced by dis_dns_init(), dis_start_serving_dns(), do_dis_add_cmnd_dns(), and do_dis_add_service_dns().

1048 {
1049  DIS_DNS_CONN *dnsp;
1050 
1051  dnsp = malloc(sizeof(DIS_DNS_CONN));
1052  dnsp->dns_timr_ent = (TIMR_ENT *)0;
1053  dnsp->dis_n_services = 0;
1054  dnsp->dns_dis_conn_id = 0;
1055  dnsp->dis_first_time = 1;
1056  dnsp->serving = 0;
1057  dnsp->dis_dns_packet.size = 0;
1058  dnsp->dis_dns_packet.src_type = 0;
1059  dnsp->dis_dns_packet.node_name[0] = 0;
1060  dnsp->updating_service_list = 0;
1061  dnsp->dnsid = dnsid;
1062  dll_insert_queue( (DLL *) DNS_head, (DLL *) dnsp );
1063  return dnsp;
1064 }
int serving
Definition: dis.c:46
int dns_dis_conn_id
Definition: dis.c:44
void dll_insert_queue(DLL *head, DLL *item)
Definition: dll.c:23
void * malloc()
Definition: EventBuilder.cc:99
int dis_n_services
Definition: dis.c:43
Definition: dim.h:370
int updating_service_list
Definition: dis.c:49
char node_name[MAX_NODE_NAME]
Definition: dim.h:272
SRC_TYPES src_type
Definition: dim.h:271
dim_long dnsid
Definition: dis.c:39
Definition: dim.h:530
TIMR_ENT * dns_timr_ent
Definition: dis.c:41
int dis_first_time
Definition: dis.c:45
int size
Definition: dim.h:270
dnsid
Definition: README_v19.txt:372
DIS_DNS_PACKET dis_dns_packet
Definition: dis.c:42
static DIS_DNS_CONN * DNS_head
Definition: dis.c:108

+ Here is the call graph for this function:

+ Here is the caller graph for this function: