|
@@ -169,12 +169,6 @@
|
|
|
#define ENET_BUFFER_MAXIMUM (1 + 2 * ENET_PROTOCOL_MAXIMUM_PACKET_COMMANDS)
|
|
#define ENET_BUFFER_MAXIMUM (1 + 2 * ENET_PROTOCOL_MAXIMUM_PACKET_COMMANDS)
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
-struct in4_addr {
|
|
|
|
|
- uint8_t zeros[10];
|
|
|
|
|
- uint16_t ffff;
|
|
|
|
|
- struct in_addr ip;
|
|
|
|
|
-};
|
|
|
|
|
-
|
|
|
|
|
/* Macros */
|
|
/* Macros */
|
|
|
|
|
|
|
|
#define ENET_HOST_ANY in6addr_any
|
|
#define ENET_HOST_ANY in6addr_any
|
|
@@ -190,6 +184,17 @@ struct in4_addr {
|
|
|
extern "C" {
|
|
extern "C" {
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
|
|
+ #ifndef IN4ADDR
|
|
|
|
|
+ #define IN4ADDR
|
|
|
|
|
+
|
|
|
|
|
+ struct in4_addr {
|
|
|
|
|
+ uint8_t zeros[10];
|
|
|
|
|
+ uint16_t ffff;
|
|
|
|
|
+ struct in_addr ip;
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ #endif
|
|
|
|
|
+
|
|
|
/*
|
|
/*
|
|
|
=======================================================================
|
|
=======================================================================
|
|
|
|
|
|