[Ada] GNAT.Sockets: support ICMP, IGMP and RAW IP protocol levels

Programming / Compilers / GCC - pmderodat [138bc75d-0d04-0410-961f-82ee72b054a4] - 11 July 2019 08:02 EDT

2019-07-11 Dmitriy Anisimkov

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.

dc001f3e55c [Ada] GNAT.Sockets: support ICMP, IGMP and RAW IP protocol levels
gcc/ada/ChangeLog | 9 ++++
gcc/ada/libgnat/g-socket.adb | 5 ++-
gcc/ada/libgnat/g-socket.ads | 5 ++-
gcc/ada/s-oscons-tmplt.c | 105 +++++++++++++++++++++++++++++++++++++++++++
4 files changed, 122 insertions(+), 2 deletions(-)

Upstream: gcc.gnu.org


  • Share