--- libaitio/inc/aitio.h 2011/10/31 13:53:51 1.12 +++ libaitio/inc/aitio.h 2011/10/31 14:13:02 1.12.2.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitio.h,v 1.12 2011/10/31 13:53:51 misho Exp $ +* $Id: aitio.h,v 1.12.2.1 2011/10/31 14:13:02 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -54,6 +54,10 @@ SUCH DAMAGE. #include #include #include +#include +#include +#include +#include #define VACUUM_LEFT 1 @@ -235,6 +239,15 @@ typedef struct { struct io_ether_addr { u_int8_t ether_addr_octet[6]; }; + +typedef union { + struct sockaddr_storage ss; + struct sockaddr sa; + struct sockaddr_un sun; + struct sockaddr_in sin; + struct sockaddr_in6 sin6; + struct sockaddr_dl sdl; +} io_sockaddr_t; // io_GetErrno() Get error code of last operation