From: maxtors Date: Thu, 5 May 2016 08:51:57 +0000 (+0200) Subject: Use ConfValIs* for parsing netmap.checksum-checks. X-Git-Tag: suricata-3.1RC1~199 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b28ebae088324af35d1ff87e115f9442d1ca3f9f;p=thirdparty%2Fsuricata.git Use ConfValIs* for parsing netmap.checksum-checks. --- diff --git a/src/runmode-netmap.c b/src/runmode-netmap.c index 75eb0c6fe2..13a0c2b3d9 100644 --- a/src/runmode-netmap.c +++ b/src/runmode-netmap.c @@ -254,9 +254,9 @@ static void *ParseNetmapConfig(const char *iface_name) 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 { SCLogError(SC_ERR_INVALID_ARGUMENT, "Invalid value for checksum-checks for %s", aconf->iface_name);