diff options
| author | Anton Kling <anton@kling.gg> | 2023-10-27 22:17:24 +0200 | 
|---|---|---|
| committer | Anton Kling <anton@kling.gg> | 2023-10-30 21:49:48 +0100 | 
| commit | d50d18c9da3a125f0196bec89802dec1c5b0b800 (patch) | |
| tree | d9a4e74906c5ab51708d148ad3728cc155a9893d /cpu | |
| parent | 4f9ed7087cb58683d9423ab771ad76b31dac5514 (diff) | |
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.
Diffstat (limited to 'cpu')
| -rw-r--r-- | cpu/syscall.c | 5 | 
1 files changed, 3 insertions, 2 deletions
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 <scalls/msleep.h>  #include <scalls/ppoll.h>  #include <scalls/recvfrom.h> +#include <scalls/sendto.h>  #include <scalls/shm.h>  #include <scalls/socket.h>  #include <scalls/stat.h> @@ -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,  |