summaryrefslogtreecommitdiff
path: root/network/bytes.h
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2023-10-26 22:35:58 +0200
committerAnton Kling <anton@kling.gg>2023-10-30 21:49:48 +0100
commitf8e15da04472f5ed6a26e588de4a23cb3e1ba20b (patch)
tree9e646d6ba72dcc8f2eb95d04bac2a8b4a91ad946 /network/bytes.h
parentcf60045bdb969f6fe44fe7dc9bf7cec593a0b05c (diff)
Kernel: Fixup rtl8139, add basic ARP and ethernet support
Currently the ARP appears to be able to respond to requests.
Diffstat (limited to 'network/bytes.h')
-rw-r--r--network/bytes.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/network/bytes.h b/network/bytes.h
new file mode 100644
index 0000000..c291589
--- /dev/null
+++ b/network/bytes.h
@@ -0,0 +1,5 @@
+#include <stdint.h>
+
+uint16_t ntohs(uint16_t net);
+uint16_t htons(uint16_t net);
+uint32_t htonl(uint32_t net);