File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ void OVPNPlugin::pre_export(Flow &rec)
209209
210210 // do not export ovpn for short flows, usually port scans
211211 uint32_t packets = rec.src_packets + rec.dst_packets ;
212- if (packets <= 5 ) {
212+ if (packets <= min_pckt_export_treshold ) {
213213 rec.remove_extension (RecordExtOVPN::REGISTERED_ID);
214214 return ;
215215 }
Original file line number Diff line number Diff line change @@ -156,6 +156,7 @@ class OVPNPlugin : public ProcessPlugin
156156 static const uint32_t c_udp_opcode_index = 0 ;
157157 static const uint32_t c_tcp_opcode_index = 2 ;
158158 static const uint32_t min_pckt_treshold = 20 ;
159+ static const uint32_t min_pckt_export_treshold = 5 ;
159160 static constexpr float data_pckt_treshold = 0 .6f ;
160161 static const int32_t invalid_pckt_treshold = 4 ;
161162 static const uint32_t min_opcode = 1 ;
You can’t perform that action at this time.
0 commit comments