From be3873f03972b44e95458345b5ab73b1b75e2eee Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 31 Oct 2007 23:27:55 +0000 Subject: in progress update git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@360 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/include/netinet/in.h | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'nuttx/include/netinet') diff --git a/nuttx/include/netinet/in.h b/nuttx/include/netinet/in.h index dd518388a..163e16ab1 100644 --- a/nuttx/include/netinet/in.h +++ b/nuttx/include/netinet/in.h @@ -48,22 +48,26 @@ /* Values for protocol argument to socket() */ -#define IPPROTO_TCP 1 -#define IPPROTO_UDP 2 +#define IPPROTO_TCP 1 +#define IPPROTO_UDP 2 /* Special values of in_addr_t */ -#define INADDR_ANY ((in_addr_t)0x00000000) /* Address to accept any incoming messages */ -#define INADDR_BROADCAST ((in_addr_t)0xffffffff) /* Address to send to all hosts */ -#define INADDR_NONE ((in_addr_t)0xffffffff) /* Address indicating an error return */ +#define INADDR_ANY ((in_addr_t)0x00000000) /* Address to accept any incoming messages */ +#define INADDR_BROADCAST ((in_addr_t)0xffffffff) /* Address to send to all hosts */ +#define INADDR_NONE ((in_addr_t)0xffffffff) /* Address indicating an error return */ +#define INADDR_LOOPBACK ((in_addr_t)0x7f000001) /* Inet 127.0.0.1. */ -#define IN6ADDR_ANY_INIT {{{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}}} +/* Special initializer for in6_addr_t */ + +#define IN6ADDR_ANY_INIT {{{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}}} +#define IN6ADDR_LOOPBACK_INIT {{{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}}} /* struct in6_addr union selectors */ -#define s6_addr in6_u.u6_addr8 -#define s6_addr16 in6_u.u6_addr16 -#define s6_addr32 in6_u.u6_addr32 +#define s6_addr in6_u.u6_addr8 +#define s6_addr16 in6_u.u6_addr16 +#define s6_addr32 in6_u.u6_addr32 /**************************************************************************** * Public Type Definitions -- cgit v1.2.3