]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect/address: validate netmasks
authorVictor Julien <vjulien@oisf.net>
Tue, 1 Mar 2022 11:41:04 +0000 (12:41 +0100)
committerShivani Bhardwaj <shivanib134@gmail.com>
Fri, 4 Mar 2022 05:38:17 +0000 (11:08 +0530)
commit8f1644594fdc410934f9f28b6cf80a93e100e806
tree17f967463a4ad0ed50626bb429a3073cf0d776b0
parent20171f9be1a48e0e72d4d946641ccb8b188d99f3
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.
(cherry picked from commit 259bd8aa92c7bc8ca8c74b3f429f321935493828)
src/detect-engine-address.c