10 #ifndef _PROTOCOL_PARSERS_DNS_MAP_
11 #define _PROTOCOL_PARSERS_DNS_MAP_
22 #define DNS_MAP_INIT_SIZE 0
void dns_entry_print(dns_entry_t *dns_entry)
Print a DNS table entry.
Definition: dns_map.c:195
void dns_map_free(dns_map_t *table)
Definition: dns_map.c:122
ip_list_t ip_list_init()
Initialize an ip_list_t structure.
Definition: dns_map.c:66
dns_map_t * dns_map_create()
Definition: dns_map.c:104
void dns_map_remove(dns_map_t *table, char *domain_name)
Definition: dns_map.c:159
dns_entry_t * dns_map_get(dns_map_t *table, char *domain_name)
Definition: dns_map.c:173
void dns_map_add(dns_map_t *table, char *domain_name, ip_list_t ip_list)
Definition: dns_map.c:134
bool dns_entry_contains(dns_entry_t *dns_entry, ip_addr_t ip_address)
Checks if a dns_entry_t structure contains a given IP address.
Definition: dns_map.c:80
struct dns_entry dns_entry_t
dns_entry_t * dns_map_pop(dns_map_t *table, char *domain_name)
Definition: dns_map.c:186
Utilitaries for payload manipulation and display.
IP (v4 or v6) address.
Definition: packet_utils.h:37