Commit graph

8 commits

Author SHA1 Message Date
Arne Welzel
9619cd0f17 Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
Benjamin Bannier
f5a76c1aed Reformat Zeek in Spicy style
This largely copies over Spicy's `.clang-format` configuration file. The
one place where we deviate is header include order since Zeek depends on
headers being included in a certain order.
2023-10-30 09:40:55 +01:00
Tim Wojtulewicz
2316b6b643 Stop skipping expiration of empty DNS mappings 2023-03-23 09:50:37 -07:00
Tim Wojtulewicz
c4cac72fd7 Use shared_ptrs for DNS_Mapping objects 2022-04-22 13:10:37 -07:00
Tim Wojtulewicz
e8f833b8a6 Store all mappings in a single map instead of split by type
This opens up the possibility of storing other request types outside
of T_A, T_PTR and T_TXT without requiring redoing the caching. It
also fixes the caching code in DNS_Mapping, adding a version number
to the start of the cache file so the cache structure can be modified
and old caches invalidated more easily.
2022-04-22 13:10:37 -07:00
Tim Wojtulewicz
3bdc744b14 Add merging to DNS_Mgr::AddResult() to support both ipv4 and ipv6 responses simultaneously 2022-04-22 13:10:37 -07:00
Tim Wojtulewicz
9f197aa458 Rework DNS_Mgr API to be more consistent and to support more request types 2022-04-22 13:10:37 -07:00
Tim Wojtulewicz
e6e9144da6 Add unit testing for DNS_Mgr and related classes 2022-04-22 13:10:37 -07:00