[Ada] GNAT.Sockets: fix recent regressions
authorPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Fri, 22 Mar 2019 13:59:02 +0000 (13:59 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Fri, 22 Mar 2019 13:59:02 +0000 (13:59 +0000)
commit29e0246c68efd4b68f9593ff26b3c123fb05161d
treed8fc70816991d4f49a5255aa5fe952ed585e5ff1
parentb6c5f9f3dd489efa345175c8ac1352fa2849d32c
[Ada] GNAT.Sockets: fix recent regressions

The support for IPv6 that was added since last release triggered
regressions on various platforms. The size of structures passed to low
level routines was not correct anymore: it should depend on the address
family, now.

2019-03-22  Dmitriy Anisimkov  <anisimko@adacore.com>

gcc/ada/

PR ada/89583
* libgnat/g-socket.adb (Bind_Socket, Connect_Socket,
Send_Socket): Fix the computation of structure lengths passed to
low level routines.
(Is_IPv6_Address): Fix the number of expected colons.

2019-03-22  Simon Wright  <simon@pushface.org>

gcc/testsuite/

PR ada/89583
* gnat.dg/socket2.adb: New.

From-SVN: r269873
gcc/ada/ChangeLog
gcc/ada/libgnat/g-socket.adb
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/socket2.adb [new file with mode: 0644]