File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -704,6 +704,7 @@ class Flow : public GenericHashEntry {
704704 u_int16_t payload_len,
705705 const struct pcap_pkthdr *h);
706706#ifdef NTOPNG_PRO
707+ void updateOTStats (ParsedFlow *zflow);
707708 void processModbusPacket (bool is_query, const u_char *payload,
708709 u_int16_t payload_len,
709710 const struct pcap_pkthdr *h);
Original file line number Diff line number Diff line change @@ -613,6 +613,12 @@ bool ParserInterface::processFlow(ParsedFlow *zflow) {
613613 flow->updateJA4C (zflow->getJA4cHash ());
614614 }
615615
616+ #ifdef NTOPNG_PRO
617+ if (flow->isModbus ()) {
618+ flow->updateOTStats (zflow);
619+ }
620+ #endif
621+
616622 if (flow->isSMTP ()) {
617623 if (zflow->getSMTPMailFrom ())
618624 flow->setSMTPMailFrom (zflow->getSMTPMailFrom ());
You can’t perform that action at this time.
0 commit comments