[Interest] QNetworkInterface working differently on Qt5?

Tom Isaacson Tom.Isaacson at navico.com
Fri Dec 4 19:13:28 CET 2015


> Fixed in https://codereview.qt-project.org/142861.
>
> It now reports:
>
>  Interface:      "vlan0" 
>      index:      14
>      flags:      Up,Running,Broadcast,Multicast
>      type:       QNetworkInterface::InterfaceType(Ethernet)
>      hw address: 5C:51:4F:7C:49:F8
>      address  0: 192.168.1.1/32 (255.255.255.255) broadcast 192.168.1.255
>      address  1: 192.168.1.2/32 (255.255.255.255) broadcast 192.168.1.255
>      address  2: fe80::5e51:4fff:fe7c:49f8%vlan0/64 (ffff:ffff:ffff:ffff::)
>
> But note that your application still has a bug because you were assuming the MAC address is unique among the interfaces on your machine. That is not
> required: it's possible for the same MAC address to be used by multiple interfaces. You should fix that.

That works fine, thanks.






More information about the Interest mailing list