[Interest] QNetworkInterface working differently on Qt5?
Thiago Macieira
thiago.macieira at intel.com
Wed Dec 2 07:04:12 CET 2015
On Wednesday 02 December 2015 05:31:01 Tom Isaacson wrote:
> Did a bit more debugging and it seems that QNetworkInterface::
> allAddresses() does return all the IP addresses but
> QNetworkInterface::addressEntries() only returns 1.
Can you show me your code?
> >We have an embedded Linux device setup to get two IP addresses like this:
> >
> ># ifconfig
ifconfig has been deprecated for 10 years. Please show me the output of
ip addr
If you're able to, I'd appreciate if you ran the "dump" test from
tests/auto/network/kernel/qnetworkinterface:
$ ./tst_qnetworkinterface dump | sed 's,^.*dump(),,'
********* Start testing of tst_QNetworkInterface *********
Config: Using QtTest library 5.6.0, Qt 5.6.0 (x86_64-little_endian-lp64 shared
(dynamic) debug build; by GCC 5.2.1 20151120 [gcc-5-branch revision 230657])
PASS : tst_QNetworkInterface::initTestCase()
Interface: "lo"
index: 1
flags: Up,Running,Loopback
hw address: 00:00:00:00:00:00
address 0: 127.0.0.1/8 (255.0.0.0) broadcast 127.255.255.255
address 1: ::1/128 (ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff)
Interface: "wlp2s0"
index: 2
flags: Up,Running,Broadcast,Multicast
hw address: 5C:51:4F:7C:49:F8
address 0: 10.0.0.108/24 (255.255.255.0) broadcast 10.0.0.255
address 1: fd2d:2122:f24:0:65d8:a47f:c825:2fe5/64
(ffff:ffff:ffff:ffff::)
address 2: fd2d:2122:f24:0:5e51:4fff:fe7c:49f8/64
(ffff:ffff:ffff:ffff::)
address 3: 2601:1c0:5803:81c9:65d8:a47f:c825:2fe5/64
(ffff:ffff:ffff:ffff::)
address 4: 2601:1c0:5803:81c9:5e51:4fff:fe7c:49f8/64
(ffff:ffff:ffff:ffff::)
address 5: fd2d:2122:f24::9bd/128
(ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff)
address 6: fe80::5e51:4fff:fe7c:49f8%wlp2s0/64 (ffff:ffff:ffff:ffff::)
PASS : tst_QNetworkInterface::cleanupTestCase()
Totals: 3 passed, 0 failed, 0 skipped, 0 blacklisted
********* Finished testing of tst_QNetworkInterface *********
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Interest
mailing list