diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-09-02 21:58:35 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-09-02 21:58:35 +0000 |
commit | 9a272c38fb40781171f7b4d054430f2c0be730c0 (patch) | |
tree | 892d21bc1008301a5f07a8634cf5cb227f563dc6 /nuttx/include/arpa | |
parent | 8e6fadad87d3220628d412fee845ad0b0cfb697f (diff) | |
download | nuttx-9a272c38fb40781171f7b4d054430f2c0be730c0.tar.gz nuttx-9a272c38fb40781171f7b4d054430f2c0be730c0.tar.bz2 nuttx-9a272c38fb40781171f7b4d054430f2c0be730c0.zip |
Implements basic TCP connection logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@326 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/arpa')
-rw-r--r-- | nuttx/include/arpa/inet.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/include/arpa/inet.h b/nuttx/include/arpa/inet.h index 74e3bbda4..d97ee9ff5 100644 --- a/nuttx/include/arpa/inet.h +++ b/nuttx/include/arpa/inet.h @@ -64,7 +64,7 @@ # define HTONS(ns) \ (uint16)((((uint16) (ns)) << 8) | (((uint16) (ns)) >> 8)) # define HTONL(nl) htonl(nl) \ - ((uint32)HTONS((uint16)((hs) << 16)) | (uint32)HTONS((uint16)((hs) & 0xffff))) + (((uint32)HTONS((uint16)((hs) & 0xffff)) << 16) | (uint32)HTONS((uint16)((uint16)((hs) >> 16)))) #endif #define NTOHS(hs) HTONS(hs) |