Squashed commit of the following:
commit
596cd6e63ee19063e7c5fcdba4d930a99af486f9
Author: Silviu Minut <sminut@cisco.com>
Date: Thu Apr 1 16:01:12 2021 -0400
host_tracker: fix bug in set_visibility
Clear HostTracker internal data not only when the visibility gets
turned off, but rather whenever the visibility changes, in order to
allow everything to be rediscovered after a data purge.
visibility = v ? container_id : HostCacheIp::invalid_id;
- if ( visibility == HostCacheIp::invalid_id )
+ if ( old_visibility != visibility )
{
for ( auto& proto : network_protos )
proto.second = false;
tcp_fpids.clear();
ua_fps.clear();
+ udp_fpids.clear();
+ smb_fpids.clear();
+ netbios_name.clear();
}
return old_visibility == visibility;
rna_flow = nullptr;
const TcpFingerprint* tfp = processor->get(p, rna_flow);
- if (tfp and ht->add_tcp_fingerprint(tfp->fpid))
+ if ( tfp and ht->add_tcp_fingerprint(tfp->fpid) )
logger.log(RNA_EVENT_NEW, NEW_OS, p, &ht, src_ip_ptr, src_mac, tfp, packet_time());
}
}