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.
pull/334/merge
Eric Leblond 12 years ago committed by Victor Julien
parent 539de3f5ea
commit 26b7af1483

@ -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);

Loading…
Cancel
Save