#include "detection/ips_context.h"
#include "hash/zhash.h"
#include "packet_io/sfdaq_instance.h"
+#include "packet_tracer/packet_tracer.h"
#include "protocols/packet.h"
#include "protocols/vlan.h"
#include "pub_sub/expect_events.h"
last = nullptr;
/* Only add TCP and UDP expected flows for now via the DAQ module. */
if ((ip_proto == IpProtocol::TCP || ip_proto == IpProtocol::UDP) && ctrlPkt->daq_instance)
+ {
+ if (PacketTracer::is_active())
+ {
+ SfIpString sipstr;
+ SfIpString dipstr;
+ cliIP->ntop(sipstr, sizeof(sipstr));
+ srvIP->ntop(dipstr, sizeof(dipstr));
+ PacketTracer::log("Create expected channel request sent with %s -> %s %hu %hhu\n",
+ dipstr, sipstr, srvPort, static_cast<uint8_t>(ip_proto));
+ }
ctrlPkt->daq_instance->add_expected(ctrlPkt, cliIP, cliPort, srvIP, srvPort,
ip_proto, 1000, 0);
+ }
}
bool new_expect_flow = false;