|
From: <cn...@us...> - 2025-04-03 20:14:03
|
Revision: 1580
http://sourceforge.net/p/seq/svn/1580
Author: cn187
Date: 2025-04-03 20:13:42 +0000 (Thu, 03 Apr 2025)
Log Message:
-----------
Allow SEQ to monitor interfaces that don't have an IP assigned
Modified Paths:
--------------
showeq/branches/cn187_devel/src/util.cpp
Modified: showeq/branches/cn187_devel/src/util.cpp
===================================================================
--- showeq/branches/cn187_devel/src/util.cpp 2025-04-03 20:12:36 UTC (rev 1579)
+++ showeq/branches/cn187_devel/src/util.cpp 2025-04-03 20:13:42 UTC (rev 1580)
@@ -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.
|