From d50d18c9da3a125f0196bec89802dec1c5b0b800 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Fri, 27 Oct 2023 22:17:24 +0200 Subject: Kernel/LibC/Networking: Be able to send UDP messages Now it can send UDP messages to a specific IP address and libc has enough to create a basic UDP ECHO server, that is kinda cool. --- cpu/syscall.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cpu') diff --git a/cpu/syscall.c b/cpu/syscall.c index 6ad5514..9bf5075 100644 --- a/cpu/syscall.c +++ b/cpu/syscall.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -162,8 +163,8 @@ void (*syscall_functions[])() = { (void(*))syscall_socket, (void(*))syscall_shm_open, (void(*))syscall_ftruncate, (void(*))syscall_stat, (void(*))syscall_msleep, (void(*))syscall_uptime, - (void(*))syscall_mkdir, - (void(*))syscall_recvfrom, + (void(*))syscall_mkdir, (void(*))syscall_recvfrom, + (void(*))syscall_sendto, }; void syscall_function_handler(uint32_t eax, uint32_t arg1, uint32_t arg2, -- cgit v1.2.3