summaryrefslogtreecommitdiff
path: root/userland/libc/include/arpa
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2023-11-20 23:05:08 +0100
committerAnton Kling <anton@kling.gg>2023-11-20 23:05:08 +0100
commitc7cc762db3bee687f025cd085ebc48d5ba0f96c4 (patch)
tree02cb0c737001ef3f97865b2b23dec885ea0ed9dd /userland/libc/include/arpa
parent328aea599f93aa0020f65a68588f6205ab79691c (diff)
LibC: Add ntohs and ntohl
Diffstat (limited to 'userland/libc/include/arpa')
-rw-r--r--userland/libc/include/arpa/inet.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/userland/libc/include/arpa/inet.h b/userland/libc/include/arpa/inet.h
index e69de29..70dcac9 100644
--- a/userland/libc/include/arpa/inet.h
+++ b/userland/libc/include/arpa/inet.h
@@ -0,0 +1,6 @@
+#include <stdint.h>
+
+uint32_t htonl(uint32_t hl);
+uint16_t htons(uint16_t hs);
+uint32_t ntohl(uint32_t nl);
+uint16_t ntohs(uint16_t ns);