]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
util-ioctl: add message in case of failure
authorEric Leblond <eric@regit.org>
Thu, 4 Dec 2014 17:11:22 +0000 (18:11 +0100)
committerEric Leblond <eric@regit.org>
Thu, 4 Dec 2014 17:14:49 +0000 (18:14 +0100)
src/util-ioctl.c

index b3a0f224784eee555bd4381ee01a941ac2d25f6a..28a72f796189b0cd35241b334a8d664df88f17d1 100644 (file)
@@ -220,6 +220,9 @@ int GetIfaceRSSQueuesNum(const char *pcap_dev)
     (void)strlcpy(ifr.ifr_name, pcap_dev, sizeof(ifr.ifr_name));
     fd = socket(AF_INET, SOCK_DGRAM, 0);
     if (fd == -1) {
+        SCLogWarning(SC_ERR_SYSCALL,
+                "Failure when opening socket for ioctl: %d",
+                errno);
         return -1;
     }