mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-05-03 01:10:17 +00:00
DNS: rework adding entries to the FPC-DNS cache (#2730)
Try to populate the FPC-DNS cache using directly the info from the current packet, and not from the metadata saved in `struct ndpi_flow_struct`. This will be important when adding monitoring support
This commit is contained in:
parent
c458c42712
commit
7dc5890c0f
4 changed files with 61 additions and 62 deletions
|
|
@ -654,7 +654,7 @@ int load_config_file_fd(struct ndpi_detection_module_struct *ndpi_str, FILE *fd)
|
|||
int load_category_file_fd(struct ndpi_detection_module_struct *ndpi_str,
|
||||
FILE *fd, ndpi_protocol_category_t category_id);
|
||||
|
||||
u_int64_t fpc_dns_cache_key_from_dns_info(struct ndpi_flow_struct *flow);
|
||||
u_int64_t fpc_dns_cache_key_from_flow(struct ndpi_flow_struct *flow);
|
||||
|
||||
bool ndpi_cache_address(struct ndpi_detection_module_struct *ndpi_struct,
|
||||
ndpi_ip_addr_t ip_addr, char *hostname,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue