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

Definition at line 957 of file dis_old.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().

958 {
959  DIS_DNS_CONN *dnsp;
960 
961  dnsp = malloc(sizeof(DIS_DNS_CONN));
962  dnsp->dns_timr_ent = (TIMR_ENT *)0;
963  dnsp->dis_n_services = 0;
964  dnsp->dns_dis_conn_id = 0;
965  dnsp->dis_first_time = 1;
966  dnsp->serving = 0;
967  dnsp->dis_dns_packet.size = 0;
968  dnsp->dis_dns_packet.src_type = 0;
969  dnsp->dis_dns_packet.node_name[0] = 0;
970  dnsp->updating_service_list = 0;
971  dnsp->dnsid = dnsid;
972  dll_insert_queue( (DLL *) DNS_head, (DLL *) dnsp );
973  return dnsp;
974 }
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_old.c:108

+ Here is the call graph for this function:

+ Here is the caller graph for this function: