diff options
author | Anton Kling <anton@kling.gg> | 2023-10-27 19:41:26 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2023-10-30 21:49:48 +0100 |
commit | 4f9ed7087cb58683d9423ab771ad76b31dac5514 (patch) | |
tree | 5364217b7d491c4321830025020ab13513067cb1 /scalls/recvfrom.h | |
parent | 715274d3a77c58510b97c3f87cd604dde9de7a4f (diff) |
Kernel: Expose source information of incoming UDP packets
Diffstat (limited to 'scalls/recvfrom.h')
-rw-r--r-- | scalls/recvfrom.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/scalls/recvfrom.h b/scalls/recvfrom.h index 9897899..d81a1e0 100644 --- a/scalls/recvfrom.h +++ b/scalls/recvfrom.h @@ -1,4 +1,11 @@ #include <socket.h> -size_t syscall_recvfrom(int socket, void *buffer, size_t length, int flags, - struct sockaddr *address, socklen_t *address_len); +struct two_args { + uint32_t a; + uint32_t b; +}; + +size_t syscall_recvfrom( + int socket, void *buffer, size_t length, int flags, + struct two_args + *extra_args /*struct sockaddr *address, socklen_t *address_len*/); |