/*
* Copyright (C) 2004, 2007, 2013 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2000, 2001 Internet Software Consortium.
*
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: net.h,v 1.6 2007/06/19 23:47:23 tbox Exp $ */
#ifndef LWRES_NET_H
/*****
***** Module Info
*****/
/*
* Basic Networking Types
*
* This module is responsible for defining the following basic networking
* types:
*
* struct in_addr
* struct in6_addr
* struct sockaddr
* struct sockaddr_in
* struct sockaddr_in6
*
* It ensures that the AF_ and PF_ macros are defined.
*
* It declares ntoh[sl]() and hton[sl]().
*
* It declares lwres_net_aton(), lwres_net_ntop(), and lwres_net_pton().
*
* It ensures that INADDR_LOOPBACK, INADDR_ANY and IN6ADDR_ANY_INIT
* are defined.
*/
/***
*** Imports.
***/
/*
* Because of some sort of problem in the MS header files, this cannot
* be simple "#include <winsock2.h>", because winsock2.h tries to include
* figure it out.
*/
#ifndef _WINSOCKAPI_
#endif
#include <winsock2.h>
#ifndef INADDR_LOOPBACK
#endif
/*
* Fix the FD_SET and FD_CLR Macros to properly cast
*/
__i++; \
} \
break; \
} \
} \
} while (0)
break; \
} \
} \
} \
} \
} while (0)
/*
* Windows Sockets errors redefined as regular Berkeley error constants.
* These are usually commented out in Windows NT to avoid conflicts with errno.h.
* Use the WSA constants instead.
*/
#include <errno.h>
#ifndef EWOULDBLOCK
#endif
#ifndef EINPROGRESS
#endif
#ifndef EALREADY
#endif
#ifndef ENOTSOCK
#endif
#ifndef EDESTADDRREQ
#endif
#ifndef EMSGSIZE
#endif
#ifndef EPROTOTYPE
#endif
#ifndef ENOPROTOOPT
#endif
#ifndef EPROTONOSUPPORT
#endif
#ifndef ESOCKTNOSUPPORT
#endif
#ifndef EOPNOTSUPP
#endif
#ifndef EPFNOSUPPORT
#endif
#ifndef EAFNOSUPPORT
#endif
#ifndef EADDRINUSE
#endif
#ifndef EADDRNOTAVAIL
#endif
#ifndef ENETDOWN
#endif
#ifndef ENETUNREACH
#endif
#ifndef ENETRESET
#endif
#ifndef ECONNABORTED
#endif
#ifndef ECONNRESET
#endif
#ifndef ENOBUFS
#endif
#ifndef EISCONN
#endif
#ifndef ENOTCONN
#endif
#ifndef ESHUTDOWN
#endif
#ifndef ETOOMANYREFS
#endif
#ifndef ETIMEDOUT
#endif
#ifndef ECONNREFUSED
#endif
#ifndef ELOOP
#endif
#ifndef EHOSTDOWN
#endif
#ifndef EHOSTUNREACH
#endif
#ifndef EPROCLIM
#endif
#ifndef EUSERS
#endif
#ifndef EDQUOT
#endif
#ifndef ESTALE
#endif
#ifndef EREMOTE
#endif
const char *
int
int
#endif /* LWRES_NET_H */