* include/cygwin/in.h: Define IPPROTO_xxx values as macros to
accomodate SUSv3.
This commit is contained in:
parent
8c509c0a11
commit
58065cb805
|
@ -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>
|
2005-05-19 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
* include/limits.h: Include features.h, as on linux.
|
* include/limits.h: Include features.h, as on linux.
|
||||||
|
|
|
@ -32,11 +32,21 @@ enum
|
||||||
IPPROTO_PUP = 12, /* PUP protocol */
|
IPPROTO_PUP = 12, /* PUP protocol */
|
||||||
IPPROTO_UDP = 17, /* User Datagram Protocol */
|
IPPROTO_UDP = 17, /* User Datagram Protocol */
|
||||||
IPPROTO_IDP = 22, /* XNS IDP protocol */
|
IPPROTO_IDP = 22, /* XNS IDP protocol */
|
||||||
|
|
||||||
IPPROTO_RAW = 255, /* Raw IP packets */
|
IPPROTO_RAW = 255, /* Raw IP packets */
|
||||||
IPPROTO_MAX
|
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;
|
typedef uint16_t in_port_t;
|
||||||
/* Standard well-known ports. *//* from winsup/include/netinet/in.h */
|
/* Standard well-known ports. *//* from winsup/include/netinet/in.h */
|
||||||
enum
|
enum
|
||||||
|
|
Loading…
Reference in New Issue