From: maxtors Date: Thu, 5 May 2016 08:58:24 +0000 (+0200) Subject: Use ConfValIs* for parsing pf-ring.checksum-checks. X-Git-Tag: suricata-3.1RC1~197 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a81796654f5becc59e4793cd9ff50b77e51f4d9a;p=thirdparty%2Fsuricata.git Use ConfValIs* for parsing pf-ring.checksum-checks. --- diff --git a/src/runmode-pfring.c b/src/runmode-pfring.c index ca37649c7c..f7aa410a5d 100644 --- a/src/runmode-pfring.c +++ b/src/runmode-pfring.c @@ -354,9 +354,9 @@ void *ParsePfringConfig(const char *iface) if (ConfGetChildValueWithDefault(if_root, if_default, "checksum-checks", &tmpctype) == 1) { if (strcmp(tmpctype, "auto") == 0) { pfconf->checksum_mode = CHECKSUM_VALIDATION_AUTO; - } else if (strcmp(tmpctype, "yes") == 0) { + } else if (ConfValIsTrue(tmpctype)) { pfconf->checksum_mode = CHECKSUM_VALIDATION_ENABLE; - } else if (strcmp(tmpctype, "no") == 0) { + } else if (ConfValIsFalse(tmpctype)) { pfconf->checksum_mode = CHECKSUM_VALIDATION_DISABLE; } else if (strcmp(tmpctype, "rx-only") == 0) { pfconf->checksum_mode = CHECKSUM_VALIDATION_RXONLY;