1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/net/knemo-kde4/files/patch-svn_1299926
Alberto Villa a6e1119138 - Import my upstream patches:
* fix wrong traffic report;
  * fix link state awareness;
  * fix wrong encryption state with MIXED privacy WEP connections;
  * fix default gateway detection.
- Update COMMENT.
- Bump PORTREVISION.

https://bugs.kde.org/show_bug.cgi?id=301546
https://bugs.kde.org/show_bug.cgi?id=301577
https://bugs.kde.org/show_bug.cgi?id=301697
https://bugs.kde.org/show_bug.cgi?id=301699

Approved by:	makc (maintainer) via email
2012-06-12 12:06:19 +00:00

17 lines
814 B
Plaintext

--- ./src/knemod/backends/bsdbackend.cpp 2012/06/12 02:18:03 1299925
+++ ./src/knemod/backends/bsdbackend.cpp 2012/06/12 02:18:06 1299926
@@ -334,7 +334,12 @@
addrKey = getAddr( ifa, addrVal );
// Check here too for non-ethernet interfaces
- if ( ifa->ifa_flags & IFF_RUNNING &&
+ struct ifmediareq ifmr;
+ memset( &ifmr, 0, sizeof( ifmr ) );
+ strncpy( ifmr.ifm_name, ifName.toLatin1(), sizeof( ifmr.ifm_name ) );
+ if ( ioctl( s, SIOCGIFMEDIA, &ifmr ) >= 0 &&
+ ifmr.ifm_status & IFM_AVALID &&
+ ifmr.ifm_status & IFM_ACTIVE &&
addrVal.scope != RT_SCOPE_LINK &&
addrVal.scope != RT_SCOPE_NOWHERE )
{