mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
Simplify MMDB code by moving more lookup functionality into MMDB class
This commit is contained in:
parent
a06053ce75
commit
07499cd2e5
2 changed files with 29 additions and 38 deletions
|
@ -16,11 +16,13 @@ public:
|
|||
|
||||
~MMDB();
|
||||
|
||||
MMDB_lookup_result_s Lookup(const struct sockaddr* const sa);
|
||||
bool Lookup(const zeek::IPAddr& addr, MMDB_lookup_result_s& result);
|
||||
bool StaleDB();
|
||||
const char* Filename();
|
||||
|
||||
private:
|
||||
MMDB_lookup_result_s Lookup(const struct sockaddr* const sa);
|
||||
|
||||
MMDB_s mmdb;
|
||||
struct stat file_info;
|
||||
bool lookup_error;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue