diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2005-05-20 01:18:17 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2005-05-20 01:18:17 +0400 |
commit | 58065cb805ca45e1a06e2f3ff4444b6446b00334 (patch) | |
tree | 418d174a05700e69ebce1a9ee9f9f81d3f966bfb | |
parent | 8c509c0a1175b001b22ce3433c238e7f7f9a0fcc (diff) |
* include/cygwin/in.h: Define IPPROTO_xxx values as macros to
accomodate SUSv3.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/include/cygwin/in.h | 12 |
2 files changed, 16 insertions, 1 deletions
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 <corinna@vinschen.de> + + * include/cygwin/in.h: Define IPPROTO_xxx values as macros to + accomodate SUSv3. + 2005-05-19 Christopher Faylor <cgf@timesys.com> * 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 |