From: maxtors Date: Thu, 5 May 2016 08:50:21 +0000 (+0200) Subject: Use ConfValIs* for parsing af-packet.checksum-checks. X-Git-Tag: suricata-3.1RC1~200 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d18e2f6e9a5a9a6f944bf54dbb648473d9e49fa5;p=thirdparty%2Fsuricata.git Use ConfValIs* for parsing af-packet.checksum-checks. --- diff --git a/src/runmode-af-packet.c b/src/runmode-af-packet.c index ee44042a2c..85d4c770a0 100644 --- a/src/runmode-af-packet.c +++ b/src/runmode-af-packet.c @@ -359,9 +359,9 @@ void *ParseAFPConfig(const char *iface) if (ConfGetChildValueWithDefault(if_root, if_default, "checksum-checks", &tmpctype) == 1) { if (strcmp(tmpctype, "auto") == 0) { aconf->checksum_mode = CHECKSUM_VALIDATION_AUTO; - } else if (strcmp(tmpctype, "yes") == 0) { + } else if (ConfValIsTrue(tmpctype)) { aconf->checksum_mode = CHECKSUM_VALIDATION_ENABLE; - } else if (strcmp(tmpctype, "no") == 0) { + } else if (ConfValIsFalse(tmpctype)) { aconf->checksum_mode = CHECKSUM_VALIDATION_DISABLE; } else if (strcmp(tmpctype, "kernel") == 0) { aconf->checksum_mode = CHECKSUM_VALIDATION_KERNEL;