pub fn check_cidr(cidr: &str) -> Result<(), String>Expand description
Check that a |cidr value is address/prefix with no host bits set, as
pySigma requires.
ยงExamples
use rsigma_parser::validate::check_cidr;
assert!(check_cidr("10.0.0.0/8").is_ok());
assert!(check_cidr("10.0.0.1/8").is_err());
assert!(check_cidr("fe80::/10").is_ok());