]> git.ipfire.org Git - people/ms/suricata.git/commit
detect/address: validate netmasks
authorVictor Julien <vjulien@oisf.net>
Tue, 1 Mar 2022 11:41:04 +0000 (12:41 +0100)
committerVictor Julien <vjulien@oisf.net>
Wed, 2 Mar 2022 07:17:18 +0000 (08:17 +0100)
commit259bd8aa92c7bc8ca8c74b3f429f321935493828
treeca1c3bb52d6ee31f8ddf32426778bd9ed8ec33f4
parent4020e2faa7ee93dfed663b4b0795644572ddfd79
detect/address: validate netmasks

Only accept netmask in dotted quad notation if they can be turned
into a CIDR.

According to rfc 4632, CIDR (compat) netmasks are all that should be
used.

Bug: #5168.
src/detect-engine-address.c