|
From: <cn...@us...> - 2025-04-03 20:12:53
|
Revision: 1579
http://sourceforge.net/p/seq/svn/1579
Author: cn187
Date: 2025-04-03 20:12:36 +0000 (Thu, 03 Apr 2025)
Log Message:
-----------
Allow SEQ to monitor interfaces that don't have an IP assigned
Modified Paths:
--------------
showeq/trunk/src/util.cpp
Modified: showeq/trunk/src/util.cpp
===================================================================
--- showeq/trunk/src/util.cpp 2025-03-19 02:50:19 UTC (rev 1578)
+++ showeq/trunk/src/util.cpp 2025-04-03 20:12:36 UTC (rev 1579)
@@ -1060,10 +1060,10 @@
for (ifa = ifaddr, n = 0; ifa != NULL; ifa = ifa->ifa_next, n++)
{
- if (ifa->ifa_addr == NULL)
+ if (ifa->ifa_addr == NULL || devices.contains(ifa->ifa_name))
continue;
- if (ifa->ifa_addr->sa_family == AF_INET)
+ if (ifa->ifa_addr->sa_family == AF_INET || ifa->ifa_addr->sa_family == AF_PACKET)
devices.append(ifa->ifa_name);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|