OSDN Git Service

* include/cygwin/in.h: Define IPPROTO_xxx values as macros to
authorcorinna <corinna>
Thu, 19 May 2005 21:18:15 +0000 (21:18 +0000)
committercorinna <corinna>
Thu, 19 May 2005 21:18:15 +0000 (21:18 +0000)
accomodate SUSv3.

winsup/cygwin/ChangeLog
winsup/cygwin/include/cygwin/in.h

index b2f21c8..62d550b 100644 (file)
@@ -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.
index 76bdaaa..d1e10dc 100644 (file)
@@ -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