Add --no-dport-filter flag

This flag allows to reduce amount of network packet to analyze.
This commit is contained in:
Vadim Vetrov
2025-01-09 00:53:56 +03:00
parent 37c8a798fd
commit 9b58869864
5 changed files with 24 additions and 0 deletions

View File

@@ -431,6 +431,10 @@ int detect_udp_filtered(const struct section_config_t *section,
}
if (section->udp_filter_quic != UDP_FILTER_QUIC_DISABLED) {
if (section->dport_filter && ntohs(udph->dest) != 443)
goto match_port;
const struct quic_lhdr *qch;
size_t qch_len;
struct quic_cids qci;