Handles TCP flags via nProbe

This commit is contained in:
Simone Mainardi 2019-03-25 20:31:13 +01:00
parent 64911a37e8
commit 3fcb15cda2
9 changed files with 91 additions and 29 deletions

View file

@ -341,7 +341,7 @@ bool ParserInterface::parsePENZeroField(ZMQ_Flow * const flow, u_int32_t field,
flow->core.l4_proto = atoi(value);
break;
case TCP_FLAGS:
flow->core.tcp_flags = atoi(value);
flow->core.tcp.tcp_flags = atoi(value);
break;
case INITIATOR_PKTS:
flow->core.absolute_packet_octet_counters = true;
@ -483,6 +483,10 @@ bool ParserInterface::parsePENNtopField(ZMQ_Flow * const flow, u_int32_t field,
flow->core.tcp.serverNwLatency.tv_usec = 1e3 * (server_nw_latency - flow->core.tcp.serverNwLatency.tv_sec * 1e3);
break;
}
case CLIENT_TCP_FLAGS:
flow->core.tcp.client_tcp_flags = atoi(value);
case SERVER_TCP_FLAGS:
flow->core.tcp.server_tcp_flags = atoi(value);
case APPL_LATENCY_MS:
flow->core.tcp.applLatencyMsec = atof(value);
break;