From: Eric Leblond Date: Tue, 26 Mar 2013 17:24:46 +0000 (+0100) Subject: Don't try to sniff 'default' interface X-Git-Tag: suricata-2.0beta1~194 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=26b7af1483fa27bbacd1d8f4dc911f337c557a1b;p=thirdparty%2Fsuricata.git Don't try to sniff 'default' interface Whan running suricata via 'suricata --af-packet', the list of interfaces was containing the 'default' interface and sniffing it was attempted. This was not wanted. --- diff --git a/src/util-device.c b/src/util-device.c index f5ace7da73..14459f0040 100644 --- a/src/util-device.c +++ b/src/util-device.c @@ -141,6 +141,8 @@ int LiveBuildDeviceList(char * runmode) ConfNode *subchild; TAILQ_FOREACH(subchild, &child->head, next) { if ((!strcmp(subchild->name, "interface"))) { + if (!strcmp(subchild->val, "default")) + break; SCLogInfo("Adding interface %s from config file", subchild->val); LiveRegisterDevice(subchild->val);