1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:47:44 +00:00

Kernel+LibC+Userland: Yet more networking bringup hacking.

All ICMP sockets now receive all ICMP packets. All this buffering is gonna
need some limits and such.
This commit is contained in:
Andreas Kling 2019-03-12 17:27:07 +01:00
parent a017a77442
commit a7d5e9781a
14 changed files with 178 additions and 2 deletions

View file

@ -89,6 +89,7 @@
__ENUMERATE_SYSCALL(get_shared_buffer_size) \
__ENUMERATE_SYSCALL(seal_shared_buffer) \
__ENUMERATE_SYSCALL(sendto) \
__ENUMERATE_SYSCALL(recvfrom) \
namespace Syscall {
@ -138,6 +139,15 @@ struct SC_sendto_params {
size_t addr_length; // socklen_t
};
struct SC_recvfrom_params {
int sockfd;
void* buffer;
size_t buffer_length;
int flags;
const void* addr; // const sockaddr*
size_t addr_length; // socklen_t
};
void initialize();
int sync();