FACT++  1.0
int dis_hash_service_insert ( SERVICE servp)

Definition at line 2879 of file dis_old.c.

References dll_insert_queue(), HashFunction(), MAX_HASH_ENTRIES, and serv::name.

Referenced by do_dis_add_cmnd_dns(), and do_dis_add_service_dns().

2880 {
2881  int index;
2882  index = HashFunction(servp->name, MAX_HASH_ENTRIES);
2883  Service_new_entries[index]++;
2885  (DLL *) servp);
2886  return(1);
2887 }
static int Service_new_entries[MAX_HASH_ENTRIES]
Definition: dis_old.c:2859
void dll_insert_queue(DLL *head, DLL *item)
Definition: dll.c:23
char name[MAX_NAME]
Definition: dis.c:72
#define MAX_HASH_ENTRIES
Definition: dis_old.c:2856
static SERVICE * Service_hash_table[MAX_HASH_ENTRIES]
Definition: dis_old.c:2858
Definition: dim.h:530
int HashFunction(char *name, int max)
Definition: hash.c:22

+ Here is the call graph for this function:

+ Here is the caller graph for this function: