diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-10-06 14:07:41 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-10-06 14:07:41 -0700 |
commit | 1b81b2562f3913f2d4fda5bd3a002430b51e0de4 (patch) | |
tree | cb08cc75e3a53d1c60c7a7f9e421094fdd316245 /system/include/net | |
parent | c7e10b85b5e48322352edf631e6c450070f50dfd (diff) |
net-related headers
Diffstat (limited to 'system/include/net')
-rw-r--r-- | system/include/net/arpa/inet.h | 6 | ||||
-rw-r--r-- | system/include/net/netdb.h | 2 | ||||
-rw-r--r-- | system/include/net/netinet/in.h | 24 |
3 files changed, 32 insertions, 0 deletions
diff --git a/system/include/net/arpa/inet.h b/system/include/net/arpa/inet.h new file mode 100644 index 00000000..2cc6f45a --- /dev/null +++ b/system/include/net/arpa/inet.h @@ -0,0 +1,6 @@ +/* */ + +uint32_t ntohl(uint32_t netlong); + +uint16_t ntohs(uint16_t netshort); + diff --git a/system/include/net/netdb.h b/system/include/net/netdb.h new file mode 100644 index 00000000..27ce5b22 --- /dev/null +++ b/system/include/net/netdb.h @@ -0,0 +1,2 @@ +/* */ + diff --git a/system/include/net/netinet/in.h b/system/include/net/netinet/in.h new file mode 100644 index 00000000..57576236 --- /dev/null +++ b/system/include/net/netinet/in.h @@ -0,0 +1,24 @@ + +struct in_addr { + unsigned long s_addr; +}; + +struct sockaddr_in { + short sin_family; + unsigned short sin_port; + struct in_addr sin_addr; + char sin_zero[8]; +}; + +struct in6_addr { + unsigned char s6_addr[16]; +}; + +struct sockaddr_in6 { + short sin6_family; + short sin6_port; + int sin6_flowinfo; + struct in6_addr sin6_addr; + int sin6_scope_id; +}; + |