From 58065cb805ca45e1a06e2f3ff4444b6446b00334 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 19 May 2005 21:18:17 +0000 Subject: [PATCH] * include/cygwin/in.h: Define IPPROTO_xxx values as macros to accomodate SUSv3. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/include/cygwin/in.h | 12 +++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index b2f21c85e..62d550b95 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2005-05-19 Corinna Vinschen + + * include/cygwin/in.h: Define IPPROTO_xxx values as macros to + accomodate SUSv3. + 2005-05-19 Christopher Faylor * include/limits.h: Include features.h, as on linux. diff --git a/winsup/cygwin/include/cygwin/in.h b/winsup/cygwin/include/cygwin/in.h index 76bdaaa3e..d1e10dcef 100644 --- a/winsup/cygwin/include/cygwin/in.h +++ b/winsup/cygwin/include/cygwin/in.h @@ -32,11 +32,21 @@ enum IPPROTO_PUP = 12, /* PUP protocol */ IPPROTO_UDP = 17, /* User Datagram Protocol */ IPPROTO_IDP = 22, /* XNS IDP protocol */ - IPPROTO_RAW = 255, /* Raw IP packets */ IPPROTO_MAX }; +#define IPPROTO_IP IPPROTO_IP +#define IPPROTO_ICMP IPPROTO_ICMP +#define IPPROTO_IGMP IPPROTO_IGMP +#define IPPROTO_IPIP IPPROTO_IPIP +#define IPPROTO_TCP IPPROTO_TCP +#define IPPROTO_EGP IPPROTO_EGP +#define IPPROTO_PUP IPPROTO_PUP +#define IPPROTO_UDP IPPROTO_UDP +#define IPPROTO_IDP IPPROTO_IDP +#define IPPROTO_RAW IPPROTO_RAW + typedef uint16_t in_port_t; /* Standard well-known ports. *//* from winsup/include/netinet/in.h */ enum -- 2.43.5