summaryrefslogtreecommitdiff
path: root/nuttx/include/netinet
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-10-31 23:27:55 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-10-31 23:27:55 +0000
commitbe3873f03972b44e95458345b5ab73b1b75e2eee (patch)
tree2fc5881e116bb36f5d6c6f2ae8ed86456b96c2cf /nuttx/include/netinet
parenta76a953e2fb34a521faac9c66207c08f77da9ce5 (diff)
downloadnuttx-be3873f03972b44e95458345b5ab73b1b75e2eee.tar.gz
nuttx-be3873f03972b44e95458345b5ab73b1b75e2eee.tar.bz2
nuttx-be3873f03972b44e95458345b5ab73b1b75e2eee.zip
in progress update
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@360 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/netinet')
-rw-r--r--nuttx/include/netinet/in.h22
1 files changed, 13 insertions, 9 deletions
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