Remove vestiges of Qt's own sockaddr_in6 and sockaddr_storage
authorThiago Macieira <thiago.macieira@intel.com>
Mon, 10 Aug 2015 04:56:26 +0000 (21:56 -0700)
committerThiago Macieira <thiago.macieira@intel.com>
Sat, 22 Aug 2015 22:26:50 +0000 (22:26 +0000)
commitb626a5859abef9a1b47ba02ffab0fd8d08f79a21
tree003067761813577311d306e82e1865d235a5eaf9
parent452924c6ffc9624062bfb83eda8499044cc4719f
Remove vestiges of Qt's own sockaddr_in6 and sockaddr_storage

We weren't using qt_sockaddr_storage, so it's not a problem. But since
we're not using it anyway, we don't really need it. The storage is only
needed if we needed to get a bigger socket address and that only happens
with Unix sockets (paths).

sockaddr_in6, however, was just wrong. Some systems derived from BSD,
like OS X, have a sXX_len field containing the length of the socket
address structure and our qt_sockaddr_in6 was missing sin6_len. As a
result, setting sin6_family was just plain wrong on little-endian
systems. Like all modern systems running BSDs and OS X...

Change-Id: I7de033f80b0e4431b7f1ffff13f900f004c55443
Reviewed-by: Richard J. Moore <rich@kde.org>
src/network/kernel/qhostinfo_win.cpp
src/network/kernel/qnetworkinterface_win.cpp
src/network/kernel/qnetworkinterface_win_p.h
src/network/socket/qnativesocketengine_p.h
src/network/socket/qnativesocketengine_win.cpp