]> git.ipfire.org Git - people/ms/suricata.git/commit
detect/iponly: validate netmask
authorVictor Julien <vjulien@oisf.net>
Tue, 1 Mar 2022 11:42:49 +0000 (12:42 +0100)
committerVictor Julien <vjulien@oisf.net>
Wed, 2 Mar 2022 07:17:18 +0000 (08:17 +0100)
commit79b7b7a0ddfdcd7664ca328a41d24fbca75e3e54
tree478999964232ea0d53d6222f342428ee42388ff6
parent259bd8aa92c7bc8ca8c74b3f429f321935493828
detect/iponly: validate netmask

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-iponly.c