[Ada] GNAT.Sockets: support ICMP, IGMP and RAW IP protocol levels
authorDmitriy Anisimkov <anisimko@adacore.com>
Thu, 11 Jul 2019 08:02:49 +0000 (08:02 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Thu, 11 Jul 2019 08:02:49 +0000 (08:02 +0000)
commit810097a72d1767627d2439bb94627b443f41bf7f
tree147af898e56b2f02fc9bc68cd4dac24e1dbc2cc1
parent1048a1839fde97a1bd790b002dad8b79e172724f
[Ada] GNAT.Sockets: support ICMP, IGMP and RAW IP protocol levels

2019-07-11  Dmitriy Anisimkov  <anisimko@adacore.com>

gcc/ada/

* libgnat/g-socket.ads (Level_Type): Add enumerators for
IP_Protocol_For_ICMP, IP_Protocol_For_IGMP,
IP_Protocol_For_RAW_Level.
* libgnat/g-socket.adb (Levels): Handle them.
* s-oscons-tmplt.c: Import socket protocols defined in
netinet/in.h.

From-SVN: r273398
gcc/ada/ChangeLog
gcc/ada/libgnat/g-socket.adb
gcc/ada/libgnat/g-socket.ads
gcc/ada/s-oscons-tmplt.c