diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2017-06-17 12:57:10 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2017-06-17 12:57:10 +0200 |
commit | e0fd34a1bd2c6412171bcceb19520d129bbcb66d (patch) | |
tree | 2043092f6f3f3c8075ea802f9e6ba1b1d543f59c /tdecore/tdehw/tdenetworkdevice.cpp | |
parent | eb6f8213d42aac2911c7b8880628c786b0223935 (diff) | |
download | tdelibs-e0fd34a1bd2c6412171bcceb19520d129bbcb66d.tar.gz tdelibs-e0fd34a1bd2c6412171bcceb19520d129bbcb66d.zip |
tdehwlib: Use TDENetworkDevice in TDENetworkConnectionManager instead of MAC address
Use interface name in TDENetworkConnectionManager_BackendNM instead of MAC address
This relates to bug 2748
The name of the network interface seems to be a more stable identifier than the MAC
address because the MAC address can be changed easily or even automatically - see
randomization of MAC addresses on wireless interfaces. Therefore, the use of the
MAC address as a network interface identifier was abandoned.
Beware, this change is an API / ABI change! However, most changes are internal
and the only one affected is application TDENetworkManager.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'tdecore/tdehw/tdenetworkdevice.cpp')
-rw-r--r-- | tdecore/tdehw/tdenetworkdevice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tdecore/tdehw/tdenetworkdevice.cpp b/tdecore/tdehw/tdenetworkdevice.cpp index f49eca9e6..ad4b71a6b 100644 --- a/tdecore/tdehw/tdenetworkdevice.cpp +++ b/tdecore/tdehw/tdenetworkdevice.cpp @@ -174,7 +174,7 @@ void TDENetworkDevice::internalSetTxPackets(double tx) { TDENetworkConnectionManager* TDENetworkDevice::connectionManager() { #ifdef WITH_NETWORK_MANAGER_BACKEND if (!m_connectionManager) { - m_connectionManager = new TDENetworkConnectionManager_BackendNM(m_macAddress); + m_connectionManager = new TDENetworkConnectionManager_BackendNM(this); } #endif // WITH_NETWORK_MANAGER_BACKEND |