const uint8_t src_mac[6] = {0};
- if ( new_host )
+ if (!nfe->get_create_host() and !nfe->get_create_service())
{
- if (!nfe->get_create_host() and !nfe->get_create_service())
- {
- uint32_t service = nfe->get_service_id();
- RNAEvent new_flow_event(p, nfe->get_record(), service);
- DataBus::publish(RNA_NEW_NETFLOW_HOST, new_flow_event);
- return;
- }
+ uint32_t service = nfe->get_service_id();
+ RNAEvent new_flow_event(p, nfe->get_record(), service);
+ DataBus::publish(RNA_NEW_NETFLOW_CONN, new_flow_event);
+ return;
+ }
+ if ( new_host )
+ {
if ( nfe->get_create_host() )
logger.log(RNA_EVENT_NEW, NEW_HOST, p, &ht, src_ip_ptr, src_mac);
else
#include "framework/data_bus.h"
#include "service_inspectors/netflow/netflow_record.h"
-#define RNA_NEW_NETFLOW_HOST "network_inspector.rna.new_netflow_host"
+#define RNA_NEW_NETFLOW_CONN "network_inspector.rna.new_netflow_host"
namespace snort
{
}
-#endif
\ No newline at end of file
+#endif
continue;
}
- if ( record_status.bytes_sent and record_status.packets_sent and
- record_status.src and record_status.dst and record_status.first and
- record_status.last and record.first_pkt_second <= record.last_pkt_second )
+ if ( record_status.src and record_status.dst )
{
if ( record_status.src_tos )
{