Implemented toggle for ARP/IP reassignments alerts

This commit is contained in:
Luca Deri 2018-03-22 10:52:46 +01:00
parent 6bb4687e86
commit 2ae3b42d77
8 changed files with 25 additions and 6 deletions

View file

@ -6744,6 +6744,9 @@ NIndexFlowDB* NetworkInterface::getNindex() {
/* *************************************** */
void NetworkInterface::checkMacIPAssociation(bool triggerEvent, u_char *_mac, u_int32_t ipv4) {
if(!ntop->getPrefs()->are_ip_reassignment_alerts_enabled())
return;
if(ipv4 != 0) {
std::map<u_int32_t, u_int64_t>::iterator it;
u_int64_t mac = Utils::mac2int(_mac);