aboutsummaryrefslogtreecommitdiff
path: root/system/include/net/arpa/inet.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-09-30 10:24:53 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-09-30 10:24:53 -0700
commitb614f2bc5d9fc421565824b1ceb9a3384f26f35f (patch)
tree243c47baa4c6ce4273a5743d79f3c0dbc78789e5 /system/include/net/arpa/inet.h
parentc70758e3b49beb016a3d9db7b609c499d55de48b (diff)
parent7eaa78060c34489c7e56193c725641303d520f31 (diff)
Merge branch 'incoming'
Diffstat (limited to 'system/include/net/arpa/inet.h')
-rw-r--r--system/include/net/arpa/inet.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/system/include/net/arpa/inet.h b/system/include/net/arpa/inet.h
index 06d44183..83eaa0fa 100644
--- a/system/include/net/arpa/inet.h
+++ b/system/include/net/arpa/inet.h
@@ -7,6 +7,7 @@ extern "C" {
#endif
#include <stdint.h>
+#include <netdb.h>
uint32_t htonl(uint32_t hostlong);
uint16_t htons(uint16_t hostshort);
@@ -16,6 +17,9 @@ uint16_t ntohs(uint16_t netshort);
int inet_aton(const char *cp, struct in_addr *addr);
char *inet_ntoa(struct in_addr in);
+int inet_pton(int af, const char *src, void *dst);
+const char *inet_ntop(int af, const void *src, char *dst, socklen_t size);
+
typedef long in_addr_t;
in_addr_t inet_addr(const char *cp);