* If the packet is to be dropped we need to set the wirelength
* before releasing the Napatech buffer back to NTService.
*/
+#ifdef NAPATECH_ENABLE_BYPASS
if (is_inline && PACKET_TEST_ACTION(p, ACTION_DROP)) {
p->ntpv.dyn3->wireLength = 0;
}
-#ifdef NAPATECH_ENABLE_BYPASS
/*
* If this flow is to be programmed for hardware bypass we do it now. This is done
* here because the action is not available in the packet structure at the time of the
SC_ATOMIC_ADD(stream_count, 1);
if (SC_ATOMIC_GET(stream_count) == NapatechGetNumConfiguredStreams()) {
+#ifdef NAPATECH_ENABLE_BYPASS
if (ConfGetBool("napatech.inline", &is_inline) == 0) {
is_inline = 0;
}
-#ifdef NAPATECH_ENABLE_BYPASS
/* Initialize the port map before we setup traffic filters */
for (int i = 0; i < MAX_PORTS; ++i) {
inline_port_map[i] = -1;
NtConfigStream_t hconfig;
char ntpl_cmd[512];
int is_inline = 0;
+#ifdef NAPATECH_ENABLE_BYPASS
int is_span_port[MAX_PORTS] = { 0 };
+#endif
char span_ports[128];
memset(span_ports, 0, sizeof(span_ports));