mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Moved localhost tree from AddressResolution.h to Ntop.h and removed AddressList class
This commit is contained in:
parent
204026d9c9
commit
f496b4e660
7 changed files with 82 additions and 171 deletions
|
|
@ -25,7 +25,6 @@
|
|||
#include "ntop_includes.h"
|
||||
|
||||
class AddressResolution {
|
||||
AddressList localNetworks;
|
||||
int num_resolvers;
|
||||
u_int32_t num_resolved_addresses, num_resolved_fails;
|
||||
pthread_t *resolveThreadLoop;
|
||||
|
|
@ -38,14 +37,6 @@ class AddressResolution {
|
|||
void startResolveAddressLoop();
|
||||
void resolveHostName(char *numeric_ip, char *rsp = NULL, u_int rsp_len = 0);
|
||||
bool resolveHost(char *host, char *rsp, u_int rsp_len, bool v4);
|
||||
|
||||
inline u_int8_t getNumLocalNetworks() { return localNetworks.getNumAddresses(); };
|
||||
inline char *get_local_network(u_int8_t id) { return localNetworks.getAddressString(id); };
|
||||
inline u_int8_t get_local_network_id(const char *network_id) { return localNetworks.getAddressId(network_id); };
|
||||
bool setLocalNetworks(char *rule);
|
||||
int16_t findAddress(int family, void *addr, u_int8_t *network_mask_bits = NULL);
|
||||
void setLocalNetwork(char *net) { localNetworks.addAddresses(net); };
|
||||
inline void dump() { localNetworks.dump(); }
|
||||
};
|
||||
|
||||
#endif /* _ADDRESS_RESOLUTION_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue